/* ================================
   CINEMA-INSPIRED COLOR PALETTE
   ================================ */
:root {
    /* Primary Colors */
    --bg-primary: #1a0a2e;          /* Deep purple/navy */
    --bg-secondary: #16213e;         /* Dark blue-purple */
    --bg-tertiary: #0f3460;          /* Muted blue */

    /* Accent Colors */
    --accent-gold: #ffd700;          /* Electric gold */
    --accent-yellow: #ffeb3b;        /* Bright yellow */
    --accent-magenta: #d946ef;       /* Vibrant magenta */
    --accent-purple: #a855f7;        /* Rich purple */

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #b0b0b0;

    /* Gradient */
    --gradient-cinema: linear-gradient(135deg, var(--accent-magenta), var(--accent-gold));
    --gradient-overlay: linear-gradient(180deg, rgba(26, 10, 46, 0.8), rgba(26, 10, 46, 0.95));

    /* Typography */
    --font-display: 'Bebas Neue', cursive;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --sidebar-width: 80px;
    --section-padding: 100px 60px;
}

/* ================================
   RESET & BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ================================
   BACKGROUND
   ================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(217, 70, 239, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

/* ================================
   LOADING OVERLAY
   ================================ */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-secondary);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   SIDEBAR NAVIGATION
   ================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: rgba(26, 10, 46, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    z-index: 1000;
    border-right: 2px solid var(--accent-gold);
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

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

.logo h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
    letter-spacing: 2px;
}

.nav-menu {
    list-style: none;
    margin-top: 60px;
    flex: 1;
}

.nav-menu li {
    margin: 30px 0;
}

.nav-link {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    padding: 10px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold);
}

.nav-link.active::before {
    width: 80%;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
}

.social-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-gold);
    transform: scale(1.2);
}

.social-links .imdb-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links .imdb-link svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-links .imdb-link:hover svg {
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
}

/* ================================
   MAIN CONTENT
   ================================ */
.main-content {
    margin-left: var(--sidebar-width);
    position: relative;
    z-index: 1;
}

.section {
    min-height: 100vh;
    padding: var(--section-padding);
    display: flex;
    align-items: center;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-cinema);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ================================
   HOME SECTION
   ================================ */
.home-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

.profile-image {
    position: relative;
}

.image-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-gold);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6),
                0 0 80px rgba(217, 70, 239, 0.4);
    position: relative;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6),
                    0 0 80px rgba(217, 70, 239, 0.4);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.8),
                    0 0 100px rgba(217, 70, 239, 0.6);
    }
}

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

.home-text h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1.1;
    background: var(--gradient-cinema);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-yellow);
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-style: italic;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.stat-number::after {
    content: '+';
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-cinema);
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* ================================
   CREDITS SECTION (Timeline)
   ================================ */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-cinema);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--accent-gold);
    z-index: 2;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-content:hover {
    transform: scale(1.05);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.timeline-date {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.company-name {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.role {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 300;
}

.projects-list {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ================================
   FILMOGRAPHY SECTION (Carousel)
   ================================ */
.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.movie-card {
    min-width: 280px;
    max-width: 280px;
    width: 280px;
    height: 520px;
    flex-shrink: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.movie-poster {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.movie-info {
    padding: 15px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 140px;
    overflow: hidden;
}

.movie-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.movie-year {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-gold);
    box-shadow: 0 0 10px var(--accent-gold);
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-gold);
    margin: 30px 0 15px;
    letter-spacing: 2px;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.education-section,
.contact-info {
    margin-top: 40px;
}

.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-gold);
    border-radius: 5px;
}

.education-item h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-yellow);
    margin-bottom: 5px;
}

.education-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.05rem;
}

.contact-info strong {
    color: var(--accent-gold);
}

.contact-cta-buttons {
    display: flex;
    flex-direction: grid;
    gap: 15px;
    margin-top: 20px;
}

.contact-cta-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* ================================
   FLOATING CTA BUTTON
   ================================ */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-cta.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--gradient-cinema);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.7);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 60px;
        --section-padding: 80px 40px;
    }

    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .image-wrapper {
        margin: 0 auto;
    }

    .home-text h1 {
        font-size: 3.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
        position: fixed;
        bottom: 0;
        top: auto;
        border-right: none;
        border-top: 2px solid var(--accent-gold);
    }

    .logo {
        display: none;
    }

    .nav-menu {
        flex-direction: row;
        margin: 0;
        flex: 1;
        justify-content: space-around;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-link {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .social-links {
        flex-direction: row;
        gap: 15px;
        margin: 0;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 80px;
    }

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

    .home-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .prev-btn {
        left: -15px;
    }

    .next-btn {
        right: -15px;
    }

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