:root {
    --bg-color: #0b0c10; /* Deep dark void */
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
    
    /* Cyberpunk / Vaporwave Palette */
    --neon-cyan: #00e5ff;
    --neon-pink: #ff007a;
    --neon-purple: #b800ff;
    --neon-orange: #ffaa00;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(16, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Fixed Background Strategy */
canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism Core Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 229, 255, 0.15);
}

.glass-input {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    padding: 15px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.3);
}

/* Typography & Neon Accents */
h1 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 20px; 
}

/* Gradient Text for the Hero Span */
h1 span { 
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

h2 { 
    font-size: 2.5rem; 
    text-align: center; 
    margin-bottom: 40px; 
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--neon-cyan); }
p { color: var(--text-muted); line-height: 1.6; }

/* Layouts */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 100;
}
/* Fix for the navigation hover jump */
nav.glass-panel:hover {
    /* Keeps it centered (X) while applying the hover float (Y) */
    transform: translateX(-50%) translateY(-5px);
    
    /* Re-applying the glow from the original glass-panel hover so it still looks cool */
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 12px 40px 0 rgba(0, 229, 255, 0.15);
}

nav .logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    letter-spacing: 2px; 
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}
nav .logo span { color: var(--neon-pink); }

nav .links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}
nav .links a:hover { 
    color: var(--neon-cyan); 
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Hero Section (FIXED CENTERING) */
header { 
    min-height: 100vh;
    display: flex;
    align-items: center; /* Centers vertically */
    justify-content: center; /* Centers horizontally */
    text-align: center; 
    padding: 20px;
}
.hero-content { 
    padding: 60px; 
    max-width: 800px; 
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    border-radius: 50px;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.1);
    transition: all 0.3s ease;
}
.btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.5);
}

/* Services & Gallery */
#services .glass-panel { padding: 30px; border-top: 2px solid var(--neon-purple); }
.img-wrapper { height: 250px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.5); }
.placeholder { color: var(--text-muted); font-style: italic; }

/* Contact Form */
form { display: flex; flex-direction: column; gap: 20px; }

/* Footer */
footer { text-align: center; padding: 40px; color: var(--text-muted); border-top: 1px solid var(--glass-border); }

/* Scroll Animations */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    nav { flex-direction: column; gap: 15px; border-radius: 15px;}
    nav .links a { margin: 0 10px; font-size: 0.9rem;}
}