/* 
 * Treneywann Group - Premium Enterprise Design System
 * Inspired by Infopark.in - Professional, Clean, and Scalable
 */

/* ============================================
   CSS Custom Properties & Design Tokens
   ============================================ */
:root {
    /* Primary Brand Colors (Infopark Inspired) */
    --color-primary: #004085;
    --color-primary-dark: #002752;
    --color-primary-light: #0056b3;
    --color-accent: #6f42c1;
    /* Purple accent */
    --color-accent-light: #a389d4;

    /* Premium Foundation */
    --color-dark: #1a1a1a;
    --color-dark-text: #2a2a2a;
    --color-light: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-tint: #f0f4f8;
    /* Very list blue tint */

    /* Neutral Palette */
    --color-gray-100: #f8fafc;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;

    /* Refined Glass Effect (More Subtle) */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(26, 26, 26, 0.05);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-blur: blur(15px);

    /* Typography */
    --font-display: 'Poppins', 'Outfit', sans-serif;
    --font-body: 'Poppins', 'Inter', sans-serif;

    /* Spacing Scale (Increased for Whitespace) */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Transitions */
    --transition-base: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Shadows */
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.04);
}

/* ============================================
   Reset & Base Styles
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-text);
    background: var(--color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Typography System
   ============================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background-color: var(--color-bg-light);
}

.section-tint {
    background-color: var(--color-bg-tint);
}

/* ============================================
   Header & Nav (Infopark Minimalism)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: transparent;
    z-index: 1000;
    transition: var(--transition-base);
}

.site-header.scrolled {
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 55px;
    /* Increased for better visibility since text is removed */
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-dark-text);
    padding: 10px 0;
    position: relative;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: #fff;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-bg-tint);
    border-radius: 50px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-gray-200);
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin-bottom: var(--space-2xl);
}

.hero-video-wrapper,
.hero-slideshow {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-wrapper::after,
.hero-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #fff 10%, transparent 100%);
    z-index: 2;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers area like background-size: cover */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    /* Ensure behind content */
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 64, 133, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 64, 133, 0.3);
}

.btn-outline {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-4px);
}

/* ============================================
   Premium Cards (Infopark Style)
   ============================================ */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.division-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-gray-100);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.division-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-premium);
}

.division-icon {
    width: 65px;
    height: 65px;
    background: var(--color-bg-tint);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--space-xl);
    color: var(--color-primary);
}

.division-card h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.4rem;
}

.division-card p {
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.card-link {
    color: var(--color-primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 0;
}

.card-link::after {
    content: '→';
    transition: var(--transition-base);
}

.card-link:hover::after {
    transform: translateX(5px);
}

/* ============================================
   Trust Bar
   ============================================ */
.trust-bar {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-gray-200);
    background: #fff;
}

.badge-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.badge-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-500);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Feature Section
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.feature-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-premium);
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

/* ============================================
   Footer (Infopark Style)
   ============================================ */
.site-footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-accent) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.site-footer h2,
.site-footer h4 {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    display: inline-block;
    padding: 6px 0;
    /* Fix Tap Target Sizing */
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: var(--space-xl);
    font-size: 0.85rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* ============================================
   Mobile Nav
   ============================================ */
@media (max-width: 992px) {
    :root {
        --space-4xl: 4rem;
        --space-3xl: 3rem;
        --space-2xl: 2.5rem;
    }

    .header-inner {
        padding: 0 var(--space-lg);
    }

    .header-brand {
        display: none;
    }

    .logo-img {
        height: 45px;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        justify-content: center;
        align-items: center;
        z-index: 999;
        gap: var(--space-md);
        padding: var(--space-2xl);
    }

    /* Huge Tap Targets for Mobile Menu */
    .nav-menu .nav-link {
        font-size: 1.5rem;
        padding: 20px;
        width: 100%;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 1001;
        cursor: pointer;
        padding: 10px;
        margin-right: -10px;
    }

    .mobile-menu-toggle span {
        width: 28px;
        height: 3px;
        background: var(--color-primary);
        border-radius: 3px;
        transition: var(--transition-base);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: var(--space-4xl);
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-video-wrapper,
    .hero-slideshow {
        width: 100%;
        opacity: 0.15;
    }

    .hero-slideshow::after {
        background: linear-gradient(0deg, #fff 20%, transparent 100%);
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .badge-grid {
        gap: var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .trust-bar {
        padding: var(--space-md) 0;
    }

    .badge-grid {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.2s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

/* ============================================
   Custom Cursor Glow
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 64, 133, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

/* ============================================
   Notification System
   ============================================ */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    animation: slideIn 0.3s ease forwards;
    border-left: 4px solid var(--color-primary);
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-700);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-gray-400);
    transition: color 0.2s;
    line-height: 1;
}

.notification-close:hover {
    color: var(--color-gray-900);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Detailed Syllabus Styles
   ============================================ */
.syllabus-container {
    background: var(--color-bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--color-gray-200);
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    text-align: left;
}

.syllabus-module {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--color-gray-300);
}

.syllabus-module:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.syllabus-module h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.syllabus-module ul {
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--color-gray-600);
}

.syllabus-module li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.syllabus-module li::before {
    content: '→';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 2px;
}

.syllabus-duration {
    font-size: 0.75rem;
    background: #e0e7ff;
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}



.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b85a;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: var(--space-sm);
}

.faq-item details {
    padding: var(--space-md) 0;
    cursor: pointer;
    transition: var(--transition-base);
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-dark);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: var(--space-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
}