/* ============================================
   PORTFOLIO WEBSITE - OPTIMIZED STYLESHEET
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Color Palette */
    --bg-main: #0D0F12;
    --bg-secondary: #16181D;
    --bg-elevated: #1E2127;
    --text-main: #E6E7EB;
    --text-muted: #A5A8AF;
    --accent: #3AB4FF;
    --accent-hover: #66C8FF;
    --border-subtle: #2A2D33;
    --nav-bg: rgba(13, 15, 18, 0.95);

    /* Typography */
    --font-stack: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    /* Spacing */
    --sp-sm: 0.5rem;
    --sp-md: 1rem;
    --sp-lg: 2rem;
    --sp-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.8);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-full: 50%;

    /* Z-index Scale */
    --z-base: 1;
    --z-above: 2;
    --z-modal-backdrop: 998;
    --z-modal: 999;
    --z-nav: 1000;
    --z-skip-link: 10000;
}


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

html {
    background-color: var(--bg-main);
    scroll-behavior: smooth;
}

body {
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-stack);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 2;
}

section,
main {
    background: transparent !important;
    position: relative;
    z-index: 2;
}

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

ul {
    list-style: none;
}

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

/* ============================================
   3. TYPOGRAPHY
   ============================================ */
h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--sp-lg);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--sp-sm);
}

p {
    color: var(--text-muted);
    margin-bottom: var(--sp-md);
}

/* ============================================
   4. LAYOUT & UTILITIES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.section-title {
    text-align: center;
    position: relative;
    padding-bottom: var(--sp-md);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: var(--sp-md) auto 0;
    border-radius: 2px;
}

.section-title.left-align {
    text-align: left;
}

.section-title.left-align::after {
    margin-left: 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: var(--bg-main);
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   5. COMPONENTS
   ============================================ */

/* ----- About Section ----- */
.about-section {
    padding: var(--sp-xl) 0;
    background: var(--bg-main);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--sp-xl);
    align-items: center;
}

.profile-placeholder {
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: var(--border-subtle);
    overflow: hidden;
    border: 2px solid var(--accent);
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.3s ease;
}

.profile-placeholder:hover img {
    filter: grayscale(0%) contrast(1);
}

.bio-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ----- Back to Top Button ----- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent);
    color: var(--bg-main);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
}

/* ----- Buttons ----- */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
}

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

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

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

.secondary-btn:hover {
    border-color: var(--text-main);
}

.btn-resume {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.btn-resume:hover {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

.btn-text:hover {
    text-decoration: underline;
}

/* Focus Styles for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(58, 180, 255, 0.3);
}

/* ----- Contact Section ----- */
.contact-section {
    padding: var(--sp-xl) 0;
    background: var(--bg-main);
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.contact-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item .label {
    font-weight: 600;
    color: var(--text-main);
}

.contact-item .value {
    color: var(--accent);
}

/* ----- Experience Section ----- */
.experience-section {
    padding: var(--sp-xl) 0;
}

.experience-grid {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card:hover,
.experience-card:focus {
    border-color: var(--accent);
    transform: translateX(5px);
    background: var(--bg-elevated);
    outline: none;
}

.exp-summary {
    position: relative;
    z-index: 2;
}

.exp-title {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.exp-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.exp-meta span {
    position: relative;
}

.exp-meta span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -0.6rem;
    color: var(--text-muted);
}

.exp-company {
    color: var(--accent);
    font-weight: 600;
}

.exp-details {
    margin-top: 1rem;
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.experience-card.expanded .exp-details {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.exp-desc {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-main);
}

.exp-achievements {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.exp-achievements li {
    margin-bottom: 0.5rem;
}

/* ----- Footer ----- */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-subtle);
}

/* ----- Header & Navigation ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 15, 18, 0.75);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

header.header-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    display: inline-block;
    padding: 0.5rem 0;
    background: transparent;
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.nav-divider {
    color: var(--accent);
    opacity: 0.5;
    font-weight: 600;
}

.nav-links li:last-child a,
.nav-links li:nth-last-child(2) a {
    color: var(--accent);
    font-weight: 600;
}

.nav-links li:last-child a:hover,
.nav-links li:nth-last-child(2) a:hover {
    color: var(--accent-hover);
}

/* ----- Hero Section ----- */
main {
    padding-top: 90px;
}

.hero-section {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

#hero-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    filter: brightness(0.25);
    opacity: 0.4;
}

#hero-bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    filter: brightness(0.4) blur(2px);
}

.hero-slide.active {
    opacity: 0.2;
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-message,
.hero-actions,
h1,
h2 {
    position: relative;
    z-index: 2;
}

.hero-message {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--sp-lg);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: var(--sp-lg);
    background: rgba(22, 24, 29, 0.7);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(5px);
}

.highlight-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.95rem;
}

.hl-label {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.hl-value {
    color: var(--text-main);
}

.resume-actions {
    margin-top: 2rem;
}

/* ----- Modal ----- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

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

.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 2rem;
    max-width: 900px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.4s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(22, 24, 29, 0.8);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-arrow:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
}

.modal-arrow.left {
    left: 1rem;
}

.modal-arrow.right {
    right: 1rem;
}

.modal-gallery {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
    border-radius: 8px;
}

.modal-media.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 2;
}

.modal-gallery video,
.modal-gallery img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-counter {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----- Productions Section ----- */
.productions-section {
    padding: var(--sp-xl) 0;
    background: var(--bg-main);
}

.productions-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.production-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: default;
}

.production-item:hover,
.production-item:focus {
    transform: translateX(5px);
    background: var(--bg-elevated);
    border-color: var(--accent);
    outline: none;
}

.prod-summary {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.prod-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-subtle);
}

.prod-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

.prod-info {
    flex-grow: 1;
}

.prod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.prod-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    color: var(--text-main);
}

.prod-header .year {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
}

.production-item .role {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.production-item .company {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0;
}

.prod-details {
    max-height: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    margin-top: 0;
}

.production-item.expanded .prod-details {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prod-desc {
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.prod-links {
    display: flex;
    gap: 1rem;
}

.prod-link {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* ----- Projects Section ----- */
.projects-section {
    padding: var(--sp-xl) 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

.project-card {
    position: relative;
    width: 100%;
    max-width: 360px;
    min-height: 430px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.project-card .card-media {
    height: 230px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.project-card .card-media img,
.project-card .card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s ease;
}

.project-card:hover .card-video,
.project-card:focus-within .card-video {
    opacity: 1;
}

.project-card:hover .card-media img {
    transform: scale(1.05);
}

.project-card .card-content {
    padding: 1rem;
    height: calc(100% - 230px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-year {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.proj-details {
    position: relative;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 0;
}

.project-card.expanded .proj-details {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.proj-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.proj-award {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.proj-award a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.proj-award a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.proj-link {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

/* ----- Skills Section ----- */
.skills-section {
    padding: var(--sp-xl) 0;
}

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

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.skill-category ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

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

/* ============================================
   6. ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.1s;
}

.fade-in.delay-2 {
    animation-delay: 0.2s;
}

.fade-in.delay-3 {
    animation-delay: 0.3s;
}

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease-out;
}

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

/* Note: Reduced Motion support removed to match reference behavior */

/* ============================================
   7. RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Tablets and below */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile and Small Tablets */
@media (max-width: 768px) {

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Navigation */
    .nav-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 1rem 1.5rem;
        position: relative;
    }

    .mobile-nav-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--accent);
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background-color: var(--accent);
        left: 0;
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: -8px;
    }

    .hamburger::after {
        top: 8px;
    }

    /* Hamburger Animation when Active */
    .mobile-nav-toggle.active .hamburger {
        background-color: transparent;
    }

    .mobile-nav-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-nav-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
        width: auto;
        min-width: 180px;
        position: absolute;
        top: 100%;
        right: 1rem;
        margin-top: 0.5rem;
        padding: 1.25rem 1.5rem;
        background: var(--bg-secondary);
        border-radius: 8px;
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: right;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }

    .nav-divider {
        display: none;
    }

    main {
        padding-top: 120px;
    }

    /* Hero */
    .hero-highlights {
        flex-direction: column;
        gap: 0.8rem;
        background: transparent;
        border: none;
        padding: 0;
    }

    /* About */
    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title.left-align {
        text-align: center;
    }

    .section-title.left-align::after {
        margin: var(--sp-md) auto 0;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    /* Modal */
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .modal-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .modal-arrow.left {
        left: 0.5rem;
    }

    .modal-arrow.right {
        right: 0.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}