/* Global Styles & Variables */
:root {
    --primary: #007aff;
    --primary-glow: rgba(0, 122, 255, 0.4);
    --secondary: #0a84ff;
    --bg-dark: #050505;
    --bg-card: #121212;
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography Utility */
.subtitle {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    background: #ffffff;
    padding: 10px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.header .logo a,
.header .nav-links a {
    color: #1d1d1f;
}

.nav-links a {
    position: relative;
    opacity: 0.9;
    text-decoration: none;
    transition: var(--transition);
}

.header .burger div {
    background-color: #1d1d1f;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 60px 0 180px;
    /* Logo 180px from left, Nav 60px from right */
}

.logo {
    margin-left: 0;
    /* Handled by container padding */
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo span {
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
    /* Distance between links and search */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* Search Styles */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    color: #1d1d1f;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--primary);
}

.search-bar {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
}

.search-bar.active {
    width: 250px;
    opacity: 1;
    pointer-events: all;
    right: 40px;
}

.search-bar input {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #eee;
    border-radius: 50px;
    outline: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    opacity: 1;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass);
    border-color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 220px;
    /* Increased space to provide breathing room below the navbar */
}

#mesh-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero-description {
    margin-bottom: 2.5rem;
}

.hero-description p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.hero-image-wrapper:hover .hero-img {
    transform: scale(1.03);
}

@media (max-width: 1200px) {
    .header .container {
        padding: 0 40px;
    }

    .hero-grid {
        gap: 40px;
    }
}

@media (max-width: 968px) {
    .hero {
        height: auto;
        padding-top: 150px;
        padding-bottom: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-btns {
        justify-content: center;
    }
}

/* Sections General */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-intro p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-purpose-box {
    background: rgba(0, 122, 255, 0.05);
    border-left: 4px solid var(--primary);
    padding: 40px;
    border-radius: 0 24px 24px 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.purpose-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.about-purpose-box h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

.about-purpose-box p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about-purpose-box p:last-child {
    margin-bottom: 0;
}

.img-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.img-container:hover .feature-img {
    transform: scale(1.05);
}

/* Services Section */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Services Detailed Grid */
.services-full-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.service-box {
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.service-box:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.service-header-main {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid var(--glass-border);
}

.service-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    opacity: 0.5;
}

.service-header-main h3 {
    font-size: 1.8rem;
}

.service-body {
    padding: 40px;
}

.service-body h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-family: 'Outfit', sans-serif;
}

.service-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 900px;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.sub-service h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-service h5::before {
    content: '';
    width: 15px;
    height: 2px;
    background: var(--primary);
    display: block;
}

.service-body ul {
    list-style: none;
}

.service-body li {
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 1rem;
}

.service-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.service-box.highlight {
    background: linear-gradient(145deg, #121212, #1a1a25);
    border: 1px solid rgba(0, 122, 255, 0.3);
}

@media (max-width: 768px) {
    .service-header-main {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .service-body {
        padding: 25px;
    }

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

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
}

.info-item {
    margin-top: 20px;
    font-size: 1.1rem;
}

.info-item span {
    color: var(--primary);
    font-weight: 600;
    margin-right: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--bg-dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 100;
        padding-top: 50px;
    }

    .nav-links li {
        opacity: 0;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .nav-active {
        transform: translateX(0%);
    }

    @keyframes navLinkFade {
        from {
            opacity: 0;
            transform: translateX(50px);
        }

        to {
            opacity: 1;
            transform: translateX(0px);
        }
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

.burger {
    display: none;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}