/* ═══════════════════════════════════════════════════════════════════════════
   NEO-LIQUID VOID THEME - Distorted Glass & Ink in Water Physics
   ═══════════════════════════════════════════════════════════════════════════ */

/* Import Fonts - Chaos & Order Pairing */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,200;0,300;0,400;1,200;1,300;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   ROOT VARIABLES - NEO-LIQUID VOID PALETTE
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    /* Primary Palette - Cinematic Black */
    --bg-void: #0a0a0a;
    --bg-void-light: #111111;
    --accent-volt: #00FF88;
    --accent-green-dark: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.15);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Glass Effects - Heavy Acrylic */
    --glass-bg: rgba(11, 14, 20, 0.6);
    --glass-border: rgba(224, 255, 46, 0.1);
    --glass-blur: 20px;
    --glass-saturate: 180%;

    /* Typography - Chaos & Order */
    --font-display: 'Syne', sans-serif;
    --font-elegant: 'Plus Jakarta Sans', sans-serif;
    --font-ui: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition-liquid: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-elastic: 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: initial;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-void);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    touch-action: pan-y;
    /* Disables horizontal gestures */
    -webkit-text-size-adjust: 100%;
    /* Prevents font resizing on orientation change */
}

/* ═══════════════════════════════════════════════════════════════════════════
   CINEMATIC BLACK BACKGROUND
   ═══════════════════════════════════════════════════════════════════════════ */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: var(--bg-void);
}

/* Custom cursor hidden - using default browser cursor */
.cursor,
.cursor-follower {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VERTICAL MARQUEE - Right Side
   ═══════════════════════════════════════════════════════════════════════════ */
.vertical-marquee {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 80px;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.08;
}

.marquee-content {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: var(--text-primary);
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRELOADER - Liquid Reveal
   ═══════════════════════════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-void);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10002;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--accent-volt);
    text-transform: uppercase;
    opacity: 0;
}

.loader-sub {
    font-family: var(--font-elegant);
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3D CANVAS - Liquid Sphere
   ═══════════════════════════════════════════════════════════════════════════ */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: exclusion;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAVIGATION - Floating HUD
   ═══════════════════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: transparent;
    transition: all var(--transition-liquid);
}

.nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--accent-volt);
    text-transform: uppercase;
    position: relative;
    z-index: 101;
}

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

.nav-link {
    font-family: var(--font-elegant);
    font-size: 0.85rem;
    font-weight: 300;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-liquid);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-volt);
    transition: width var(--transition-liquid);
}

.nav-link:hover {
    color: var(--accent-volt);
}

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

.nav-resume-btn {
    font-family: var(--font-ui);
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-volt);
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--accent-volt);
    transition: all var(--transition-liquid);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-resume-btn:hover {
    background: var(--accent-volt);
    color: var(--bg-void);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 101;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 101;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
main {
    position: relative;
    z-index: 10;
}

section {
    padding: 4rem 0;
    position: relative;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY - Chaos & Order
   ═══════════════════════════════════════════════════════════════════════════ */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    line-height: 0.95;
}

h4,
h5,
h6 {
    font-family: var(--font-elegant);
    font-weight: 300;
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-volt);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION - Liquid Distortion
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 4rem 4rem 4rem;
    overflow: hidden;
}

.hero-content {
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    perspective: 1000px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
    overflow: hidden;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-volt) 50%, var(--text-primary) 100%);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidGradient 4s ease infinite;
    display: inline-block;
}

@keyframes liquidGradient {

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

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    min-height: 2rem;
}

.scramble-target {
    color: var(--accent-volt);
    font-style: normal;
    font-weight: 400;
}

.dud {
    color: var(--accent-indigo);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION HEADERS - Distorted
   ═══════════════════════════════════════════════════════════════════════════ */
.section-header {
    margin-bottom: 5rem;
    position: relative;
}

.section-label {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent-volt);
    padding: 0.5rem 1rem;
    background: rgba(224, 255, 46, 0.1);
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   ABOUT SECTION - Asymmetric Float
   ═══════════════════════════════════════════════════════════════════════════ */
.about-section {
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 1;
    transition: opacity var(--transition-liquid);
}

.about-image:hover::before {
    opacity: 0.2;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: all var(--transition-liquid);
}

.about-image:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

.about-content p {
    font-family: var(--font-elegant);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Reveal text - animated by GSAP */
.reveal-text {
    opacity: 1;
}

.about-stats {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-volt);
    letter-spacing: -0.05em;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SKILLS SECTION - Frosted Acrylic Cards
   ═══════════════════════════════════════════════════════════════════════════ */
.skills-section {
    padding: 5rem 0;
}

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

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-liquid);
    opacity: 0;
    transform: translateY(20px);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-volt), transparent);
    opacity: 0;
    transition: opacity var(--transition-liquid);
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

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

.skill-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    filter: grayscale(100%);
    transition: filter var(--transition-liquid);
}

.skill-card:hover .skill-card-icon {
    filter: grayscale(0%);
}

.skill-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-liquid);
    border-radius: 4px;
}

.skill-card:hover .skill-tag {
    border-color: rgba(0, 255, 136, 0.6);
    color: var(--accent-volt);
    background: rgba(0, 255, 136, 0.15);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROJECTS SECTION - Staggered Bento Grid
   ═══════════════════════════════════════════════════════════════════════════ */
.projects-section {
    padding: 5rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    transition: all var(--transition-elastic);
}

/* Bento Grid Layout */
.project-card:nth-child(1) {
    grid-column: span 7;
}

.project-card:nth-child(2) {
    grid-column: span 5;
}

.project-card:nth-child(3) {
    grid-column: span 5;
}

.project-card:nth-child(4) {
    grid-column: span 7;
}

.project-card:hover {
    border-color: var(--accent-volt);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(224, 255, 46, 0.1);
}

.project-image {
    height: 300px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%);
    transition: all var(--transition-liquid);
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-void) 0%, transparent 100%);
    opacity: 0.8;
}

.project-info {
    padding: 2rem;
    position: relative;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.project-desc {
    font-family: var(--font-elegant);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-volt);
    padding: 0.3rem 0.6rem;
    background: rgba(224, 255, 46, 0.1);
    border: 1px solid rgba(224, 255, 46, 0.2);
}

.project-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.project-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-liquid);
}

.project-action-btn:hover {
    background: var(--accent-volt);
    color: var(--bg-void);
    border-color: var(--accent-volt);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT SECTION - Full Width Form
   ═══════════════════════════════════════════════════════════════════════════ */
.contact-section {
    padding: 5rem 0;
}

.contact-section .section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    padding: 3rem;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-info>p {
    font-family: var(--font-elegant);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-detail i {
    color: var(--accent-volt);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-liquid);
}

.social-link:hover {
    background: var(--accent-volt);
    color: var(--bg-void);
    border-color: var(--accent-volt);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    font-family: var(--font-ui);
    font-size: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: all var(--transition-liquid);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent-volt);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.15);
}

.form-group select option {
    background: var(--bg-void);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1.2rem 2.5rem;
    background: var(--accent-volt);
    color: var(--bg-void);
    border: none;
    transition: all var(--transition-liquid);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER - Minimal Liquid
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-void);
    backdrop-filter: blur(10px);
}

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

.footer-logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-volt);
    letter-spacing: -0.05em;
}

.footer-left p {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 1rem;
    display: inline;
}

.footer-right a {
    font-family: var(--font-elegant);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-liquid);
}

.footer-right a:hover {
    color: var(--accent-volt);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card:nth-child(n) {
        grid-column: span 1;
    }
}

@media (max-width: 992px) {
    .nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-void-light);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .nav-link {
        font-size: 2rem;
    }

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

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

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

    .vertical-marquee {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 6rem 1.5rem 3rem 1.5rem;
        min-height: auto;
        /* Allow content to dictate height on mobile if needed */
        padding-top: 120px;
        /* Space for fixed nav */
    }

    .hero-content {
        padding-top: 2rem;
    }

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

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

    .project-image {
        height: 250px;
        /* Slightly smaller on mobile */
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        /* Center stats on mobile */
        text-align: center;
    }

    .stat {
        min-width: 120px;
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 1rem 1.5rem;
        background: rgba(11, 14, 20, 0.9);
        /* More solid background for visibility */
        backdrop-filter: blur(15px);
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-resume-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }

    /* Hero Text Adjustments */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }

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

    /* Section Headers */
    .section-title {
        font-size: 2rem;
    }

    .section-label {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }

    /* Contact Form on Mobile */
    .contact-wrapper {
        padding: 1.5rem;
    }

    /* Input Font Size 16px prevents iOS zoom */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left p {
        margin-left: 0;
        display: block;
        margin-top: 0.5rem;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

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

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

    .nav {
        padding: 0.8rem 1rem;
    }

    .nav-resume-btn {
        display: none;
        /* Hide resume button on very small screens to save space */
    }
}