@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #00A3E0;
    --primary-glow: rgba(0, 163, 224, 0.4);
    --primary-dark: #0082b3;
    --accent: #00D1FF;
    --accent-glow: rgba(0, 209, 255, 0.5);
    /* Deeper, more sophisticated background */
    --bg-dark: #02060c;
    --bg-card: rgba(15, 23, 42, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --transition: cubic-bezier(0.23, 1, 0.32, 1);
    --nav-height: 90px;
    --mobile-nav-height: 75px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    /* Sophisticated radial mesh gradient */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 163, 224, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 209, 255, 0.1) 0px, transparent 50%),
        radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Glassmorphism Refined */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--bg-card);
    transition: transform 0.5s var(--transition), background 0.5s var(--transition), box-shadow 0.5s var(--transition);
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 163, 224, 0.1);
}

.btn-hover {
    transition: transform 0.3s var(--transition);
}

.btn-hover:active {
    transform: scale(0.96);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(2, 6, 12, 0.7);
    backdrop-filter: blur(20px);
    z-index: 2000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.6rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 1rem;
    opacity: 0.8;
}

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

.btn-contact-nav {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-contact-nav:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

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

/* Mobile Nav Expansion Fix */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 12, 0.98);
    z-index: 1900;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.6s var(--transition);
    backdrop-filter: blur(30px);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav ul li {
    margin: 30px 0;
}

.mobile-nav ul a {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Hero Section Refined */
.hero {
    min-height: 100vh;
    padding: 120px 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: brightness(0.3) blur(4px);
    object-fit: cover;
    transform: scale(1.1);
}

.hero-content {
    max-width: 900px;
    padding: 80px;
    border-radius: 50px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px var(--primary-glow);
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px var(--accent-glow);
}

/* Common Section Layout */
section {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
    opacity: 0.9;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 50px;
    line-height: 1.2;
}

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

.about-img {
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.about-img img {
    border-radius: 38px;
    width: 100% !important;
    height: 550px !important;
    object-fit: cover !important;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 50px;
    text-align: left;
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Trust Counters Refined */
.counter-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    padding: 80px 40px;
    border-radius: 40px;
}

.counter-item h2 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Testimonials Refined */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.testi-card {
    padding: 50px;
    position: relative;
}

.pfp {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Footer Refined */
footer {
    padding: 100px 40px 100px;
    background: rgba(2, 6, 12, 0.98);
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reveal Animations Classes */
.reveal-init {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition);
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive & Mobile Native Fixes */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .nav-links, .desktop-only {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .about-intro-grid {
        grid-template-columns: 1fr !important;
        gap: 50px;
    }
    .service-grid, .testi-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        gap: 20px;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .service-card, .testi-card {
        min-width: 85%;
        scroll-snap-align: center;
    }
    .service-grid::-webkit-scrollbar, .testi-grid::-webkit-scrollbar {
        display: none;
    }
}

/* Bottom Navigation (Native Feel) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-nav-height);
    background: rgba(2, 6, 12, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    z-index: 2100;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

@media (max-width: 768px) {
    section {
        padding: 60px 20px;
    }
    .bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: var(--mobile-nav-height);
    }
    .hero-content {
        padding: 40px 20px;
    }
    .counter-box {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 20px;
        gap: 20px;
    }
    .about-img {
        min-height: 250px;
    }
    .about-img img {
        height: 100% !important;
    }
    .glass {
        padding: 30px !important;
        border-radius: 20px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    gap: 4px;
    transition: color 0.3s var(--transition);
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item i {
    font-size: 1.4rem;
}

/* Timeline Components */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 80px auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    border: 4px solid var(--bg-dark);
    top: 30px;
    border-radius: 50%;
    z-index: 10;
}

.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }
.right::after { left: -10px; }

@media (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left !important; }
    .timeline-item::after { left: 21px; }
    .right { left: 0; }
}

/* Glassmorphism Forms */
.form-glass input,
.form-glass select,
.form-glass textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-glass input:focus,
.form-glass select:focus,
.form-glass textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 163, 224, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-glass input::placeholder,
.form-glass textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-glass select option {
    background: var(--bg-dark);
    color: var(--text-main);
}

/* FAQ Component */
.faq-item {
    padding: 25px 30px !important;
    border-radius: 20px !important;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(24px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.faq-item p {
    display: none;
}

.faq-item.active p {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
