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

:root {
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: rgba(37, 99, 235, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent);
    opacity: 1;
}

/* =====================
   NAVBAR
   ===================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #000;
}

.navbar-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.navbar-links a {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.02em;
    position: relative;
}

.navbar-links a:not(.navbar-contact)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar-links a:not(.navbar-contact):hover::after {
    width: 100%;
}

.navbar-contact {
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
}

.navbar-contact:hover {
    background: var(--accent);
    color: #fff;
    opacity: 1;
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    height: 100vh;
    min-height: 100vh;
    background: #ffffff;
    padding: 80px;
    padding-top: 160px;
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.name {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.1;
    color: #000000;
    position: relative;
    display: inline-block;
}

.name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.title {
    font-size: 18px;
    color: #000000;
    font-weight: 400;
    margin-bottom: 32px;
}

.bio {
    font-size: 17px;
    line-height: 1.7;
    color: #000000;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 32px;
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000000;
    font-weight: 500;
}

.contact-item a,
.contact-item span:not(.contact-label) {
    font-size: 14px;
    color: #000000;
}

.contact-item a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    width: fit-content;
}

.contact-item a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =====================
   SECTIONS
   ===================== */
.section {
    padding: 120px 0;
}

.section-grey,
.section-white,
.section-dark {
    background: #ffffff;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
}

.col-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.section-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

.section-title-light {
    color: #000000;
}

/* =====================
   WORK EXPERIENCE
   ===================== */
.experience-block {
    margin-bottom: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.experience-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

.company-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
}

.envato-behance {
    margin-top: 32px;
    aspect-ratio: 16/9;
    max-width: 500px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.envato-behance iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.experience-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex: 1;
}

.company {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000000;
}

.date {
    font-size: 13px;
    color: #000000;
}

.role {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    color: #000000;
}

.description {
    font-size: 16px;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 24px;
}

.responsibilities {
    list-style: none;
    margin-bottom: 24px;
}

.responsibilities li {
    font-size: 15px;
    color: #000000;
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
}

.responsibilities li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000000;
}

.link-behance {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    color: var(--accent);
}

.link-behance:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* =====================
   CAROUSEL
   ===================== */
.carousel-container {
    position: relative;
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.carousel-track-container {
    overflow: hidden;
    flex: 1;
    border-radius: 4px;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s ease;
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 11px);
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #f0f0f0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover .slide-overlay {
    opacity: 1;
}

.slide-overlay span {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.slide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #000;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 80px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent);
}

/* =====================
   VIDEO GRID
   ===================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.video-placeholder-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #000;
}

.video-placeholder-inner span {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-embed {
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

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

/* =====================
   SIDE PROJECTS
   ===================== */
.side-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.side-project {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-project-media {
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.side-project-media.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f0f0f0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: #000;
}

.media-placeholder span {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.side-project-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-type {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #000000;
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #000;
}

.project-desc {
    font-size: 14px;
    line-height: 1.7;
    color: #000000;
}

/* =====================
   SKILLS
   ===================== */
.skills-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.skill-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-heading {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000000;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

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

.skill-list li {
    font-size: 15px;
    color: #000000;
    margin-bottom: 10px;
}

/* =====================
   EDUCATION
   ===================== */
.education-block {
    padding: 32px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.education-block:last-of-type {
    border-bottom: none;
}

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

.education-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.education-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex: 1;
}

.institution {
    font-size: 20px;
    font-weight: 600;
    color: #000;
}

.degree {
    font-size: 16px;
    color: #000000;
}

.certifications {
    margin-top: 16px;
    font-size: 15px;
    color: #000;
}

.certifications strong {
    font-weight: 600;
}

/* =====================
   FOOTER
   ===================== */
.footer {
    padding: 60px 80px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 13px;
    color: #000000;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

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

/* =====================
   LIGHTBOX
   ===================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 16px;
    transition: opacity 0.2s ease;
}

.lightbox-nav:hover {
    opacity: 0.7;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(85vh - 60px);
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

/* =====================
   BEHANCE EMBED
   ===================== */
.behance-embed {
    aspect-ratio: 16/10;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.behance-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =====================
   ANIMATIONS
   ===================== */

/* Hero animations - play immediately on load */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

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

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

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

/* Staggered animation for grid items */
.side-projects-grid .scroll-animate:nth-child(1) { transition-delay: 0s; }
.side-projects-grid .scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.side-projects-grid .scroll-animate:nth-child(3) { transition-delay: 0.2s; }

.skills-columns .scroll-animate:nth-child(1) { transition-delay: 0s; }
.skills-columns .scroll-animate:nth-child(2) { transition-delay: 0.15s; }
.skills-columns .scroll-animate:nth-child(3) { transition-delay: 0.3s; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1200px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 1000px) {
    .navbar {
        padding: 20px 40px;
    }

    .navbar-links {
        gap: 24px;
    }

    .hero {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 120px 40px 60px;
        gap: 40px;
    }

    .hero-right {
        max-width: none;
        text-align: center;
    }

    .contact-grid {
        justify-items: center;
    }

    .section-inner {
        padding: 0 40px;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .col-left {
        position: static;
    }

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

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

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .navbar-logo {
        font-size: 14px;
    }

    .navbar-links {
        gap: 16px;
    }

    .navbar-links a {
        font-size: 12px;
    }

    .navbar-contact {
        padding: 8px 12px;
    }

    .name {
        font-size: 36px;
    }

    .section {
        padding: 80px 0;
    }

    .section-inner {
        padding: 0 24px;
    }

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

    .carousel-slide {
        flex: 0 0 100%;
    }

    .side-projects-grid {
        grid-template-columns: 1fr;
    }

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

    .experience-meta,
    .education-meta {
        flex-direction: column;
        gap: 4px;
    }

    .footer {
        padding: 40px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .navbar-links a:not(.navbar-contact) {
        display: none;
    }
}
