:root {
    --bg-dark: #030305;
    --neon-orange: #ff4a00;
    --cyber-blue: #00e5ff;
    --text-primary: #ffffff;
    --text-secondary: #8a8a93;
    --glass-bg: rgba(20, 20, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Global Background Container */
.global-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background-color: var(--bg-dark);
}

.global-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    opacity: 0.35; /* Darken the video to make text readable */
    filter: contrast(1.1) brightness(0.9);
    z-index: 0;
}

.global-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35; /* Dark enough for readability */
    filter: contrast(1.2) brightness(0.8);
    transform: scale(1.05); /* Room for parallax */
    position: absolute;
    top: 0; left: 0;
}

.particles-js-canvas-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999; /* Force it above image and mesh within the -3 stacking context */
    pointer-events: none; /* Let clicks pass through to background if needed */
}

/* Background Mesh overlaying the image */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(255, 74, 0, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 229, 255, 0.15), transparent 25%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 2;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Fallback: show reveal elements after 1.5s if JS fails */
@keyframes revealFallback {
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    animation: revealFallback 0.8s ease-out 1.5s forwards;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(3, 3, 5, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 60px;
    background: rgba(3, 3, 5, 0.9);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 40px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s;
    opacity: 0.7;
}

.nav-links a:hover {
    color: var(--neon-orange);
    opacity: 1;
}

/* Dropdown */
.dropdown {
    display: inline-block;
    position: relative;
    margin-left: 40px;
}

.dropdown .dropbtn {
    margin-left: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-content {
    display: block;
    position: absolute;
    background-color: rgba(3, 3, 5, 0.95);
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    top: 100%;
    left: 0;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    font-size: 12px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 74, 0, 0.1);
    color: var(--neon-orange);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.arrow {
    font-size: 8px;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    display: none;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(3,3,5,0.1) 0%, rgba(3,3,5,0.8) 70%, var(--bg-dark) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--cyber-blue);
    border-radius: 30px;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--cyber-blue);
    margin-bottom: 30px;
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.glitch {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.xpro3-title {
    font-family: 'Black Ops One', 'Outfit', sans-serif;
    font-size: 120px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: 8px;
    text-transform: uppercase;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.3)) drop-shadow(0 4px 20px rgba(0,0,0,0.8));
    text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

.hero-title-img {
    max-width: 700px;
    width: 90%;
    height: auto;
    margin: 10px 0 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 30px rgba(255,255,255,0.15));
}

.logo-text-fallback {
    font-family: 'Black Ops One', 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-text-fallback span {
    color: var(--neon-orange);
}

.subtitle {
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 8px;
    color: var(--neon-orange);
    margin-bottom: 50px;
    text-shadow: 0 0 10px rgba(255, 74, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--neon-orange), #ff0055);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.btn:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 74, 0, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

/* Sections */
.specs-section, .colors-section {
    padding: 120px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 50px;
    font-weight: 900;
    margin-bottom: 80px;
    color: #fff;
}

.section-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--cyber-blue);
    background: linear-gradient(90deg, var(--cyber-blue), var(--neon-orange));
    -webkit-background-clip: text;
}

/* Spec Cards */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.spec-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyber-blue), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(30, 30, 40, 0.6);
}

.spec-card:hover::before {
    opacity: 1;
}

.special-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(255, 74, 0, 0.05));
    border-color: rgba(255, 74, 0, 0.2);
}

.special-card .spec-icon {
    color: var(--neon-orange);
}

.spec-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 25px;
    color: var(--cyber-blue);
}

.spec-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
    font-weight: 700;
}

.spec-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Colors Section */
.color-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.color-item {
    text-align: center;
    cursor: pointer;
}

.color-img-box {
    width: 180px;
    height: 360px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.color-item:hover .color-img-box {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 30px rgba(255, 255, 255, 0.05);
    border-color: rgba(255,255,255,0.2);
}

.color-img-box img {
    max-width: 90%;
    max-height: 95%;
    filter: drop-shadow(10px 10px 15px rgba(0,0,0,0.8));
    transition: transform 0.4s ease;
}

.color-item:hover img {
    transform: scale(1.05);
}

.color-item h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.color-item:hover h4 {
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 20px 40px;
    text-align: center;
    background: linear-gradient(to top, #000, transparent);
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.1);
    letter-spacing: 5px;
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    margin: 0 20px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--cyber-blue);
}

.footer-cert {
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-cert span {
    margin: 0 15px;
    opacity: 0.5;
}

.warning {
    display: block;
    margin-top: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    letter-spacing: 1px;
    color: #fff;
    opacity: 0.7;
}

/* --- MOBILE NAVIGATION --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Above mobile menu */
    background: none;
    border: none;
    padding: 10px;
}

.hamburger svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
    transition: stroke 0.3s ease;
}

.hamburger:hover svg {
    stroke: var(--neon-cyan);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-overlay a {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
    margin: 20px 0;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
    color: var(--neon-cyan);
}

@media (max-width: 1024px) {
    .special-card { flex-direction: column; text-align: center; }
    .special-card .spec-icon { margin: 0 auto 20px; }
}

@media (max-width: 768px) {
    /* Navbar & Header */
    .hamburger { display: block; }
    .nav-links { display: none; }
    .navbar { padding: 15px 20px; }
    .logo-img { height: 30px; }
    
    /* Typography */
    .xpro3-title { font-size: 45px; letter-spacing: 2px; }
    .subtitle { font-size: 10px; letter-spacing: 2px; }
    .section-title { font-size: 30px; }
    .page-title { font-size: 40px; }
    .page-subtitle { font-size: 14px; letter-spacing: 2px; }
    
    /* Layouts */
    .specs-grid { grid-template-columns: 1fr; }
    .specs-section, .colors-section, .cta-section { padding: 60px 15px; }
    
    .color-grid { gap: 15px; }
    .color-img-box img { max-height: 200px; }
    
    /* Subpages */
    .page-hero { height: 50vh; margin-top: 60px; }
    .content-section { flex-direction: column; text-align: center; padding: 50px 20px; gap: 40px; }
    .text-block h2 { font-size: 24px; }
    .cta-section h2 { font-size: 24px; line-height: 1.4; }
    
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    .footer-cert { justify-content: center; flex-wrap: wrap; }
}

/* --- SUBPAGES (Solutions) STYLES --- */
.page-hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 80px; /* Offset for navbar */
}

.page-title {
    font-size: 4rem;
    font-family: 'Black Ops One', cursive;
    background: linear-gradient(90deg, #fff, var(--neon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.page-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: var(--neon-cyan);
}

.stats-section {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 60px 20px;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
}

.stat-card h2, .stat-card span {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--neon-orange);
    display: inline-block;
}

.stat-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 10px;
    letter-spacing: 1px;
}

.content-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10%;
    gap: 60px;
    flex-wrap: wrap;
}

.text-block {
    flex: 1;
    min-width: 300px;
}

.text-block h2 {
    font-family: 'Black Ops One', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.image-block img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 16/9;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.placeholder-img {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, rgba(20,20,25,0.8), rgba(0, 229, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 2px;
    border-radius: 12px;
}

.benefits-section {
    padding: 80px 10%;
    background: rgba(10, 10, 15, 0.6);
}

.section-heading {
    text-align: center;
    font-family: 'Black Ops One', cursive;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

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

.benefit-card h3 {
    color: var(--neon-cyan);
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to top, rgba(255, 74, 0, 0.1), transparent);
}

.cta-section h2 {
    font-family: 'Black Ops One', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* Glow border utility for placeholder images */
.glow-border {
    border: 1px solid rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), inset 0 0 20px rgba(0, 229, 255, 0.05);
}

/* Footer warning text */
.footer-cert .warning {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
    max-width: 400px;
    line-height: 1.5;
}

.dropdown { position: relative; display: inline-block; }
.dropdown .dropbtn { display: flex; align-items: center; gap: 5px; }
.dropdown-content { display: none; position: absolute; background-color: rgba(10,10,10,0.95); min-width: 220px; box-shadow: 0 8px 16px rgba(0,0,0,0.5); border: 1px solid rgba(0,229,255,0.2); border-radius: 8px; z-index: 1000; top: 100%; left: 0; }
.dropdown-content a { color: white !important; padding: 12px 16px !important; text-decoration: none; display: block; border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown-content a:hover { background-color: rgba(0,229,255,0.1); color: #00e5ff !important; padding-left: 20px !important; }
.dropdown:hover .dropdown-content { display: block; }

/* ---- Pure CSS entry animations for subpages ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
.fade-in-up.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}
.slide-in-left {
    animation: slideInLeft 0.8s ease-out 0.1s forwards;
    opacity: 0;
}
.slide-in-right {
    animation: slideInRight 0.8s ease-out 0.3s forwards;
    opacity: 0;
}
