/* ================================================================
   MATHEW VARGHESE - PORTFOLIO
   Premium 3D Portfolio with Cyberpunk + Neon Aesthetic
   ================================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Vibrant neon accents on deep dark backgrounds */
    --bg-primary: #08080f;
    --bg-secondary: #0e0e1a;
    --bg-card: #131325;
    --bg-card-hover: #1a1a35;
    --accent-cyan: #00e5ff;
    --accent-magenta: #ff0055;
    --accent-lime: #39ff14;
    --accent-gold: #ffd000;
    --accent-purple: #a855f7;
    --text-primary: #eeeef0;
    --text-secondary: #a0a0c0;
    --text-muted: #666688;
    --border: #1e1e3a;
    --border-light: #2a2a50;

    /* Typography */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Transitions */
    --trans-fast: 150ms ease;
    --trans-base: 250ms ease;
    --trans-slow: 400ms ease;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Z-index */
    --z-shapes: 1;
    --z-content: 2;
    --z-nav: 100;
    --z-mobile-menu: 150;
    --z-cursor: 200;
    --z-progress: 250;
    --z-loader: 999;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

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

::selection {
    background: var(--accent-cyan);
    color: var(--bg-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: var(--radius-full);
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.loader-cube-wrapper {
    perspective: 200px;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
}

.loader-cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: loaderSpin 2.5s infinite linear;
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-cyan);
    background: rgba(0, 229, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    color: var(--accent-cyan);
    backface-visibility: visible;
}

.cube-face.front {
    transform: translateZ(40px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(40px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(40px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(40px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(40px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(40px);
}

@keyframes loaderSpin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.loader-status {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    min-height: 20px;
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: var(--z-cursor);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-outline {
    opacity: 1;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0, 229, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
}

.cursor-outline.cursor-hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent-magenta);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-cyan);
    z-index: var(--z-progress);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: width 0.05s linear;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    z-index: var(--z-nav);
    background: rgba(8, 8, 15, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    transition: background var(--trans-base), box-shadow var(--trans-base), border-color var(--trans-base);
}

.navbar.scrolled {
    background: rgba(8, 8, 15, 0.92);
    border-color: var(--border-light);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition: opacity var(--trans-fast);
    text-decoration: none;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.5));
    transition: filter var(--trans-base);
    flex-shrink: 0;
}

.nav-logo:hover .nav-logo-img {
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.85));
}

.nav-logo-name {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Legacy bracket classes kept for backward-compat */
.logo-bracket {
    color: var(--accent-cyan);
    font-weight: 300;
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--trans-fast);
    position: relative;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width var(--trans-base);
    border-radius: var(--radius-full);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

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

.nav-toggle {
    display: none;
    color: var(--text-primary);
    padding: var(--space-xs);
    cursor: pointer;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: var(--z-mobile-menu);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.mobile-menu-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color var(--trans-fast);
    cursor: pointer;
}

.mobile-link:hover {
    color: var(--accent-cyan);
}

.mobile-menu-social {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-menu-social a {
    color: var(--text-secondary);
    transition: color var(--trans-fast);
    cursor: pointer;
}

.mobile-menu-social a:hover {
    color: var(--accent-cyan);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--space-lg);
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-shapes);
    pointer-events: none;
}

/* 3D Floating Cube */
.shape-cube-wrap {
    position: absolute;
    top: 15%;
    right: 12%;
    perspective: 200px;
}

.mini-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: floatCube 8s ease-in-out infinite, spinCube 12s linear infinite;
}

.shape-cube-sm .mini-cube {
    width: 35px;
    height: 35px;
}

.mc-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1.5px solid var(--accent-cyan);
    background: rgba(0, 229, 255, 0.02);
}

.cube-magenta .mc-face {
    border-color: var(--accent-magenta);
    background: rgba(255, 0, 85, 0.02);
}

.mc-front {
    transform: translateZ(30px);
}

.mc-back {
    transform: rotateY(180deg) translateZ(30px);
}

.mc-left {
    transform: rotateY(-90deg) translateZ(30px);
}

.mc-right {
    transform: rotateY(90deg) translateZ(30px);
}

.mc-top {
    transform: rotateX(90deg) translateZ(30px);
}

.mc-bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

.shape-cube-sm .mc-front {
    transform: translateZ(17.5px);
}

.shape-cube-sm .mc-back {
    transform: rotateY(180deg) translateZ(17.5px);
}

.shape-cube-sm .mc-left {
    transform: rotateY(-90deg) translateZ(17.5px);
}

.shape-cube-sm .mc-right {
    transform: rotateY(90deg) translateZ(17.5px);
}

.shape-cube-sm .mc-top {
    transform: rotateX(90deg) translateZ(17.5px);
}

.shape-cube-sm .mc-bottom {
    transform: rotateX(-90deg) translateZ(17.5px);
}

.shape-cube-sm {
    top: auto;
    bottom: 25%;
    right: auto;
    left: 8%;
}

@keyframes floatCube {

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

    50% {
        transform: translateY(-20px);
    }
}

@keyframes spinCube {
    0% {
        transform: rotateX(0) rotateY(0);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.mini-cube {
    animation: floatCube 8s ease-in-out infinite;
}

.mini-cube {
    animation: spinCube 12s linear infinite;
}

/* We need to combine float + spin. Let's use wrapper for float */
.shape-cube-wrap {
    animation: floatCube 8s ease-in-out infinite;
}

.shape-cube-sm {
    animation: floatCube 6s ease-in-out infinite 1s;
}

/* 3D Ring */
.shape-ring {
    position: absolute;
    top: 30%;
    left: 15%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    animation: spinRing 10s linear infinite, floatRing 7s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes spinRing {
    0% {
        transform: rotateX(70deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(70deg) rotateZ(360deg);
    }
}

@keyframes floatRing {

    0%,
    100% {
        transform: rotateX(70deg) rotateZ(0deg) translateY(0);
    }

    50% {
        transform: rotateX(70deg) rotateZ(180deg) translateY(-15px);
    }
}

/* 3D Diamond */
.shape-diamond {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-purple);
    background: rgba(168, 85, 247, 0.03);
    transform: rotate(45deg);
    animation: floatDiamond 9s ease-in-out infinite, pulseDiamond 3s ease-in-out infinite;
}

@keyframes floatDiamond {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-25px);
    }
}

@keyframes pulseDiamond {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Glowing Dots */
.shape-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    animation: floatDot 6s ease-in-out infinite;
}

.dot-1 {
    top: 20%;
    left: 40%;
    animation-delay: 0s;
}

.dot-2 {
    top: 60%;
    right: 30%;
    background: var(--accent-magenta);
    box-shadow: 0 0 12px var(--accent-magenta);
    animation-delay: 2s;
}

.dot-3 {
    bottom: 15%;
    left: 30%;
    background: var(--accent-lime);
    box-shadow: 0 0 12px var(--accent-lime);
    animation-delay: 4s;
    width: 6px;
    height: 6px;
}

@keyframes floatDot {

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

    50% {
        transform: translateY(-15px) scale(1.3);
        opacity: 1;
    }
}

/* Cross Shape */
.shape-cross {
    position: absolute;
    top: 45%;
    right: 8%;
    width: 20px;
    height: 20px;
    opacity: 0.4;
    animation: floatCross 11s ease-in-out infinite;
}

.shape-cross::before,
.shape-cross::after {
    content: '';
    position: absolute;
    background: var(--accent-lime);
}

.shape-cross::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.shape-cross::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

@keyframes floatCross {

    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }

    50% {
        transform: rotate(90deg) translateY(-10px);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 900px;
    text-align: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--radius-full);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-tag svg {
    color: var(--accent-cyan);
}

.hero-title {
    margin-bottom: var(--space-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-name-line {
    display: block;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 9vw, 7.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-shadow:
        1px 1px 0 rgba(0, 229, 255, 0.15),
        2px 2px 0 rgba(0, 229, 255, 0.1),
        3px 3px 0 rgba(0, 229, 255, 0.05);
    position: relative;
}

.hero-name--accent {
    color: var(--accent-cyan);
    text-shadow:
        0 0 20px rgba(0, 229, 255, 0.3),
        1px 1px 0 rgba(0, 229, 255, 0.2),
        2px 2px 0 rgba(0, 229, 255, 0.1);
}

.hero-roles {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-role-dynamic {
    color: var(--accent-magenta);
    font-weight: 600;
}

.hero-cursor {
    color: var(--accent-cyan);
    animation: cursorBlink 1s step-end infinite;
    font-weight: 300;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: clamp(14px, 1.5vw, 17px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.1s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all var(--trans-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* Hero Social */
.hero-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.3s forwards;
}

.hero-social-link {
    color: var(--text-muted);
    padding: var(--space-sm);
    transition: color var(--trans-fast), transform var(--trans-fast);
    cursor: pointer;
}

.hero-social-link:hover {
    color: var(--accent-cyan);
    transform: translateY(-2px);
}

.hero-social-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
}

.hero-social-handle {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeInUp 0.8s ease 1.5s forwards;
}

.hero-scroll-indicator span {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-line-fill {
    width: 100%;
    height: 50%;
    background: var(--accent-cyan);
    animation: scrollLine 2s ease-in-out infinite;
}

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

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

/* ===== SECTIONS (GENERAL) ===== */
.section {
    padding: var(--space-4xl) var(--space-lg);
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.section-tag svg {
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.about-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.avatar-frame {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-3d-box {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: avatarSpin 20s linear infinite;
}

.avatar-face {
    position: absolute;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    backface-visibility: visible;
}

.av-front {
    transform: translateZ(60px);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.05);
}

.av-back {
    transform: rotateY(180deg) translateZ(60px);
    border: 2px solid var(--accent-magenta);
    background: rgba(255, 0, 85, 0.05);
}

.av-left {
    transform: rotateY(-90deg) translateZ(60px);
    border: 2px solid var(--accent-lime);
    background: rgba(57, 255, 20, 0.03);
}

.av-right {
    transform: rotateY(90deg) translateZ(60px);
    border: 2px solid var(--accent-gold);
    background: rgba(255, 208, 0, 0.03);
}

@keyframes avatarSpin {
    0% {
        transform: rotateY(0deg) rotateX(5deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(5deg);
    }
}

.avatar-ring {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 50%;
    animation: avatarRingPulse 4s ease-in-out infinite;
}

.avatar-ring-2 {
    width: 200px;
    height: 200px;
    border-color: rgba(255, 0, 85, 0.1);
    animation-delay: 2s;
}

@keyframes avatarRingPulse {

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

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.avatar-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.about-content {}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.tag {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid;
}

.tag-cyan {
    color: var(--accent-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

.tag-magenta {
    color: var(--accent-magenta);
    border-color: rgba(255, 0, 85, 0.3);
}

.tag-lime {
    color: var(--accent-lime);
    border-color: rgba(57, 255, 20, 0.3);
}

.tag-gold {
    color: var(--accent-gold);
    border-color: rgba(255, 208, 0, 0.3);
}

.tag-purple {
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.3);
}

/* About Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--trans-base), transform var(--trans-base);
    cursor: default;
}

.stat-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 400;
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
    letter-spacing: 0.03em;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.skill-card {
    perspective: 800px;
    height: 260px;
    cursor: pointer;
}

.skill-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.skill-card:hover .skill-card-inner {
    transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.skill-card-front {
    background: var(--bg-card);
    transition: border-color var(--trans-base);
}

.skill-card[data-color="cyan"] .skill-card-front:hover,
.skill-card[data-color="cyan"] .skill-card-front {
    border-color: var(--border);
}

.skill-card[data-color="cyan"]:hover .skill-card-front {
    border-color: var(--accent-cyan);
}

.skill-card[data-color="cyan"] .skill-icon {
    color: var(--accent-cyan);
}

.skill-card[data-color="cyan"] .skill-card-back {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.06);
}

.skill-card[data-color="lime"] .skill-icon {
    color: var(--accent-lime);
}

.skill-card[data-color="lime"] .skill-card-back {
    border-color: var(--accent-lime);
    background: rgba(57, 255, 20, 0.06);
}

.skill-card[data-color="lime"]:hover .skill-card-front {
    border-color: var(--accent-lime);
}

.skill-card[data-color="magenta"] .skill-icon {
    color: var(--accent-magenta);
}

.skill-card[data-color="magenta"] .skill-card-back {
    border-color: var(--accent-magenta);
    background: rgba(255, 0, 85, 0.06);
}

.skill-card[data-color="magenta"]:hover .skill-card-front {
    border-color: var(--accent-magenta);
}

.skill-card[data-color="gold"] .skill-icon {
    color: var(--accent-gold);
}

.skill-card[data-color="gold"] .skill-card-back {
    border-color: var(--accent-gold);
    background: rgba(255, 208, 0, 0.06);
}

.skill-card[data-color="gold"]:hover .skill-card-front {
    border-color: var(--accent-gold);
}

.skill-card[data-color="purple"] .skill-icon {
    color: var(--accent-purple);
}

.skill-card[data-color="purple"] .skill-card-back {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.06);
}

.skill-card[data-color="purple"]:hover .skill-card-front {
    border-color: var(--accent-purple);
}

.skill-card-back {
    transform: rotateY(180deg);
}

.skill-icon {
    margin-bottom: var(--space-md);
}

.skill-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.skill-hint {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.skill-card-back h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.skill-card-back p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.skill-techs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
}

.skill-techs span {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--trans-slow), border-color var(--trans-base), box-shadow var(--trans-base);
    cursor: pointer;
    transform-style: preserve-3d;
}

.project-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.project-visual {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.project-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid var(--border);
}

.project-3d-icon {
    color: var(--project-color, var(--accent-cyan));
    opacity: 0.6;
    transition: opacity var(--trans-base), transform var(--trans-base);
}

.project-card:hover .project-3d-icon {
    opacity: 1;
    transform: scale(1.1) rotateY(10deg);
}

.project-info {
    padding: var(--space-lg);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.project-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.project-tags span {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.project-links {
    display: flex;
    gap: var(--space-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--trans-fast);
    cursor: pointer;
}

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

/* ===== THE ZONE SECTION ===== */
.zone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.zone-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Terminal / Hacker Card */
.hacker-card {
    background: var(--bg-card);
}

.terminal-window {
    border-bottom: 1px solid var(--border);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

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

.tdot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tdot-red {
    background: #ff5f57;
}

.tdot-yellow {
    background: #febc2e;
}

.tdot-green {
    background: #28c840;
}

.terminal-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: var(--space-lg);
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
    min-height: 200px;
}

.terminal-line {
    margin-bottom: 2px;
}

.t-prompt {
    color: var(--accent-lime);
}

.t-cmd {
    color: var(--text-primary);
}

.t-output {
    color: var(--text-secondary);
    padding-left: 0;
}

.t-highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.t-typing {
    color: var(--text-primary);
}

.terminal-cursor-blink {
    color: var(--accent-lime);
    animation: cursorBlink 1s step-end infinite;
}

.hacker-info {
    padding: var(--space-lg);
}

.hacker-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: var(--radius-full);
    color: var(--accent-lime);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.hacker-badge svg {
    width: 16px;
    height: 16px;
}

.hacker-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Gaming Card */
.gamer-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.gamer-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.gamer-icon {
    color: var(--accent-gold);
}

.gamer-header h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
}

.gamer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.gamer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.gamer-stat {
    padding: var(--space-md);
    background: rgba(255, 208, 0, 0.04);
    border: 1px solid rgba(255, 208, 0, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
}

.gs-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
}

.gs-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.03em;
}

.gamer-games {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.game-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border: 1px solid rgba(255, 208, 0, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-md);
}

.contact-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color var(--trans-base), transform var(--trans-fast);
    cursor: pointer;
}

.contact-link-item:hover {
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.cli-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 229, 255, 0.06);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.cli-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cli-value {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-group {}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 14px var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color var(--trans-base), box-shadow var(--trans-base);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

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

/* ===== FOOTER ===== */
.footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.footer-marquee {
    padding: var(--space-2xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow: hidden;
}

.marquee-row {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    white-space: nowrap;
}

.marquee-left {
    animation: marqueeLeft 35s linear infinite;
}

.marquee-right {
    animation: marqueeRight 30s linear infinite;
}

.marquee-slow {
    animation-duration: 50s;
}

@keyframes marqueeLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.08;
    user-select: none;
    white-space: nowrap;
}

.mt-cyan {
    color: var(--accent-cyan);
}

.mt-magenta {
    color: var(--accent-magenta);
}

.mt-lime {
    color: var(--accent-lime);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: var(--space-xl) var(--space-lg);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-credit {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-credit strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: opacity var(--trans-base), transform var(--trans-base), color var(--trans-fast), border-color var(--trans-fast);
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    cursor: pointer;
    z-index: 50;
}

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

.back-to-top:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

/* ===== GLOBAL KEYFRAMES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== BROTHER PORTFOLIO - AURA CARD ===== */
.brother-aura-section {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg) var(--space-2xl);
    background: transparent;
}

.brother-aura-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 580px;
    width: 100%;
    padding: 20px 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    text-decoration: none;
    overflow: visible;
    z-index: 1;
}

.brother-aura-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 229, 255, 0.25);
    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.08),
        0 0 60px rgba(168, 85, 247, 0.06),
        0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Aura Rings */
.aura-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.aura-ring-1 {
    width: 200%;
    height: 300%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
    animation: auraPulse1 4s ease-in-out infinite;
}

.aura-ring-2 {
    width: 180%;
    height: 260%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(168, 85, 247, 0.05) 0%, transparent 65%);
    animation: auraPulse2 5s ease-in-out infinite 1s;
}

.aura-ring-3 {
    width: 160%;
    height: 220%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(255, 0, 85, 0.04) 0%, transparent 60%);
    animation: auraPulse3 6s ease-in-out infinite 2s;
}

@keyframes auraPulse1 {

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

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes auraPulse2 {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes auraPulse3 {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Card Content */
.brother-aura-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    z-index: 2;
}

.brother-aura-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-purple);
    border: 1.5px solid rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
    letter-spacing: 0.02em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.brother-aura-card:hover .brother-aura-avatar {
    border-color: rgba(168, 85, 247, 0.7);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.2);
}

.brother-aura-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.brother-aura-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brother-aura-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.brother-aura-card:hover .brother-aura-name {
    color: var(--accent-purple);
}

.brother-aura-role {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Social Icons */
.brother-aura-socials {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.brother-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.brother-social-icon:hover {
    color: var(--accent-purple);
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-2px);
}

.brother-aura-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.brother-aura-card:hover .brother-aura-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-cyan);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content {
        text-align: left;
    }

    .about-tags {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .navbar {
        top: var(--space-sm);
        left: var(--space-sm);
        right: var(--space-sm);
    }

    .hero {
        padding: var(--space-3xl) var(--space-md);
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .section {
        padding: var(--space-3xl) var(--space-md);
    }

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

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

    .skill-card {
        height: 220px;
    }

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

    .footer-container {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

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

    .contact-grid {
        gap: var(--space-xl);
    }

    /* Hide custom cursor on touch devices */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    /* Reduce floating shapes on mobile */
    .shape-cube-wrap:first-child {
        top: 8%;
        right: 5%;
    }

    .shape-ring {
        width: 50px;
        height: 50px;
        left: 8%;
    }

    .shape-diamond,
    .shape-dot.dot-2,
    .shape-cross {
        display: none;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .marquee-text {
        font-size: clamp(24px, 6vw, 40px);
    }

    /* Brother aura card mobile */
    .brother-aura-card {
        padding: 16px 20px;
    }

    .brother-aura-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .brother-aura-avatar {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .brother-aura-arrow {
        display: none;
    }

    .brother-aura-socials {
        gap: 4px;
    }

    .brother-social-icon {
        width: 28px;
        height: 28px;
    }

    .brother-social-icon svg {
        width: 13px;
        height: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .stat-card {
        padding: var(--space-md) var(--space-sm);
    }

    .stat-number {
        font-size: 28px;
    }

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

    .hero-social {
        flex-wrap: wrap;
    }

    /* Brother aura card small mobile */
    .brother-aura-content {
        flex-direction: column;
        text-align: center;
    }

    .brother-aura-info {
        align-items: center;
    }

    .brother-aura-socials {
        justify-content: center;
    }

    .brother-aura-section {
        padding: var(--space-lg) var(--space-md) var(--space-xl);
    }
}

/* ===== THE VARGHESE BROTHERS ===== */
.brothers-section {
    display: flex;
    justify-content: center;
    padding: var(--space-4xl) var(--space-md);
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.05) 0%, transparent 60%);
}

.brothers-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(0, 229, 255, 0.03) 40%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.brothers-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brothers-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.brothers-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-magenta);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.brothers-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.brothers-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.brothers-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 800px;
}

.bro-card {
    flex: 1;
    position: relative;
    background: rgba(19, 19, 37, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    text-decoration: none;
}

.bro-card--self {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-right: calc(var(--space-xl) + 20px);
}

.bro-card--brother {
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: calc(var(--space-xl) + 20px);
    cursor: pointer;
}

.bro-card--brother:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.1);
    transform: translateY(-4px) scale(1.02);
    z-index: 2;
    border-left: 1px solid rgba(168, 85, 247, 0.4);
}

.bro-card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
    opacity: 0.5;
}

.bro-card-shine--purple {
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), transparent);
    opacity: 0.8;
}

.bro-card-border-anim {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(45deg, transparent 40%, rgba(168, 85, 247, 0.3) 50%, transparent 60%);
    -webkit-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.4s ease;
}

.bro-card--brother:hover .bro-card-border-anim {
    opacity: 1;
    animation: broBorderSpin 3s linear infinite;
}

@keyframes broBorderSpin {
    100% { background-position: 200% center; }
}

.bro-card-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
}

.bro-card-accent--purple {
    right: auto;
    left: 0;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

.bro-card-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bro-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    position: relative;
}

.bro-avatar--cyan {
    color: var(--accent-cyan);
    border: 2px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.1);
}

.bro-avatar--purple {
    color: var(--accent-purple);
    border: 2px solid rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bro-card--brother:hover .bro-avatar--purple {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.bro-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
    100% { transform: rotate(360deg); }
}

.bro-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bro-you-tag, .bro-visit-tag {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bro-you-tag {
    color: var(--accent-cyan);
}

.bro-visit-tag {
    color: var(--accent-purple);
    transition: color 0.3s ease, transform 0.3s ease;
}

.bro-card--brother:hover .bro-visit-tag {
    color: #fff;
    transform: translateX(2px);
}

.bro-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.bro-card--brother:hover .bro-name {
    color: var(--accent-purple);
}

.bro-role {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.bro-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.bro-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}

.bro-social-pill:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.4);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.bro-connector {
    position: relative;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    margin: 0 -20px;
}

.bro-connector-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.bro-connector-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bro-connector-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-purple);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
    animation: connectPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes connectPulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

@media (max-width: 768px) {
    .brothers-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .bro-card {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        padding: var(--space-xl);
    }
    .bro-card--self, .bro-card--brother {
        border: 1px solid var(--border);
        border-radius: var(--radius-xl);
        padding: var(--space-xl);
    }
    .bro-connector {
        width: 1px;
        height: 40px;
        flex-direction: column;
        margin: -10px 0;
    }
    .bro-connector-line {
        width: 1px;
        height: 100%;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-tag,
    .hero-title,
    .hero-roles,
    .hero-desc,
    .hero-ctas,
    .hero-social,
    .hero-scroll-indicator {
        opacity: 1;
        animation: none;
    }

    .marquee-track {
        animation: none !important;
    }
}

/* ===== AI CHATBOT ===== */
.chatbot-wrapper {
    position: fixed;
    bottom: 24px;
    right: 80px; /* offset from back-to-top */
    z-index: 999;
}

@media (max-width: 768px) {
    .chatbot-wrapper {
        right: 24px;
        bottom: 80px;
    }
}

.chat-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), #0088ff);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.2) inset;
}

.chat-toggle svg {
    width: 24px;
    height: 24px;
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: var(--accent-magenta);
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    display: none;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 480px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.1) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-window.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 480px) {
    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform-origin: center;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }
    .chat-header {
        padding-top: max(16px, env(safe-area-inset-top, 16px)) !important;
    }
    .chat-close {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
        width: 36px;
        height: 36px;
        border-radius: 50% !important;
    }
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.chat-status {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-lime);
    box-shadow: 0 0 8px var(--accent-lime);
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bot-message {
    align-self: flex-start;
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.chat-avatar svg {
    width: 14px;
    height: 14px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.user-message .chat-bubble {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}

.bot-message .chat-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom-left-radius: 4px;
}

.chat-bubble strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.chat-bubble pre {
    background: rgba(0,0,0,0.5);
    padding: 8px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
    font-family: monospace;
    font-size: 12px;
}

.chat-bubble code {
    background: rgba(0,0,0,0.5);
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: var(--accent-lime);
}

.system-message {
    align-self: center;
    font-size: 12px;
    color: var(--accent-magenta);
    background: rgba(255, 0, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 0, 255, 0.1);
}

.chat-input-area {
    padding: 16px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.chat-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.chat-send {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.chat-send:hover {
    background: #00bfff;
    transform: scale(1.05);
}

.chat-send svg {
    width: 18px;
    height: 18px;
    margin-left: -2px; /* optical alignment */
}

/* Typing Indicator */
.typing-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 16px !important;
}

.typing-bubble .dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.cursor-blink {
    display: inline-block;
    width: 2px;
    margin-left: 2px;
    color: var(--accent-cyan);
    animation: cursorBlink 1s step-end infinite;
}