/* ===== STYLE B: CYBERPUNK EMERALD HUD & NEO-TOKYO THEME (LOCKED) ===== */
:root {
    --bg-color: #060911; /* Deep Obsidian Carbon Dark */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #10b981; /* Neon Emerald Green */
    --accent-hover: #34d399;
    --secondary-color: #06b6d4; /* Cyber Cyan */
    --accent-amber: #f59e0b; /* Gold Amber */
    --accent-gradient: linear-gradient(135deg, #10b981, #06b6d4);
    --glass-bg: rgba(9, 14, 26, 0.75);
    --glass-border: rgba(16, 185, 129, 0.2);
    
    --html-color: #e34f26;
    --css-color: #1572b6;
    --js-color: #f7df1e;
    --python-color: #ffd43b;
    --react-color: #61dafb;
    --node-color: #68a063;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg-color);
    /* Developer grid pattern overlay */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* 3D Three.js WebGL Interactive Background Canvas */
#portfolio-3d-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.85;
}

/* Interactive Cursor Glow Spotlight (Style B Emerald HUD) */
#cursor-spotlight {
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
    z-index: 1;
    mix-blend-mode: screen;
}

/* 3D Perspective Card Tilt Transformations (3D Web Experience Skill) */
.bento-card, .project-card, .skill-card, .glass-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.22s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.bento-card:hover, .project-card:hover, .skill-card:hover {
    border-color: rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 24px 50px -12px rgba(124, 58, 237, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25) !important;
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: 
        radial-gradient(at 0% 0%, rgba(124, 58, 237, 0.15) 0px, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.08) 0px, transparent 50%), 
        radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.06) 0px, transparent 50%), 
        #050508;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 3D Perspective Cyber Grid Floor */
.cyber-grid-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55vh;
    background-image: 
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px), 
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px;
    background-position: center bottom;
    transform: perspective(600px) rotateX(75deg);
    transform-origin: bottom center;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    z-index: -1;
    pointer-events: none;
}

/* Floating Tech Icons Group */
.floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    font-size: 3.5rem;
    opacity: 0.08;
    filter: blur(1px) drop-shadow(0 0 15px currentColor);
    animation: floatIconOscillate 18s infinite ease-in-out alternate;
    transition: transform 0.25s ease-out;
}

.icon-react { top: 15%; left: 8%; color: var(--react-color); animation-delay: 0s; }
.icon-python { top: 32%; right: 10%; color: var(--python-color); animation-delay: -3s; }
.icon-node { top: 68%; left: 12%; color: var(--node-color); animation-delay: -6s; }
.icon-js { top: 78%; right: 18%; color: var(--js-color); animation-delay: -9s; }
.icon-db { top: 22%; right: 28%; color: var(--secondary-color); animation-delay: -12s; }
.icon-html { top: 48%; left: 6%; color: var(--html-color); animation-delay: -4s; }
.icon-css { top: 48%; right: 6%; color: var(--css-color); animation-delay: -8s; }

@keyframes floatIconOscillate {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(8deg);
    }
    100% {
        transform: translateY(20px) rotate(-8deg);
    }
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.45;
    animation: float 22s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: rgba(124, 58, 237, 0.18);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.15);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(124, 58, 237, 0.08);
    top: 40%;
    left: 50%;
    animation-delay: -10s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: rgba(6, 182, 212, 0.08);
    bottom: 35%;
    left: -120px;
    animation-delay: -15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.08); }
    100% { transform: translate(-30px, 70px) scale(0.92); }
}

/* ===== GLASSMORPHISM & 3D TILT UTILITIES ===== */
.glass-card {
    background: rgba(8, 12, 24, 0.58);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
}

.tilt-card {
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale3d(1, 1, 1);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.3s ease;
    cursor: pointer;
}

.tilt-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55), inset 0 1px 2px rgba(255, 255, 255, 0.12), 0 0 25px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
}

.tilt-depth-1 {
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

.tilt-depth-2 {
    transform: translateZ(40px);
    transform-style: preserve-3d;
}

.tilt-depth-3 {
    transform: translateZ(60px);
    transform-style: preserve-3d;
}

/* Card Radial Glow Effect */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: radial-gradient(400px circle at var(--mx, 0px) var(--my, 0px), rgba(124, 58, 237, 0.1), transparent 80%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: padding 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
    border-bottom: 1px solid transparent;
}

nav.nav-scrolled {
    padding: 0.9rem 0;
    background-color: rgba(5, 5, 8, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.btn-nav {
    background: var(--accent-gradient);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.btn-nav:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hamburger Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 110;
}

.menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #22d3ee);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.35);
}

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

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

/* ===== LAYOUT WRAPPERS ===== */
section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title h2 {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    align-items: center;
}

.hero-content {
    max-width: 820px;
    text-align: center;
    padding: 4.5rem 3rem;
}

.greeting {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.name {
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.typing-text {
    color: var(--text-primary);
    font-weight: 700;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-color);
}

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

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.8rem;
    line-height: 1.6;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
}

/* ===== BENTO GRID (ABOUT SECTION) ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 1.5rem;
    margin-top: 1rem;
}

.bento-card {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bento-body {
    position: relative;
    z-index: 1;
}

.bento-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--accent-hover);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

/* Bento Card Span Allocations */
.bento-story {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-terminal {
    grid-column: span 1;
    grid-row: span 2;
    padding: 0; /* Let terminal mockup handle spacing */
}

.bento-education {
    grid-column: span 1;
    grid-row: span 1;
    align-items: flex-start;
}

.bento-status {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-timing {
    grid-column: span 1;
    grid-row: span 1;
}

/* Bento Card Elements */
.bento-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bento-card p:last-child {
    margin-bottom: 0;
}

.bento-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.bento-education .bento-icon {
    color: var(--accent-color);
}

.school-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem !important;
    margin-bottom: 0.2rem !important;
}

.school-degree {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0.8rem !important;
}

.bento-subtext {
    font-size: 0.8rem;
    color: var(--accent-hover);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status Card Indicator */
.status-pulse-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.status-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* Terminal Mockup Styles inside Bento */
.bento-terminal .terminal-mockup {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.terminal-mockup {
    background: rgba(4, 4, 6, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.terminal-header {
    background: rgba(10, 10, 15, 0.9);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.terminal-buttons span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-expand { background-color: #27c93f; }

.terminal-title {
    color: var(--text-secondary);
    font-size: 0.8rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

.terminal-body {
    padding: 1.5rem;
    overflow-x: auto;
    text-align: left;
}

.terminal-body code {
    font-family: 'Fira Code', monospace, Consolas, Courier;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.terminal-body .keyword { color: #f43f5e; font-weight: 600; }
.terminal-body .class-name { color: var(--secondary-color); font-weight: 600; }
.terminal-body .method { color: #818cf8; }
.terminal-body .variable { color: #c084fc; }
.terminal-body .attribute { color: #fbbf24; }
.terminal-body .string { color: #34d399; }
.terminal-body .comment { color: #64748b; font-style: italic; }

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.skill-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) translateZ(10px);
}

.html-icon { color: var(--html-color); }
.css-icon { color: var(--css-color); }
.js-icon { color: var(--js-color); }
.python-icon { color: var(--python-color); }
.design-icon { color: var(--secondary-color); }
.uiux-icon { color: #ec4899; }
.react-icon { color: var(--react-color); }
.node-icon { color: var(--node-color); }

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding-bottom: 6rem;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2.2rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

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

.project-icon {
    font-size: 1.8rem;
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.08);
    padding: 0.7rem;
    border-radius: 14px;
    border: 1px solid rgba(6, 182, 212, 0.15);
}

.project-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

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

.tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-links .btn {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.project-badge {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
}

/* ===== CONTACT SECTION ===== */
.contact {
    min-height: unset;
    padding-bottom: 6rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 1rem;
}

.contact-card {
    padding: 3rem 2.8rem;
    position: relative;
    overflow: hidden;
}

.contact-body {
    position: relative;
    z-index: 1;
}

.contact-card h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    line-height: 1.6;
}

/* Glassmorphic Form Fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

/* Float Label Animation */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    padding: 0 0.4rem;
    background: var(--bg-color);
    color: var(--secondary-color);
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.02);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.btn-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translate(3px, -3px);
}

/* Form Feedback Panel */
.form-feedback {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feedback-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(6, 182, 212, 0.1);
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.success-icon {
    display: none;
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.3));
}

.feedback-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.feedback-message {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-back-form {
    display: none;
}

/* Sidebar Contact Styling */
.contact-sidebar-card {
    padding: 3rem 2.8rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sidebar-body {
    position: relative;
    z-index: 1;
}

.contact-sidebar-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.sidebar-contact-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    padding: 1.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.sidebar-contact-link i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.05);
    padding: 0.8rem;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.link-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.link-details span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.link-details strong {
    color: var(--text-primary);
    font-size: 1rem;
    word-break: break-all;
}

.sidebar-contact-link:hover {
    background: rgba(124, 58, 237, 0.03);
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateX(5px);
}

.sidebar-contact-link:hover i {
    color: var(--accent-hover);
    background: rgba(124, 58, 237, 0.08);
}

.social-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-story {
        grid-column: span 2;
    }
    .bento-terminal {
        grid-column: span 2;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 5, 8, 0.97);
        -webkit-backdrop-filter: blur(25px);
        backdrop-filter: blur(25px);
        border-left: 1px solid rgba(255, 255, 255, 0.06);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), visibility 0.4s;
        z-index: 99;
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .btn-nav {
        width: 80%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .name { font-size: 2.8rem; }
    .title { font-size: 1.5rem; }
    .hero-buttons { flex-direction: column; }
    section { padding: 6rem 1rem 3rem; }
    .glass-card { padding: 1.8rem; }
    .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, var(--accent-color), #06b6d4, #10b981);
    width: 0%;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    transition: width 0.1s ease-out;
}

/* ===== NAVIGATION HIGHLIGHT ===== */
.nav-links a.active {
    color: var(--text-primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-color);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}
