@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0A2647;
    --primary-light: #144272;
    --secondary: #205295;
    --accent: #2C74B3;
    --highlight: #3da9fc;
    --success: #2ecc71;
    --background: #051622;
    --card-bg: rgba(20, 66, 114, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --section-padding: 100px 0;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: #f1f1f1;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

section {
    width: 100%;
    overflow: hidden;
    /* Prevent horizontal scroll from child animations */
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--highlight) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-modern {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--highlight);
    color: var(--primary);
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(61, 169, 252, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--highlight);
    color: var(--highlight);
}

.btn-outline:hover {
    background: var(--highlight);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(5, 22, 34, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 70px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 120px 0 40px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--background) 100%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: #ccc;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features */
.features {
    width: 100%;
    margin-top: 40px;
}

.features .container {
    background: rgba(10, 38, 71, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px 30px 10px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--highlight);
    background: rgba(61, 169, 252, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    color: #fff;
}

.feature-item p {
    font-size: 0.85rem;
    color: #999;
    line-height: 1.4;
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    text-align: center;
    cursor: pointer;
}

.service-icon-wrapper {
    width: 90px;
    height: 90px;
    background: var(--primary-light);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.service-item:hover .service-icon-wrapper {
    border-radius: 50%;
    background: var(--highlight);
    transform: rotate(15deg);
}

.service-icon-wrapper img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* About & Experience */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image {
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    width: 45%;
    height: auto;
}

.about-content li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Clients */
.clients-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 40px;
    margin-top: 40px;
    border: 1px solid var(--glass-border);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    max-width: 140px;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: 0.3s;
}

.client-logo:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    width: 100%;
    height: auto;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    position: relative;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 2100;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox .lightbox-content {
    background: transparent;
    border: none;
    padding: 0;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    overflow: visible;
    position: relative;
    z-index: 2005;
}

#lightboxMedia {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#lightboxMedia img,
#lightboxMedia video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    display: block;
}

/* Contact */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: 0.3s;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: var(--primary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    max-width: 650px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-body {
    text-align: center;
}

.modal-body img {
    width: 70px;
    margin-bottom: 20px;
}

.modal-body h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

#modalDesc {
    margin-bottom: 30px;
}

#modalDesc ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    max-width: 100%;
}

#modalDesc ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

#modalDesc ul li i {
    color: var(--highlight);
    margin-top: 4px;
    flex-shrink: 0;
}

#modalDesc ul li span {
    flex: 1;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
}

/* Mobile Adaptability */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 260px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        padding: 100px 30px;
        transform: translateX(105%);
        transition: transform 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .about-image {
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 20px;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .feature-item {
        gap: 15px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    /* Popups responsive fix */
    .modal-content {
        padding: 25px 20px !important;
        width: 92% !important;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-body h2 {
        font-size: 1.4rem !important;
    }

    .modal-body img {
        width: 50px !important;
    }

    #modalDesc ul {
        font-size: 0.85rem !important;
    }

    #modalDesc ul li {
        margin-bottom: 8px !important;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Scroll Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.reveal-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* Navbar contact button tweak */
.nav-contact-btn {
    padding: 10px 24px !important;
}

/* Contact cards responsive fix */
.contact-card {
    text-decoration: none !important;
    color: inherit !important;
    flex: 1;
    min-width: 250px;
}

@media (max-width: 480px) {
    .contact-card {
        min-width: 100% !important;
    }
}

/* WhatsApp Pulse Animation */
.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        transform: scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        transform: scale(1);
    }
}

/* Lightbox Close Button Refinement */
.lightbox .close-modal {
    position: fixed;
    top: 30px;
    right: 30px;
    font-size: 2.5rem;
    z-index: 2200;
}

@media (max-width: 768px) {
    .lightbox .close-modal {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}