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

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #141414;
    --bg-hover: #252525;
    --text-primary: #c5c6c9;
    --text-secondary: #a8adb5;
    --text-muted: #7a8089;
    --border-light: #252525;
    --border-medium: #333333;
    --accent: #14b8a6;
    --accent-hover: #0d9488;
    --accent-dark: #0f766e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-family: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* Profile Photo */
.profile-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-medium);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

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

/* Typewriter Effect */
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
    min-height: 1.2em;
}

.typewriter {
    border-right: 3px solid var(--accent);
    animation: blink-cursor 0.75s step-end infinite;
}

.typewriter.typed {
    border-right-color: transparent;
    animation: none;
}

@keyframes blink-cursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* Tagline Animation */
.tagline {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tagline.animate {
    opacity: 0.9;
    transform: translateY(0);
}

.skill-item {
    display: inline-block;
    opacity: 0;
    transform: translateY(15px);
}

.tagline.animate .skill-item {
    animation: fadeInUp 0.5s ease forwards;
}

.tagline.animate .skill-item:nth-child(1) { animation-delay: 0.1s; }
.tagline.animate .skill-item:nth-child(3) { animation-delay: 0.3s; }
.tagline.animate .skill-item:nth-child(5) { animation-delay: 0.5s; }
.tagline.animate .skill-item:nth-child(7) { animation-delay: 0.7s; }

.separator {
    opacity: 0;
}

.tagline.animate .separator {
    animation: fadeIn 0.3s ease forwards;
}

.tagline.animate .separator:nth-child(2) { animation-delay: 0.2s; }
.tagline.animate .separator:nth-child(4) { animation-delay: 0.4s; }
.tagline.animate .separator:nth-child(6) { animation-delay: 0.6s; }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

/* Location Animation */
.location {
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.location.animate {
    opacity: 0.8;
    transform: translateY(0);
}

.location-text {
    position: relative;
}

.location.animate .location-text {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Hero CTA Animation */
.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.hero-cta.animate {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-dark);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--accent);
}

.btn-secondary {
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent);
    color: var(--accent);
}

/* Sections */
.section {
    padding: 50px 0;
    scroll-margin-top: 80px;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--text-primary);
}

/* About */
.about {
    background: var(--bg-secondary);
    padding: 40px 0;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 25px;
}

.timeline-item .timeline-content {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: border-color 0.3s ease;
}

.timeline-item .timeline-content:hover {
    border-color: var(--border-medium);
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-primary);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content p,
.timeline-content ul {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.timeline-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.timeline-content li {
    margin-bottom: 5px;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.work-link::after {
    content: '→';
}

.work-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.movies-worked {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.movie-poster {
    position: relative;
    width: 120px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-light);
}

.movie-poster:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.movie-poster img {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: cover;
    object-position: top;
}

.movie-title {
    display: block;
    padding: 6px 4px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

/* Movie Poster Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge.highlight {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Featured Timeline Item (Pocket FM - Current) */
.timeline-item.featured .timeline-content {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.1);
}

.timeline-item.featured .timeline-content:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 25px rgba(20, 184, 166, 0.15);
}

.timeline-item.featured .timeline-marker {
    background: var(--accent);
    width: 10px;
    height: 10px;
}

.timeline-item.featured .timeline-date {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
}

/* Present badge for current role */
.timeline-item.featured .timeline-date::after {
    content: ' • CURRENT';
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.role-section {
    margin-top: 15px;
    padding: 15px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    border-left: 2px solid var(--border-medium);
}

.role-section h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.role-section p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.notable-work {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Skills */
.skills {
    background: var(--bg-secondary);
}

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

.skill-category {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.skill-category h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 1.05rem;
}

.skill-category li:last-child {
    border-bottom: none;
}

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

.portfolio-card {
    background: var(--bg-card);
    padding: 25px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.portfolio-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-icon {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.portfolio-icon svg {
    width: 40px;
    height: 40px;
}

.portfolio-card:hover .portfolio-icon {
    color: var(--accent);
}

.portfolio-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* External link indicator for clickable cards */
a.portfolio-card::after {
    content: '';
    display: block;
    margin-top: 12px;
    width: 20px;
    height: 20px;
    margin-left: auto;
    margin-right: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' x2='21' y1='14' y2='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
}

a.portfolio-card:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' x2='21' y1='14' y2='3'/%3E%3C/svg%3E");
    opacity: 1;
}

.ghost-writing {
    cursor: default;
}

/* Education */
.education {
    background: var(--bg-secondary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.education-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border-light);
}

.education-card .year {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.education-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.education-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Contact */
.contact {
    text-align: center;
}

.contact > .container > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.15rem;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid rgba(20, 184, 166, 0.4);
    font-size: 1rem;
    font-weight: 400;
}

.contact-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.contact-item svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-muted);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
}

.footer p {
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .tagline {
        font-size: 1rem;
    }

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

    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item {
        padding-left: 0;
    }

    .timeline-marker {
        display: none;
    }

    .timeline-item.featured .timeline-content {
        border-left: none;
        border-radius: 8px;
    }

    .role-section {
        border-left: none;
        border-radius: 6px;
    }

    .movies-worked {
        justify-content: center;
    }
}
