/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --bg: #000000;
    --bg-secondary: #0a0a0a;
    --text: #ffffff;
    --text-muted: #737373;
    --text-dim: #525252;
    --accent: #a3a3a3;
    --accent-glow: rgba(163, 163, 163, 0.3);
    --gradient-1: #e5e5e5;
    --gradient-2: #a3a3a3;
    --border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

html {
    overflow-x: hidden;
}

html,
body {
    max-width: 100vw;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--accent);
    color: var(--text);
}

/* ========================================
   NOISE OVERLAY
   ======================================== */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, opacity 0.3s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-out-expo),
        width 0.3s var(--ease-out-expo),
        height 0.3s var(--ease-out-expo),
        border-color 0.3s ease;
}

.cursor.hovering {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
}

.cursor-follower.hovering {
    width: 80px;
    height: 80px;
    border-color: var(--accent);
    background: rgba(163, 163, 163, 0.1);
}

@media (hover: none),
(max-width: 768px) {

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

    body {
        cursor: auto;
    }

    a {
        cursor: pointer;
    }
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background: linear-gradient(to bottom, var(--bg), transparent);
    transition: padding 0.3s ease;
}

.nav.scrolled {
    padding: 1rem 4rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s var(--ease-out-expo);
}

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

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

.nav-link-cta {
    padding: 0.6rem 1.5rem;
    background: var(--text);
    color: var(--bg);
    border-radius: 100px;
    font-weight: 500;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.2);
    color: var(--bg);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 1.25rem 3rem;
    position: relative;
    overflow: hidden;
    background: #000000;
}

@media (min-width: 601px) {
    .hero {
        padding: 8rem 4rem 4rem;
    }
}

/* Background accent glow - only on right side, not affecting black */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse at 90% 50%, rgba(163, 163, 163, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 100%;
    width: 100%;
    z-index: 2;
    position: relative;
}

@media (min-width: 601px) {
    .hero-content {
        max-width: 700px;
    }
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 100px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 1s var(--ease-out-expo) forwards;
}

.title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) .title-word:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) .title-word:nth-child(2) {
    animation-delay: 0.4s;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.highlight {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.hero-cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 0.8s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.4s var(--ease-out-expo);
}

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

.btn-primary svg {
    transition: transform 0.3s var(--ease-out-expo);
}

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

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Image - Seamless Background Blend */
.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1.5s var(--ease-out-expo) 0.2s forwards;
}

@media (max-width: 768px) {
    .hero-image {
        width: 100%;
    }

    .hero-image .image-wrapper {
        opacity: 0.4;
        /* Reduced opacity for mobile */
    }

    .hero-image .image-wrapper::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%);
        z-index: 2;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        /* Smaller font size for mobile */
    }

    .hero-content {
        padding-top: 2rem;
        /* Add some breathing room */
    }
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.8s ease, transform 0.8s ease;
    transform: scale(0.8);
}

.hero:hover .image-wrapper img {
    filter: grayscale(0%) contrast(1);
    transform: scale(0.82);
}

/* Multiple gradient overlays for seamless blending */
.image-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Left edge blend - main fade */
.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, var(--bg) 0%, var(--bg) 20%, transparent 100%);
}

/* Bottom edge blend */
.image-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--bg), transparent);
}

/* Additional top blend */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, var(--bg), transparent);
    z-index: 2;
    pointer-events: none;
}

/* Subtle color overlay for mood */
.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(163, 163, 163, 0.08), transparent 50%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out-expo) 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.5;
    }

    50% {
        transform: scaleY(0.5);
        opacity: 1;
    }
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
section {
    padding: 4rem 1.25rem;
}

@media (min-width: 601px) {
    section {
        padding: 8rem 4rem;
    }
}

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

.section-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--bg-secondary);
    position: relative;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
}

.about-lead {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.skill-category li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.skill-category li:hover {
    color: var(--accent);
    padding-left: 0.5rem;
}

/* Experience Strip */
.experience-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    max-width: 100%;
}

.experience-item {
    text-align: left;
}

.exp-number {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--text), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.exp-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   WORK SECTION
   ======================================== */
.work {
    position: relative;
}

.projects {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(30px);
}

.project.active {
    opacity: 1;
    transform: translateY(0);
}

.project:nth-child(1) { transition-delay: 0.1s; }
.project:nth-child(2) { transition-delay: 0.2s; }
.project:nth-child(3) { transition-delay: 0.3s; }
.project:nth-child(4) { transition-delay: 0.4s; }

.project:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(163, 163, 163, 0.05);
}

.project-info {
    padding: 0;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.9;
    flex-shrink: 0;
}

.company-logo.apple-logo {
    width: 32px;
    height: 40px;
    color: #ffffff;
}

.company-logo.amazon-logo {
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.project-year {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(163, 163, 163, 0.1);
    border-radius: 100px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.project:hover .project-title {
    color: var(--accent);
}

.project:hover .company-logo {
    opacity: 1;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.project-tags span:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(163, 163, 163, 0.06), transparent 70%);
    pointer-events: none;
}

.contact-content {
    max-width: 100%;
    position: relative;
}

@media (min-width: 601px) {
    .contact-content {
        max-width: 700px;
    }
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.contact-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 500;
    padding: 1rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    transition: color 0.3s ease;
}

.contact-email::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.contact-email:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text);
    transition: width 0.3s var(--ease-out-expo);
}

.social-link:hover {
    color: var(--text);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 2rem 4rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PAGE LOADER
   ======================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: loaderFadeIn 0.5s ease 0.2s forwards;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: var(--text-dim);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    animation: loaderProgress 1.5s var(--ease-out-expo) 0.4s forwards;
}

@keyframes loaderFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes loaderProgress {
    to {
        width: 100%;
    }
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    position: relative;
    transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger to X animation */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out-expo);
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.scroll-top:active {
    transform: scale(0.95);
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

/* Button click ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Link hover underline animation */
.nav-link:not(.nav-link-cta)::after,
.social-link::after {
    transition: width 0.3s var(--ease-out-expo), left 0.3s var(--ease-out-expo);
}

.nav-link:not(.nav-link-cta):hover::after,
.social-link:hover::after {
    width: 100%;
    left: 0;
}

/* Project card lift effect */
.project {
    transition: transform 0.4s var(--ease-out-expo);
}

.project:hover {
    transform: translateY(-8px);
}

/* Skill item slide effect */
.skill-category li {
    position: relative;
    transition: all 0.3s ease;
}

.skill-category li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out-expo);
}

.skill-category li:hover::before {
    width: 0.5rem;
}

/* Experience number hover glow */
.exp-number {
    transition: text-shadow 0.3s ease;
}

.experience-item:hover .exp-number {
    text-shadow: 0 0 30px var(--accent-glow);
}

/* Tag hover pop */
.project-tags span {
    transition: all 0.3s var(--ease-out-expo);
}

.project-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact email magnetic effect handled in JS */
.contact-email {
    transition: letter-spacing 0.3s ease, color 0.3s ease;
}

.contact-email:hover {
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* Status dot enhanced pulse */
.status-dot {
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.4);
    animation: statusRing 2s ease-in-out infinite;
}

@keyframes statusRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .hero {
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        width: 70%;
        opacity: 0.4;
    }

    .image-overlay::before {
        width: 100%;
        background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 70%);
    }

    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out-expo);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links .nav-link {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s var(--ease-out-expo);
    }

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

    .nav-links.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active .nav-link:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-link-cta {
        margin-top: 1rem;
    }

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

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

    .project {
        padding: 1.5rem;
    }

    .project:hover {
        transform: none;
    }

    .project-header {
        gap: 0.75rem;
    }

    .company-logo {
        width: 32px;
        height: 32px;
    }

    .company-logo.apple-logo {
        width: 26px;
        height: 32px;
    }

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

    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: auto;
    }

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

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

    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .project {
        padding: 1.25rem;
    }

    .hero-image {
        width: 100%;
        opacity: 0.25;
    }

    .hero-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem 0.4rem 0.6rem;
    }

    .scroll-indicator {
        display: none;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

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

    .about-lead {
        font-size: 1.25rem;
    }

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

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

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

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

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

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

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

    .contact-email {
        font-size: 1.25rem;
        word-break: break-all;
    }

    .contact-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}