:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #888888;
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    --vh: 1vh;
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

/* Skip Navigation */
.skip-nav {
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    background: #fff;
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: top 0.3s ease;
}

.skip-nav:focus {
    top: 0;
}

/* Focus Visible Styles */
:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

:focus:not(:focus-visible) {
    outline: none;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

body.loading {
    overflow: hidden;
}

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

/* Main Content */
main {
    position: relative;
    z-index: 2;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-text {
    position: relative;
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-hello {
    position: absolute;
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loader-icon {
    width: 1.2em;
    height: 1.2em;
    stroke: rgba(255, 255, 255, 0.75);
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.loader-icon-wave {
    animation: loaderWave 0.6s ease-in-out 2;
    transform-origin: bottom center;
}

@keyframes loaderWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-15deg); }
}

.loader-icon-smile {
    animation: loaderSmile 0.8s ease-in-out 2;
}

@keyframes loaderSmile {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.loader-icon-heart {
    animation: loaderHeart 0.7s ease-in-out 3;
    transform-origin: center center;
}

@keyframes loaderHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.l-char {
    display: inline-block;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Glass Center Nav Bar (enhanced at bottom) */

.nav-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    padding: 0.4rem 1.15rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

/* Hamburger Menu Button (mobile only) */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 101;
}

.menu-line {
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
    border-radius: 1px;
}

.menu-btn.active .menu-line:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.menu-btn.active .menu-line:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    align-items: center;
}

.mobile-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #fff;
}

/* Social Sidebar */
.hero-social-bar {
    position: fixed;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
    z-index: 90;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-social-bar.hide {
    opacity: 0;
    transform: translateY(-50%) translateX(30px);
    pointer-events: none;
}

.social-line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
}

.social-icon {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.social-icon::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 250%;
    height: 250%;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: sidebarShimmer 14s ease-in-out infinite;
}

@keyframes sidebarShimmer {
    0%, 92%, 100% { transform: translate(-80%, -80%) rotate(45deg); }
    96% { transform: translate(80%, 80%) rotate(45deg); }
}

.social-icon:hover {
    color: #fff;
    transform: scale(1.15);
}

.social-icon svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    min-height: 100vh;
    width: 100%;
    padding: 8rem 3rem;
    position: relative;
}

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

.section-title {
    font-size: 0.8rem;
    letter-spacing: 0.5rem;
    color: var(--accent-color);
    margin-bottom: 4rem;
}

/* Hero Section */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    padding: 0;
}

.hero-content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.hero-title,
.hero-title-last {
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-title .char,
.hero-title-last .char {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2rem;
    opacity: 0;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.scroll-indicator {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.scroll-indicator.visible {
    opacity: 1;
}

/* Premium Mouse Icon */
.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 7px;
}

.scroll-mouse-dot {
    width: 3px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    animation: scrollMouseDot 2s ease-in-out infinite;
}

@keyframes scrollMouseDot {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

.scroll-label {
    font-size: 0.5rem;
    letter-spacing: 0.3rem;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-weight: 500;
}

.scroll-indicator .scroll-chevron {
    width: 14px;
    height: 14px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
    50% { transform: rotate(45deg) translateY(6px); opacity: 0.3; }
}

/* About Section */
#about-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    padding: 2rem 3rem !important;
    z-index: 5;
    box-sizing: border-box;
}

#about-section .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding-top: clamp(5rem, 8vh, 7rem);
    box-sizing: border-box;
}

/* About Heading — positioned like skills heading */
.about-heading {
    position: fixed !important;
    top: 5.5rem !important;
    left: 3rem !important;
    font-size: 6vw !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: var(--text-color) !important;
    margin: 0 !important;
    line-height: 1;
    opacity: 0;
    z-index: 100;
}

.about-text-wrapper {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.about-text-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0.08));
}

/* About text (enhanced at bottom) */

.about-line {
    display: block;
    margin-bottom: 0.2rem;
}

/* Emphasized keywords in about */
.about-em {
    font-style: normal;
    color: #fff;
    font-weight: 500;
    position: relative;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
    transform: scaleX(0);
    transform-origin: left;
    animation: emUnderline 1.2s ease forwards;
    animation-delay: 1.5s;
    animation-play-state: paused;
}

#about-section[data-visible] .about-em::after {
    animation-play-state: running;
}

@keyframes emUnderline {
    to { transform: scaleX(1); }
}

/* About Stats Row */
.about-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 0.3rem;
    opacity: 0;
}

/* About stat (enhanced at bottom) */

/* Stat number (enhanced at bottom) */

/* Stat label (enhanced at bottom) */

/* Skills Section */
#skills-section {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.skills-wrapper {
    display: flex;
    width: 300vw;
    height: 100%;
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.skill-panel {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow-y: auto;
}

.panel-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    max-width: 90%;
}

/* Panel title (enhanced at bottom) */

.skills-heading {
    position: fixed;
    top: 2rem;
    left: 3rem;
    font-size: 6vw;
    font-weight: 700;
    color: var(--text-color);
    opacity: 0;
    z-index: 100;
    letter-spacing: -0.02em;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
}

.skill-icon-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.skill-icon-container::before {
    content: '';
    position: absolute;
    top: -1px; right: -1px; bottom: -1px; left: -1px;
    inset: -1px;
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.08) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.skill-icon-container::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.skill-icon-container:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.06), 0 0 30px rgba(255, 255, 255, 0.02), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-6px);
}

.skill-icon-container:hover::before {
    opacity: 1;
}

.skill-icon-container svg {
    width: 40px;
    height: 40px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.5s ease;
    position: relative;
    z-index: 1;
    filter: saturate(0.85) brightness(0.95);
}

.skill-icon-container:hover svg {
    transform: scale(1.12);
    filter: saturate(1.2) brightness(1.2) drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

.skill-label {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.9);
    background: rgba(8, 8, 8, 0.92);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.skill-icon-container:hover .skill-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .skill-icon-container {
        width: 76px;
        height: 76px;
        border-radius: 14px;
    }
    .skill-icon-container svg {
        width: 36px;
        height: 36px;
    }

    .skills-list {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .skill-icon-container {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }
    .skill-icon-container svg {
        width: 30px;
        height: 30px;
    }

    .skills-list {
        gap: 16px;
    }

    .skill-label {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* IDE & Environment Panel Styles */
.env-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.env-tool-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    padding: 22px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.env-tool-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.env-tool-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(-3px);
}

.env-tool-container:hover::before {
    opacity: 1;
}

.env-tool-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.env-tool-header svg {
    width: 64px;
    height: 64px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.env-tool-container:hover .env-tool-header svg {
    transform: scale(1.1);
}

.env-tool-name {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.env-tool-quote {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.6;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.env-tool-container:hover .env-tool-quote {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Responsive IDE styles */
@media (max-width: 1024px) {
    .env-tool-header svg {
        width: 56px;
        height: 56px;
    }

    .env-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .env-tool-header svg {
        width: 40px;
        height: 40px;
    }

    .env-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .env-tool-container {
        padding: 14px;
        align-items: center;
        justify-content: center;
    }

    .env-tool-name {
        display: none;
    }

    .env-tool-quote {
        display: none;
    }

    .env-tool-header {
        justify-content: center;
    }
}

/* Projects Stack Animation Styles */
#projects-section {
    position: relative;
    z-index: 1;
    width: 100%;
    background: var(--bg-color);
    overflow: hidden;
    padding: 0 !important;
}

/* Projects main title (enhanced at bottom) */

/* Scroll Float Character Animation Styles */
.scroll-float-title {
    overflow: hidden;
}

.scroll-float-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

.project-card {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    overflow: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
    padding: 12vh 10vw;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.008) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.project-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.project-content {
    width: 100%;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8vw;
    z-index: 1;
}

.project-text-column {
    width: 50%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Typography Hierarchy */

/* LEVEL 1 — CATEGORY LABEL (enhanced version at bottom) */

/* LEVEL 2 — PROJECT TITLE (enhanced version at bottom) */

/* LEVEL 3 — PROJECT DESCRIPTION (enhanced version at bottom) */

/* LEVEL 4 — KEY FEATURES LIST (enhanced version at bottom) */
.features-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    margin-bottom: 32px;
}

.project-metadata {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
}

/* LEVEL 5 — TECH STACK LABEL (enhanced version at bottom) */

/* LEVEL 6 — TECH STACK CONTENT (enhanced version at bottom) */

/* LEVEL 7 — GITHUB LINK (enhanced version at bottom) */

.github-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* IMAGE ENHANCEMENTS */
.project-image-column {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-content .project-image {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.04);
}

.project-image:hover {
    transform: scale(1.03);
    filter: grayscale(0%) contrast(1);
}

/* Project Number Watermark */
.project-number-bg {
    position: absolute;
    right: -2vw;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(18rem, 28vw, 38rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    letter-spacing: -0.05em;
    user-select: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Code Mockup — Editor / Terminal Window (enhanced at bottom) */

.project-mockup::before {
    content: '';
    position: absolute;
    top: -1px; right: -1px; bottom: -1px; left: -1px;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 40%, transparent 60%, rgba(255,255,255,0.04) 100%);
    border-radius: 13px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    font-family: var(--font-main);
}

.mockup-body {
    padding: 24px 8px 24px 12px;
}

.mockup-code {
    counter-reset: line;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', 'Liberation Mono', monospace;
    font-size: 13px;
    line-height: 1.75;
}

/* Line Numbers */
.code-line {
    display: block;
    min-height: 1.75em;
    color: rgba(255, 255, 255, 0.55);
    padding-left: 3.5ch;
    position: relative;
}

.code-line::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: 0;
    width: 2.5ch;
    text-align: right;
    color: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    user-select: none;
}

/* Blinking Cursor */
.mockup-code::after {
    content: '▌';
    display: block;
    padding-left: 3.5ch;
    animation: cursorBlink 1.2s step-end infinite;
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
    line-height: 1.75;
}

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

/* Syntax Highlighting */
.code-keyword { color: #c792ea; }
.code-func { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-num { color: #f78c6c; }

/* Terminal Variant */
.mockup-terminal .mockup-header {
    background: rgba(255, 255, 255, 0.02);
}

.mockup-terminal .mockup-body {
    background: rgba(0, 0, 0, 0.2);
}

.terminal-code .code-line {
    padding-left: 0;
    color: rgba(255, 255, 255, 0.65);
}

.terminal-code .code-line::before {
    display: none;
}

.terminal-code + .mockup-code::after,
.mockup-terminal .mockup-code::after {
    padding-left: 0;
}

.code-prompt { color: #c3e88d; margin-right: 8px; font-weight: 600; }
.code-dim { color: rgba(255, 255, 255, 0.3); }
.code-success { color: #28c840; font-weight: 500; }
.code-warn { color: #febc2e; font-weight: 500; }
.code-danger { color: #ff5f57; font-weight: 500; }

/* Reveal element base state (animated by GSAP) */
.reveal-el {
    will-change: transform, opacity;
}

/* Responsive Mockup */
@media (max-width: 992px) {
    .project-number-bg {
        font-size: clamp(10rem, 20vw, 18rem);
        right: 0;
        opacity: 0.5;
    }

    .project-mockup {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .mockup-body {
        padding: 16px 8px 16px 8px;
    }

    .mockup-code {
        font-size: 11px;
    }

    .code-line {
        padding-left: 3ch;
    }

    .code-line::before {
        width: 2ch;
        font-size: 10px;
    }

    .mockup-code::after {
        padding-left: 3ch;
    }

    .project-number-bg {
        font-size: clamp(8rem, 18vw, 14rem);
    }
}

/* REVEAL EFFECT (CSS Scroll-Driven Animation) */
@keyframes projectTextReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@supports (animation-timeline: view()) {
    .reveal-text {
        view-timeline-name: --project-reveal;
        view-timeline-axis: block;
        animation-name: projectTextReveal;
        animation-fill-mode: both;
        animation-timeline: --project-reveal;
        animation-range: entry 20% cover 40%;
    }
}

@media (max-width: 992px) {
    .project-card {
        padding: 8vh 5vw;
        height: auto;
        min-height: 100vh;
    }

    .project-content {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 3rem;
        padding-top: 4rem;
    }

    .project-text-column,
    .project-image-column {
        width: 100%;
        max-width: 100%;
    }

    .reveal-text {
        animation-range: entry 10% cover 30%;
    }
}

/* Contact */
#contact {
    height: auto;
    max-height: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-sizing: border-box;
}

/* Contact container (enhanced at bottom) */

.contact-top-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 3rem;
    width: 100%;
}

.contact-label {
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28c840;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
}

.status-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.05em;
}

/* Contact heading (enhanced at bottom) */

.contact-heading em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
}

/* Contact email link base (enhanced at bottom) */

.contact-email-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-email-link:hover {
    color: #fff;
}

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

.contact-socials {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2.5rem;
}

.contact-social-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-social-link:hover {
    color: #fff;
}

.contact-copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.15em;
}

/* Contact footer — bottom of contact section */
.contact-footer {
    position: relative;
    margin-top: 0;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1;
    flex-shrink: 0;
}

.footer-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform-origin: center;
}

/* Contact background watermark text */
.contact-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(8rem, 22vw, 28rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.015);
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
    line-height: 1;
}

/* Contact divider line */
.contact-line-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    margin: 2.5rem 0;
    transform-origin: center;
}

/* Social dot separator */
.contact-social-dot {
    color: rgba(255, 255, 255, 0.12);
    font-size: 1.2rem;
    line-height: 1;
    user-select: none;
}

/* =============================
   RESPONSIVE — Tablet & Mobile
   ============================= */

@media (max-width: 1024px) {
    .nav-glass {
        padding: 0.4rem 0.35rem;
    }
    .nav-link {
        font-size: 0.62rem;
        padding: 0.35rem 0.85rem;
    }
    .hero-social-bar {
        right: 1.5rem;
    }
    .panel-title {
        font-size: max(1.5vw, 14px);
    }
}

@media (max-width: 768px) {
    /* Nav — only show hamburger icon */
    nav {
        padding: 1.2rem 1.5rem;
        justify-content: space-between;
        background: transparent;
    }
    .nav-glass {
        display: none;
    }
    .menu-btn {
        display: flex;
    }
    /* Social bar repositioned horizontally at bottom on mobile */
    .hero-social-bar {
        position: fixed;
        top: auto;
        right: auto;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 1.2rem;
        z-index: 85;
    }
    .hero-social-bar.hide {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    .social-line {
        width: 24px;
        height: 1px;
    }
    /* Sections */
    section {
        padding: 6rem 1.5rem;
    }
    /* Hero */
    #hero {
        padding: 0 1.5rem;
    }
    .hero-title, .hero-title-last {
        font-size: clamp(2.5rem, 15vw, 5rem);
    }
    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.12rem;
        margin-top: 1.5rem;
    }
    /* About — redesigned for small screens: heading flows with content, no hovering */
    #about-section {
        padding: 2rem 1.5rem !important;
    }
    .about-section-label {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-bottom: 0.8rem;
    }
    .about-glow-orb {
        width: 250px;
        height: 250px;
    }
    .about-heading {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        font-size: clamp(2rem, 9vw, 3.5rem) !important;
        margin-bottom: 1.5rem !important;
        filter: none !important;
        letter-spacing: 0.1em !important;
    }
    #about-section .container {
        padding-top: 2rem;
        justify-content: center;
    }
    .about-text {
        font-size: clamp(0.9rem, 3.8vw, 1.2rem);
    }
    .about-text-wrapper {
        padding: 0;
        border-left: none;
        gap: 1.2rem;
    }
    .about-stats {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .about-stat {
        padding: 1rem 1.2rem;
    }
    .stat-number {
        font-size: clamp(1.3rem, 5.5vw, 2rem);
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
    .stat-label {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
        color: rgba(255, 255, 255, 0.5);
    }
    .about-credentials {
        gap: 0.6rem;
    }
    .credential-item {
        padding: 0.7rem 0.9rem;
    }
    .credential-icon {
        width: 30px;
        height: 30px;
    }
    .credential-title {
        font-size: 0.85rem;
    }
    .credential-sub {
        font-size: 0.7rem;
    }
    /* Skills */
    .skills-heading {
        font-size: 9vw;
        left: 1.5rem;
    }
    #skills-section {
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    .skills-wrapper {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    .skill-panel {
        width: 100%;
        height: auto;
        min-height: 70vh;
        padding: 3rem 1.5rem;
    }
    .panel-title {
        font-size: max(3.5vw, 13px);
    }
    /* Projects */
    .projects-main-title {
        font-size: clamp(2rem, 14vw, 5rem);
        margin: 0;
        padding: 0 0.5rem;
    }
    .projects-shadow-text {
        font-size: clamp(2rem, 14vw, 5rem);
        -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.05);
    }
    .project-card {
        padding: 5vh 5vw;
        height: auto;
        min-height: auto;
    }
    .project-card + .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 8%;
        width: 84%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18) 20%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0.18) 80%, transparent);
        z-index: 3;
    }
    .project-content {
        flex-direction: column-reverse !important;
        gap: 2rem;
        padding-top: 3rem;
    }
    .project-text-column, .project-image-column {
        width: 100%;
        max-width: 100%;
    }
    .project-content .project-title {
        font-size: clamp(28px, 8vw, 44px);
        margin-bottom: 16px;
    }
    .project-content .project-description p {
        font-size: 15px;
        line-height: 1.7;
    }
    .features-list li {
        font-size: 14px;
        line-height: 1.7;
    }
    .project-metadata {
        margin-top: 20px;
    }
    .project-number-bg {
        font-size: clamp(5rem, 18vw, 10rem);
    }
    /* Contact */
    #contact {
        height: auto;
        max-height: none;
        min-height: 100vh;
        padding: 0;
    }
    .contact-top-row {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    .contact-heading {
        font-size: clamp(2.2rem, 10vw, 4rem);
    }
    .contact-socials {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .contact-bg-text {
        font-size: clamp(4rem, 18vw, 10rem);
    }
    .contact-line-divider {
        width: 40px;
        margin: 1.5rem 0;
    }
    .contact-footer {
        gap: 1rem;
    }
    .footer-line {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .status-badge {
        display: none;
    }
    .hero-title, .hero-title-last {
        font-size: clamp(2rem, 16vw, 3.5rem);
    }
    .hero-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.08rem;
    }
    /* About — tighter layout for very small screens */
    .about-section-label {
        margin-bottom: 0.5rem;
    }
    .about-label-text {
        font-size: 0.55rem;
    }
    .about-heading {
        font-size: clamp(1.8rem, 10vw, 2.8rem) !important;
        margin-bottom: 1rem !important;
    }
    #about-section .container {
        padding-top: 1.5rem;
    }
    .about-text {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        line-height: 1.5;
    }
    .about-stats {
        gap: 0.8rem;
    }
    .about-stat {
        padding: 0.6rem 0.8rem;
    }
    .about-credentials {
        gap: 0.5rem;
    }
    .credential-item {
        padding: 0.6rem 0.8rem;
        gap: 0.7rem;
    }
    .credential-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    .credential-title {
        font-size: 0.8rem;
    }
    .credential-sub {
        font-size: 0.68rem;
    }
    .stat-number {
        font-size: clamp(1.2rem, 5.5vw, 1.8rem);
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: #fff;
        color: #fff;
    }
    .stat-label {
        font-size: 0.55rem;
        color: rgba(255, 255, 255, 0.5);
    }
    .contact-heading {
        font-size: clamp(1.8rem, 11vw, 2.8rem);
    }
    .contact-email-link {
        font-size: 0.95rem;
    }
    .project-content .project-title {
        font-size: clamp(24px, 7vw, 36px);
    }
}


/* =============================
   PREMIUM EFFECTS LAYER
   (no main animation logic changed)
   ============================= */

/* --- Custom Cursor --- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                background 0.3s ease,
                opacity 0.3s ease;
    mix-blend-mode: difference;
}

/* Cursor states */
.cursor-dot.visible, .cursor-ring.visible {
    opacity: 1;
}

.cursor-ring.hovering {
    width: 56px;
    height: 56px;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.03);
}

.cursor-ring.clicking {
    width: 28px;
    height: 28px;
    border-color: rgba(255, 255, 255, 0.5);
}

.cursor-dot.clicking {
    width: 4px;
    height: 4px;
}

/* Hide custom cursor on touch / mobile */
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}

/* Hide default cursor when custom is active (desktop only) */
@media (hover: hover) and (pointer: fine) {
    *, *::before, *::after {
        cursor: none !important;
    }
}

/* --- Film Grain Overlay --- */
.film-grain {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    animation: grainShift 0.5s steps(4) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 3px); }
    50% { transform: translate(3px, -1px); }
    75% { transform: translate(-1px, -2px); }
    100% { transform: translate(2px, 1px); }
}

/* --- Vignette Overlay --- */
.vignette-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    z-index: 9989;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

/* --- Hero Title Shimmer --- */
.hero-title .char,
.hero-title-last .char {
    position: relative;
    background: linear-gradient(
        90deg,
        #fff 0%,
        #fff 40%,
        rgba(255, 255, 255, 0.5) 50%,
        #fff 60%,
        #fff 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroShimmer 8s ease-in-out infinite;
}

@keyframes heroShimmer {
    0%, 88%, 100% { background-position: 100% 0; }
    94% { background-position: -100% 0; }
}

/* --- Nav Link Underline Slide --- */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1), left 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* --- Logo Hover Glow --- */
.logo {
    transition: text-shadow 0.4s ease, color 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.05);
}

/* --- Hero Subtitle Typing Cursor (blinks 3x then fades) --- */
.hero-subtitle::after {
    content: '|';
    display: inline-block;
    margin-left: 4px;
    animation: subtitleBlink 1s step-end 3, subtitleCursorFade 0.5s ease 3s forwards;
    color: var(--accent-color);
    font-weight: 300;
}

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

@keyframes subtitleCursorFade {
    to { opacity: 0; visibility: hidden; }
}

/* --- Hero Decorative Line --- */
.hero-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    margin: 2rem auto 0;
    display: block;
    transform-origin: center center;
}

/* --- About Lines Cinematic Reveal --- */
.about-line {
    transition: text-shadow 0.8s ease, color 0.6s ease;
}

#about-section .about-line {
    text-shadow: 0 0 0 transparent;
}

/* About em shimmer on scroll */
.about-em {
    transition: filter 0.6s ease;
}

.about-em:hover {
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.12));
}

/* --- Section Title Parallax Float --- */
.skills-heading,
.projects-main-title {
    will-change: transform;
}

/* --- Contact Heading Italic Glow --- */
.contact-heading em {
    position: relative;
    transition: text-shadow 0.6s ease, color 0.6s ease;
}

#contact:hover .contact-heading em,
.contact-heading em {
    animation: italicGlow 4s ease-in-out infinite alternate;
}

@keyframes italicGlow {
    0% {
        text-shadow: 0 0 0 transparent;
        color: rgba(255, 255, 255, 0.4);
    }
    100% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.08), 0 0 60px rgba(255, 255, 255, 0.03);
        color: rgba(255, 255, 255, 0.55);
    }
}

/* --- Contact Email Gradient Hover --- */
.contact-email-link {
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, #fff 50%, rgba(255,255,255,0.6) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-position: 100% 0;
    transition: background-position 0.6s ease;
}

.contact-email-link:hover {
    background-position: 0% 0;
}

/* --- GitHub Link Arrow Animation --- */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.github-link::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    vertical-align: middle;
}

.github-link:hover::before {
    width: 24px;
}

/* --- Contact Social Link Hover --- */
.contact-social-link {
    position: relative;
    overflow: hidden;
}

.contact-social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.contact-social-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Magnetic Button Hover Scale (skill icons) --- */
.skill-icon-container {
    will-change: transform;
}

/* --- Project Card Subtle Edge Glow (removed) --- */
.project-card::after {
    display: none;
}

/* --- Loader Characters Glow --- */
.l-char {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* --- Smooth Selection Color --- */
::selection {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* --- Panel Title Wipe Reveal Line --- */
.panel-title {
    position: relative;
    overflow: hidden;
}

.panel-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent);
    animation: panelLineWipe 4s ease-in-out infinite;
}

@keyframes panelLineWipe {
    0%, 100% { width: 30px; opacity: 0.4; }
    50% { width: 70px; opacity: 0.7; }
}

/* --- Smooth Page Transitions --- */
main {
    animation: pageIn 0.8s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Status Dot Enhanced Glow --- */
.status-dot {
    box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.4), 0 0 12px rgba(40, 200, 64, 0.2);
}

/* --- Mockup Dots Subtle Pulse --- */
.mockup-dots span:nth-child(1),
.mockup-dots span:nth-child(2),
.mockup-dots span:nth-child(3) {
    transition: box-shadow 0.3s ease;
}

.project-card:hover .mockup-dots span:nth-child(1) {
    box-shadow: 0 0 6px rgba(255, 95, 87, 0.4);
}
.project-card:hover .mockup-dots span:nth-child(2) {
    box-shadow: 0 0 6px rgba(254, 188, 46, 0.4);
}
.project-card:hover .mockup-dots span:nth-child(3) {
    box-shadow: 0 0 6px rgba(40, 200, 64, 0.4);
}

/* --- Smooth Scrollbar --- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- Mobile: disable custom cursor & grain for performance --- */
@media (max-width: 768px) {
    .film-grain {
        display: none;
    }
    .vignette-overlay {
        background: radial-gradient(ellipse at center, transparent 70%, rgba(0, 0, 0, 0.3) 100%);
    }
}

/* =============================
   HERO SECTION ENHANCEMENTS
   ============================= */

/* Ambient Glow Orb */
.hero-glow-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, rgba(255, 255, 255, 0.008) 35%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: glowPulse 8s ease-in-out infinite;
}

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

/* Role Badge */
.hero-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.02);
}

.role-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #28c840;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.role-text {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Expertise Tags */
.hero-expertise {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.exp-tag {
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.015);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.exp-tag:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
}



/* =============================
   STATUS BADGE (Bottom Right)
   ============================= */

.status-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 26px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    z-index: 90;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-family: var(--font-main);
    transition: all 0.5s ease;
    cursor: default;
}

.status-badge:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.status-badge-hash {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.status-badge-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.06em;
    min-width: 0;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.status-badge-cursor {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    animation: statusCursorBlink 1s step-end infinite;
    margin-left: 2px;
}

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

/* Responsive: Hero Enhancements & Status Badge */
@media (max-width: 768px) {
    .status-badge {
        bottom: 1.2rem;
        right: 1.2rem;
        padding: 10px 18px;
    }
    .status-badge-hash,
    .status-badge-text {
        font-size: 0.8rem;
    }
    .hero-role-badge {
        padding: 6px 16px;
        margin-bottom: 1.5rem;
    }
    .role-text {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }
    .hero-expertise {
        gap: 6px;
        margin-top: 1.5rem;
    }
    .exp-tag {
        padding: 4px 12px;
        font-size: 0.55rem;
    }
    .hero-glow-orb {
        width: 350px;
        height: 350px;
    }
}

/* =============================
   FLOATING ACCENT ELEMENTS
   ============================= */

.floating-accent {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.floating-accent.accent-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
    top: 15%;
    right: 10%;
    animation: floatAccent1 12s ease-in-out infinite;
}

.floating-accent.accent-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.012) 0%, transparent 70%);
    bottom: 20%;
    left: 5%;
    animation: floatAccent2 15s ease-in-out infinite;
}

.floating-accent.accent-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    top: 40%;
    left: 50%;
    animation: floatAccent3 10s ease-in-out infinite;
}

@keyframes floatAccent1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, 15px) scale(1.1); }
    66% { transform: translate(15px, -10px) scale(0.95); }
}

@keyframes floatAccent2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, -20px) scale(1.15); }
}

@keyframes floatAccent3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-15px, 10px); }
    75% { transform: translate(10px, -15px); }
}

/* =============================
   ABOUT SECTION CREATIVE ACCENTS
   ============================= */

.about-glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, rgba(255,255,255,0.008) 40%, transparent 70%);
    top: 20%;
    right: -10%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    animation: aboutOrbFloat 16s ease-in-out infinite;
}

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

.about-section-label {
    position: fixed;
    top: 3.5rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 101;
    opacity: 0;
}

.about-label-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
    display: block;
}

.about-label-text {
    font-size: 0.6rem;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-transform: uppercase;
}

/* =============================
   PROJECT CARD DECORATIVE ELEMENTS
   ============================= */

.project-accent-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
    top: 20%;
    right: 5%;
    pointer-events: none;
    z-index: 0;
    animation: projectOrbFloat 14s ease-in-out infinite;
    filter: blur(40px);
}

.project-card:nth-child(odd) .project-accent-orb {
    right: auto;
    left: 5%;
}

@keyframes projectOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(-15px, 10px) scale(1.1); opacity: 1; }
}

.project-accent-line {
    display: none;
}

/* =============================
   ENHANCED PROJECT TYPOGRAPHY
   ============================= */

/* Project category with premium tracking */
.project-category {
    font-size: clamp(10px, 0.85vw, 13px);
    letter-spacing: 0.4em;
    opacity: 1;
    text-transform: uppercase;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.45);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 500;
    position: relative;
    padding-left: 0;
}

.project-category::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
}

/* Project title — solid white for reliable visibility */
.project-content .project-title {
    font-size: clamp(44px, 5.5vw, 80px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 36px;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Project description with premium rendering */
.project-content .project-description p {
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.9;
    opacity: 1;
    font-weight: 350;
    margin-bottom: 36px;
    max-width: 580px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Features list with better hierarchy */
.features-list li {
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.9;
    opacity: 1;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.01em;
    transition: color 0.3s ease, transform 0.3s ease;
    padding-left: 4px;
}

.features-list li:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(4px);
}

/* Tech stack with improved weight */
.metadata-label {
    font-size: clamp(11px, 0.8vw, 13px);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 1;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.tech-stack-content {
    font-size: clamp(14px, 1vw, 16px);
    opacity: 1;
    margin-bottom: 36px !important;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.04em;
}

/* GitHub link with premium animation */
.github-link {
    font-size: clamp(13px, 1vw, 16px);
    opacity: 0.75;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    align-self: flex-start;
    transition: opacity 0.3s ease, letter-spacing 0.3s ease;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
}

.github-link:hover {
    opacity: 1;
    letter-spacing: 0.12em;
}

/* =============================
   CONTACT SECTION DECORATIVES
   ============================= */

.contact-glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 40%, transparent 70%);
    top: 30%;
    right: -10%;
    pointer-events: none;
    z-index: 0;
    animation: contactOrbPulse 10s ease-in-out infinite;
    filter: blur(40px);
}

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

.contact-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    padding: 0 3rem;
}

/* =============================
   ABOUT SECTION STAT ICONS
   ============================= */

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    position: relative;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.015);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.about-stat:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.015);
}

.about-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, rgba(255, 255, 255, 0.2) 50%, transparent 90%);
}

.about-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse at center top, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

/* =============================
   ABOUT CREDENTIALS (Trust Section)
   ============================= */

.about-credentials {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.2rem;
    opacity: 0;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 1.1rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.credential-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    margin-top: 1px;
    transition: color 0.3s ease;
}

.credential-item:hover .credential-icon {
    color: rgba(255, 255, 255, 0.8);
}

.credential-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.credential-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

.credential-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
    font-weight: 400;
}

/* =============================
   SECTION TRANSITION LINES (removed)
   ============================= */

#skills-section::before {
    display: none;
}

#projects-section::before {
    display: none;
}

/* =============================
   ENHANCED MOCKUP HOVER
   ============================= */

.project-mockup {
    position: relative;
    width: 100%;
    max-width: 540px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: border-color 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease;
}

.project-card:hover .project-mockup {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(255, 255, 255, 0.012), inset 0 1px 0 rgba(255,255,255,0.06);
    transform: translateY(-6px);
}

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

/* Nav glass enhanced */
.nav-glass {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
    padding: 0.5rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-glass:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Re-hide nav elements on mobile (overrides premium section above) */
@media (max-width: 768px) {
    .nav-glass {
        display: none !important;
    }
    nav {
        background: transparent !important;
        padding: 1.2rem 1.5rem;
        justify-content: space-between;
    }
}

/* Projects title — see redesign section at bottom */
.projects-main-title {
    font-size: clamp(3rem, 15.3vw, 13.6rem);
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin: 0;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.85;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 0 1rem;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

/* Grey shadow text beneath Projects title */
.projects-shadow-text {
    font-size: clamp(3rem, 15.3vw, 13.6rem);
    font-weight: 700;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.06);
    margin: 0;
    letter-spacing: -0.05em;
    pointer-events: none;
    line-height: 0.85;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    user-select: none;
}

/* Contact email enhanced shimmer */
.contact-email-link {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    text-decoration: none;
    letter-spacing: 0.04em;
    font-weight: 400;
    display: inline-block;
    position: relative;
    align-self: flex-start;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Contact heading premium */
.contact-heading {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* About text enhanced */
.about-text {
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    line-height: 1.55;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.65);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.01em;
}

/* Stat number enhanced */
.stat-number {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff 10%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stat label enhanced */
.stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    text-transform: uppercase;
}

/* Skills panel title enhanced */
.panel-title {
    font-size: clamp(13px, 1.5vw, 24px);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 3vh;
    opacity: 0.9;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */

@media (max-width: 768px) {
    .scroll-mouse {
        width: 18px;
        height: 30px;
    }
    .scroll-mouse-dot {
        width: 2px;
        height: 5px;
    }
    .scroll-label {
        font-size: 0.45rem;
        letter-spacing: 0.2rem;
    }
    .floating-accent {
        display: none;
    }
    .project-accent-orb {
        display: none;
    }
    .contact-glow-orb {
        width: 250px;
        height: 250px;
    }
    .contact-grid-pattern {
        background-size: 40px 40px;
    }
    .about-stat {
        padding: 0.8rem 1rem;
    }
    .project-category {
        padding-left: 16px;
        margin-bottom: 16px;
    }
    .project-category::before {
        width: 6px;
    }
}

/* =============================
   PROJECTS INTRO SECTION
   ============================= */

.projects-intro {
    width: 100%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.projects-intro-label {
    font-size: 0.75rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.projects-intro-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.projects-intro-dash {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    display: block;
}

.projects-intro-count {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* =============================
   PROJECT PROGRESS COUNTER
   ============================= */

.project-progress {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    font-family: var(--font-main);
}

.project-progress.visible {
    opacity: 1;
}

.project-progress-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    min-width: 2ch;
    -webkit-font-smoothing: antialiased;
}

.project-progress-sep {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
}

.project-progress-total {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
    font-variant-numeric: tabular-nums;
}

/* =============================
   RESPONSIVE: NEW ELEMENTS
   ============================= */

@media (max-width: 768px) {
    .projects-intro {
        height: 60vh;
    }
    .projects-shadow-text {
        font-size: clamp(2rem, 14vw, 5rem);
        -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.05);
    }
    .projects-intro-label {
        font-size: 0.65rem;
        letter-spacing: 0.35em;
    }
    .projects-intro-count {
        font-size: 0.7rem;
        letter-spacing: 0.3em;
    }
    .projects-intro-dash {
        width: 25px;
    }
    .project-progress {
        bottom: 1.5rem;
        left: 1.5rem;
    }
    .project-progress-num {
        font-size: 1.1rem;
    }
    .contact-container {
        padding: 0 0.5rem;
    }
}


/* =============================
   CONTACT SECTION — WORLD CLASS REDESIGN
   ============================= */

/* Section Container */
#contact {
    position: relative;
    z-index: 10;
    height: auto;
    max-height: none;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    overflow: hidden;
    padding: 0;
}

/* --- Aurora Background --- */
.contact-aurora {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(56, 189, 248, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 255, 255, 0.008) 0%, transparent 60%);
    animation: auroraShift 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes auroraShift {
    0% { opacity: 0.6; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.05) rotate(1deg); }
    100% { opacity: 0.7; transform: scale(0.98) rotate(-1deg); }
}

/* --- Grid Background --- */
.contact-grid-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* --- Light Beam (Sweeping) --- */
.contact-light-beam {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.012) 45%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0.012) 55%,
        transparent 60%,
        transparent 100%
    );
    animation: lightSweep 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes lightSweep {
    0%, 100% { transform: translateX(-30%) rotate(-5deg); opacity: 0; }
    20% { opacity: 1; }
    50% { transform: translateX(30%) rotate(-5deg); opacity: 1; }
    80% { opacity: 0; }
}

/* --- Gradient Orbs --- */
.contact-gradient-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 65%);
    top: 10%;
    right: -10%;
    animation: orbFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.contact-gradient-orb-2 {
    width: 400px;
    height: 400px;
    top: auto;
    bottom: 5%;
    right: auto;
    left: -8%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.02) 0%, transparent 65%);
    animation-delay: -4s;
    animation-duration: 15s;
}

.contact-gradient-orb-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: 30%;
    left: auto;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.015) 0%, transparent 65%);
    animation-delay: -8s;
    animation-duration: 18s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 20px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}

/* --- Contact Content --- */
.contact-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 4vh, 4rem) clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Section Label --- */
.contact-section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-label-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
}

.contact-label-text {
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    text-transform: uppercase;
}

/* --- Split Layout --- */
.contact-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

/* --- Left Column --- */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: sticky;
    top: 15vh;
}

/* --- Mega Title --- */
.contact-mega-title {
    perspective: 800px;
    margin-bottom: 1.5rem;
}

/* Inline icon replacing O */
.mega-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    vertical-align: middle;
    margin: 0 0.05em;
    position: relative;
    top: -0.05em;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.mega-line-sub:hover .mega-icon-circle {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.mega-inline-icon {
    display: block;
    width: 0.55em;
    height: 0.55em;
    stroke: rgba(255, 255, 255, 0.55);
    transition: stroke 0.3s ease;
}

.mega-line-sub:hover .mega-inline-icon {
    stroke: rgba(255, 255, 255, 0.85);
}

/* Typed word cursor */
.contact-typed-cursor {
    display: inline-block;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    margin-left: 2px;
    animation: contactCursorBlink 0.75s step-end infinite;
}

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

#contact-typed-word {
    display: inline-block;
    min-width: 2px;
}

.mega-line {
    display: block;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.mega-line-sub {
    font-size: clamp(1.2rem, 3vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.mega-line-main {
    font-size: clamp(2.5rem, 6.5vw, 7rem);
    line-height: 0.95;
    white-space: nowrap;
}

.mega-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
    position: relative;
    white-space: nowrap;
    background: linear-gradient(90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.15) 40%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0.15) 60%,
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: outlineShimmer 6s ease-in-out infinite;
}

.mega-gif-letter {
    display: inline-block;
    height: 0.85em;
    width: auto;
    vertical-align: baseline;
    margin: 0 -0.02em;
    filter: brightness(0) invert(1) opacity(0.35);
    mix-blend-mode: screen;
    position: relative;
    top: 0.02em;
}

@keyframes outlineShimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: -200% center; }
}

/* --- Subtitle --- */
.contact-subtitle {
    font-size: clamp(0.9rem, 1.3vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 300;
    max-width: 420px;
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

/* --- Divider --- */
.contact-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.05));
    margin-bottom: 1.5rem;
}

/* --- Availability Pill --- */
.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: -moz-fit-content;
    width: fit-content;
}

.availability-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
    animation: availPulse 2.5s ease-in-out infinite;
}

@keyframes availPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(74, 222, 128, 0.4); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(74, 222, 128, 0.6); }
}

.availability-text {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    text-transform: uppercase;
}

/* --- Right Column --- */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* =============================
   CONTACT CARDS — Glass + Light
   ============================= */

.contact-card {
    position: relative;
    display: block;
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.05) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

/* Card Glow (appears on hover) */
.contact-card-glow {
    position: absolute;
    top: -1px; right: -1px; bottom: -1px; left: -1px;
    inset: -1px;
    border-radius: 16px;
    background: radial-gradient(
        300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.03) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.contact-card:hover .contact-card-glow {
    opacity: 1;
}

/* Card Shine (prismatic sweep) */
.contact-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: skewX(-15deg);
    transition: none;
    pointer-events: none;
    z-index: 0;
}

.contact-card:hover .contact-card-shine {
    animation: cardShine 0.8s ease forwards;
}

@keyframes cardShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Card Content Layout */
.contact-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 1.6rem;
}

/* Card Icon */
.contact-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-card:hover .contact-card-icon {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Card Info */
.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
}

.contact-card-value {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
}

.contact-card:hover .contact-card-value {
    color: #fff;
}

/* Card Arrow */
.contact-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.contact-card:hover .contact-card-arrow {
    color: rgba(255, 255, 255, 0.5);
    transform: translate(3px, -3px);
}

/* --- Email Card (Primary) --- */
.contact-card--email {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-card--email .contact-card-content {
    padding: 1.5rem 1.8rem;
}

.contact-card--email .contact-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.contact-card--email .contact-card-value {
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
}

.contact-card--email:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(255, 255, 255, 0.01),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --- Social Cards Row --- */
.contact-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* --- Social Card --- */
.contact-card--social:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 255, 255, 0.008);
}

/* --- Resume Card --- */
.contact-card--resume:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(255, 255, 255, 0.008);
}

.contact-card--resume:hover .contact-card-arrow {
    transform: translate(0, 3px);
}

/* --- Location Badge --- */
.contact-location-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.contact-location-badge svg {
    opacity: 0.6;
}

/* =============================
   FOOTER — REDESIGN
   ============================= */

.contact-footer {
    position: relative;
    z-index: 2;
    padding: 1.2rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.5rem;
    flex-wrap: wrap;
}

.footer-credit {
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    text-transform: uppercase;
}

.footer-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.footer-year {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

/* =============================
   CONTACT RESPONSIVE
   ============================= */

@media (max-width: 1024px) {
    .contact-split {
        gap: 3rem;
    }
    .contact-card-content {
        padding: 1.2rem 1.4rem;
    }
    .contact-card--email .contact-card-content {
        padding: 1.3rem 1.6rem;
    }
    .mega-line-main {
        font-size: clamp(2.2rem, 5.5vw, 4.5rem);
    }
}

@media (max-width: 768px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-left {
        position: relative;
        top: auto;
    }
    .contact-mega-title {
        text-align: center;
    }
    .mega-line {
        text-align: center;
    }
    .mega-line-main {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    .mega-line-sub {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
    }
    .contact-subtitle {
        text-align: center;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    .contact-divider {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1rem;
    }
    .contact-availability {
        align-self: center;
    }
    .contact-left {
        align-items: center;
    }
    .contact-social-row {
        grid-template-columns: 1fr;
    }
    .contact-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }
    .contact-card--email .contact-card-icon {
        width: 48px;
        height: 48px;
    }
    .contact-card--email .contact-card-value {
        font-size: clamp(0.9rem, 3.5vw, 1.05rem);
    }
    .contact-location-badge {
        justify-content: center;
    }
    .contact-content {
        padding-top: clamp(2rem, 4vh, 3rem);
        padding-bottom: 1rem;
    }
    .contact-section-label {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: clamp(1.5rem, 3vh, 2.5rem) 1rem;
        padding-bottom: 1rem;
    }
    .contact-section-label {
        margin-bottom: 1rem;
    }
    .contact-card-content {
        padding: 0.9rem 1rem;
        gap: 0.8rem;
    }
    .contact-card--email .contact-card-content {
        padding: 1rem 1.1rem;
    }
    .contact-card-label {
        font-size: 0.5rem;
    }
    .contact-card-value {
        font-size: 0.82rem;
    }
    .contact-card-icon {
        width: 36px;
        height: 36px;
    }
    .contact-card--email .contact-card-icon {
        width: 40px;
        height: 40px;
    }
    .contact-subtitle {
        font-size: 0.82rem;
        margin-bottom: 1rem;
    }
    .availability-text {
        font-size: 0.55rem;
    }
    .mega-line-main {
        font-size: clamp(1.6rem, 9vw, 2.5rem);
    }
    .mega-line-sub {
        font-size: clamp(0.7rem, 2.5vw, 1rem);
    }
    .contact-mega-title {
        margin-bottom: 0.8rem;
    }
    .contact-divider {
        margin-bottom: 0.8rem;
    }
    .contact-split {
        gap: 1.5rem;
    }
    .contact-right {
        gap: 0.6rem;
    }
    .contact-social-row {
        gap: 0.6rem;
    }
    .contact-location-badge {
        padding: 0.4rem 0;
        margin-top: 0.2rem;
    }
    .footer-credit {
        font-size: 0.5rem;
        letter-spacing: 0.15em;
    }
    .footer-year {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }
}

/* =============================
   ACTIVE NAV LINK
   ============================= */

.nav-link.active {
    color: #fff;
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.6;
}

/* =============================
   ADDITIONAL ENHANCEMENT OVERRIDES
   ============================= */

/* --- GSAP CDN Failure Fallback --- */
.no-gsap .hero-title .char,
.no-gsap .hero-title-last .char {
    transform: none !important;
    opacity: 1 !important;
}
.no-gsap .hero-subtitle,
.no-gsap .hero-role-badge,
.no-gsap .hero-expertise,
.no-gsap .exp-tag,
.no-gsap .hero-line {
    opacity: 1 !important;
    transform: none !important;
}
.no-gsap #about-section {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}
.no-gsap .about-heading,
.no-gsap .about-section-label,
.no-gsap .about-text-wrapper,
.no-gsap .about-stats,
.no-gsap .about-credentials {
    opacity: 1 !important;
    transform: none !important;
}
.no-gsap .skills-heading {
    opacity: 1 !important;
}
.no-gsap #skills-section {
    height: auto !important;
    overflow: visible !important;
}
.no-gsap .skills-wrapper {
    flex-direction: column !important;
    width: 100% !important;
}
.no-gsap .skill-panel {
    width: 100% !important;
    height: auto !important;
    min-height: 50vh !important;
}
.no-gsap .reveal-el,
.no-gsap .project-category,
.no-gsap .contact-card {
    opacity: 1 !important;
    transform: none !important;
}
.no-gsap .project-card {
    height: auto !important;
}
.no-gsap .project-content {
    flex-direction: column-reverse !important;
}

/* Env tool SVG filter fix */
.env-tool-header svg {
    opacity: 0.85;
    filter: none;
}

.env-tool-container:hover .env-tool-header svg {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

/* Skill panel subtle border */
.skill-panel {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}
