/* ============================================
   TESECH - Public Website Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #F97316;
    --primary-light: #FB923C;
    --primary-dark: #EA580C;
    --primary-glow: rgba(249, 115, 22, 0.10);
    --accent: #6366F1;

    --bg-body: #f0f4f8;
    --bg-section: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(255, 255, 255, 0.9);

    --border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #475569;
    --text-muted: #64748B;

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(249, 115, 22, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.3px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-brand:hover {
    color: #1a1a2e;
}

.nav-brand .logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.25);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links>a,
.nav-links>.dropdown>a {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #475569;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-links>a i,
.nav-links>.dropdown>a i,
.nav-links>a svg,
.nav-links>.dropdown>a svg {
    font-size: 13px;
    width: 14px;
    height: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-links>a:hover,
.nav-links>.dropdown:hover>a {
    color: var(--primary);
    background: rgba(249, 115, 22, 0.06);
}

.nav-links>a.active {
    color: var(--primary);
}

/* Dropdown */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown>a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-bottom: 2px;
    opacity: 0.5;
    transition: var(--transition);
}

.nav-links .dropdown:hover>a::after {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--primary);
}

.nav-links .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    z-index: 200;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-links .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: var(--transition);
}

.nav-links .dropdown-menu a:hover {
    background: rgba(249, 115, 22, 0.06);
    color: var(--primary);
}

.nav-links .dropdown-menu a i,
.nav-links .dropdown-menu a svg {
    width: 18px;
    height: 14px;
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
    flex-shrink: 0;
}

.nav-links .dropdown-menu a:hover i,
.nav-links .dropdown-menu a:hover svg {
    color: var(--primary);
    opacity: 1;
}

/* External link indicator */
.nav-links .dropdown-menu a[target="_blank"]::after {
    content: '↗';
    font-size: 10px;
    margin-left: auto;
    opacity: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links .dropdown-menu a[target="_blank"]:hover::after {
    opacity: 0.5;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-cta {
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    color: #fff !important;
}

.mobile-toggle {
    display: none;
    font-size: 22px;
    color: var(--text-primary);
    cursor: pointer;
    background: none;
    border: none;
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-links.show {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(11, 13, 20, 0.98);
        backdrop-filter: blur(20px);
        padding: 16px;
        border-bottom: 1px solid var(--border);
        gap: 4px;
        z-index: 999;
    }

    .nav-links.show>a,
    .nav-links.show>.dropdown>a {
        width: 100%;
        padding: 12px 16px;
    }

    .nav-links .dropdown-menu {
        position: static;
        transform: none !important;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.02);
        min-width: unset;
        padding-left: 20px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background: #0B0D14;
    color: #F1F5F9;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08), transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-glow);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #F1F5F9, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: #94A3B8;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-hero {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.btn-hero.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
    color: #fff;
}

.btn-hero.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-hero.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.trust-item i {
    font-size: 20px;
    color: var(--primary);
}

.trust-item span {
    font-size: 13px;
    font-weight: 600;
    color: #94A3B8;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.section {
    padding: 80px 0;
}

/* Alternating Dark / Light Sections */
.section:nth-of-type(odd) {
    background: #0B0D14;
    color: #F1F5F9;
}

.section:nth-of-type(odd) .section-title h2 {
    color: #F1F5F9;
}

.section:nth-of-type(odd) .section-title p {
    color: #94A3B8;
}

.section:nth-of-type(odd) .feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.section:nth-of-type(odd) .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.section:nth-of-type(odd) .feature-card h3 {
    color: #F1F5F9;
}

.section:nth-of-type(odd) .feature-card p {
    color: #94A3B8;
}

.section:nth-of-type(odd) h2,
.section:nth-of-type(odd) h3,
.section:nth-of-type(odd) h4 {
    color: #F1F5F9 !important;
}

.section:nth-of-type(odd) p,
.section:nth-of-type(odd) span,
.section:nth-of-type(odd) li,
.section:nth-of-type(odd) div,
.section:nth-of-type(odd) label,
.section:nth-of-type(odd) td,
.section:nth-of-type(odd) th {
    color: #94A3B8;
}

.section:nth-of-type(odd) strong {
    color: #F1F5F9;
}

.section:nth-of-type(odd) a:not(.btn-hero):not(.nav-cta) {
    color: #94A3B8;
}

.section:nth-of-type(odd) a:not(.btn-hero):not(.nav-cta):hover {
    color: var(--primary);
}

/* Dark section inner cards & borders */
.section:nth-of-type(odd) [style*="background: var(--bg-card)"],
.section:nth-of-type(odd) [style*="background:var(--bg-card)"] {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.section:nth-of-type(odd) [style*="border: 1px solid var(--border)"],
.section:nth-of-type(odd) [style*="border:1px solid var(--border)"] {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.section:nth-of-type(odd) .btn-hero.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #F1F5F9;
    border-color: rgba(255, 255, 255, 0.15);
}

/* ---- Even (Light) sections ---- */
.section:nth-of-type(even) {
    background: #f8fafc;
    color: #1a1a2e;
}

.section:nth-of-type(even) .section-title h2 {
    color: #1a1a2e;
}

.section:nth-of-type(even) .section-title p {
    color: #475569;
}

.section:nth-of-type(even) .feature-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(16px);
}

.section:nth-of-type(even) .feature-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(249, 115, 22, 0.2);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.08);
}

.section:nth-of-type(even) .feature-card h3 {
    color: #1a1a2e;
}

.section:nth-of-type(even) .feature-card p {
    color: #475569;
}

.section:nth-of-type(even) h2,
.section:nth-of-type(even) h3,
.section:nth-of-type(even) h4 {
    color: #1a1a2e !important;
}

.section:nth-of-type(even) p,
.section:nth-of-type(even) span,
.section:nth-of-type(even) li,
.section:nth-of-type(even) div,
.section:nth-of-type(even) label {
    color: #475569;
}

.section:nth-of-type(even) strong {
    color: #1a1a2e;
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 12px 40px rgba(249, 115, 22, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.85);
}

.feature-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px 40px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 18px;
    color: #1a1a2e;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col p {
    font-size: 14px;
    color: #64748B;
    line-height: 1.7;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    color: #475569;
    padding: 6px 0;
    transition: all 0.25s ease;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748B;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 14px;
}

.footer-social a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ============================================
   APPLICATION FORM
   ============================================ */
.apply-section {
    padding: 80px 0;
}

.apply-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

/* ============================================
   STUDENT DASHBOARD
   ============================================ */
.student-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.student-sidebar {
    background: var(--bg-section);
    border-right: 1px solid var(--border);
    padding: 20px;
    position: fixed;
    width: 260px;
    height: 100vh;
    overflow-y: auto;
}

.student-main {
    margin-left: 260px;
    padding: 32px;
    min-height: 100vh;
}

.student-sidebar .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: var(--transition);
}

.student-sidebar .nav-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.student-sidebar .nav-item.active {
    background: var(--primary-glow);
    color: var(--primary);
}

.student-sidebar .nav-item i {
    width: 20px;
    text-align: center;
}

/* ============================================
   SYLLABUS VIEWER
   ============================================ */
.syllabus-tree {
    list-style: none;
    padding: 0;
}

.syllabus-tree .level-1 {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
}

.syllabus-tree .level-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.syllabus-tree .level-header:hover {
    background: var(--bg-card-hover);
}

.syllabus-tree .level-body {
    display: none;
    padding: 0 20px 16px;
}

.syllabus-tree .level-body.open {
    display: block;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.topic-item .topic-badge {
    margin-left: auto;
    display: flex;
    gap: 6px;
}

.topic-item .resource-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.topic-item .resource-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ============================================
   VIDEO PLAYER PAGE
   ============================================ */
.video-player-section {
    padding: 90px 0 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
    margin-bottom: 24px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-list {
    list-style: none;
    padding: 0;
}

.video-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.video-list li:hover {
    background: var(--bg-card-hover);
}

.video-list li.active {
    background: var(--primary-glow);
    border-color: var(--primary);
}

.video-list li .thumb {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .student-sidebar {
        display: none;
    }

    .student-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .trust-badges {
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero .container>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .hero .container>div>div:last-child svg {
        max-width: 320px !important;
    }

    .hero h1 {
        text-align: center !important;
    }

    .hero p {
        text-align: center !important;
    }

    .hero-actions {
        justify-content: center !important;
    }

    .trust-badges {
        justify-content: center !important;
    }
}

/* ============================================
   ANIMATIONS - Global Animation System
   ============================================ */

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.3);
    }

    50% {
        box-shadow: 0 0 20px 4px rgba(249, 115, 22, 0.15);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: var(--border);
    }

    50% {
        border-color: rgba(249, 115, 22, 0.3);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero entrance */
.hero {
    animation: fadeInUp 0.8s ease-out;
}

.hero .hero-badge {
    animation: slideDown 0.6s ease-out 0.2s both;
}

.hero h1 {
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero p {
    animation: fadeInUp 0.7s ease-out 0.5s both;
}

.hero-actions {
    animation: fadeInUp 0.7s ease-out 0.7s both;
}

.trust-badges {
    animation: fadeInUp 0.7s ease-out 0.9s both;
}

.hero svg {
    animation: fadeInScale 1s ease-out 0.5s both;
}

/* Scroll Reveal - elements start hidden */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children animations */
.stagger-children .feature-card,
.stagger-children .footer-col,
.stagger-children>* {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed .feature-card,
.stagger-children.revealed .footer-col,
.stagger-children.revealed>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children.revealed>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children.revealed>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children.revealed>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children.revealed>*:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children.revealed>*:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-children.revealed>*:nth-child(6) {
    transition-delay: 0.3s;
}

.stagger-children.revealed>*:nth-child(7) {
    transition-delay: 0.35s;
}

.stagger-children.revealed>*:nth-child(8) {
    transition-delay: 0.4s;
}

/* Section title animations */
.section-title {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects */
.feature-card {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.2);
}

.feature-card:hover svg {
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.3));
    transition: filter 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Button hover animations */
.btn-hero {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
}

.btn-hero:hover::after {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-hero.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-hero.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

/* Nav CTA pulse */
.nav-cta {
    animation: pulseGlow 3s infinite;
}

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
}

/* Footer reveal */
.site-footer {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.site-footer.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stat counters */
.stat-number {
    animation: countUp 0.6s ease-out both;
}

/* Image/SVG float */
.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Shimmer effect for badges */
.hero-badge {
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

/* Smooth page load */
body {
    animation: fadeInUp 0.5s ease-out;
}

/* Trust item hover */
.trust-item {
    transition: transform 0.3s ease, color 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
    color: var(--primary);
}

/* Link underline animation */
.footer-col a {
    position: relative;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col a:hover {
    padding-left: 6px;
    color: var(--primary);
}

/* Section separator glow */
.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

/* Contact card hover */
.section [style*="border-radius"] {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Scroll indicator */
@keyframes scrollHint {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

/* ============================================
   PREMIUM CARD FOOTER
   ============================================ */
.premium-footer {
    background: #0B0D14;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06), transparent 70%);
    pointer-events: none;
}

.premium-footer::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04), transparent 70%);
    pointer-events: none;
}

.pf-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.pf-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pf-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(249, 115, 22, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pf-card h4 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-card h4 svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pf-card>a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    color: #94A3B8;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pf-card>a:last-child {
    border-bottom: none;
}

.pf-card>a:hover {
    color: #FB923C;
    padding-left: 6px;
}

.pf-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #94A3B8;
    font-size: 12px;
    line-height: 1.5;
}

.pf-contact-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pf-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pf-bottom span {
    color: #64748B;
    font-size: 13px;
}

.pf-social {
    display: flex;
    gap: 8px;
}

.pf-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pf-social a svg {
    width: 16px;
    height: 16px;
}

.pf-social a:hover {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: #FB923C;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .pf-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .pf-grid {
        grid-template-columns: 1fr;
    }

    .pf-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE
   ============================================ */

/* ---- Tablet (1024px) ---- */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 24px;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero h1 {
        font-size: 38px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- Mobile (768px) ---- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
        height: 60px;
    }

    .nav-brand {
        font-size: 16px;
        gap: 8px;
    }

    .nav-brand img {
        width: 32px !important;
        height: 32px !important;
    }

    .nav-links.show {
        top: 60px;
    }

    .nav-links.show>a,
    .nav-links.show>.dropdown>a {
        color: #CBD5E1;
        font-size: 14px;
    }

    .nav-links.show>a:hover,
    .nav-links.show>.dropdown:hover>a {
        color: #F97316;
        background: rgba(249, 115, 22, 0.08);
    }

    .nav-links.show .dropdown-menu a {
        color: #94A3B8;
    }

    .nav-right {
        gap: 8px;
    }

    .nav-right a:not(.nav-cta):not(.mobile-toggle) {
        display: none;
    }

    .nav-cta {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn-hero {
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .trust-badges {
        gap: 12px;
        margin-top: 32px;
    }

    .trust-item {
        padding: 8px 14px;
        gap: 8px;
    }

    .trust-item span {
        font-size: 12px;
    }

    /* Hero 2-column → 1-column */
    .hero .container>div[style*="grid-template-columns: 1fr 1fr"],
    .hero .container>div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: center !important;
    }

    .hero .container>div>div:last-child svg[viewBox="0 0 500 500"] {
        max-width: 280px !important;
    }

    /* Sections */
    .section {
        padding: 48px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .section-title p {
        font-size: 14px;
    }

    /* Feature cards */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Stats / 2-col grids → 1-col */
    .stats-grid,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Form sections */
    .apply-card {
        padding: 24px;
    }

    /* CTA section */
    h2[style*="font-size: 36px"],
    h2[style*="font-size:36px"] {
        font-size: 24px !important;
    }

    /* Contact section 2-col → 1-col */
    #contact div[style*="grid-template-columns: 1fr 1fr"],
    #contact div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Premium footer */
    .pf-grid {
        grid-template-columns: 1fr !important;
    }

    .pf-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: center;
    }

    /* Contact page cards */
    .ct-cards {
        grid-template-columns: 1fr !important;
    }

    .ct-form-section {
        grid-template-columns: 1fr !important;
    }

    .ct-hero h1 {
        font-size: 28px !important;
    }

    /* About/Facilities pages inline grids */
    div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* Books 2-col grid */
    div[style*="grid-template-columns: repeat(2"],
    div[style*="grid-template-columns:repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Founder page */
    div[style*="grid-template-columns:repeat(auto-fit,minmax(380px"] {
        grid-template-columns: 1fr !important;
    }

    /* Tabs bar */
    .tabs-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding: 20px 16px 24px;
    }

    .section-tab {
        font-size: 12px;
        padding: 8px 16px;
    }

    /* General inline grids */
    .form-row,
    div[style*="display: grid"][style*="gap: 16px"],
    div[style*="display:grid"][style*="gap:16px"] {
        grid-template-columns: 1fr !important;
    }
}

/* ---- Small phones (480px) ---- */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero {
        padding: 90px 0 48px;
    }

    .hero h1 {
        font-size: 24px;
        letter-spacing: -0.8px;
    }

    .hero p {
        font-size: 14px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .feature-card {
        padding: 20px;
    }

    .btn-hero {
        font-size: 13px;
        padding: 11px 18px;
    }

    /* Contact cards side padding */
    .ct-card {
        padding: 24px 20px;
    }

    .ct-form-card,
    .ct-info-card {
        padding: 24px;
    }

    /* Founder author hero */
    .author-hero {
        padding: 100px 0 40px !important;
    }

    .author-hero h1 {
        font-size: 26px !important;
    }
}