:root {
    /* Base Theme Variables (Dark Mode Default) */
    --bg-main: #050508;
    --bg-surface: rgba(18, 18, 25, 0.6);
    --bg-surface-hover: rgba(28, 28, 40, 0.8);
    --text-main: #f0f0f5;
    --text-muted: #9494a0;
    
    --accent-cyan: #00e5ff;
    --accent-purple: #8a2be2;
    --accent-gold: #ffab00;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-border: 1px solid var(--border-color);
    --shield-bg: rgba(255, 255, 255, 0.05);
    
    --btn-primary-text: #000;
    --navbar-bg: rgba(5, 5, 8, 0.8);
    --footer-bg: rgba(0, 0, 0, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg-main: #f4f6fa;
    --bg-surface: rgba(255, 255, 255, 0.7);
    --bg-surface-hover: rgba(255, 255, 255, 0.95);
    --text-main: #12121a;
    --text-muted: #555566;
    
    --accent-cyan: #009db8;
    --accent-purple: #6c19bb;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-border: 1px solid var(--border-color);
    --shield-bg: rgba(0, 0, 0, 0.05);
    
    --btn-primary-text: #fff;
    --navbar-bg: rgba(244, 246, 250, 0.8);
    --footer-bg: rgba(230, 233, 240, 0.6);
}

/* Base resets */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Effects & Particles */
.bg-elements {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
}

.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15;
    animation: float 20s infinite alternate;
}

.orb-1 { width: 500px; height: 500px; background: var(--accent-cyan); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--accent-purple); bottom: -200px; right: -100px; animation-delay: -10s; }
.orb-3 { width: 400px; height: 400px; background: var(--accent-gold); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.05; animation: pulseOrb 15s infinite; }

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }
@keyframes pulseOrb { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.5); } 100% { transform: translate(-50%, -50%) scale(1); } }

/* Particles styling */
#particles { position: absolute; width: 100%; height: 100%; }
.particle {
    position: absolute; bottom: -20px; background: var(--accent-cyan);
    border-radius: 50%; opacity: 0.4; animation: moveParticles linear infinite;
    box-shadow: 0 0 10px var(--accent-cyan);
}
[data-theme="light"] .particle { opacity: 0.6; }
@keyframes moveParticles { 0% { transform: translateY(0) translateX(0); opacity: 0; } 10% { opacity: 0.4; } 90% { opacity: 0.4; } 100% { transform: translateY(-100vh) translateX(50px); opacity: 0; } }

/* Data Rings Animation */
.data-rings {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; pointer-events: none; z-index: 1;
}
.ring {
    position: absolute; top: 50%; left: 50%; border-radius: 50%;
    border: 1px dashed var(--border-color); transform: translate(-50%, -50%); animation: spin linear infinite;
}
.ring-1 { width: 300px; height: 300px; animation-duration: 30s; border-color: rgba(0, 229, 255, 0.2); }
.ring-2 { width: 450px; height: 450px; animation-duration: 45s; animation-direction: reverse; border-color: rgba(138, 43, 226, 0.2); }
.ring-3 { width: 600px; height: 600px; animation-duration: 60s; border: 1px solid var(--border-color); opacity: 0.5;}
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Container & Typography */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; }
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Navigation */
.navbar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 1.5rem 0; transition: all 0.3s ease; }
.navbar.scrolled { padding: 1rem 0; background: var(--navbar-bg); backdrop-filter: blur(12px); border-bottom: var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-main); text-decoration: none; }
.logo span { color: var(--text-muted); font-weight: 400; }
.logo-icon { color: var(--accent-cyan); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-cyan); }
.nav-controls { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text-main); cursor: pointer; }

/* Theme Toggle Button */
.theme-toggle {
    background: transparent; border: none; cursor: pointer; color: var(--text-main);
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 50%; transition: all 0.3s ease; border: var(--glass-border); background: var(--bg-surface);
}
.theme-toggle:hover { background: var(--bg-surface-hover); color: var(--accent-cyan); transform: scale(1.1); }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem;
    border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.3s ease; cursor: pointer;
}
.btn-outline { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: var(--btn-primary-text); border: none; box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4); }

/* Hero Section */
.hero { padding: 12rem 0 6rem; min-height: 100vh; display: flex; align-items: center; position: relative;}
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; z-index: 2;}
.hero-content h1 { font-size: 4rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 480px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 0.4rem 1rem;
    background: rgba(0, 229, 255, 0.1); color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2); border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px;
}
.pulse-dot { width: 8px; height: 8px; background: var(--accent-cyan); border-radius: 50%; animation: pulseDot 1.5s infinite; }
@keyframes pulseDot { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); } 70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(0, 229, 255, 0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); } }

/* Hero Visual Elements */
.hero-visual { position: relative; height: 400px; width: 100%; display: flex; justify-content: center; }
.glass-panel {
    background: var(--bg-surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border); border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}
.main-panel {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; max-width: 400px; padding: 1.5rem; z-index: 2; overflow: hidden;
}
.laser-scan {
    position: absolute; top: -100%; left: 0; width: 100%; height: 2px;
    background: var(--accent-cyan); box-shadow: 0 0 15px 2px var(--accent-cyan);
    animation: scan 4s ease-in-out infinite; z-index: 10; opacity: 0.7;
}
@keyframes scan { 0% { top: -10%; opacity: 0; } 10% { opacity: 0.7; } 90% { opacity: 0.7; } 100% { top: 110%; opacity: 0; } }

.panel-header { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.code-line {
    height: 12px; background: var(--shield-bg); border-radius: 6px; margin-bottom: 12px;
    position: relative; overflow: hidden;
}
.code-line::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shimmer 2s infinite;
}
[data-theme="light"] .code-line::after { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent); }
@keyframes shimmer { 100% { left: 200%; } }
.w-80 { width: 80%; } .w-60 { width: 60%; } .w-90 { width: 90%; } .w-70 { width: 70%; } .w-50 { width: 50%; }

.security-shield { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2rem 0; color: var(--accent-cyan); animation: shieldPulse 2s infinite; position: relative; }
.security-shield span { font-family: var(--font-heading); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; }
@keyframes shieldPulse { 0% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.4)); } 50% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.8)); } 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.4)); } }

.float-panel {
    position: absolute; display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.5rem; z-index: 3; animation: float-panel 6s ease-in-out infinite alternate;
}
.float-1 { top: 20px; right: -20px; border-left: 2px solid var(--accent-cyan); }
.float-2 { bottom: 40px; left: -40px; border-left: 2px solid var(--accent-purple); animation-delay: -3s; }
.icon-wrap {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; background: var(--shield-bg); color: var(--text-main);
}
.float-1 .icon-wrap { color: var(--accent-cyan); }
.float-2 .icon-wrap { color: var(--accent-purple); }
.float-panel span { font-weight: 600; font-size: 0.95rem; }
@keyframes float-panel { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

/* Tools Section */
.tools-section { padding: 6rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.tool-card {
    position: relative; background: var(--bg-surface); border: var(--glass-border);
    border-radius: 20px; padding: 2.5rem; text-decoration: none; color: var(--text-main);
    overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: block;
}
.card-glow {
    position: absolute; width: 200px; height: 200px; background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    top: -100px; right: -100px; opacity: 0.1; border-radius: 50%; transition: opacity 0.4s ease;
}
.auravault-glow { background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%); }
.tool-card:hover { transform: translateY(-10px); border-color: var(--accent-cyan); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); background: var(--bg-surface-hover); }
.tool-card:hover .card-glow { opacity: 0.3; }
.card-content { position: relative; z-index: 2; }
.tool-icon {
    width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.5rem; background: var(--shield-bg); transition: transform 0.4s ease;
}
.securechat-icon { color: var(--accent-cyan); }
.auravault-icon { color: var(--accent-purple); }
.tool-card:hover .tool-icon { transform: scale(1.1) rotate(-5deg); }
.tool-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.tool-card p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }
.tool-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.domain { font-family: monospace; color: var(--text-muted); font-size: 0.9rem; }
.arrow { color: var(--text-muted); transition: all 0.3s ease; }
.tool-card:hover .arrow { transform: translateX(5px); color: var(--accent-cyan); }
.tool-card:hover .auravault-icon ~ .tool-footer .arrow { color: var(--accent-purple); }

/* Features Section */
.features-section { padding: 4rem 0 8rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; border-top: var(--glass-border); padding-top: 4rem; }
.feature-item { text-align: center; }
.feat-icon {
    width: 60px; height: 60px; margin: 0 auto 1.5rem; background: var(--shield-bg); border: var(--glass-border);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-main); transition: transform 0.3s ease, color 0.3s ease;
}
.feature-item:hover .feat-icon { transform: translateY(-5px); color: var(--accent-cyan); }
.feature-item h4 { font-size: 1.3rem; margin-bottom: 1rem; }
.feature-item p { color: var(--text-muted); }

/* Footer */
footer { background: var(--footer-bg); border-top: var(--glass-border); padding-top: 4rem; transition: background-color 0.4s ease; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-muted); margin-top: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4rem; }
.link-group h5 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.link-group a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 0.8rem; transition: color 0.3s; }
.link-group a:hover { color: var(--accent-cyan); }
.footer-bottom { padding: 1.5rem 0; border-top: 1px solid var(--border-color); text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Scroll Animations */
.animate-wait { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animated-in { opacity: 1; transform: translateY(0); }

/* ==== Responsive Design & Auto-Adjust ==== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-content p { margin: 0 auto 2.5rem; }
    .hero-visual { margin-top: 2rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--navbar-bg); backdrop-filter: blur(16px);
        flex-direction: column; padding: 2rem; gap: 1.5rem;
        border-bottom: var(--glass-border); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        transform: translateY(-150%); opacity: 0; transition: all 0.4s ease;
        z-index: 99; visibility: hidden; align-items: center;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
    
    .hero { padding: 8rem 0 4rem; min-height: auto; }
    .hero-content h1 { font-size: 3rem; }
    .hero-visual { transform: scale(0.85); margin-top: 1rem; }
    .data-rings { display: none; } /* Hide rings on mobile for performance/clutter */
    
    .section-header h2 { font-size: 2.5rem; }
    .tools-section { padding: 4rem 0; }
    
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .footer-links { justify-content: center; gap: 2rem; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-visual { transform: scale(0.65); height: 300px; }
    .main-panel { width: 90vw; }
    .float-panel { padding: 0.5rem 1rem; }
    .float-panel span { font-size: 0.8rem; }
    
    .tools-grid { grid-template-columns: 1fr; }
    .tool-card { padding: 1.5rem; }
    .tool-card h3 { font-size: 1.5rem; }
    .domain { font-size: 0.8rem; }
    
    .features-grid { grid-template-columns: 1fr; gap: 2rem; }
}
