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

:root {
    --primary: #0a0a0a;
    --secondary: #cccccc;
    --accent: #ff0066;
    --accent-blue: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-green: #00ff88;
    --accent-yellow: #ffd700;
    --bg: #0a0a0a;
    --text: #ffffff;
    --text-dim: #bbbbbb;
    --border: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
    cursor: none;
    width: 100%;
    max-width: 100vw;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0a0a0a 100%);
}

/* Magnetic Cursor */
.magnetic-cursor {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    display: block;
    opacity: 1;
    visibility: visible;
    left: 50%;
    top: 50%;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease;
    display: block;
    opacity: 1;
    visibility: visible;
    left: 50%;
    top: 50%;
}

.magnetic-cursor.hover {
    width: 100px;
    height: 100px;
    border-color: var(--accent);
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* Animated Background */
.bg-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    pointer-events: none;
    animation: linesMove 20s linear infinite;
}

.glitch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 102, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: gradientPulse 8s ease-in-out infinite;
}

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

@keyframes linesMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 102, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: gradientMove 15s ease-in-out infinite;
}

@keyframes gradientMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 25px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-shape {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    color: var(--accent);
}

.nav-link:hover::before {
    transform: translateY(0);
}

.nav-link span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-link:hover span {
    transform: translateY(-100%);
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue));
    width: 0%;
    transition: width 0.1s ease, left 0.1s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    z-index: 2;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: block;
    margin-bottom: 100px;
    overflow: visible;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.hero-left > * {
    pointer-events: auto;
}

.hero-marquee {
    overflow: hidden;
    width: 100%;
}

.marquee-content {
    display: flex;
    gap: 50px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.marquee-content span {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.hero-title {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -5px;
    position: relative;
    z-index: 10;
    overflow: visible;
    width: 100%;
    pointer-events: none;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--text);
    text-transform: uppercase;
    animation: glitch 3s infinite;
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 30px rgba(0, 212, 255, 0.2);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
    overflow: visible;
    white-space: nowrap;
    width: auto;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 rgba(255, 0, 102, 0.8);
    opacity: 0.7;
    animation: glitch-anim 5s infinite linear alternate-reverse;
    overflow: visible;
    clip-path: none;
}

.glitch-text::after {
    left: -2px;
    text-shadow: 2px 0 rgba(0, 212, 255, 0.8);
    opacity: 0.7;
    animation: glitch-anim2 3s infinite linear alternate-reverse;
    overflow: visible;
    clip-path: none;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-anim {
    0% {
        transform: translate(0) skew(0deg);
        opacity: 0.7;
    }
    20% {
        transform: translate(-2px, 2px) skew(0.5deg);
        opacity: 0.8;
    }
    40% {
        transform: translate(2px, -2px) skew(-0.5deg);
        opacity: 0.6;
    }
    60% {
        transform: translate(-2px, -2px) skew(0.5deg);
        opacity: 0.8;
    }
    80% {
        transform: translate(2px, 2px) skew(-0.5deg);
        opacity: 0.7;
    }
    100% {
        transform: translate(0) skew(0deg);
        opacity: 0.7;
    }
}

@keyframes glitch-anim2 {
    0% {
        transform: translate(0) skew(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translate(2px, -2px) skew(-0.5deg);
        opacity: 0.8;
    }
    50% {
        transform: translate(-2px, 2px) skew(0.5deg);
        opacity: 0.6;
    }
    75% {
        transform: translate(2px, 2px) skew(-0.5deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(0) skew(0deg);
        opacity: 0.7;
    }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.8;
    font-weight: 300;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-magnetic {
    position: relative;
    padding: 16px 40px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--accent-blue);
    overflow: hidden;
    transition: var(--transition);
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.btn-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 0;
}

.btn-magnetic:hover .btn-bg {
    transform: scaleX(1);
}

.btn-magnetic:hover {
    border-color: var(--accent-blue);
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        inset 0 0 30px rgba(0, 212, 255, 0.2),
        0 0 60px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.btn-text {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.btn-magnetic:hover .btn-text {
    color: var(--text);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-magnetic.outline {
    background-color: transparent;
}

.btn-magnetic.outline:hover .btn-text {
    color: var(--bg);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.btn-magnetic:hover .btn-shine {
    left: 100%;
}

.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.scroll-text {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background-color: var(--primary);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
}

.hero-visual {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
    z-index: 1;
    pointer-events: none;
    height: 100vh;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.grid-cell {
    aspect-ratio: 1;
    background-color: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    transition: var(--transition);
    opacity: 0;
    transform: scale(0.8) rotate(0deg);
    animation: cellRotate 15s linear infinite;
    animation-play-state: paused;
    backdrop-filter: blur(5px);
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
    cursor: pointer;
    will-change: transform;
}

@keyframes cellRotate {
    0% {
        transform: scale(1) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(360deg);
    }
}

.grid-cell.visible {
    opacity: 1;
    animation-play-state: running;
}

.grid-cell:hover,
.grid-cell.cursor-hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(139, 92, 246, 0.25));
    border-color: rgba(0, 212, 255, 0.8);
    animation-play-state: paused;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.hero-stats {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    display: flex;
    gap: 80px;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.stat-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text);
    font-family: 'Inconsolata', monospace;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 80px;
}

.section-num {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-weight: 700;
    font-family: 'Inconsolata', monospace;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.section-title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -3px;
    display: flex;
    gap: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.3);
}

.title-word {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.title-word.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Work Section */
.work {
    background-color: #fafafa;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-card {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer;
    border: 1px solid rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.work-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 
        0 30px 80px rgba(0, 212, 255, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.6);
}

.card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    pointer-events: auto;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    pointer-events: auto;
}

.image-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    transition: transform 0.5s ease, filter 0.5s ease;
    pointer-events: none;
    filter: brightness(0.8);
}

.work-card:hover .image-bg {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.2);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work-card:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: var(--bg);
    padding: 40px;
}

.overlay-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.overlay-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.overlay-tech {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.overlay-tech span {
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    color: var(--text);
}

.card-info {
    padding: 30px;
}

.info-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.meta-year {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.meta-category {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    transition: var(--transition);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.work-card:hover .info-title {
    color: var(--accent-blue);
    transform: translateX(10px);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.info-desc {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.info-link:hover {
    color: var(--accent-blue);
    transform: translateX(5px);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

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

.info-link:hover svg {
    transform: translate(5px, -5px) rotate(45deg);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.about-text p.visible {
    opacity: 1;
    transform: translateY(0);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-card {
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition);
}

.skill-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.skill-percent {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
    font-family: 'Inconsolata', monospace;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-blue));
    width: 0;
    transition: width 1.5s ease;
    border-radius: 3px;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Contact Section */
.contact {
    background-color: #fafafa;
}

.contact .section-title .title-word:nth-child(1) {
    color: var(--accent-blue);
}

.contact .section-title .title-word:nth-child(2) {
    color: var(--text);
}

.contact .section-title .title-word:nth-child(3) {
    color: var(--accent-blue);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--border);
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-card {
    background-color: var(--bg);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    transition: left 0.3s ease;
    z-index: 0;
}

.contact-card:hover::before {
    left: 0;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-blue);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.contact-card:hover .card-icon {
    background-color: var(--bg);
    color: var(--primary);
    transform: rotate(360deg) scale(1.1);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    color: var(--text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-card:hover .card-title {
    color: var(--text);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.card-value {
    font-size: 0.95rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.contact-card:hover .card-value {
    color: var(--text);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.card-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 1.5rem;
    color: var(--secondary);
    transition: var(--transition);
    z-index: 1;
}

.contact-card:hover .card-arrow {
    color: var(--bg);
    transform: translate(5px, -5px);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--bg);
    padding: 40px 0;
    text-align: center;
}

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

#current-year {
    color: var(--text);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        margin-bottom: 60px;
    }
    
    .hero-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        padding: 0 30px;
        z-index: 1;
        height: 100vh;
    }
    
    .visual-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .hero-title {
        font-size: 4.5rem;
        letter-spacing: -3px;
    }

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

    .work-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .nav-inner {
        padding: 0 30px;
    }

    .hero {
        padding: 120px 30px 80px;
    }

    .hero-stats {
        position: absolute;
        bottom: 8%;
        left: 50%;
        transform: translateX(-50%);
        gap: 60px;
        padding: 0 30px;
        width: 100%;
        max-width: 1400px;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        width: 100%;
        padding: 10px 0;
    }

    .nav-indicator {
        display: none;
    }

    /* Hero Section */
    .hero {
        padding: 90px 20px 50px;
        min-height: auto;
        overflow-x: hidden;
        position: relative;
    }

    .hero-container {
        gap: 30px;
        margin-bottom: 120px;
        position: relative;
        z-index: 10;
    }

    .hero-left {
        gap: 30px;
        width: 100%;
        overflow-x: hidden;
        position: relative;
        z-index: 10;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0;
        line-height: 1.2;
        word-break: keep-all;
        white-space: pre-line;
        position: relative;
        z-index: 10;
    }

    .hero-title br {
        display: block;
        content: '';
        margin: 0;
        padding: 0;
    }

    .title-char {
        display: inline-block;
        margin-right: 0.3em;
        white-space: nowrap;
    }

    .title-char::after {
        content: ' ';
        white-space: nowrap;
    }

    .title-space {
        margin-right: 0.5em;
        white-space: nowrap;
    }

    .hero-title br + .title-char {
        margin-right: 0.3em;
        white-space: nowrap;
    }

    .hero-title br + .title-char::after {
        content: ' ';
        white-space: nowrap;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 100%;
        position: relative;
        z-index: 10;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        position: relative;
        z-index: 10;
    }

    .btn-magnetic {
        width: 100%;
        text-align: center;
        padding: 14px 25px;
        font-size: 0.9rem;
    }

    .hero-marquee {
        margin-bottom: 15px;
        overflow: hidden;
        width: 100%;
        position: relative;
        z-index: 10;
    }

    .marquee-content {
        gap: 30px;
    }

    .marquee-content span {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .hero-scroll {
        display: none;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        gap: 25px;
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
        margin-top: 40px;
        z-index: 10;
    }

    .stat-item {
        width: 100%;
    }

    .stat-value {
        font-size: 2.8rem;
    }

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

    /* Visual Grid */
    .hero-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        padding: 0 20px;
        z-index: 0;
        height: 100vh;
        opacity: 0.3;
        pointer-events: none;
    }

    .visual-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 8px;
        padding: 10px;
        opacity: 0.3;
    }

    .grid-cell {
        pointer-events: none !important;
    }

    /* Sections */
    section {
        padding: 80px 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 10px;
        letter-spacing: -2px;
    }

    .section-num {
        font-size: 0.75rem;
    }

    /* Work Section */
    .work-grid {
        gap: 30px;
    }

    .card-info {
        padding: 25px;
    }

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

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

    .overlay-content {
        padding: 30px 20px;
    }

    /* About Section */
    .about-content {
        gap: 40px;
    }

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

    .skills-container {
        gap: 20px;
    }

    /* Contact Section */
    .contact-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-card {
        padding: 30px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    /* Cursor */
    body {
        cursor: default;
    }

    .magnetic-cursor {
        width: 40px;
        height: 40px;
    }

    .cursor-dot {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    /* Navigation */
    .nav-inner {
        padding: 0 20px;
    }

    .navbar {
        padding: 20px 0;
    }

    .logo-text {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 90px 30px 30px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 15px 40px;
    }

    .hero-container {
        gap: 25px;
        margin-bottom: 100px;
        position: relative;
        z-index: 10;
    }

    .hero-left {
        gap: 25px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 0;
        line-height: 1.15;
        word-break: keep-all;
        white-space: pre-line;
    }

    .hero-title br {
        display: block;
        content: '';
        margin: 0;
        padding: 0;
    }

    .title-char {
        margin-right: 0.35em;
        white-space: nowrap;
    }

    .title-char::after {
        content: ' ';
        white-space: nowrap;
    }

    .title-space {
        margin-right: 0.6em;
        white-space: nowrap;
    }

    .hero-title br + .title-char {
        margin-right: 0.35em;
        white-space: nowrap;
    }

    .hero-title br + .title-char::after {
        content: ' ';
        white-space: nowrap;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn-magnetic {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .hero-marquee {
        margin-bottom: 10px;
        position: relative;
        z-index: 10;
    }

    .marquee-content span {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
        z-index: 10;
    }

    .stat-value {
        font-size: 2.2rem;
    }

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

    .hero-visual {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 100%;
        padding: 0 15px;
        z-index: 0;
        height: 100vh;
        opacity: 0.2;
        pointer-events: none;
    }

    .visual-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
        padding: 8px;
        opacity: 0.2;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

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

    .section-header {
        margin-bottom: 40px;
    }

    /* Work Section */
    .work-grid {
        gap: 25px;
    }

    .card-info {
        padding: 20px;
    }

    .info-title {
        font-size: 1.3rem;
    }

    .info-desc {
        font-size: 0.9rem;
    }

    /* About Section */
    .about-text p {
        font-size: 0.95rem;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .skill-percent {
        font-size: 0.85rem;
    }

    /* Contact Section */
    .contact-card {
        padding: 25px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-value {
        font-size: 0.85rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Selection */
::selection {
    background-color: var(--accent);
    color: var(--bg);
}
