:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-light: #12121a;
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255,255,255,0.08);
    --glow: rgba(99,102,241,0.5);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
}

.letter {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s; }
.letter:nth-child(5) { animation-delay: 0.4s; }
.letter:nth-child(6) { animation-delay: 0.5s; }
.letter:nth-child(7) { animation-delay: 0.6s; }
.letter:nth-child(8) { animation-delay: 0.7s; }

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
        color: var(--text);
    }
    50% {
        transform: translateY(-20px);
        color: var(--primary);
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Custom Cursor */
.cursor,
.cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
}

.cursor {
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.15s var(--ease);
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
}

/* Particle Canvas */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

/* Gradient Mesh */
.gradient-mesh {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.mesh-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.25;
    animation: meshFloat 20s infinite ease-in-out;
}

.layer-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.layer-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary), transparent);
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.layer-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -200px;
    left: 40%;
    animation-delay: -10s;
}

.layer-4 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: 30%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes meshFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(100px, -80px) rotate(120deg);
    }
    66% {
        transform: translate(-80px, 100px) rotate(240deg);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(10,10,15,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10,10,15,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    cursor: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.bracket-left,
.bracket-right {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

.logo-letter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}

.domain {
    color: var(--text-dim);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    position: relative;
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-text {
    position: relative;
    display: inline-block;
}

.nav-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary);
    overflow: hidden;
    width: 0;
    transition: width 0.3s var(--ease);
}

.nav-item:hover .nav-text::before,
.nav-item.active .nav-text::before {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(236,72,153,0.1));
    filter: blur(80px);
    animation: shapeFloat 15s infinite ease-in-out;
}

.shape-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    bottom: 10%;
    left: 50%;
    animation-delay: -10s;
}

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

.hero-grid {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    animation: badgePulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    overflow: hidden;
    padding: 0.2rem 0;
}

.word-wrapper {
    display: inline-block;
}

.word {
    display: inline-block;
    position: relative;
}

.gradient-title .word {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    to {
        background-position: 200% center;
    }
}

.typed-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    min-height: 3.5rem;
}

.typed-label {
    color: var(--text-dim);
    font-size: 1.25rem;
}

.typed-box {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typed-output {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 250px;
}

.cursor-blink {
    font-size: 1.5rem;
    color: var(--primary);
    animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.hero-actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(99,102,241,0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.1);
}

.btn-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover .btn-bg {
    transform: translateX(100%);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric-card {
    text-align: center;
}

.metric-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 3rem;
    font-weight: 900;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Hero Visual */
.visual-container {
    position: relative;
    animation: visualFloat 8s ease-in-out infinite;
}

@keyframes visualFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
}

.glow-effect {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    filter: blur(60px);
    opacity: 0.6;
    z-index: -1;
}

.code-card {
    background: rgba(18,18,26,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    position: relative;
}

.card-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.code-card:hover .card-shine {
    transform: translateX(100%);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }

.file-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.code-actions {
    color: var(--primary);
    font-size: 0.9rem;
}

.code-body {
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.8;
}

.line {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
}

.num {
    color: var(--text-dim);
    opacity: 0.5;
    min-width: 30px;
    text-align: right;
}

.kw { color: #c792ea; }
.cls { color: #ffcb6b; }
.type { color: #82aaff; }
.str { color: #c3e88d; }
.punc { color: #89ddff; }

/* Tech Orbit */
.tech-orbit {
    position: absolute;
    inset: -100px;
    pointer-events: none;
}

.tech-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
    animation: orbitFloat 4s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: -1s;
}

.icon-3 {
    top: 50%;
    right: -10%;
    animation-delay: -2s;
}

.icon-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: -3s;
}

@keyframes orbitFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mouse-shape {
    width: 26px;
    height: 42px;
    border: 2px solid var(--border);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: mouseWheel 2s infinite;
}

@keyframes mouseWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(18px);
    }
}

.scroll-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* Sections */
section {
    padding: 6rem 2rem;
    position: relative;
}

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

.section-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.expertise-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    transition: all 0.3s var(--ease);
}

.expertise-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(10px);
    border-color: var(--primary);
}

.expertise-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.25rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.expertise-content h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.expertise-content p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

.profile-container {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.15));
    border: 1px solid var(--border);
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.profile-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, var(--glow), transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.profile-image {
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.4;
}

.tech-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    animation: badgeFloat 3s ease-in-out infinite;
}

.badge-1 {
    top: 15%;
    right: -12%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 35%;
    left: -15%;
    animation-delay: -1s;
}

.badge-3 {
    bottom: 12%;
    right: 15%;
    animation-delay: -2s;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Skills Section */
.skills-section {
    background: linear-gradient(180deg, transparent, rgba(99,102,241,0.03), transparent);
}

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

.skill-box {
    padding: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    position: relative;
    transition: all 0.3s var(--ease);
}

.skill-box:hover {
    background: rgba(255,255,255,0.05);
    transform: translateY(-10px);
    border-color: var(--primary);
}

.skill-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.5rem;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s;
    z-index: -1;
}

.skill-box:hover .skill-glow {
    opacity: 0.4;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.25rem;
    font-size: 1.75rem;
}

.skill-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 5px;
    width: 0;
    transition: width 1.5s var(--ease);
    position: relative;
}

.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.skill-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* Work Section - Bento Grid */
.bento-layout {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.project-tile {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.project-tile:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.tile-large {
    grid-column: span 8;
    grid-row: span 2;
}

.tile-medium {
    grid-column: span 4;
    grid-row: span 2;
}

.tile-small {
    grid-column: span 6;
    grid-row: span 1;
}

.project-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-tile:hover .project-bg {
    opacity: 1;
}

.tile-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(99,102,241,0.2);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.25rem;
    font-size: 1.75rem;
}

.project-icon.small {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.project-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-summary {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.tech {
    padding: 0.35rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: gap 0.3s var(--ease);
}

.project-btn:hover {
    gap: 1.25rem;
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s var(--ease);
}

.contact-box:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(10px);
}

.contact-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 1.25rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h4 {
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.contact-text a,
.contact-text p {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    margin: 0;
}

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

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.social-box {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    color: var(--text-dim);
    font-size: 1.75rem;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.social-box:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-5px);
}

/* Pulse Animation */
.pulse-rings {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulseExpand 3s infinite;
}

.ring-1 {
    animation-delay: 0s;
}

.ring-2 {
    animation-delay: 1s;
}

.ring-3 {
    animation-delay: 2s;
}

@keyframes pulseExpand {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.pulse-core {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-size: 3rem;
    color: var(--primary);
}

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

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
}

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

.copyright {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

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

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

/* Tilt Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s var(--ease);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s var(--ease);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-grid,
    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .tile-large,
    .tile-medium {
        grid-column: span 12;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-outline {
        display: none;
    }
    
    .nav-menu,
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .tile-small {
        grid-column: span 12;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    section {
        padding: 4rem 1.5rem;
    }
}
