:root {
    --primary: #72B4FF;
    --primary-dark: #4A8BD4;
    --secondary: #FF9A5C;
    --accent: #00E5FF;
    --glow-primary: rgba(114, 180, 255, 0.4);
    --glow-secondary: rgba(255, 154, 92, 0.4);
    --glow-accent: rgba(0, 229, 255, 0.3);
    --gradient-primary: linear-gradient(135deg, #72B4FF 0%, #00E5FF 50%, #A855F7 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9A5C 0%, #FF5C87 100%);
    --gradient-card: linear-gradient(145deg, rgba(114, 180, 255, 0.05) 0%, rgba(0, 229, 255, 0.05) 50%, rgba(168, 85, 247, 0.05) 100%);
    --dark: #050810;
    --dark-secondary: #0A0F1A;
    --dark-tertiary: #111827;
    --dark-card: #0D1421;
    --text-primary: #F0F7FF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #1E293B;
    --border-shine: #2D3A52;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--glow-primary);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background: radial-gradient(ellipse at top left, #0D1A30 0%, #050810 40%, #0A0515 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(114, 180, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.02) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px var(--glow-primary));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #050810;
    box-shadow: 0 4px 20px var(--glow-primary), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-primary), 0 0 40px var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--dark), var(--dark)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: #050810;
    box-shadow: 0 4px 20px var(--glow-primary);
    transform: translateY(-2px);
}

.btn-outline i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-outline:hover i {
    transform: translateX(4px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Top Bar */
.top-bar {
    background: var(--dark-secondary);
    color: var(--text-primary);
    padding: 10px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left a {
    color: var(--text-primary);
    text-decoration: none;
    margin-right: 25px;
    transition: var(--transition);
}

.top-bar-left a:hover {
    color: var(--primary);
}

.top-bar-left i, .top-bar-right i {
    margin-right: 6px;
}

.top-bar-right a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 15px;
    transition: var(--transition);
}

.top-bar-right a:hover {
    color: var(--primary);
}

/* Header */
.header {
    background: var(--dark-secondary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 40px rgba(114, 180, 255, 0.05);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1001;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--accent) 50%, var(--primary) 70%, transparent 100%);
    opacity: 0.5;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #72B4FF 0%, #00E5FF 40%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    flex-shrink: 0;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(114, 180, 255, 0.4));
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.main-nav li {
    display: flex;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 1px;
    box-shadow: 0 0 8px var(--glow-primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 12px var(--glow-primary);
}

.main-nav > ul > li > a:hover {
    color: var(--primary);
}

.header-dropdowns {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.dropdown-btn:hover {
    color: var(--primary);
}

.dropdown-btn i {
    font-size: 0.7rem;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark-card);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--dark-tertiary);
    color: var(--primary);
}

.header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 6px;
    transition: var(--transition);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--dark-tertiary);
}

/* Curriculum Ticker Bar */
.curriculum-bar {
    background: linear-gradient(90deg, var(--dark-tertiary) 0%, #0D1421 30%, #0D1421 70%, var(--dark-tertiary) 100%);
    border-bottom: 1px solid var(--border-shine);
    padding: 12px 0;
    overflow: hidden;
    position: sticky;
    top: 60px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-primary);
}

.curriculum-scroll {
    display: flex;
    gap: 50px;
    animation: scroll-curriculum 45s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.curriculum-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    padding: 4px 0;
    position: relative;
    transition: var(--transition);
}

.curriculum-item::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.curriculum-item:hover {
    color: var(--primary);
}

.curriculum-item:hover::before {
    width: 100%;
}

.curriculum-item i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8rem;
    filter: drop-shadow(0 0 8px var(--glow-primary));
}

@keyframes scroll-curriculum {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.curriculum-scroll:hover {
    animation-play-state: paused;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-secondary) 0%, #0A0F20 50%, #0D0515 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(114, 180, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, #72B4FF 30%, #00E5FF 60%, #A855F7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
    filter: drop-shadow(0 0 20px var(--glow-primary));
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.hero-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(145deg, var(--dark-card) 0%, rgba(114, 180, 255, 0.05) 100%);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.subject-tag i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8rem;
}

.subject-tag:hover {
    border-color: var(--accent);
    background: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-subtext {
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    margin-top: 15px;
    margin-bottom: 0;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Achievers Section */
.achievers {
    padding: 60px 0;
    background: var(--dark);
}

.achievers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.achiever-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.achiever-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.achiever-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.achiever-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.achiever-card:hover .achiever-img-wrapper img {
    transform: scale(1.05);
}

.achiever-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #6b5ce7 100%);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Demo CTA Section */
.demo-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #2D5B9C 0%, #4A3F8F 100%);
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.demo-cta h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.demo-cta .section-title {
    color: var(--text-primary);
    margin-bottom: 30px;
}

.demo-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--dark-tertiary);
    color: var(--text-primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 156, 230, 0.2);
}

.demo-form .btn {
    background: var(--secondary);
    color: var(--dark);
    padding: 16px;
    font-size: 1.1rem;
}

.demo-form .btn:hover {
    background: #E56A3A;
    transform: translateY(-2px);
}

/* Students Joined Section */
.students-joined {
    padding: 60px 0;
    background: var(--dark-secondary);
}

.students-scroll {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 16px;
}

.student-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.student-img-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    position: relative;
}

.student-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: var(--transition);
}

.student-card:hover .student-img-wrapper img {
    transform: scale(1.05);
}

.students-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* Batches Section */
.batches {
    padding: 80px 0;
    background: var(--dark);
}

.batches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.batch-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.batch-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.batch-image {
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.batch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.batch-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.batch-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    min-height: 48px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

.batch-content ul {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}

.batch-content li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.batch-content li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

.batch-content .btn {
    align-self: center;
    margin-top: auto;
}

/* Challenges Section */
.challenges {
    padding: 80px 0;
    background: var(--dark);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.challenge-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.challenge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-tertiary);
}

.challenge-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.challenge-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.challenge-card p {
    color: var(--text-secondary);
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D5B9C 0%, #4A3F8F 100%);
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats .section-title {
    color: var(--text-primary);
}

.stats .section-subtitle {
    color: rgba(230, 237, 243, 0.8);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.stats .btn {
    background: var(--text-primary);
    color: var(--dark);
}

.stats .btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* Top Scores Section - Leaderboard Style */
.top-scores {
    padding: 80px 0;
    background: var(--dark-secondary);
    position: relative;
    overflow: hidden;
}

.top-scores::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #6b5ce7, var(--primary));
}

.top-scores-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.top-scores-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.top-scores-header .section-subtitle {
    text-align: left;
    margin-bottom: 0;
    max-width: 500px;
}

.scores-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.score-row {
    display: grid;
    grid-template-columns: 80px 70px 1fr auto 200px;
    align-items: center;
    gap: 20px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 24px;
    transition: var(--transition);
}

.score-row:hover {
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.score-row.featured-score {
    background: linear-gradient(135deg, rgba(92, 156, 230, 0.1) 0%, rgba(107, 92, 231, 0.1) 100%);
    border-color: var(--primary);
    border-width: 2px;
}

.score-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rank-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-row.featured-score .rank-number {
    background: linear-gradient(135deg, var(--primary), #6b5ce7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rank-label {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 4px;
}

.score-avatar {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
}

.score-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.score-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.score-subject {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.score-program {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
    background: rgba(92, 156, 230, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.score-result {
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: center;
    min-width: 80px;
}

.score-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.score-total {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

.score-bar {
    width: 100%;
    height: 8px;
    background: var(--dark-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #6b5ce7);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Tutors Section - Profile Card Style */
.tutors {
    padding: 80px 0;
    background: var(--dark);
}

.tutors-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tutor-profile-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.tutor-profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.tutor-profile-bg {
    height: 120px;
    overflow: hidden;
    position: relative;
}

.tutor-profile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--dark-card), transparent);
}

.tutor-profile-content {
    padding: 0 24px 24px;
    text-align: center;
}

.tutor-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: -45px auto 16px;
    border: 4px solid var(--dark-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.tutor-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutor-profile-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tutor-specialty {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.tutor-experience {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.tutor-experience i {
    color: #fbbf24;
}

.tutor-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.tutor-tag {
    background: var(--dark-tertiary);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tutor-profile-card:hover .tutor-tag {
    border-color: rgba(92, 156, 230, 0.3);
    color: var(--text-primary);
}

.tutor-profile-card .btn {
    width: 100%;
}

/* How It Works Section - 3D Appearance */
.how-it-works {
    padding: 100px 0;
    background: var(--dark);
    perspective: 1200px;
    overflow: visible;
}

.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    transform-style: preserve-3d;
}

.step {
    text-align: center;
    padding: 36px 18px 30px;
    position: relative;
    background: linear-gradient(145deg, var(--dark-card) 0%, var(--dark-tertiary) 100%);
    border-radius: 16px;
    border: 1px solid var(--border);
    transform: translateZ(0) rotateX(5deg);
    transform-origin: center bottom;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.step:nth-child(1) { transform: translateZ(0) rotateX(5deg); }
.step:nth-child(2) { transform: translateZ(20px) rotateX(3deg); }
.step:nth-child(3) { transform: translateZ(35px) rotateX(0deg); }
.step:nth-child(4) { transform: translateZ(20px) rotateX(3deg); }
.step:nth-child(5) { transform: translateZ(0) rotateX(5deg); }

.step:hover {
    transform: translateZ(50px) rotateX(0deg) scale(1.05);
    border-color: var(--primary);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(92, 156, 230, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(92, 156, 230, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.step:hover::before {
    opacity: 1;
}

.step::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10%;
    right: 10%;
    height: 12px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(4px);
    transition: all 0.4s ease;
}

.step:hover::after {
    bottom: -15px;
    left: 5%;
    right: 5%;
    height: 18px;
    filter: blur(6px);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(145deg, var(--primary) 0%, #4A8BD4 100%);
    color: var(--dark);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 22px;
    box-shadow:
        0 6px 15px rgba(92, 156, 230, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transform: translateZ(10px);
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.step:hover .step-number {
    transform: translateZ(20px) scale(1.1);
    box-shadow:
        0 10px 25px rgba(92, 156, 230, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--text-primary);
    transform: translateZ(8px);
    transition: transform 0.4s ease;
    line-height: 1.3;
}

.step:hover h3 {
    transform: translateZ(15px);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transform: translateZ(5px);
    transition: transform 0.4s ease;
    line-height: 1.5;
}

.step:hover p {
    transform: translateZ(10px);
    color: var(--text-primary);
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background: var(--dark-secondary);
    border-top: 1px solid var(--border);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.program-card {
    background: var(--dark-card);
    padding: 36px 28px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.program-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, var(--primary) 0%, #6b5ce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.program-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.program-subtitle {
    color: var(--primary);
    margin-bottom: 22px;
    font-weight: 500;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.program-card ul {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
    flex: 1;
    width: 100%;
}

.program-card li {
    padding: 11px 0;
    padding-left: 26px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
    line-height: 1.4;
}

.program-card li:last-child {
    border-bottom: none;
}

.program-card li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary);
}

.program-card .btn {
    align-self: center;
    margin-top: auto;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.testimonial-image {
    width: 120px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--dark-tertiary);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.testimonial-program,
.testimonial-age,
.testimonial-university {
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

.testimonial-card h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.testimonial-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.testimonial-scores {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.score-box {
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.score-box.before {
    background: rgba(255, 107, 53, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.score-box.after {
    background: rgba(92, 156, 230, 0.15);
    color: var(--primary);
    border: 1px solid rgba(92, 156, 230, 0.3);
}

.before-after {
    margin-top: 20px;
}

.before-after p {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.before-after .score-box {
    width: 100%;
    margin-bottom: 10px;
}

.testimonial-scores img {
    max-width: 45%;
}

/* Path Section */
.path {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-tertiary) 100%);
    text-align: center;
    border-top: 1px solid var(--border);
}

.path-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.path-step {
    padding: 30px;
}

.path-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.path-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.path-step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.path-step p {
    color: var(--text-secondary);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: var(--dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 15px;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-secondary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

/* CTA Final Section */
.cta-final {
    padding: 80px 0;
    background: linear-gradient(135deg, #2D5B9C 0%, #4A3F8F 100%);
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-final .section-title {
    color: var(--text-primary);
}

.cta-final .section-subtitle {
    color: rgba(230, 237, 243, 0.8);
}

.cta-final .stats-grid {
    margin-bottom: 40px;
}

.cta-final .btn {
    background: var(--text-primary);
    color: var(--dark);
}

.cta-final .btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* Contact Form Section */
.contact-form-section,
.demo-bottom {
    padding: 60px 0;
    background: var(--dark-secondary);
    text-align: center;
}

.contact-form-section .demo-form,
.demo-bottom .demo-form {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-section .form-group input,
.contact-form-section .form-group select,
.demo-bottom .form-group input,
.demo-bottom .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--dark-tertiary);
    color: var(--text-primary);
}

.contact-form-section .form-group input::placeholder,
.demo-bottom .form-group input::placeholder {
    color: var(--text-muted);
}

.contact-form-section .form-group input:focus,
.contact-form-section .form-group select:focus,
.demo-bottom .form-group input:focus,
.demo-bottom .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(92, 156, 230, 0.2);
}

/* Footer */
.footer {
    background: var(--dark-secondary);
    color: var(--text-primary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col li a {
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--dark-tertiary);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-secondary);
        border-bottom: 1px solid var(--border);
        padding: 20px;
        z-index: 999;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .header {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .achievers-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .students-scroll {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }

    .batches-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tutors-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .step {
        transform: translateZ(0) rotateX(3deg);
        padding: 28px 16px 24px;
    }

    .step:nth-child(4) { transform: translateZ(15px) rotateX(2deg); }
    .step:nth-child(5) { transform: translateZ(5px) rotateX(3deg); }

    .step:hover {
        transform: translateZ(30px) rotateX(0deg) scale(1.03);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .curriculum-bar {
        padding: 10px 0;
        top: 50px;
    }

    .curriculum-scroll {
        gap: 30px;
        animation-duration: 35s;
    }

    .curriculum-item {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-subjects {
        gap: 8px;
    }

    .subject-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .achievers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .students-scroll {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .batches-grid {
        grid-template-columns: 1fr;
    }

    .top-scores-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .top-scores-header .section-subtitle {
        max-width: 100%;
    }

    .score-row {
        grid-template-columns: 50px 50px 1fr auto 120px;
        gap: 12px;
        padding: 12px 16px;
    }

    .rank-number {
        font-size: 1.4rem;
    }

    .score-avatar {
        width: 44px;
        height: 44px;
    }

    .score-info h3 {
        font-size: 0.95rem;
    }

    .score-big {
        font-size: 2rem;
    }

    .score-program {
        display: none;
    }

    .tutors-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .programs-grid,
    .testimonials-grid,
    .path-steps {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin: 0 auto;
    }

    .step {
        transform: translateZ(0) rotateX(2deg);
        padding: 28px 20px;
    }

    .step:hover {
        transform: translateZ(25px) rotateX(0deg) scale(1.02);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .achievers-grid {
        grid-template-columns: 1fr;
    }

    .students-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tutors-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .score-row {
        grid-template-columns: 40px 40px 1fr auto;
        gap: 8px;
        padding: 10px 12px;
    }

    .score-bar {
        display: none;
    }

    .rank-label {
        display: none;
    }

    .score-subject {
        font-size: 0.75rem;
    }

    .score-big {
        font-size: 1.6rem;
    }
}
