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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

:root {
    /* Original Dark & White Colors */
    --bg-primary: #e8e8e8;
    --bg-secondary: #d8d8d8;
    --bg-tertiary: #c8c8c8;
    --text-primary: #000000;
    --text-secondary: #2a2a2a;
    --text-tertiary: #555555;
    --accent-primary: #000000;
    --accent-secondary: #1a1a1a;
    --accent-tertiary: #333333;
    --border-subtle: rgba(0, 0, 0, 0.15);
    --border-visible: rgba(0, 0, 0, 0.25);
    --glow-primary: rgba(0, 0, 0, 0.2);
    --glow-secondary: rgba(0, 0, 0, 0.1);
    
    /* iOS Design Tokens - Glass Effects Only */
    --ios-radius: 20px;
    --ios-radius-small: 12px;
    --ios-radius-large: 28px;
    --ios-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --ios-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --ios-blur: blur(20px) saturate(180%);
    --ios-glass: rgba(255, 255, 255, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Old TV Monitor Frame Overlay - Simplified */
.crt-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    pointer-events: none;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.1),
        0 0 0 8px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    background: transparent;
}

/* CRT Screen Reflection Effect - Simplified */
.crt-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.02) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 1;
}

/* CRT Screen Curvature & Vignette Effect - Simplified */
.crt-screen-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.03) 100%);
    z-index: 99997;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.4;
}

/* TV Noise Texture - Simplified & Light */
.tv-noise-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-radial-gradient(
        circle at 17% 32%,
        rgba(255, 255, 255, 0.5),
        rgba(0, 0, 0, 0.2) 0.001px,
        rgba(255, 255, 255, 0.5) 0.002px
    );
    background-size: 300px 300px;
    opacity: 0.04;
    z-index: 99999;
    pointer-events: none;
    mix-blend-mode: overlay;
    animation: moveNoise 8s linear infinite;
    will-change: background-position;
}

@keyframes moveNoise {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 300px 300px;
    }
}

/* Version A: Using noise.png image (Alternative - uncomment to use) */
/*
.tv-noise-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('noise.png') repeat;
    background-size: 200px 200px;
    opacity: 0.08;
    z-index: 99999;
    pointer-events: none;
    animation: moveNoise 10s linear infinite;
}
*/

/* TV Noise Effect - Additional Layer (handled by .tv-scanlines) */

/* Scanlines Effect - Simplified & Light */
.tv-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08) 0px,
        transparent 1px,
        transparent 3px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
    z-index: 99998;
    mix-blend-mode: overlay;
    opacity: 0.15;
    animation: scanlineMove 12s linear infinite;
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }
}

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

.logo a {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.logo-accent {
    font-size: 1.5rem;
    color: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 0.5rem;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Main Content */
main {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }
}

section {
    padding: 8rem 0;
    position: relative;
    scroll-margin-top: -11px;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Subtle scanlines behind hero text */
.hero-content::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.02) 2px,
        rgba(0, 0, 0, 0.02) 4px
    );
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    box-shadow: var(--ios-shadow);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    position: relative;
}

.title-line {
    display: block;
    position: relative;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    position: relative;
}

/* Glitch Effect for Text */
.glitch-text {
    position: relative;
}

.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    transform: translate(2px, 2px);
    animation: glitch 3s infinite;
    pointer-events: none;
}

.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 50%, var(--accent-tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    transform: translate(-2px, -2px);
    animation: glitch 3s infinite 0.1s;
    pointer-events: none;
}

@keyframes glitch {
    0%, 80% {
        opacity: 0.3;
        transform: translate(2px, 2px);
    }
    81% {
        opacity: 0.6;
        transform: translate(-2px, -2px) skew(2deg);
    }
    82% {
        opacity: 0.3;
        transform: translate(2px, 2px);
    }
    83% {
        opacity: 0.4;
        transform: translate(-1px, 1px) skew(-1deg);
    }
    90% {
        opacity: 0.3;
        transform: translate(0px, 0px);
    }
    100% {
        opacity: 0.3;
        transform: translate(2px, 2px);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--ios-radius-small);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: var(--ios-shadow);
}

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

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--ios-shadow-hover);
    background: var(--accent-secondary);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--ios-shadow-hover);
    border-color: var(--accent-primary);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.hero-visual {
    position: relative;
    height: 600px;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 20px;
    filter: blur(40px);
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-tertiary));
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Work Section */
.work {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.section-header {
    margin-bottom: 5rem;
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.section-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

.section-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-main {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
}

/* Subtle glitch for section titles */
.title-main::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-primary);
    opacity: 0.2;
    transform: translate(1px, 1px);
    animation: titleGlitch 4s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes titleGlitch {
    0%, 85% {
        opacity: 0.2;
        transform: translate(1px, 1px);
    }
    86% {
        opacity: 0.4;
        transform: translate(-1px, -1px);
    }
    87% {
        opacity: 0.2;
        transform: translate(1px, 1px);
    }
    100% {
        opacity: 0.2;
        transform: translate(1px, 1px);
    }
}

.title-sub {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--ios-radius);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: var(--ios-shadow);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.01));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--border-visible);
    box-shadow: var(--ios-shadow-hover);
    background: rgba(255, 255, 255, 0.85);
}

.project-featured {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
    border-color: rgba(0, 0, 0, 0.15);
}

.project-image-wrapper {
    position: relative;
    border-radius: var(--ios-radius) var(--ios-radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16/10;
    width: 100%;
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-image-wrapper:hover {
    opacity: 0.95;
    transform: scale(1.02);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

/* Fallback gradients if image doesn't load */
.project-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #c471ed 100%);
}

.project-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #3b82f6 100%);
}

.project-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 50%, #10b981 100%);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 0, 0, 0.03) 20px,
            rgba(0, 0, 0, 0.03) 22px
        );
    opacity: 0.5;
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    backdrop-filter: var(--ios-blur);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
    box-shadow: var(--ios-shadow);
}

.project-info {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.project-category {
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-year {
    color: var(--text-tertiary);
}

.project-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: fit-content;
    padding: 0.5rem 1rem;
    border-radius: var(--ios-radius-small);
    background: rgba(0, 0, 0, 0.03);
}

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

.project-link:hover {
    color: var(--accent-primary);
    gap: 1rem;
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(-2px);
}

.project-link:hover svg {
    transform: translateX(-4px);
}

/* About Section */
.about {
    background: var(--bg-secondary);
    padding: 8rem 0;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-content {
    position: relative;
}

.about-text {
    margin-top: 3rem;
}

.text-large {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--ios-radius-small);
    box-shadow: var(--ios-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--ios-shadow-hover);
    border-color: var(--border-visible);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.about-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    width: 100%;
    height: 100%;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--ios-radius-large);
    position: relative;
    overflow: hidden;
    box-shadow: var(--ios-shadow);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Contact Section */
.contact {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-icon-btn {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ios-glass);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--border-subtle);
    border-radius: var(--ios-radius-small);
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: var(--ios-shadow);
}

.contact-icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
}

.contact-icon-btn:hover::before {
    width: 100px;
    height: 100px;
}

.contact-icon-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.contact-icon-btn:hover {
    border-color: var(--border-visible);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--ios-shadow-hover);
}

.contact-icon-btn:hover svg {
    transform: scale(1.1);
    color: var(--accent-secondary);
}

.whatsapp-icon:hover {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.whatsapp-icon:hover svg {
    color: var(--text-primary);
}


/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-visible), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.footer-divider {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
    min-width: 100px;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-primary);
}

.footer-separator {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-domain {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-domain:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-visual {
        height: 400px;
    }


    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    /* Reduce noise effect on mobile for better performance */
    .tv-noise-texture {
        opacity: 0.03;
        animation: moveNoise 12s linear infinite;
    }

    .tv-scanlines {
        opacity: 0.1;
    }

    /* Disable glitch effects on mobile for readability */
    .glitch-text::after,
    .glitch-text::before {
        display: none;
    }

    .title-main::after {
        display: none;
    }

    /* Navigation - Mobile */
    nav {
        padding: 0 1.5rem;
        position: relative;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    /* Hamburger Menu */
    .nav-toggle-label {
        display: flex;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-toggle:checked ~ .nav-links {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        padding: 1.25rem 0;
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-primary);
        display: block;
        width: 100%;
        transition: all 0.3s ease;
    }

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

    .nav-links a:hover,
    .nav-links a:active {
        color: var(--accent-primary);
        padding-right: 1rem;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    .nav-toggle:checked ~ .nav-overlay {
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle:checked ~ .nav-links {
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.2);
    }

    /* Sections */
    section {
        padding: 4rem 0;
        scroll-margin-top: 80px;
    }

    /* Hero Section */
    .hero {
        padding: 2rem 1.5rem;
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    /* Work Section */
    .work {
        padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .projects-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-image-wrapper {
        border-radius: 8px 8px 0 0;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .project-link {
        font-size: 0.9375rem;
    }

    /* About Section */
    .about {
        padding: 4rem 1.5rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0;
    }

    .about-content {
        text-align: center;
    }

    .text-large {
        font-size: 1.25rem;
        line-height: 1.7;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .about-visual {
        height: 350px;
    }

    .project-img,
    .about-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Text improvements for mobile */
    .text-large,
    .about-text p,
    .project-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Contact Section */
    .contact {
        padding: 4rem 1.5rem;
    }

    .contact-container {
        padding: 0;
    }

    .contact-methods {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .contact-icon-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        padding: 0 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-divider {
        width: 100%;
        min-width: 0;
    }

    .footer-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-separator {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px;
    }

    section {
        padding: 3rem 0;
        scroll-margin-top: 70px;
    }

    nav {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .hero {
        padding: 1.5rem 1rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.9375rem;
    }

    .work,
    .about,
    .contact {
        padding: 3rem 1rem;
    }

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

    .projects-showcase {
        gap: 1rem;
    }

    .project-info {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .project-description {
        font-size: 0.875rem;
    }

    .about-visual {
        height: 280px;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .contact-icon-btn {
        padding: 1rem;
        font-size: 0.875rem;
        min-height: 48px; /* Better touch target */
    }

    .btn-primary,
    .btn-secondary {
        min-height: 48px; /* Better touch target */
    }

    .project-link {
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
    }

    .nav-links a {
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
    }
}

