/* Variables - Dark Theme (Default) */
:root {
    --black: #000000;
    --off-black: #0a0a0a;
    --dark-gray: #141414;
    --medium-gray: #1f1f1f;
    --light-gray: #2a2a2a;
    --text-gray: #888888;
    --text-light: #b4b4b4;
    --white: #ffffff;
    --orange: #ff6b35;
    --orange-light: #ff8554;
    --orange-dark: #e5521f;
    --orange-glow: rgba(255, 107, 53, 0.15);
    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    
    /* Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;
    --border-color: #1f1f1f;
    --border-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b4b4b4;
    --text-muted: #888888;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f5f5;
    --border-color: #e0e0e0;
    --border-light: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --orange-glow: rgba(255, 107, 53, 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

::selection {
    background: var(--orange);
    color: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-text {
    color: var(--text-primary);
    transition: var(--transition);
}

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

.nav-brand:hover .brand-text {
    color: var(--orange);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--orange);
}

.nav-link.active::after {
    width: 0; /* Don't show underline on active state */
}

.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.nav-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: var(--transition);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.resume-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.resume-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.resume-btn svg {
    width: 18px;
    height: 18px;
}

.resume-text {
    display: inline;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 53, 0.1);
}

.theme-icon {
    position: absolute;
    transition: var(--transition);
}

.sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.nav-menu-btn span:first-child {
    top: 0;
}

.nav-menu-btn span:last-child {
    bottom: 0;
}

.nav-menu-btn.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.nav-menu-btn.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
}

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

.hero-header {
    margin-bottom: 4rem;
}

.hero-label {
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.1s forwards;
}

.title-highlight {
    color: var(--orange);
    position: relative;
}

.problem-highlight {
    background-color: var(--orange);
    color: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.hero-bio {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-link-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--orange);
    color: var(--bg-primary);
    font-weight: 600;
    border-radius: 2px;
    transition: var(--transition);
}

.hero-link-primary:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
}

.hero-link-primary svg {
    display: inline-block;
    vertical-align: middle;
    animation: bounce 2s infinite;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.hero-social a svg {
    width: 20px;
    height: 20px;
}

.hero-social a:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* About */
.about {
    padding: 6rem 3rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

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

.about-intro {
    margin-bottom: 4rem;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 700px;
}

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

.about-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.card-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-number {
    color: var(--orange);
    font-family: 'Syne', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
}

.card-header h3 {
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--orange);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.card-link:hover {
    gap: 0.75rem;
}

.card-link svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-list span {
    padding: 0.5rem 1rem;
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: 2px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.tech-list span:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* Work */
.work {
    padding: 6rem 3rem;
    background: var(--bg-primary);
}

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

.work-header {
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--orange);
    transition: var(--transition);
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--orange);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--bg-primary);
    font-weight: 600;
}

.filter-btn.active::before {
    left: 0;
}

.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    transform: scale(1);
}

.project-item.hidden {
    display: none;
}

.project-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.project-item:hover {
    border-color: var(--orange);
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.15);
}

.project-link-wrapper {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-link-wrapper.no-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-preview {
    position: relative;
    min-height: 240px;
    height: 240px;
    overflow: hidden;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .project-preview img {
    transform: scale(1.05);
}

.gradient-1 {
    background: linear-gradient(135deg, #1a4f6e, #0a2940);
}

.gradient-2 {
    background: linear-gradient(135deg, #2a3f5f, #0e1e30);
}

.gradient-3 {
    background: linear-gradient(135deg, #3a2f4f, #1a0e2e);
}

.gradient-4 {
    background: linear-gradient(135deg, #4a3030, #2a1010);
}

.gradient-wordpress {
    background: linear-gradient(135deg, #1a3252, #0b1a2f);
}

.gradient-5 {
    background: linear-gradient(135deg, #2d4a3e, #1a2e24);
}

.gradient-6 {
    background: linear-gradient(135deg, #4a3d5f, #2a1f3a);
}

.gradient-7 {
    background: linear-gradient(135deg, #3a4f5f, #1e2a35);
}

.gradient-8 {
    background: linear-gradient(135deg, #5a3f4f, #2e1f2a);
}

.project-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

.project-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: var(--orange);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(10px, -10px);
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translate(0, 0);
}

.project-overlay svg {
    color: var(--black);
    width: 16px;
    height: 16px;
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.project-meta h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.project-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    padding: 0.375rem 0.875rem;
    background: var(--bg-card-hover);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.project-tags span:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 107, 53, 0.1);
}

.project-links-row {
    display: flex;
    gap: 1.5rem;
}

.inline-link {
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.inline-link:hover {
    color: var(--orange-light);
}

.icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.more-work {
    text-align: center;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.github-link:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-2px);
}

.github-link svg {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.25rem;
}

/* Contact */
.contact {
    padding: 8rem 3rem;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    gap: 1rem;
}

.contact-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: var(--transition);
}

.contact-method:hover {
    border-color: var(--orange);
    transform: translateX(4px);
}

.method-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.method-value {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-method svg {
    color: var(--orange);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.contact-method:hover svg {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-location {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .project-preview {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.25rem;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 72%;
        max-width: 340px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-actions {
        gap: 0.75rem;
    }
    
    .resume-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .resume-text {
        display: none;
    }
    
    .resume-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .nav-menu-btn {
        display: block;
        z-index: 101;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-bio {
        font-size: 1.125rem;
    }
    
    .hero-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .about,
    .work,
    .contact {
        padding: 4rem 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .category-filters {
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.85rem 1rem;
    }

    .nav-links {
        width: 68%;
        max-width: 280px;
    }

    .nav-brand {
        font-size: 1.35rem;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.75rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .modal-backdrop {
    background: rgba(255, 255, 255, 0.95);
}

.project-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .modal-container {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.project-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .modal-close {
    background: rgba(0, 0, 0, 0.05);
}

.modal-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-content {
    padding: 0;
    overflow: hidden;
}

.modal-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.project-modal.active .modal-image {
    opacity: 1;
    transform: scale(1);
}

.project-modal-trigger {
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}
