/* ============================================
   Minimalist Portfolio - HOP
   Clean, Modern, Typography-focused
   ============================================ */

:root {
    /* Dark Theme (Default) */
    --bg: #0c0c0c;
    --bg-elevated: #141414;
    --bg-hover: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    --accent: #d4af37;
    --accent-hover: #b8962e;
    --border: #222222;
    --code-bg: #1a1a1f;

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container: 1200px;
    --section-gap: 140px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration: 0.4s;
}

/* Light Theme */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-elevated: #f5f5f5;
    --bg-hover: #eeeeee;
    --text: #0c0c0c;
    --text-secondary: #555555;
    --text-muted: #888888;
    --accent: #0c0c0c;
    --accent-hover: #222222;
    --border: #e0e0e0;
    --code-bg: #f0f0f5;
}

[data-theme="light"] .highlight {
    color: #926c15;
}

[data-theme="light"] .hero-label {
    color: #926c15;
}

[data-theme="light"] .hero-label::before {
    background: #926c15;
}

[data-theme="light"] .section-number {
    color: #926c15;
}

[data-theme="light"] .stat-value {
    color: #926c15;
}

[data-theme="light"] .project-year {
    color: #926c15;
}

[data-theme="light"] .tech-item:hover {
    border-color: #926c15;
    color: #926c15;
}

[data-theme="light"] .marquee-content .dot {
    background: #926c15;
}

[data-theme="light"] .btn-primary {
    background: #0c0c0c;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-submit {
    background: #0c0c0c;
    color: #ffffff;
}

[data-theme="light"] .btn-submit:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .nav-cta {
    background: #0c0c0c;
    color: #ffffff !important;
}

[data-theme="light"] .code-keyword {
    color: #8b5cf6;
}

[data-theme="light"] .code-var {
    color: #0c0c0c;
}

[data-theme="light"] .code-string {
    color: #22c55e;
}

[data-theme="light"] .code-prop {
    color: #926c15;
}

[data-theme="light"] .code-bool {
    color: #f59e0b;
}

[data-theme="light"] .float-badge {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .scroll-line::after {
    background: #926c15;
}

/* Light Theme - Header */
[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .logo {
    color: #0c0c0c;
}

[data-theme="light"] .nav-links a {
    color: #555555;
}

[data-theme="light"] .nav-links a:hover {
    color: #0c0c0c;
}

[data-theme="light"] .theme-toggle {
    background: #f5f5f5;
    border-color: #e0e0e0;
}

[data-theme="light"] .theme-toggle:hover {
    border-color: #cccccc;
}

[data-theme="light"] .theme-toggle svg {
    color: #0c0c0c;
}

[data-theme="light"] .menu-toggle span,
[data-theme="light"] .menu-toggle::before,
[data-theme="light"] .menu-toggle::after {
    background: #0c0c0c;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: background var(--duration) var(--ease);
}

.header.scrolled {
    background: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 48px;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg) !important;
    border-radius: 8px;
    font-weight: 500;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.theme-toggle:hover {
    border-color: var(--text-muted);
}

.theme-toggle svg {
    color: var(--text);
    transition: transform var(--duration) var(--ease);
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: block;
}

.menu-toggle {
    display: none;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.menu-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    top: 50%;
    transform: translateY(-50%);
    transition: var(--duration) var(--ease);
}

.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: var(--duration) var(--ease);
}

.menu-toggle::before {
    top: 0;
}

.menu-toggle::after {
    bottom: 0;
}

.menu-toggle.active span {
    opacity: 0;
}

.menu-toggle.active::before {
    top: 50%;
    transform: rotate(45deg);
}

.menu-toggle.active::after {
    bottom: 50%;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .nav {
        padding: 0 24px;
    }

    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: var(--duration) var(--ease);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 32px;
        font-family: var(--font-display);
    }

    .nav-cta {
        margin-top: 16px;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding: 120px 40px 80px;
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 560px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 32px;
}

.hero-label::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    border-radius: 8px;
    transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background: var(--bg-elevated);
}

.hero-scroll {
    position: absolute;
    bottom: 48px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-scroll span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.scroll-line {
    width: 48px;
    height: 1px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 100px 40px 60px;
        gap: 40px;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(36px, 8vw, 64px);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
        padding: 20px;
    }

    .code-window {
        max-width: 380px;
        margin: 0 auto;
    }

    .float-badge {
        display: none;
    }

    .hero-scroll {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 100px;
    }

    .hero {
        padding: 100px 24px 60px;
        gap: 32px;
    }

    .hero-visual {
        display: none;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .code-window {
        max-width: 100%;
    }

    .code-body {
        padding: 20px;
    }

    .code-body pre {
        font-size: 12px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 20px 50px;
    }

    .hero-title {
        font-size: 32px;
    }

    .code-body {
        padding: 16px;
    }

    .code-body pre {
        font-size: 11px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* Hero Visual - Code Window */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .hero-visual {
        display: none !important;
    }
}

.code-window {
    width: 100%;
    max-width: 380px;
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.code-dot:nth-child(1) {
    background: #ff5f57;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #28ca41;
}

.code-title {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.code-body {
    padding: 20px;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12.5px;
    line-height: 1.7;
}

.code-body code {
    color: var(--text-secondary);
}

.code-keyword {
    color: #c792ea;
}

.code-var {
    color: #82aaff;
}

.code-string {
    color: #c3e88d;
}

.code-prop {
    color: #f78c6c;
}

.code-bool {
    color: #ffcb6b;
}

/* Floating Badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
    white-space: nowrap;
}

.float-badge svg {
    color: #22c55e;
}

.badge-number {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
}

[data-theme="light"] .badge-number {
    color: #926c15;
}

.badge-1 {
    top: 0;
    right: -30px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30%;
    left: -60px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 0;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 900px) {
    .float-badge {
        display: none;
    }

    .code-window {
        max-width: 100%;
    }
}

/* Project Section Mobile */
@media (max-width: 900px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .project-visual {
        order: -1;
    }

    .project-name {
        font-size: 24px;
    }
}

/* Services Section Mobile */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px;
    }

    .service-num {
        font-size: 36px;
    }
}

/* About Section Mobile */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 24px;
    }
}

/* Testimonials Mobile */
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 32px;
    }
}

/* Contact Section Mobile */
@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .contact-title {
        font-size: 28px;
    }

    .btn-submit {
        width: 100%;
    }
}

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        order: -1;
        gap: 24px;
    }
}

/* Navigation Mobile */
@media (max-width: 768px) {
    .nav {
        padding: 0 24px;
    }

    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: var(--duration) var(--ease);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 28px;
        font-family: var(--font-display);
    }

    .nav-links .theme-toggle {
        width: 50px;
        height: 50px;
    }

    .nav-cta {
        margin-top: 16px;
        font-size: 16px;
        padding: 14px 32px;
    }
}

/* Marquee Mobile */
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 12px;
    }

    .marquee-content {
        gap: 32px;
    }
}

/* Tech Stack Mobile */
@media (max-width: 768px) {
    .tech-stack {
        margin-top: 60px;
    }

    .tech-list {
        justify-content: center;
    }

    .tech-item {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* ============================================
   Hero Background Animation
   ============================================ */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(232, 255, 71, 0.03) 0%, transparent 70%);
}

.texture-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.15;
}

.floating-symbols {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.symbol {
    position: absolute;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--accent);
    opacity: 0.25;
    filter: blur(0.5px);
    user-select: none;
    animation: floatAround 25s infinite ease-in-out;
}

.symbol.s1 {
    top: 10%;
    left: 5%;
    font-size: 64px;
    animation-duration: 30s;
}

.symbol.s2 {
    top: 70%;
    left: 8%;
    font-size: 48px;
    animation-duration: 35s;
    animation-delay: -7s;
}

.symbol.s3 {
    top: 15%;
    left: 90%;
    font-size: 80px;
    animation-duration: 40s;
    animation-delay: -12s;
    color: #1dbf73;
    opacity: 0.2;
}

.symbol.s4 {
    top: 80%;
    left: 85%;
    font-size: 70px;
    animation-duration: 32s;
    animation-delay: -18s;
    color: #29b2fe;
    opacity: 0.2;
}

.symbol.s5 {
    top: 45%;
    left: 48%;
    font-size: 56px;
    animation-duration: 45s;
    animation-delay: -3s;
}

.symbol.s6 {
    top: 5%;
    left: 55%;
    font-size: 32px;
    animation-duration: 38s;
    animation-delay: -9s;
}

.symbol.s7 {
    top: 88%;
    left: 35%;
    font-size: 44px;
    animation-duration: 42s;
    animation-delay: -14s;
}

[data-theme="light"] .symbol {
    color: #926c15;
    opacity: 0.12;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(40px, -60px) rotate(10deg) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) rotate(-10deg) scale(0.95);
    }

    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Ensure hero section is relative and content is above bg */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content,
.hero-visual,
.hero-scroll {
    position: relative;
    z-index: 1;
}

/* ============================================
   Expertise Section (What I Do)
   ============================================ */
.expertise {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.expertise-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--duration) var(--ease);
}

.expertise-item:hover {
    border-color: var(--text-muted);
    transform: translateY(-4px);
}

.expertise-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent);
}

[data-theme="light"] .expertise-icon svg {
    stroke: #926c15;
}

.expertise-item h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.expertise-item p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .expertise {
        padding: 60px 0;
    }

    .expertise-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .expertise-item {
        padding: 24px 16px;
    }

    .expertise-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 16px;
    }

    .expertise-item h3 {
        font-size: 15px;
    }

    .expertise-item p {
        font-size: 12px;
    }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: var(--section-gap) 0;
}

.section-header {
    margin-bottom: 64px;
}

.section-number {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
    font-family: var(--font-body);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
}

/* ============================================
   Work / Projects Section
   ============================================ */
.work {
    background: var(--bg);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color var(--duration) var(--ease);
}

.project-item:hover {
    border-color: var(--text-muted);
}

.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-year {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.project-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.project-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 6px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.project-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration) var(--ease);
}

.project-item:hover .project-image {
    transform: scale(1.02);
}

.project-icon svg {
    width: 64px;
    height: 64px;
    stroke: rgba(255, 255, 255, 0.5);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    transition: gap var(--duration) var(--ease);
}

.view-all:hover {
    gap: 20px;
}

.view-all svg {
    transition: transform var(--duration) var(--ease);
}

.view-all:hover svg {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .project-item {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .project-visual {
        order: -1;
    }
}

/* ============================================
   Services Section
   ============================================ */
.services {
    background: var(--bg-elevated);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color var(--duration) var(--ease);
}

.service-card:hover {
    border-color: var(--text-muted);
}

.service-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--border);
    margin-bottom: 24px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Tech Stack */
.tech-stack {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.tech-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}

.tech-item {
    padding: 12px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.tech-item:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 32px;
    }
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content .section-header {
    margin-bottom: 32px;
}

.about-text {
    margin-top: 0;
}

.about-text .lead {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-text .lead strong {
    color: var(--accent);
}

[data-theme="light"] .about-text .lead strong {
    color: #926c15;
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* About Gallery Slider */
.about-gallery {
    position: relative;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s var(--ease);
}

.gallery-slide {
    min-width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #222;
    /* fallback background for transparent/portrait images */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
}

.slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.slide-placeholder svg {
    width: 64px;
    height: 64px;
    stroke: var(--border);
}

.slide-placeholder span {
    font-size: 14px;
}

.gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.gallery-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: all var(--duration) var(--ease);
}

.gallery-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

[data-theme="light"] .gallery-btn:hover {
    border-color: #926c15;
    color: #926c15;
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.gallery-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
}

.gallery-dots .dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 8px;
}

[data-theme="light"] .gallery-dots .dot.active {
    background: #926c15;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Old about styles kept for reference */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    padding: 32px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    background: var(--bg-elevated);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    padding: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.testimonial p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial footer strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.testimonial footer span {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg);
}

.contact-wrapper {
    max-width: 1000px;
}

.contact-header {
    margin-bottom: 64px;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 24px 0;
}

.contact-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 400px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    outline: none;
    transition: border-color var(--duration) var(--ease);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    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='%23888888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--duration) var(--ease);
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label,
.form-group select:focus~label,
.form-group select:valid~label {
    top: 0;
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 40px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    align-self: flex-start;
    margin-top: 16px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-method {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.method-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.method-value {
    font-size: 18px;
    font-weight: 500;
    transition: color var(--duration) var(--ease);
}

a.method-value:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Why Work With Me Section
   ============================================ */
.why-me {
    background: var(--bg-elevated);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 40px 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: all var(--duration) var(--ease);
}

.benefit-card:hover {
    border-color: var(--text-muted);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

[data-theme="light"] .benefit-icon svg {
    stroke: #926c15;
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 32px 24px;
    }
}



/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.footer-logo span {
    color: var(--accent);
}

.footer-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover {
    color: var(--text);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        order: -1;
    }
}

/* ============================================
   Reveal Animations (Subtle)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Project Modal
   ============================================ */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s var(--ease);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    z-index: 10;
    transition: all var(--duration) var(--ease);
}

.modal-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    min-height: 500px;
}

/* Modal Slider */
.modal-slider {
    position: relative;
    background: var(--bg);
    overflow: hidden;
}

.modal-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s var(--ease);
}

.modal-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.modal-slide .slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.modal-slide .slide-placeholder svg {
    width: 80px;
    height: 80px;
    stroke: var(--border);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: all var(--duration) var(--ease);
}

.modal-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

[data-theme="light"] .modal-nav:hover {
    background: #926c15;
    border-color: #926c15;
    color: #ffffff;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Modal Info */
.modal-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border);
}

.modal-year {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

[data-theme="light"] .modal-year {
    color: #926c15;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-tags span {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Project Item Clickable */
.project-item {
    cursor: pointer;
}

.project-view-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--duration) var(--ease);
}

.project-item:hover .project-view-hint {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Responsive */
@media (max-width: 900px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-slider {
        min-height: 300px;
    }

    .modal-info {
        padding: 32px;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
    }

    .modal-prev {
        left: 12px;
    }

    .modal-next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .modal-slider {
        min-height: 250px;
    }

    .modal-slide {
        padding: 20px;
    }

    .modal-info {
        padding: 24px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-desc {
        font-size: 14px;
    }
}

/* ============================================
   Floating Action Buttons
   ============================================ */

.fab-container {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 9999;
}

.fab-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    /* background: var(--bg-elevated); */
    border: 1px solid var(--border);
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.fab-btn:hover {
    transform: translateY(-3px);
    border-color: var(--text-muted);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.fab-btn i,
.fab-btn svg,
.fab-btn img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Specific brand styles removed as requested */

@media (max-width: 600px) {
    .fab-container {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .fab-btn {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .fab-btn i {
        font-size: 20px;
    }
}

/* Hero Image */
.hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}