/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    line-height: 1.6;
    font-size: 18px;
}


/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: #0f172a;
    color: #fff;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.logo {
    font-weight: 800;
    font-size: 26px;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-links a:hover {
    color: #38bdf8;
}

.dropdown {
    cursor: pointer;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    list-style: none;
    padding: 12px 0;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border: 1px solid #334155;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 12px 24px;
    transition: background 0.2s ease;
}

.dropdown-menu li:hover {
    background: #334155;
}

.dropdown-menu li a {
    font-size: 16px !important;
}

.dropdown-menu li a:hover {
    color: #38bdf8 !important;
}

.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
}


/* =========================
   HERO CAROUSEL
========================= */
.carousel {
    width: 100%;
    height: 85vh;
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%;
    height: 85vh;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    animation: slideIn 0.8s ease;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    width: 90%;
    max-width: 1000px;
}

.carousel-caption h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
    letter-spacing: -1px;
    line-height: 1.15;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.carousel-caption p {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 25px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.carousel-caption span {
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    padding: 10px 24px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(1.05); }
    to { opacity: 1; transform: scale(1); }
}

.carousel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.3), rgba(15,23,42,0.5));
    pointer-events: none;
    z-index: 5;
}


/* =========================
   SECTIONS
========================= */
.section {
    padding: 70px 60px;
    text-align: center;
}

.section h2 {
    margin-bottom: 20px;
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
    border-radius: 2px;
}


/* =========================
   SERVICES GRID
========================= */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1600px;
    margin: 0 auto;
}


/* CARD */
.service-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    border-color: #38bdf8;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    padding: 30px 35px 18px;
    color: #0f172a;
    text-align: left;
    letter-spacing: -0.3px;
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    margin-bottom: 12px;
}

.service-card:hover img {
    transform: scale(1.04);
}

.service-card img:first-of-type {
    height: 230px;
}


/* =========================
   ABOUT SECTION
========================= */
.about {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 18px;
    color: #475569;
    line-height: 1.85;
    letter-spacing: -0.2px;
}


/* =========================
   CONTACT FORM
========================= */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form input,
.contact-form textarea {
    padding: 20px 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 17px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
    color: #1e293b;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    background: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form button {
    padding: 20px 40px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}


/* =========================
   FOOTER
========================= */
footer {
    background: #0f172a;
    color: #fff;
    padding: 80px 60px 35px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 50px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

footer h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
    color: #fff;
    letter-spacing: -0.3px;
}

footer h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 22px;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 14px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: #38bdf8;
    transform: translateX(5px);
}

footer p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.75;
}

.copyright {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid #1e293b;
    font-size: 14px;
    color: #64748b;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .navbar {
        padding: 18px 30px;
    }
    
    .section {
        padding: 80px 30px;
    }
    
    footer {
        padding: 60px 30px 30px;
    }
}

@media (max-width: 768px) {

    .navbar {
        padding: 15px 20px;
    }

    .logo {
        font-size: 28px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #0f172a;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        padding: 25px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 10px 0 0 20px;
    }

    .dropdown-menu li {
        padding: 10px 0;
    }

    .dropdown-menu li:hover {
        background: transparent;
    }

    .carousel,
    .slide,
    .slide img {
        height: 60vh;
    }

    .carousel-caption h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .carousel-caption span {
        font-size: 11px;
        letter-spacing: 2px;
        padding: 8px 16px;
    }

    .section {
        padding: 60px 20px;
    }

    .section h2 {
        font-size: 28px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card h3 {
        font-size: 26px;
    }
    
    .service-card img {
        height: 300px;
    }
    
    .service-card img:first-of-type {
        height: 280px;
    }

    .footer-container {
        gap: 35px;
    }
}
