:root {
    /* Modern Typography Theme */
    --primary-color: #111111;
    --secondary-color: #666666;
    --accent-color: #2563EB;
    /* Vibrant Blue */

    /* Backgrounds */
    --bg-primary: #FDFBF7;
    /* Warm off-white */
    --bg-secondary: #F5F2EB;
    --bg-card: #FFFFFF;

    /* Text */
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Work Sans', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: #161616;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;
    --accent-color: #4F86F7;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.logo:hover {
    transform: none;
}

.logo-g {
    font-size: 1.5rem;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a::after {
    display: none;
}

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

.theme-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: none;
}

.theme-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: none;
    box-shadow: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    display: none;
}

.hero-content {
    max-width: 1200px;
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-name {
    font-family: var(--font-display);
    font-size: 15vw;
    /* Massive responsive size */
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 0.9;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -0.04em;
}

.hero-name::after {
    display: none;
}

.name-text {
    display: inline-block;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-weight: 400;
    max-width: 800px;
    line-height: 1.4;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.highlight {
    color: var(--text-primary);
    font-weight: 600;
    background: none;
    -webkit-text-fill-color: initial;
    border-bottom: 2px solid var(--accent-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 1px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Sections */
.category-section {
    padding: var(--spacing-xl) 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

[data-theme="dark"] .section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-family: var(--font-display);
    font-size: 6rem;
    margin: 0;
    font-weight: 800;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
    line-height: 1;
    letter-spacing: -0.03em;
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 400px;
    text-align: right;
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 4rem 2rem;
}

.work-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.4s ease;
    border: none;
    display: flex;
    flex-direction: column;
    height: auto;
}

.work-card::before {
    display: none;
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: none;
}

.work-card:nth-child(even):hover {
    transform: translateY(-10px);
}

.work-image {
    height: 350px;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: grayscale(100%);
}

.work-card:hover .work-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.work-card-inner {
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

.work-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--text-muted);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tag:hover {
    transform: none;
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    box-shadow: none;
}

/* About Section */
.about-section {
    background: var(--bg-primary);
    padding: var(--spacing-xl) 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    display: none;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 400;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 1.5rem 3rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.contact-link:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.contact-link svg {
    transition: transform 0.3s ease;
}

.contact-link:hover svg {
    transform: translateX(5px);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-primary);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer::before {
    display: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 2.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.social-links a::after {
    display: none;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: initial;
    transition: transform 0.3s ease;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mobile-link:hover {
    transform: scale(1.05);
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-name {
        font-size: 9.5rem;
    }

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

@media (max-width: 768px) {
    .hero-greeting {
        font-size: 1rem;
    }

    .hero-name {
        font-size: 22vw;
        /* Increased for mobile impact */
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 3rem;
        /* Reduced from 3.4rem */
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-section {
        padding: 4rem 1.5rem;
    }

    /* Center About Section on Mobile */
    .about-section {
        text-align: center;
        padding: 4rem 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .contact-link {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 22vw;
        /* Even larger on small screens */
    }

    .hero-greeting {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2.3rem;
        /* Reduced further */
    }

    .work-card-inner {
        padding: 1.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
    border: 2px solid var(--bg-primary);
}

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