@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --primary-blue: #6B00FF;
    --deep-blue: #4D00B5;
    --dark-navy: #0D1B2A;
    --light-sky: #F5F3FF;
    --accent-cyan: #7C3AED;
    --white: #FFFFFF;
    --text-dark: #1A2332;
    --text-muted: #6B7F9E;
    --success-green: #00C853;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(107, 0, 255, 0.10);
    --gradient-blue: linear-gradient(135deg, #4D00B5 0%, #6B00FF 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
}

/* ========== RESET ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-dark); line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 30px; }
h3 { font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.hero h1 { color: #FFFFFF; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--primary-blue); }
.gradient-text { background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ========== LAYOUT ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 100px 0; }
.section-light { background-color: var(--light-sky); }
.section-dark { background-color: var(--dark-navy); color: rgba(255,255,255,0.8); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: 8px; font-weight: 700;
    cursor: pointer; transition: var(--transition); border: none; font-size: 16px;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-primary { background: var(--gradient-blue); color: var(--white); box-shadow: 0 4px 15px rgba(2, 119, 189, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary-blue); color: var(--primary-blue); }

/* ========== CARDS ========== */
.card {
    background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid rgba(2, 119, 189, 0.08);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(2, 119, 189, 0.15); }
.glass-card {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-lg); padding: 2.5rem;
    transition: var(--transition);
}
.glass-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.15); }
.badge { background: var(--light-sky); color: var(--deep-blue); padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; display: inline-block; }

/* ========== HEADER ========== */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 2000; transition: var(--transition); 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
header.nav-scrolled { 
    background: rgba(255, 255, 255, 0.98); 
    box-shadow: 0 4px 30px rgba(107, 0, 255, 0.15); 
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    height: 90px; padding: 0 40px; max-width: 1400px; margin: 0 auto;
}
.logo { 
    background: #FFFFFF;
    padding: 18px 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    margin-left: 10px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 100;
    align-self: flex-start;
    transform: translateY(0);
    border: 1px solid rgba(107, 0, 255, 0.05);
    border-top: none;
}
/* Premium Shiny Glint Effect */
.logo::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shiny-glint 3s infinite ease-in-out;
}
@keyframes shiny-glint {
    0% { left: -150%; }
    30% { left: 150%; }
    100% { left: 150%; }
}
.logo img { height: 95px; width: auto; transition: var(--transition); display: block; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05)); }
.nav-links { display: flex; align-items: center; gap: 35px; list-style: none; height: 100%; }
.nav-item { display: flex; align-items: center; height: 100%; }
.nav-link { 
    color: var(--text-dark); 
    font-weight: 700; 
    font-size: 15px; 
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary-blue); }
.nav-actions { display: flex; gap: 20px !important; align-items: center; height: 90px; }
#menu-toggle { display: none; background: transparent; border: none; color: var(--text-dark); font-size: 28px; cursor: pointer; }
.nav-scrolled #menu-toggle { color: var(--text-dark); }

/* ========== DROPDOWNS ========== */
.nav-item.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; left: 0; 
    background: #FFFFFF; min-width: 260px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 12px; padding: 20px 0;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    list-style: none; z-index: 100;
    border: 1px solid #f1f5f9;
}
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block; padding: 10px 25px;
    color: var(--text-dark) !important; font-size: 14px;
    font-weight: 600; transition: var(--transition);
}
.dropdown-menu li a:hover {
    color: var(--primary-blue) !important;
    background: #f8fbff;
    padding-left: 30px;
}
/* ========== HERO ========== */
.hero {
    min-height: 100vh; background-color: var(--dark-navy);
    display: flex; align-items: center; position: relative;
    padding-top: 110px; padding-bottom: 70px; overflow: hidden;
}
.hero:not(.home-hero) { padding-top: 140px; }
.hero.solutions-hero, .hero.services-hero, .hero.case-study-hero { padding-top: 160px; }
.hero-gradient {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 60% 40%, rgba(79,195,247,0.1), #0d1b2a 80%);
    z-index: 1;
}
.hero-content-wrapper {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px;
    align-items: center; position: relative; z-index: 10;
}
.hero-text { max-width: 720px; margin-top: 60px; }
.hero-image { position: relative; }
.hero-image img {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
}
.hero-tag {
    font-family: var(--font-accent); color: #FFFFFF;
    font-size: 14px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 20px; display: block;
}
.hero-title { margin-bottom: 24px; color: #FFFFFF; }
.hero-subtext { font-size: 1.125rem; color: rgba(255,255,255,0.6); margin-bottom: 40px; max-width: 600px; }

/* ========== LOGO CAROUSEL ========== */
.logo-carousel { overflow: hidden; padding: 40px 0; background: white; white-space: nowrap; position: relative; }
.logo-carousel:before, .logo-carousel:after {
    content: ""; position: absolute; top: 0; width: 200px; height: 100%; z-index: 2;
}
.logo-carousel:before { left: 0; background: linear-gradient(to right, white, transparent); }
.logo-carousel:after  { right: 0; background: linear-gradient(to left, white, transparent); }
.logo-track { display: inline-flex; animation: scroll 40s linear infinite; width: max-content; }
.logo-track:hover { animation-play-state: paused; }
.logo-slide { width: 280px; height: 120px; display: flex; align-items: center; justify-content: center; padding: 0 40px; }
.logo-slide img { max-width: 100%; max-height: 100px; filter: grayscale(10%); opacity: 0.9; transition: var(--transition); }
.logo-slide img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 8)); }
}

/* ========== PRICING TOGGLE ========== */
.pricing-toggle {
    background: transparent; color: rgba(255,255,255,0.6); padding: 8px 25px;
    border-radius: 40px; border: none; font-size: 14px; cursor: pointer;
    transition: var(--transition); font-weight: 600;
}
.pricing-toggle.active {
    background: var(--primary-blue); color: var(--dark-navy); font-weight: 700;
}
.pricing-feature {
    margin-bottom: 10px; font-size: 13px; color: var(--text-muted); line-height: 1.5;
    padding-left: 5px;
}

/* ========== FEATURE COMPARISON TABLE ========== */
.feature-table {
    width: 100%; border-collapse: collapse; background: white;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.feature-table thead tr {
    background: var(--dark-navy); color: white;
}
.feature-table th {
    padding: 18px 20px; font-weight: 700; font-size: 14px; text-align: center;
}
.feature-table th:first-child { text-align: left; }
.feature-table td {
    padding: 12px 20px; border-bottom: 1px solid #f1f5f9; font-size: 13px; text-align: center;
}
.feature-table td:first-child { text-align: left; font-weight: 500; color: var(--text-dark); }
.feature-table tbody tr:hover { background: rgba(79,195,247,0.04); }
.feature-category td {
    background: var(--light-sky) !important;
    font-weight: 800 !important; font-size: 14px !important;
    color: var(--deep-blue) !important; text-align: left !important;
    padding: 14px 20px !important;
}

/* ========== FAQ ========== */
.faq-item {
    border: 1px solid rgba(2, 119, 189, 0.1); border-radius: 12px;
    margin-bottom: 12px; overflow: hidden; transition: var(--transition);
    background: white;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-question {
    width: 100%; padding: 20px 24px; background: transparent; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text-dark);
    font-family: var(--font-body); text-align: left;
}
.faq-question i { color: var(--deep-blue); transition: var(--transition); font-size: 14px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 300px; padding: 0 24px 20px;
}
.faq-answer p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ========== CASE STUDY COMPONENTS ========== */
.challenge-item, .solution-item {
    display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start;
}
.challenge-list, .solution-list { margin-top: 10px; }

/* ========== FLOATING BUTTONS ========== */
.floating-whatsapp, .floating-call {
    position: fixed; bottom: 30px; width: 56px; height: 56px; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; z-index: 1000; transition: var(--transition); text-decoration: none;
}
.floating-whatsapp { right: 30px; background: #25D366; box-shadow: 0 4px 15px rgba(37,211,102,0.4); }
.floating-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.6); }
.floating-call { display: none; left: 30px; background: var(--deep-blue); box-shadow: 0 4px 15px rgba(2,119,189,0.4); }
.floating-call:hover { transform: scale(1.1); }

/* ========== FOOTER ========== */
.footer { background-color: var(--dark-navy); padding: 80px 0 40px; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); display: block; opacity: 0.9; }
.footer-text { font-size: 14px; opacity: 0.8; line-height: 1.6; }

.footer-logo-box {
    background: #FFFFFF;
    padding: 18px 30px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    transition: var(--transition);
    border: 1px solid rgba(107, 0, 255, 0.05);
}
.footer-logo-box::after {
    content: "";
    position: absolute;
    top: -50%; left: -150%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    animation: shiny-glint 3s infinite ease-in-out;
}
.footer-logo-box:hover { transform: translateY(-8px) scale(1.02); }
.footer-logo-box img { height: 75px; width: auto; display: block; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.05)); }

.footer-heading { color: #FFF; font-size: 15px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.5); max-width: 300px; }
.footer-links-list { list-style: none; padding: 0; }
.footer-link-item { margin-bottom: 10px; }
.footer-link { color: rgba(255,255,255,0.5); font-size: 14px; transition: var(--transition); text-decoration: none; }
.footer-link:hover { color: var(--primary-blue); padding-left: 5px; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; }
.footer-contact-item i { color: var(--primary-blue); margin-top: 3px; font-size: 14px; }
.footer-social-link {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.08);
    color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); font-size: 16px; text-decoration: none;
}
.footer-social-link:hover {
    background: var(--primary-blue); color: var(--dark-navy);
    transform: translateY(-3px); box-shadow: 0 5px 15px rgba(79,195,247,0.3);
}

.footer-bottom {
    margin-top: 60px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.3);
}
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-link { color: inherit; transition: var(--transition); }
.footer-legal-link:hover { color: var(--white); }

/* ========== DEMO MODAL ========== */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13,27,42,0.9); backdrop-filter: blur(8px);
    z-index: 3000; align-items: center; justify-content: center;
}
.modal.active { display: flex; }
.modal-content {
    background: white; padding: 50px; border-radius: 20px;
    max-width: 600px; width: 90%; position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.modal-close { position: absolute; top: 20px; right: 20px; font-size: 24px; cursor: pointer; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 991px) {
    .nav-container { height: 70px; padding: 0 20px; }
    .logo img { height: 45px; }

    .nav-links {
        display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 0 !important;
        position: fixed; top: 0; right: -100%; width: 85%; max-width: 380px;
        height: 100vh; background: white; z-index: 9999; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 0 30px; box-shadow: -15px 0 40px rgba(0,0,0,0.15); overflow-y: auto;
    }
    .nav-links.active { right: 0; }
    
    #menu-toggle {
        display: flex !important; background: var(--primary-blue); color: white;
        width: 48px; height: 48px; border-radius: 10px; align-items: center; justify-content: center;
        font-size: 22px; z-index: 10000; cursor: pointer; border: none;
    }
    
    .nav-item { 
        display: block !important; border-bottom: 1px solid #edf2f7; 
        height: auto !important; min-height: 0 !important; position: relative !important; 
        width: 100% !important; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important;
    }
    .nav-link { 
        padding: 14px 25px; font-size: 17px; font-weight: 700; color: var(--text-dark) !important;
        display: flex; justify-content: space-between; align-items: center; width: 100%; height: auto !important;
    }
    .nav-link::after { display: none !important; }
    .nav-actions { display: none !important; }

    /* Mobile Dropdown styles */
    .nav-links .dropdown-menu {
        position: relative !important; top: 0 !important; left: 0 !important; margin-top: 0 !important;
        display: none; width: 100%; opacity: 1 !important; visibility: visible !important;
        transform: none !important; box-shadow: none !important; background: #f8fbff; border: none !important; padding: 0 !important;
    }
    .nav-item.dropdown.active .dropdown-menu { display: block !important; }
    .nav-item.dropdown.active .nav-link { background: #f0f6ff; color: var(--primary-blue) !important; }
    .nav-item.dropdown.active .nav-link i { transform: rotate(180deg); color: var(--primary-blue); transition: transform 0.3s ease; }
    .nav-link i { transition: transform 0.3s ease; }
    .dropdown-menu li a { 
        padding: 10px 40px; font-size: 14px; font-weight: 500; border-bottom: 1px solid rgba(0,0,0,10%); 
        display: block; color: var(--text-dark) !important; 
    }

    header { z-index: 10000; }

    /* Menu Backdrop Style */
    .menu-backdrop {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(13, 27, 42, 0.4); backdrop-filter: blur(3px); z-index: 9999;
        display: none; opacity: 0; transition: opacity 0.3s;
    }
    .menu-backdrop.active { display: block; opacity: 1; }

    .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
    /* Hero and Hub Grids */
    .hero-content-wrapper, .solutions-hub-grid, .services-hub-grid, .cs-hub-grid, .blog-grid { grid-template-columns: 1fr !important; }
    .hero-text { margin: 0 auto; text-align: center; }
    .hero-subtext { margin-left: auto; margin-right: auto; }
    
    /* New lead form on Home page */
    #contact .container > div { grid-template-columns: 1fr !important; gap: 40px !important; }
    #contact div[data-aos="fade-right"] { text-align: center; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr !important; max-width: 450px; margin: 0 auto; }
    .pricing-grid .card { transform: none !important; }

    /* Metrics & smaller grids */
    .metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .challenge-solution-grid { grid-template-columns: 1fr !important; }
    .solution-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .partner-benefits-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .partner-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .sitemap-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 30px !important; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 60px 0; }
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .btn { width: 100%; justify-content: center; font-size: 15px; padding: 14px 20px; }

    .hero-content-wrapper { gap: 30px; }
    #lead-form-section .container > div { grid-template-columns: 1fr !important; }
    #lead-form-section div[style*="background: var(--dark-navy)"] { padding: 30px !important; }
    #lead-form-section div[style*="padding: 50px"] { padding: 30px !important; }
    
    #global-lead-form div[style*="display: grid"] { grid-template-columns: 1fr !important; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr !important; max-width: 100%; }

    /* All grids to single column */
    .metrics-grid { grid-template-columns: 1fr !important; }
    .solution-cards-grid { grid-template-columns: 1fr !important; }
    .partner-benefits-grid { grid-template-columns: 1fr !important; }
    .partner-cards-grid { grid-template-columns: 1fr !important; }
    .solutions-hub-grid { grid-template-columns: 1fr !important; }
    .services-hub-grid { grid-template-columns: 1fr !important; }
    .cs-hub-grid { grid-template-columns: 1fr !important; }
    .sitemap-grid { grid-template-columns: 1fr !important; }

    /* Feature table scroll */
    .feature-table { font-size: 12px; }
    .feature-table th, .feature-table td { padding: 10px 12px; }

    /* Footer */
    .footer { padding-top: 50px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-logo { margin: 0 auto 20px; }
    .footer-text { margin: 0 auto; }
    .footer-contact-item { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }

    .floating-whatsapp, .floating-call { bottom: 20px; width: 48px; height: 48px; font-size: 24px; }
    .floating-whatsapp { right: 20px; }
    .floating-call { display: flex; left: 20px; }
}
