/* =========================================
   GLOBAL VARIABLES & LIGHT THEME
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --dark: #0f172a;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    /* 🟢 The Dashboard Subtle Dot Pattern */
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-main);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* =========================================
   TYPOGRAPHY
========================================= */
.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

section { padding: 80px 5%; }

/* =========================================
   LIGHT NAVBAR (Glassmorphism & Scroll-Shrink)
========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 22px 0; 
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s ease; /* 🟢 This makes the shrinking smooth! */
}

/* 🟢 The new class that activates when you scroll down */
.navbar.scrolled {
    padding: 10px 0; /* Shrinks the height */
    background: rgba(255, 255, 255, 0.98); /* Makes it slightly less see-through */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Adds a deeper shadow to pop off the page */
}

.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }
.nav-left { display: flex; align-items: center; gap: 15px; }

.logo { 
    height: 55px; 
    border-radius: 8px; 
    transition: all 0.4s ease; /* 🟢 Smooth shrinking for the logo */
}

/* 🟢 Shrink the logo slightly when scrolling */
.navbar.scrolled .logo {
    height: 40px; 
}

.brand-text { font-size: 24px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }


.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { font-weight: 600; color: var(--text-muted); transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 15px; }

.expert-btn { background: white; color: var(--primary); border: 1px solid var(--border-light); padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02);}
.expert-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);}

.icon-btn { cursor: pointer; font-size: 20px; color: var(--text-muted); transition: 0.2s; }
.icon-btn:hover { color: var(--primary); }

/* =========================================
   HERO & LIGHT LOGIN BOX
========================================= */
.hero { padding: 80px 5%; }

.hero-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 60px; align-items: center; }
.hero-text h1 { font-size: 50px; font-weight: 800; line-height: 1.1; color: var(--dark); margin-bottom: 20px; letter-spacing: -1.5px; }
.hero-text p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 15px; }
.primary-btn { background: var(--primary); color: white; padding: 12px 25px; border-radius: 8px; font-weight: 600; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3); transition: 0.2s; }
.primary-btn:hover { background: var(--primary-hover); transform: translateY(-2px); }
.secondary-btn { background: white; color: var(--dark); border: 1px solid var(--border-light); padding: 12px 25px; border-radius: 8px; font-weight: 600; transition: 0.2s; }
.secondary-btn:hover { border-color: var(--primary); color: var(--primary); }

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    border: 1px solid var(--border-light);
}

.login-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 20px; color: var(--dark); }
.error-msg { background: #fee2e2; color: #991b1b; padding: 10px; border-radius: 8px; margin-bottom: 15px; font-size: 13px; font-weight: 600; border: 1px solid #fecaca;}
.login-box input { width: 100%; padding: 14px; margin-bottom: 15px; border: 1px solid var(--border-light); border-radius: 8px; font-size: 15px; outline: none; transition: 0.2s; background: white;}
.login-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.login-box button { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.2s; margin-bottom: 15px; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);}
.login-box button:hover { background: var(--primary-hover); }
.login-box a { display: block; text-align: center; color: var(--primary); font-weight: 600; font-size: 14px; }
.login-box a:hover { text-decoration: underline; }

/* =========================================
   CLEAN WHITE GRIDS (Cards)
========================================= */
.features-grid, .modules-grid, .projects-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card, .module-card, .project-card, .testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.feature-card:hover, .module-card:hover, .project-card:hover, .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.icon { font-size: 40px; margin-bottom: 15px; }
.feature-card h4, .module-card h3 { font-size: 20px; color: var(--dark); margin-bottom: 10px; font-weight: 700; }
.feature-card p, .module-card p { color: var(--text-muted); font-size: 15px; }

.project-card { padding: 0; overflow: hidden; }
.project-card img { width: 100%; height: 200px; object-fit: cover; border-bottom: 1px solid var(--border-light); }
.project-info { padding: 20px; text-align: center; }
.project-info h4 { color: var(--dark); font-weight: 700;}

/* =========================================
   LIGHT TESTIMONIALS 
========================================= */
.testimonials-section { background: transparent; }
.testimonial-card p { font-style: italic; color: var(--text-muted); margin-bottom: 20px; }
.testimonial-card h4 { color: var(--dark); margin-bottom: 2px; }
.testimonial-card span { color: var(--primary); font-size: 13px; font-weight: 600; }

/* =========================================
   NEW 2-COLUMN FAQ ACCORDION (Light Theme)
========================================= */
.faq-layout { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; align-items: start; 
}
.faq-text h2.faq-huge-title { 
    font-size: 42px; font-weight: 900; line-height: 1.15; color: var(--dark); margin-bottom: 25px; text-transform: uppercase; letter-spacing: -1px; 
}
.faq-text p { color: var(--text-muted); margin-bottom: 15px; font-size: 16px; line-height: 1.7; }

.faq-accordion-card { 
    background: var(--card-bg); padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid var(--border-light); 
}
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }

.faq-toggle { 
    width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; background: none; border: none; font-size: 15px; font-weight: 600; color: var(--dark); cursor: pointer; text-align: left; transition: color 0.2s; 
}
.faq-toggle:hover { color: var(--primary); }
.faq-toggle i { transition: transform 0.3s ease; color: var(--text-muted); }

/* Accordion Animation */
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.faq-content p { padding-bottom: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.6;}

/* Active Open State */
.faq-item.active .faq-toggle { color: var(--primary); }
.faq-item.active .faq-toggle i { transform: rotate(45deg); color: var(--primary); } 

/* =========================================
   NEW 2-COLUMN CONTACT CARD (Light Theme)
========================================= */
.contact-wrapper { 
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: var(--card-bg); padding: 50px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border: 1px solid var(--border-light); max-width: 1200px; margin: 0 auto; 
}
.contact-title { font-size: 36px; font-weight: 800; color: var(--dark); margin-bottom: 10px; letter-spacing: -1px;}
.contact-subtitle { color: var(--text-muted); margin-bottom: 30px; font-size: 15px; }
.contact-details p { margin-bottom: 12px; font-size: 15px; color: var(--dark); }

.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }

.form-group input, .form-group textarea { 
    width: 100%; padding: 14px; border: 1px solid var(--border-light); border-radius: 8px; font-family: 'Inter'; outline: none; transition: 0.2s; background: var(--bg-light); 
}
.form-group input:focus, .form-group textarea:focus { 
    border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); 
}

.submit-btn { 
    padding: 14px 30px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2); 
}
.submit-btn:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);}

/* =========================================
   LIGHT CTA & FOOTER
========================================= */
.cta { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); padding: 60px 5%; text-align: center; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);}
.cta-left h2 { font-size: 32px; font-weight: 800; margin-bottom: 15px; color: var(--dark);}
.cta-left p { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btn { background: var(--primary); color: white; padding: 15px 30px; border: none; border-radius: 8px; font-size: 18px; font-weight: 700; cursor: pointer; transition: 0.2s; box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2); }
.cta-btn:hover { transform: scale(1.05); }

.footer { background: white; padding: 60px 5% 30px; color: var(--text-muted); border-top: 1px solid var(--border-light); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-left h3 { color: var(--dark); font-size: 24px; margin-bottom: 10px; font-weight: 800;}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { transition: 0.2s; font-weight: 500;}
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-social { display: flex; gap: 15px; font-size: 24px; }
.footer-social .social-icon { cursor: pointer; transition: 0.2s; color: var(--dark);}
.footer-social .social-icon:hover { transform: translateY(-3px); color: var(--primary);}
.footer-bottom { text-align: center; border-top: 1px solid var(--border-light); padding-top: 30px; font-size: 14px; }

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .nav-links { display: none; } 
    .hero-text h1 { font-size: 38px; }
    
    /* Stack the new elements on phones/tablets */
    .faq-layout, .contact-wrapper { grid-template-columns: 1fr; padding: 30px;}
    .contact-form-grid { grid-template-columns: 1fr; }
    .faq-text h2.faq-huge-title { font-size: 32px; }
}

/* =========================================
   SCROLL TO TOP BUTTON
========================================= */
#scrollTopBtn {
    display: none; /* Hidden by default until user scrolls */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 55px;
    height: 55px;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.5);
}

/* Push the button slightly to the left on mobile */
@media (max-width: 600px) {
    #scrollTopBtn { right: 20px; bottom: 20px; width: 50px; height: 50px; }
}