/* GLOBAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1a0b2e;
    color: #e0d4ff;
    overflow-x: hidden;
}

/* HEADER */
header {
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #5ff6ff;
    font-size: 17px;
    transition: 0.3s;
}

nav a:hover {
    color: #8f5bff;
}

/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    min-height: 5vh;
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero h2 {
    font-size: 30px;
    color: #5ff6ff;
    margin-bottom: 13px;
    text-shadow: 0 0 12px rgba(95,246,255,0.6);
}

.hero p {
    font-size: 22px;
    color: #c8b8ff;
    max-width: 750px;
    margin: auto;
    line-height: 1.6;
}

/* WHITE SECTION */
.white-section {
    background: #ffffff;
    color: #222;
    padding: 80px 40px;
    text-align: center;
}

.white-section h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

/* SERVICE CARD */
.service-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 25px;
    border-radius: 12px;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    line-height: 1.45;
    transition: all 0.25s ease;
    text-align: center;
}

.service-card:hover {
    border-color: #0077ff;
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.15);
    transform: translateY(-4px);
}

/* DARK SECTION */
.dark-section {
    padding: 80px 40px;
    text-align: center;
    background: #1a0b2e;
    color: #e0d4ff;
}

.dark-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #5ff6ff;
}

/* WHY US */
.why-us {
    padding: 80px 40px;
    background: #1a0b2e;
    text-align: center;
}

.why-us h2 {
    font-size: 36px;
    color: #00ff66;
    margin-bottom: 40px;
    text-shadow: 0 0 12px rgba(0,255,102,0.4);
}

/* WHY GRID */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.why-box {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #c8b8ff;
    box-shadow: 0 0 12px rgba(0,255,102,0.1);
    transition: 0.3s;
    text-align: center;
}

.why-box:hover {
    box-shadow: 0 0 20px rgba(0,255,102,0.3);
    transform: translateY(-4px);
}

.why-icon {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 12px rgba(0,255,102,0.4));
}

/* CONTACT SECTION */
.contact-section {
    background: #ffffff;
    color: #222;
    padding: 80px 40px;
    text-align: center;
}

.contact-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

form input,
form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

form button {
    padding: 12px 25px;
    background: #8f5bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

form button:hover {
    background: #7a49e6;
}

/* FORM MESSAGES */
#formMessage {
    margin-top: 20px;
    font-size: 18px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

#formMessage.success {
    display: block;
    background: #d4ffd9;
    color: #0a7a1c;
    border: 1px solid #0a7a1c;
}

#formMessage.error {
    display: block;
    background: #ffd4d4;
    color: #7a0a0a;
    border: 1px solid #7a0a0a;
}

/* FOOTER */
footer {
    padding: 25px;
    text-align: center;
    background: #0f051a;
    color: #8f5bff;
}

/* RESPONSIVE */

/* WHY GRID – 2 columns on tablets */
@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* WHY GRID – 2 columns on phones */
@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .why-grid > * {
        min-width: 0;
    }

    .why-grid > *:nth-child(4) {
        grid-column: auto !important;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        font-size: 17px;
        padding: 20px;
    }
}

/* SMALL PHONES */
@media (max-width: 480px) {

    header {
        padding: 15px 20px;
        min-height: 110px;
        flex-wrap: wrap;
    }

    nav a {
        margin-left: 10px;
        font-size: 15px;
    }

    .logo img {
        max-height: 75px;
        height: auto;
    }

    .hero h2 {
        font-size: 26px !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .service-card {
        font-size: 16px;
        padding: 18px;
    }
}

/* MID PHONES – HEADER FIX */
@media (max-width: 600px) {

    header {
        padding: 18px 25px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin-left: 0;
        font-size: 14px;
    }

    .logo img {
        max-height: 85px;
    }
}

/* TABLETS */
@media (max-width: 768px) {

    header {
        padding: 20px 30px;
    }

    .logo img {
        max-height: 90px;
    }

    nav a {
        margin-left: 20px;
        font-size: 17px;
    }

    .hero h2 {
        font-size: 34px !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SMALL LAPTOPS */
@media (max-width: 1024px) {

    header {
        padding: 25px 40px;
    }

    .logo img {
        max-height: 95px;
    }

    nav a {
        margin-left: 22px;
    }

    .hero h2 {
        font-size: 38px !important;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* LOGO AUTO SIZE */
.logo img {
    height: auto;
    max-height: 100px;
    width: auto;
}

/* WHY GRID FIX – PC */
@media (min-width: 900px) {
    .why-grid > *:nth-child(4) {
        grid-column: 2;
    }
}