/* ===================================
   OPTIMIZED PORTFOLIO STYLESHEET
   Glen Dhale L. Caparros
   =================================== */

/* --- 1. CSS Variables & Theme Engine --- */
:root {
    --bg-color: #050810;
    --bg-grid: rgba(59, 130, 246, 0.05);
    --text-main: #f9fafb;
    --text-muted: #94a3b8;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.5);
    --accent: #ec4899;
    
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --lamp-cord: #2d3748;
    --bulb-glass: #fff9e6;
    --bulb-on: #fef08a;
    --laptop-body: #334155;
    --desk-color: #8b4513;
    
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --nav-height: 70px;
}

body.light-mode {
    --bg-color: #f8fafc;
    --bg-grid: rgba(15, 23, 42, 0.04);
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --laptop-body: #94a3b8;
}

/* --- 2. Base Reset --- */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px;
}

body { 
    font-family: var(--font-body); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    overflow-x: hidden; 
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;
}

/* --- 3. Grid Background --- */
.fixed-grid {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -2;
    background-image: 
        linear-gradient(var(--bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* --- 4. 3D Shapes Container --- */
.shapes-container {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: -1; 
    pointer-events: none; 
    overflow: hidden;
}

.shape { 
    position: absolute; 
    transform-style: preserve-3d; 
    opacity: 0.5; 
}

/* Rotating Solid Cube */
.shape-cube-rotating {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    animation: rotateCube 20s infinite linear;
    perspective: 1000px;
}

.cube-face {
    position: absolute;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0.8;
}

.cube-face.front  { transform: rotateY(0deg) translateZ(60px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(60px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(60px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(60px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(60px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Wire Cube */
.shape-cube-wire { 
    width: 80px; 
    height: 80px; 
    top: 15%; 
    right: 8%; 
    animation: floatRotate 25s infinite linear; 
}

.face { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    border: 1px solid var(--primary); 
    background: rgba(139, 92, 246, 0.05); 
}

.front  { transform: translateZ(40px); }
.back   { transform: rotateY(180deg) translateZ(40px); }
.right  { transform: rotateY(90deg) translateZ(40px); }
.left   { transform: rotateY(-90deg) translateZ(40px); }
.top    { transform: rotateX(90deg) translateZ(40px); }
.bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes floatRotate { 
    0% { transform: rotateX(0) rotateY(0); } 
    100% { transform: rotateX(360deg) rotateY(360deg); } 
}

/* Sphere */
.shape-sphere { 
    width: 60px; 
    height: 60px; 
    top: 60%; 
    left: 5%; 
    border-radius: 50%; 
    background: radial-gradient(circle at 30% 30%, var(--accent), rgba(236, 72, 153, 0.3)); 
    animation: float 6s infinite ease-in-out;
    box-shadow: 0 0 30px var(--accent);
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-20px); } 
}

/* Pyramid */
.shape-pyramid { 
    top: 40%; 
    left: 15%; 
    animation: spinPyramid 15s infinite linear;
}

.side { 
    position: absolute; 
    border-left: 20px solid transparent; 
    border-right: 20px solid transparent; 
    border-bottom: 60px solid rgba(236, 72, 153, 0.3); 
    transform-origin: 50% 100%; 
}

.one   { transform: rotateY(0deg) translateZ(10px) rotateX(30deg); }
.two   { transform: rotateY(90deg) translateZ(10px) rotateX(30deg); }
.three { transform: rotateY(180deg) translateZ(10px) rotateX(30deg); }
.four  { transform: rotateY(-90deg) translateZ(10px) rotateX(30deg); }

@keyframes spinPyramid {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* Torus Shape */
.shape-torus {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 15%;
    border: 12px solid rgba(139, 92, 246, 0.4);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* --- 5. NAVIGATION (VERTICAL ON MOBILE) --- */
.header { 
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000; 
    background: rgba(5, 8, 16, 0.95); 
    backdrop-filter: blur(12px); 
    border-bottom: 1px solid var(--glass-border); 
    height: var(--nav-height);
    display: flex; 
    align-items: center;
}

body.light-mode .header { 
    background: rgba(255, 255, 255, 0.95); 
}

.nav-container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 1.5rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 1.75rem; 
    font-weight: 800; 
    font-family: var(--font-head); 
    text-decoration: none; 
    color: var(--text-main);
    z-index: 1002;
}

.logo span.dot { 
    color: var(--primary); 
}

/* Desktop Navigation */
.nav-menu { 
    display: flex; 
    align-items: center; 
}

.nav-list { 
    display: flex; 
    gap: 2.5rem; 
    list-style: none; 
}

.nav-link { 
    color: var(--text-main); 
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none; 
    transition: color 0.3s ease; 
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover { 
    color: var(--primary); 
}

.nav-link::after {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 2px; 
    bottom: 0; 
    left: 0;
    background: var(--primary); 
    transition: width 0.3s;
}

.nav-link:hover::after { 
    width: 100%; 
}

.header-actions { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
}

#theme-toggle { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--text-main); 
    transition: transform 0.3s;
    z-index: 1002;
    padding: 0.5rem;
}

#theme-toggle:hover { 
    transform: rotate(15deg); 
    color: var(--primary); 
}

/* Hamburger Menu */
.hamburger { 
    display: none; 
    cursor: pointer; 
    z-index: 1002;
    flex-direction: column;
    gap: 5px;
}

.bar { 
    width: 28px; 
    height: 3px; 
    background: var(--text-main); 
    transition: 0.3s; 
    border-radius: 3px; 
}

/* --- 6. HERO SECTION --- */
.hero { 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    padding-top: var(--nav-height);
    overflow: hidden; 
}

.hero-content { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    max-width: 800px; 
    padding: 0 1.5rem;
}

.hero-title { 
    font-family: var(--font-head); 
    font-weight: 800; 
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1; 
    margin-bottom: 1rem;
    color: var(--text-main);
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.hero-subtitle { 
    color: var(--primary); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 3px; 
    margin-bottom: 1rem; 
    font-size: 0.9rem; 
}

.hero-description { 
    color: var(--text-muted); 
    margin-bottom: 2.5rem; 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero-btns { 
    display: flex; 
    gap: 1rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.btn { 
    padding: 1rem 2.5rem; 
    border-radius: 50px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: all 0.3s; 
    position: relative; 
    z-index: 20;
    display: inline-block;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--primary), var(--accent)); 
    color: white; 
    box-shadow: 0 10px 20px -10px var(--primary); 
    border: none;
}

.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px -10px var(--primary); 
}

.btn-secondary { 
    background: transparent; 
    border: 2px solid var(--glass-border); 
    color: var(--text-main); 
    backdrop-filter: blur(5px); 
}

.btn-secondary:hover { 
    border-color: var(--primary); 
    color: var(--primary); 
    background: rgba(139, 92, 246, 0.1); 
}

/* --- 7. REALISTIC HANGING LIGHT BULB --- */
.hanging-light {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ceiling-mount {
    width: 30px;
    height: 8px;
    background: var(--lamp-cord);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wire {
    width: 2px;
    height: clamp(120px, 15vh, 180px);
    background: linear-gradient(to bottom, var(--lamp-cord), #4a5568);
    animation: wireSwing 3s ease-in-out infinite;
}

@keyframes wireSwing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2deg); }
}

.socket {
    width: 32px;
    height: 45px;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    border-radius: 5px 5px 15px 15px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.socket-thread {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 20px;
    background: repeating-linear-gradient(
        to bottom,
        #2d3748 0px,
        #2d3748 2px,
        #1a202c 2px,
        #1a202c 4px
    );
    border-radius: 0 0 10px 10px;
}

.bulb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -5px;
}

.bulb-glass {
    width: 50px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, var(--bulb-glass), rgba(254, 240, 138, 0.8));
    border-radius: 50% 50% 45% 45%;
    position: relative;
    box-shadow: 
        0 0 20px var(--bulb-on),
        inset 0 -10px 20px rgba(254, 240, 138, 0.5);
    animation: bulbGlow 2s ease-in-out infinite;
}

@keyframes bulbGlow {
    0%, 100% { 
        box-shadow: 
            0 0 30px var(--bulb-on),
            inset 0 -10px 20px rgba(254, 240, 138, 0.5);
    }
    50% { 
        box-shadow: 
            0 0 50px var(--bulb-on),
            inset 0 -10px 30px rgba(254, 240, 138, 0.7);
    }
}

.filament {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, #ff6b35, #ffa500);
    border-radius: 2px;
    box-shadow: 0 0 10px #ffa500;
    animation: filamentFlicker 0.15s infinite alternate;
}

@keyframes filamentFlicker {
    0% { opacity: 1; }
    100% { opacity: 0.95; }
}

.bulb-base {
    width: 28px;
    height: 20px;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    border-radius: 0 0 8px 8px;
    margin-top: -2px;
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.light-glow {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.4), transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

.light-beam {
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(400px, 50vw, 700px);
    height: 800px;
    background: linear-gradient(
        to bottom, 
        rgba(254, 240, 138, 0.15) 0%, 
        rgba(254, 240, 138, 0.08) 30%,
        transparent 70%
    );
    clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
    pointer-events: none;
    animation: beamShimmer 3s ease-in-out infinite;
}

@keyframes beamShimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

/* --- 8. DESK SCENE WITH BOOKS & LAPTOP --- */
.desk-scene {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.desk {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2rem;
}

.desk-surface {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: linear-gradient(to bottom, #5d4e37, #4a3f2f);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

/* Book Stack */
.book-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 15px;
    transform: perspective(800px) rotateY(-15deg);
}

.book {
    position: relative;
    width: 80px;
    height: 30px;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-1 {
    background: linear-gradient(135deg, #e34c26, #f06529);
    transform: translateY(2px);
}

.book-2 {
    background: linear-gradient(135deg, #264de4, #2965f1);
}

.book-3 {
    background: linear-gradient(135deg, #f7df1e, #f0db4f);
    transform: translateY(-2px);
}

.book-spine {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.book-3 .book-spine {
    color: #000;
}

/* Laptop */
.laptop {
    position: relative;
    width: 280px;
    height: 180px;
    margin-bottom: 15px;
    transform: perspective(1000px) rotateX(-5deg);
}

.screen {
    width: 240px;
    height: 150px;
    background: #0f172a;
    border: 6px solid var(--laptop-body);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.display {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.base {
    width: 280px;
    height: 12px;
    background: linear-gradient(to bottom, var(--laptop-body), #1e293b);
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* UI Mockup inside Laptop */
.ui-mockup {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.7;
}

.ui-header {
    height: 12px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 6px;
    width: 40%;
}

.ui-body {
    display: flex;
    gap: 8px;
    height: 100px;
}

.ui-sidebar {
    width: 25%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.ui-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

/* --- 9. ABOUT SECTION --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Profile Picture - FIXED */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card-art {
    width: 320px;
    height: 320px;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 0 40px var(--primary-glow);
    position: relative;
}

.profile-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-color);
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.glass-panel, .glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* --- 10. SKILLS SECTION --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tags span {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.skill-tags span:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

/* --- 11. PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.card-visual {
    height: 200px;
    background: #1e1b4b;
}

.visual-1 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.visual-2 { background: linear-gradient(135deg, #ec4899, #be185d); }
.visual-3 { background: linear-gradient(135deg, #10b981, #059669); }

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tags span {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.link-arrow {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.link-arrow:hover {
    color: var(--accent);
}

.link-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- 12. JOURNEY SECTION --- */
.journey-path {
    position: relative;
    padding: 2rem 0;
}

.step {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step.right .step-card {
    grid-column: 3;
}

.step-marker {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-card {
    grid-column: 1;
}

.step-year {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.step-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* --- 13. CONTACT SECTION --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:focus + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    background: var(--bg-color);
    padding: 0 0.5rem;
}

.status-msg {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.contact-info h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-list span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.info-list a:hover {
    color: var(--accent);
}

/* --- 14. FOOTER --- */
.site-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#scrollTopBtn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
}

/* --- 15. ANIMATION UTILITIES --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 968px) {
    /* Vertical Navigation for Mobile */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    
    .nav-link {
        font-size: 1.8rem;
        font-weight: 700;
    }
    
    /* About Grid - Stack vertically */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-card-art {
        width: 250px;
        height: 250px;
    }
    
    /* Contact Layout */
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    /* Desk Scene Mobile Adjustments */
    .desk-scene {
        transform: translateX(-50%) scale(0.7);
        bottom: -30px;
        opacity: 0.5;
    }
    
    /* Light Bulb Mobile */
    .hanging-light {
        transform: translateX(-50%) scale(0.8);
        top: -40px;
    }
    
    .light-beam {
        width: 300px;
    }
    
    /* Hero Content */
    .hero-content {
        margin-top: -50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Journey Steps */
    .step {
        grid-template-columns: 1fr;
    }
    
    .step.right .step-card {
        grid-column: 1;
    }
    
    .step-marker {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .desk-scene {
        transform: translateX(-50%) scale(0.5);
        bottom: -50px;
    }
    
    .hanging-light {
        transform: translateX(-50%) scale(0.6);
    }
    
    .profile-card-art {
        width: 200px;
        height: 200px;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    /* Hide some 3D shapes on small screens for performance */
    .shape-torus,
    .shape-pyramid {
        display: none;
    }
}
