/* ============================================
   Alex Arenas — Personal Website
   Color Theme: Orange (#FF6B35)
   ============================================ */

:root {
    --orange-50: #fff7f0;
    --orange-100: #ffead5;
    --orange-200: #ffd0aa;
    --orange-300: #ffb074;
    --orange-400: #ff8c3c;
    --orange-500: #FF6B35;
    --orange-600: #f04e10;
    --orange-700: #c73a0a;
    --orange-800: #9e3010;
    --orange-900: #7f2b10;

    --dark-900: #0f0f1a;
    --dark-800: #1a1a2e;
    --dark-700: #252540;
    --dark-600: #33334d;

    --gray-50: #f8f9fa;
    --gray-100: #f1f3f5;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;

    --white: #ffffff;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   Navigation
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.navbar.scrolled .nav-logo {
    color: var(--dark-800);
}

.dot {
    color: var(--orange-500);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
}

.navbar.scrolled .nav-link {
    color: var(--gray-600);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--orange-500);
    background: var(--orange-50);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark-800);
}

/* ============================
   Hero
   ============================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 50%, var(--dark-700) 100%);
    overflow: hidden;
    padding: 0 24px;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--orange-500);
    top: -200px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--orange-400);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--orange-300);
    top: 50%;
    left: 50%;
    animation: float 18s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--orange-400);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-titles {
    font-size: 1.25rem;
    color: var(--orange-300);
    margin-bottom: 24px;
    min-height: 2em;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--orange-500);
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--orange-500);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    background: var(--orange-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--orange-500);
    color: var(--orange-400);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--gray-500);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.4s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-500);
    border-radius: 13px;
    margin: 0 auto 8px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--orange-500);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ============================
   Sections
   ============================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark-800);
    text-align: center;
    margin-bottom: 12px;
}

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

/* ============================
   About
   ============================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--gray-700);
    font-size: 1.05rem;
}

.about-text strong {
    color: var(--dark-800);
}

.about-interests h3 {
    font-size: 1.3rem;
    color: var(--dark-800);
    margin-bottom: 24px;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.interest-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
}

.interest-card:hover {
    border-color: var(--orange-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.interest-icon {
    width: 48px;
    height: 48px;
    background: var(--orange-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--orange-500);
    transition: var(--transition);
}

.interest-card:hover .interest-icon {
    background: var(--orange-500);
    color: var(--white);
}

.interest-card h4 {
    font-size: 0.95rem;
    color: var(--dark-800);
    margin-bottom: 6px;
}

.interest-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ============================
   Timeline
   ============================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--orange-500), var(--orange-200), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 3px solid var(--orange-500);
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
    background: var(--orange-500);
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.15);
}

.timeline-content {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    box-shadow: var(--shadow-md);
    border-color: var(--orange-200);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--orange-500);
    background: var(--orange-50);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--dark-800);
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--orange-600);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius-full);
}

/* ============================
   Teaching
   ============================ */
.teaching-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 72px;
}

.teaching-info h3 {
    font-size: 1.5rem;
    color: var(--dark-800);
    margin-bottom: 20px;
}

.teaching-info p {
    color: var(--gray-700);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.teaching-info .btn {
    margin-top: 12px;
}

.teaching-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--orange-50);
    border: 1px solid var(--orange-100);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--orange-500);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.teaching-subjects {
    margin-bottom: 72px;
}

.teaching-subjects h3,
.teaching-workshops h3 {
    font-size: 1.3rem;
    color: var(--dark-800);
    margin-bottom: 24px;
    text-align: center;
}

.subjects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.subject-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.subject-chip i {
    color: var(--orange-500);
    font-size: 0.85rem;
}

.subject-chip:hover {
    border-color: var(--orange-300);
    background: var(--orange-50);
    transform: translateY(-2px);
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.workshop-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.workshop-card:hover {
    border-color: var(--orange-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.workshop-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--orange-500);
    background: var(--orange-50);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.workshop-card h4 {
    font-size: 1rem;
    color: var(--dark-800);
    margin-bottom: 8px;
}

.workshop-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ============================
   Dance
   ============================ */
.dance-story {
    max-width: 800px;
    margin: 0 auto 72px;
}

.dance-story-content {
    background: linear-gradient(135deg, var(--dark-800), var(--dark-700));
    border-radius: var(--radius-lg);
    padding: 48px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.dance-story-content::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--orange-500);
    border-radius: 50%;
    opacity: 0.1;
}

.dance-quote {
    color: var(--orange-400);
    font-size: 2rem;
    margin-bottom: 16px;
    opacity: 0.7;
}

.dance-story-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.dance-story-content p {
    color: var(--gray-300);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.dance-story-content strong {
    color: var(--orange-300);
}

.dance-badges {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.dance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange-300);
}

.subsection-title {
    font-size: 1.3rem;
    color: var(--dark-800);
    text-align: center;
    margin-bottom: 12px;
}

.subsection-description {
    text-align: center;
    color: var(--gray-600);
    max-width: 550px;
    margin: 0 auto 40px;
}

/* Dance video gallery */
.dance-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

.video-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.video-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.video-embed {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Instagram embed overrides */
.video-embed .instagram-media {
    margin: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* TikTok embed overrides */
.video-embed .tiktok-embed {
    margin: 0 !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* YouTube embed */
.video-embed-yt {
    aspect-ratio: 9 / 16;
    min-height: unset;
}

.video-embed-yt iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-info {
    padding: 16px 20px;
}

.video-info h4 {
    font-size: 0.95rem;
    color: var(--dark-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-info h4 .fab,
.video-info h4 .fas {
    color: var(--orange-500);
}

.video-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ============================
   Contact
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    display: block;
}

.contact-card:hover {
    border-color: var(--orange-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.contact-card i {
    font-size: 2rem;
    color: var(--orange-500);
    margin-bottom: 16px;
    transition: var(--transition);
}

.contact-card:hover i {
    transform: scale(1.15);
}

.contact-card h4 {
    font-size: 0.95rem;
    color: var(--dark-800);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--dark-900);
    padding: 48px 0;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-text {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.footer-copy {
    color: var(--gray-600);
    font-size: 0.8rem;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .teaching-hero {
        grid-template-columns: 1fr;
    }

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

    .dance-gallery {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 32px 32px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        gap: 4px;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--gray-700);
        font-size: 1rem;
        padding: 12px 16px;
    }

    .nav-menu .nav-link:hover {
        color: var(--orange-500);
        background: var(--orange-50);
    }

    .hero-description {
        font-size: 1rem;
    }

    .section {
        padding: 72px 0;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-marker {
        left: -32px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 20px 24px;
    }

    .dance-story-content {
        padding: 32px 24px;
    }

    .teaching-stats {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 480px) {
    .interests-grid {
        grid-template-columns: 1fr;
    }

    .teaching-stats {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

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

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
