/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Orbitron:wght@500;700&display=swap');

:root {
    --bg: #0b0e14;
    --card: rgba(22, 27, 34, 0.85);
    --accent: #6366f1; /* WAN Ninjas Branding Purple/Indigo */
    --text: #e6edf3;
    --neon-cyan: #00f7ff;
    --neon-blue: #0066ff;
}

/* --- BASE STYLES --- */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- NAVIGATION & LOGO ALIGNMENT --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(11, 14, 20, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.logo-container {
    display: flex;
    align-items: center; /* Vertically centers text next to the 100px logo icon */
    text-decoration: none;
    gap: 15px;
}

.tech-logo-img {
    height: 100px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.4);
    animation: pulseGlow 4s ease-in-out infinite alternate;
    display: block;
}

.logo { 
    font-family: 'Orbitron', sans-serif;
    font-weight: bold; 
    font-size: 1.8rem; 
    letter-spacing: 2px;
    line-height: 1; /* Keeps text centered with the logo icon */
    margin: 0;
}

nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 25px; }
nav ul li a { 
    color: var(--text); 
    text-decoration: none; 
    font-size: 1rem; 
    font-weight: 500;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--neon-cyan); }

/* --- TECH TEXT UTILITY (Sequential Bidirectional Scan) --- */
.tech-text {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        var(--neon-cyan) 25%, 
        var(--accent) 50%, 
        var(--neon-cyan) 75%, 
        #ffffff 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.2);
    
    /* Original pace (5s) with linear constant-speed movement */
    animation: shimmer 5s linear infinite alternate;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

/* --- VIDEO BACKGROUND SYSTEM --- */
.hero, .services { 
    position: relative; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.hero { height: 100vh; }
.services { padding: 140px 5%; flex-direction: column; }

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay, .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(11, 14, 20, 0.5) 0%, var(--bg) 95%);
    z-index: -1;
}

/* --- HERO CONTENT --- */
.hero-content { 
    text-align: center; 
    z-index: 1; 
    padding-top: 100px;
}

.hero h1 { 
    font-size: 4rem; 
    margin-bottom: 20px; 
    line-height: 1.1;
}

.hero p { 
    font-size: 1.3rem; 
    max-width: 800px; 
    margin: 0 auto;
    opacity: 0.9; 
    color: #cbd5e1;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 35px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
}

.btn:hover:not(:disabled) {
    background: var(--neon-blue);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--neon-blue);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- SERVICES GRID --- */
.services h2 { font-size: 2.8rem; margin-bottom: 60px; text-align: center; }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    z-index: 1;
}

.card {
    background: var(--card);
    padding: 50px 35px;
    border-radius: 12px;
    border: 1px solid rgba(48, 54, 61, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card h3 { 
    margin-bottom: 15px; 
    font-size: 1.4rem;
    color: var(--neon-cyan); 
}

.card:hover { 
    border-color: var(--neon-cyan); 
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 247, 255, 0.15);
}

/* --- CONTACT SECTION & FORMS --- */
.contact { padding: 100px 5%; background: var(--bg); border-top: 1px solid #30363d; }
.contact-container { display: flex; flex-wrap: wrap; gap: 60px; justify-content: center; }
.info { flex: 1; min-width: 320px; }

form { 
    flex: 1; 
    min-width: 320px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    background: var(--card);
    padding: 40px;
    border-radius: 10px;
}

input, textarea {
    padding: 15px;
    background: #0b0e14;
    border: 1px solid #30363d;
    color: white;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.consent-selection {
    margin: 20px 0; 
    padding: 15px; 
    border: 1px solid #30363d; 
    border-radius: 5px; 
    background: rgba(22, 27, 34, 0.8);
}

/* --- ANIMATIONS --- */
@keyframes pulseGlow {
    from { box-shadow: 0 0 15px rgba(0, 247, 255, 0.3); }
    to   { box-shadow: 0 0 35px rgba(0, 247, 255, 0.6); }
}

/* --- FOOTER --- */
footer { 
    text-align: center; 
    padding: 60px; 
    opacity: 0.7; 
    border-top: 1px solid #30363d; 
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .tech-logo-img { height: 60px; }
    .hero h1 { font-size: 2.5rem; }
    nav { 
        width: 95%; 
        flex-direction: column; 
        position: relative; 
        left: auto; 
        transform: none; 
        padding: 15px;
    }
    nav ul { margin-top: 15px; gap: 15px; }
}