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

:root {
    --primary: #FACC15;
    --primary-hover: #EAB308;
    --navy: #1A1B2F;
    --navy-light: #25273F;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --text-main: #1A1B2F;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(at 0% 0%, rgba(250, 204, 21, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(26, 27, 47, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow: hidden;
    height: 100%;
}

/* --- Top Header Logo --- */
.top-header {
    position: fixed;
    top: 2rem;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 200;
}

.top-logo-img {
    height: 40px;
    width: auto;
}

.top-logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

/* --- Minimal Vertical Navigation (Left) --- */
.minimal-nav {
    position: fixed;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    z-index: 100;
}

.nav-line {
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
    z-index: -1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    flex-direction: row-reverse; /* Dot first, then text */
}

.nav-item span {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-dot {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    transition: var(--transition);
}

.nav-item.active span {
    font-size: 1.25rem;
    color: var(--navy);
    opacity: 1;
}

.nav-item.active .nav-dot {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.2);
}

/* --- Main Container --- */
.scroll-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

/* Custom Scrollbar */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: rgba(26, 27, 47, 0.1);
    border-radius: 10px;
    border: 2px solid var(--bg-light);
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 27, 47, 0.2);
}

.section {
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 4rem 4rem 12rem; /* Left padding for nav */
    position: relative;
    background: transparent;
}

.content-wrapper {
    width: 100%;
    max-width: 1400px;
}

/* --- Sections Styling --- */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(250, 204, 21, 0.15);
    color: #B45309;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h1 .highlight {
    background: linear-gradient(135deg, #FACC15, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 3rem;
}

/* --- Cards --- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.premium-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    box-shadow: 0 10px 30px -5px rgba(26, 27, 47, 0.04);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(26, 27, 47, 0.08);
    border-color: rgba(250, 204, 21, 0.6);
}

.card-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.premium-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.premium-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Features Section --- */
.features-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.feature-block {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    width: 100%;
    overflow: hidden;
}

.feature-block-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--white);
}

.mac-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.mac-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-block-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.feature-block-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.video-layout {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    background: #f8fafc;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 500;
}

.video-descriptions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.desc-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.desc-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.desc-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .video-descriptions {
        grid-template-columns: 1fr;
    }
}

.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: 50vh;
}

.view-panel {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.panel-header {
    background: #f1f5f9;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    border-bottom: 1px solid var(--border-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    position: relative;
    background: #fff;
}

#ai-review-content {
    overflow: hidden; /* Prevent double scrollbar from iframe */
    transition: opacity 0.3s ease;
}

#student-img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.subject-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.subject-tab {
    background: var(--white);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.subject-tab.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* --- Forms --- */
.premium-form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px -10px rgba(26, 27, 47, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input, select {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--navy);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.error-field {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.subject-chip {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.subject-chip:hover:not(.disabled) {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.15);
    transform: translateY(-2px);
}

.subject-chip.selected {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--navy);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.subject-chip.disabled {
    opacity: 0.6;
    cursor: help;
    background: rgba(241, 245, 249, 0.5);
    border-style: dashed;
    color: #94a3b8;
}

.pro-badge {
    font-size: 0.65rem;
    background: #E2E8F0;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    color: #64748B;
    font-weight: 700;
}

/* --- Calendar & Slots --- */
.calendar-widget {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.25rem;
}

.cal-nav {
    background: var(--white);
    border: 1px solid var(--border-light);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
}

.calendar-day.selected {
    background: var(--navy) !important;
    color: var(--white) !important;
}

.calendar-day.in-range {
    background: rgba(250, 204, 21, 0.3);
}

.slot {
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
}

.slot.selected {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
}

/* --- Buttons --- */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(26, 27, 47, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 27, 47, 0.25);
}

/* --- Success Overlay --- */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-content {
    text-align: center;
}

.success-content i {
    font-size: 4rem;
    color: #10B981;
    margin-bottom: 1.5rem;
}

/* --- EGE Review Styles (Override user styles) --- */
.panel-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.panel-content .ai-comment-container {
    padding: 1.5rem;
}

/* --- Animations --- */
.anim-fade-up {
    opacity: 0;
}
/* --- Scroll Hint (Right) --- */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .top-header { left: 2rem; top: 1.5rem; }
    .minimal-nav { display: none; }
    .section { padding: 2rem; }
    h1 { font-size: 3rem; }
    .grid-cards, .features-grid { grid-template-columns: 1fr; }
    .split-view { grid-template-columns: 1fr; height: auto; }
}
