:root {
    --indigo: #0a0a1a;
    --indigo-light: #1a1a3e;
    --gold: #d4af37;
    --gold-light: #fbbf24;
    --silver: #c0c0c0;
    --black: #0a0a0a;
    --white: #f0f0f0;
    --glass-bg: rgba(15, 15, 35, 0.6);
    --glass-border: rgba(212, 175, 55, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--indigo);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Mystery overlay */
.mystery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 26, 62, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    animation: mysteryShift 20s ease-in-out infinite;
}

@keyframes mysteryShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Canvas for Three.js */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Glass morphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 5%;
    background: rgba(10, 10, 10, 0.95);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-brand .gold {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--silver);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--indigo);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

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

.nav-cta:hover::before {
    left: 100%;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 20px 100px; /* Increased top padding to account for fixed navbar */
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
    margin-bottom: 60px; /* Add space between content and stats */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-title .line {
    display: block;
}

.hero-title .gold {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--silver);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 0;
    flex-wrap: wrap;
}

/* Stats - separate container with proper spacing */
.hero-stats-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
    margin-top: 40px; /* Space above stats */
}

.hero-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0; /* Add padding inside container */
}

.stat-item {
    text-align: center;
    padding: 20px 30px;
    min-width: 150px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    display: block;
}

.stat-percent {
    font-size: 2rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--silver);
    margin-top: 5px;
}

/* Scroll hint - positioned properly at bottom */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--silver);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--silver);
    border-radius: 25px;
    margin-bottom: 10px;
    position: relative;
}

.mouse .wheel {
    width: 4px;
    height: 10px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; top: 10px; }
    100% { opacity: 0; top: 25px; }
}

/* Sections */
.section {
    padding: 120px 5% 100px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-title .gold {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.section-subtitle {
    color: var(--silver);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-dark {
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.9), rgba(10, 10, 10, 0.95));
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-card {
    padding: 50px 40px;
    text-align: center;
}

.card-icon {
    font-size: 50px;
    margin-bottom: 25px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.about-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.about-card p {
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.7;
}

/* Steps Section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step-card {
    padding: 50px 40px;
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.2);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1;
}

.step-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.step-card p {
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.7;
}

/* Masters Section */
.masters-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 40px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.masters-carousel::-webkit-scrollbar {
    display: none;
}

.master-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.master-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
}

.master-img-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.master-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.master-card:hover .master-img-wrapper img {
    transform: scale(1.1);
}

.master-status {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid var(--indigo);
}

.master-status.online { background: #10b981; animation: pulse 2s infinite; }
.master-status.away { background: #f59e0b; }
.master-status.offline { background: #6b7280; }

.master-info h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.master-specialization {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.master-rating {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.master-rating span {
    color: var(--white);
    font-weight: 600;
}

.master-bio {
    color: var(--silver);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-expand {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-expand:hover {
    background: rgba(212, 175, 55, 0.1);
}

.master-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    text-align: left;
    color: var(--silver);
    font-size: 0.9rem;
}

.master-details.expanded {
    max-height: 300px;
    padding-top: 20px;
}

.master-details p {
    margin-bottom: 10px;
}

/* Carousel nav */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 50px 40px;
    text-align: center;
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 25px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.feature-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.feature-card p {
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.7;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    padding: 40px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--indigo);
    font-weight: 700;
}

.testimonial-header h4 {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.testimonial-location {
    color: var(--silver);
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--silver);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-rating {
    color: var(--gold);
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(15, 15, 35, 0.8));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-content {
    text-align: center;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 25px;
    line-height: 1.3;
}

.cta-content p {
    color: var(--silver);
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Buttons */
.btn {
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--indigo);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: 0 4px 40px rgba(212, 175, 55, 0.8); }
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(212, 175, 55, 0.1);
    transition: left 0.3s;
}

.btn-secondary:hover::before {
    left: 0;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--gold-light);
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--black);
    padding: 80px 5% 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-brand .gold { color: var(--gold); }

.footer-brand p {
    color: var(--silver);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--silver);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--silver);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adaptation */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
}

@media (max-width: 768px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; text-align: center; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-item { min-width: auto; }
    .masters-carousel { gap: 20px; }
    .master-card { flex: 0 0 280px; }
    .section { padding: 100px 5% 80px; }
    .section-header { margin-bottom: 50px; }
    .about-grid, .features-grid, .testimonials-grid, .steps-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-stats-container { margin-top: 20px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .master-card { flex: 0 0 260px; padding: 20px; }
    .master-img-wrapper { width: 150px; height: 150px; }
}
