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

html, body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background: #0a0a0a;
    color: #fff;
    position: relative;
    font-family: 'Exo 2', sans-serif;
}

#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

body:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a1a1a, #0a0a0a);
    z-index: 0;
}

.cyber-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
}

.cyber-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 36px;
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc;
    animation: subtle-glow 2s infinite;
    text-decoration: none;
}

.rat-robot {
    width: 40px;
    height: 40px;
    object-fit: contain;
    animation: rat-bounce 1.5s infinite ease-in-out;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding: 8px 16px;
    border: 1px solid #00ffcc;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: linear-gradient(45deg, #ff00ff, #0080ff);
    border-color: #0080ff;
    box-shadow: 0 0 15px #0080ff;
}

.nav-links a.active {
    background: linear-gradient(45deg, #ff00ff, #0080ff);
    color: #000;
    border-color: #0080ff;
    box-shadow: 0 0 15px #0080ff;
    cursor: default;
}

.cyber-footer {
    position: relative;
    z-index: 5;
    background: linear-gradient(45deg, #0a0a0a, #1a1a1a);
    border-top: 2px solid #00ffcc;
    padding: 60px 50px 30px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cyber-footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 255, 204, 0.1), rgba(255, 0, 255, 0.1), rgba(0, 128, 255, 0.1));
    animation: footerGlow 5s infinite;
    z-index: -1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h2 {
    font-size: 36px;
    color: #00ffcc;
    text-shadow: 0 0 15px #00ffcc, 0 0 30px #0080ff;
    margin-bottom: 15px;
    animation: subtle-glow 2s infinite;
}

.footer-logo p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    color: #ccc;
    text-shadow: 0 0 5px #ff00ff;
}

.footer-links h3, .footer-social h3, .footer-contact h3 {
    font-size: 24px;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    font-family: 'Share Tech Mono', monospace;
    text-decoration: none;
    color: #ccc;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #0080ff;
    text-shadow: 0 0 10px #0080ff;
    transform: translateY(-3px);
}

.footer-links a.active {
    color: #0080ff;
    text-shadow: 0 0 10px #0080ff;
    cursor: default;
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-icon {
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #ff00ff;
    transform: scale(1.3);
    text-shadow: 0 0 15px #ff00ff;
}

.footer-contact p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
    color: #ccc;
    margin: 8px 0;
    text-shadow: 0 0 5px #00ffcc;
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #0080ff;
    padding-top: 20px;
}

.footer-bottom p {
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #ccc;
    text-shadow: 0 0 5px #ff00ff;
}

@keyframes subtle-glow {
    0%, 100% { text-shadow: 0 0 5px #00ffcc; }
    50% { text-shadow: 0 0 15px #00ffcc; }
}

@keyframes footerGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes rat-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@media (max-width: 768px) {
    .cyber-nav {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
}

/* === Responsive Fixes Injected === */
body { padding-top: 72px; }

.cyber-header { position: fixed; top: 0; width: 100%; z-index: 10; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }

.cyber-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }

.logo { font-size: clamp(16px, 4vw, 22px); }

.nav-toggle { display: none; font-size: 24px; background: none; border: none; color: #fff; cursor: pointer; }

.nav-links { list-style: none; display: flex; gap: 18px; align-items: center; }
.nav-links .nav-item { list-style: none; }
.nav-link { text-decoration: none; font-family: 'Share Tech Mono', monospace; }

@media (max-width: 768px) {
  .nav-toggle { display: inline-block; }
  .nav-links { 
    position: absolute; top: 100%; right: 0; left: 0;
    display: none; flex-direction: column; background: rgba(0,0,0,.95); 
    padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open { display: flex; }
  body { padding-top: 64px; }
}

/* Hero sizing using dynamic viewport to avoid mobile URL bar jumps */
.cyber-hero { min-height: 100svh; height: auto; }

/* Fluid typography */
.cyber-text { font-size: clamp(28px, 10vw, 64px) !important; }
.sub-text { font-size: clamp(14px, 4vw, 22px) !important; }

.section-title { font-size: clamp(18px, 5vw, 30px) !important; }
