:root {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    
    /* Enhanced Glassmorphism Variables */
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(35, 35, 35, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body, html {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    width: 100%;
    height: 100%;
    overflow: hidden; 
}

/* =========================================
   UI COMPONENTS & GLASSMORPHISM 
   ========================================= */

/* Scroll Layout */
.scroll-container {
    height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
    position: relative; z-index: 10;
}
.scroll-container::-webkit-scrollbar { display: none; }
.section-snap { scroll-snap-align: start; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 80px 20px 40px; position: relative; }
.container { max-width: 1100px; margin: 0 auto; width: 100%; perspective: 1000px; }

/* Enhanced 3D Glass Panel */
.glass { background: rgba(10,10,10,0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.glass-panel { 
    background: var(--glass-bg); 
    backdrop-filter: blur(16px); 
    -webkit-backdrop-filter: blur(16px); 
    border: 1px solid var(--glass-border); 
    border-radius: 20px; 
    padding: 2.5rem; 
    transition: box-shadow var(--transition), border var(--transition);
    box-shadow: var(--glass-shadow);
    transform-style: preserve-3d;
}

/* Glow effect on hover */
.glass-panel:hover { 
    background: var(--glass-hover); 
    border-color: rgba(255, 255, 255, 0.2); 
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.05);
}

/* Elevate text on 3D hover */
.project-header, .project-card p, .project-link, .about-text {
    transform: translateZ(30px);
}

/* Nav Bar */
.navbar { position: fixed; top: 0; width: 100%; padding: 1.2rem 2rem; z-index: 100; transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); background: rgba(5,5,5,0.8); }
.nav-content { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 1px; z-index: 101; position: relative; }
.desktop-only { display: flex; list-style: none; gap: 2.5rem; }
.mobile-only { display: none; }
.nav-link { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-link:hover { color: var(--text-primary); text-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* Typography */
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; margin-bottom: 2.5rem; letter-spacing: -1px; text-shadow: 0 4px 10px rgba(0,0,0,0.5); }
.dot { color: var(--text-secondary); }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; padding: 3rem; transform-style: preserve-3d; }
.hero-title { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -2px; margin-bottom: 0.5rem; transform: translateZ(50px); }
.hero-subtitle { font-size: clamp(1.2rem, 3vw, 2rem); color: var(--text-secondary); font-weight: 300; margin-bottom: 1.5rem; transform: translateZ(30px); }
.hero-desc { font-size: 1rem; color: #888; margin-bottom: 3rem; letter-spacing: 2px; text-transform: uppercase; transform: translateZ(20px); }

.glass-btn { display: inline-block; padding: 1rem 3rem; background: rgba(255,255,255,0.05); color: var(--text-primary); text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 30px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; backdrop-filter: blur(10px); transform: translateZ(40px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.glass-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 20px rgba(255,255,255,0.1); }

/* Components */
.about-panel { max-width: 900px; margin: 0 auto; }
.about-text { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; font-weight: 300; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 1rem; transform: translateZ(20px); }
.glass-badge { padding: 0.5rem 1.2rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; font-size: 0.85rem; color: var(--text-primary); transition: var(--transition); }
.glass-badge:hover { background: rgba(255,255,255,0.15); box-shadow: 0 0 15px rgba(255,255,255,0.1); transform: translateY(-2px); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.8rem; }
.project-card { display: flex; flex-direction: column; padding: 2.2rem; height: 100%; }
.project-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.project-header h3 { font-size: 1.3rem; font-weight: 500; }
.tag { font-size: 0.75rem; color: #aaa; background: rgba(0, 0, 0, 0.5); padding: 0.4rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); }
.project-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 2rem; flex-grow: 1; font-weight: 300; }
.project-link { color: var(--text-primary); text-decoration: none; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; transition: var(--transition); }
.project-link::after { content: '→'; margin-left: 0.5rem; transition: var(--transition); }
.project-link:hover { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.4); }
.project-link:hover::after { transform: translateX(5px); }

.contact-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.contact-item { text-align: center; padding: 2.5rem 1rem; }
.contact-item h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 1rem; color: #aaa; transform: translateZ(20px); }
.contact-item a { color: var(--text-primary); text-decoration: none; font-size: 1rem; transition: var(--transition); transform: translateZ(30px); display: inline-block; }
.contact-item a:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.footer { text-align: center; color: #555; font-size: 0.85rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); width: 100%; margin-top: auto; position: relative; z-index: 10; }

/* Mobile Adaptations */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(5, 5, 5, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.4s ease-in-out; z-index: 99; }
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-nav-links { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 2rem; }
.mobile-nav-link { font-size: 2rem; text-decoration: none; color: var(--text-primary); font-weight: 300; }
.menu-toggle { cursor: pointer; display: flex; flex-direction: column; gap: 6px; z-index: 101; position: relative; }
.menu-toggle .bar { width: 25px; height: 2px; background-color: var(--text-primary); transition: 0.3s; }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: flex; }
    .scroll-container { scroll-snap-type: none; overflow-x: hidden; }
    .section-snap { min-height: auto; padding: 100px 1.5rem 60px; }
    .hero { min-height: 100vh; }
    .glass-panel { padding: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .tech-stack { justify-content: center; }
    .about-text { text-align: center; }
    .hero-content { padding: 1rem; }
}
