/* --- 1. GLOBAL & VARIABLES --- */
:root {
--primary: #3b82f6;        /* Blue-500 */
--primary-dark: #2563eb;
--secondary: #6366f1;       /* Indigo-500 */
--accent: #facc15;          /* Yellow-400 */
--dark-bg: #02001d;
--dark-card: #111827;
--dark-text: #ffffff;
--dark-text-secondary: #9ca3af;
--glow: 0 0 12px rgba(59, 130, 246, 0.6);
--transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }

/* --- Custom Gallery Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: #1f2937; border-radius: 10px; border: 2px solid var(--dark-bg); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body {
    font-family: 'Montserrat', 'Segoe UI', Verdana, sans-serif;
    background: 
        linear-gradient(to bottom, var(--dark-bg), transparent 10%, transparent 90%, var(--dark-bg)),
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(135deg, var(--dark-bg) 0%, #0f0f1a 100%);
    background-size: 100% 100%, 60px 60px, 60px 60px, 100% 100%;
    background-attachment: fixed;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    counter-reset: section;
}

/* --- Cinematic Noise Overlay --- */
body::after {
    content: ""; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03; pointer-events: none; z-index: 9999;
    mix-blend-mode: overlay;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- 2. LAYOUT: HEADER & NAV --- */
header {
    background: rgba(2, 0, 29, 0.8);
    backdrop-filter: blur(15px) saturate(180%);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: var(--transition);
}
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo img { height: 40px; }
.nav-links { display: flex; gap: 30px; }
.mobile-nav-toggle { 
    display: none; 
    background: none; 
    border: none; 
    color: white; 
    font-size: 1.5rem; 
    cursor: pointer; 
}
.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 50%; background: var(--primary); transition: var(--transition);
    transform: translateX(-50%);
}
.nav-links a:hover:after { width: 100%; }
.nav-links a:before {
    content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary); top: -10px; left: 50%; transform: translateX(-50%) scale(0);
    transition: var(--transition); box-shadow: var(--glow);
}
.nav-links a:hover:before { transform: translateX(-50%) scale(1); }

/* --- 2.4 SYSTEM LOG SIDEBAR --- */
.system-log-sidebar {
    position: fixed; left: 40px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 8px; z-index: 999;
    font-family: 'Rajdhani', sans-serif; font-size: 0.65rem; color: var(--primary);
    opacity: 0.3; pointer-events: none;
}
.log-entry { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.log-entry::before { content: '>'; color: var(--accent); }
@keyframes log-pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }
.log-entry:nth-child(odd) { animation: log-pulse 3s infinite; }
.log-entry:nth-child(even) { animation: log-pulse 4s infinite 1s; }

@media (max-width: 1400px) { .system-log-sidebar { display: none; } }

/* --- 2.1 SIDE NAVIGATION INDICATOR --- */
.side-nav {
    position: fixed; right: 40px; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 20px; z-index: 999;
}
.side-nav-item {
    width: 12px; height: 12px; border: 1px solid var(--primary);
    border-radius: 50%; cursor: pointer; transition: var(--transition);
    position: relative;
}
.side-nav-item:hover, .side-nav-item.active { background: var(--primary); box-shadow: var(--glow); }
.side-nav-item::before {
    content: attr(data-label); position: absolute; right: 25px; top: 50%;
    transform: translateY(-50%); background: var(--dark-card);
    color: var(--primary); padding: 5px 12px; border-radius: 4px;
    font-family: 'Rajdhani', sans-serif; font-size: 0.75rem; font-weight: 700;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.side-nav-item:hover::before { opacity: 1; right: 30px; }

@media (max-width: 1200px) { .side-nav { display: none; } }

/* --- Layout Components --- */

section { padding: 120px 0; position: relative; }
section:nth-child(even) { background: rgba(255, 255, 255, 0.01); }

/* Angled Section Transitions */
.section-skew {
    position: absolute; top: -60px; left: 0; width: 100%; height: 120px;
    background: inherit; transform: skewY(-2deg); z-index: 1;
    border-top: 1px solid rgba(59, 130, 246, 0.05);
}

/* Digital UI Markers */
.ui-mark {
    position: absolute; width: 100px; height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.1; pointer-events: none;
}

.section-header { text-align: center; margin-bottom: 70px; }
.section-header span { color: var(--primary); font-family: 'Rajdhani', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 4px; display: block; margin-bottom: 10px; font-size: 0.9rem; }
.section-header h2 { 
    font-size: 2.8rem; margin-bottom: 15px; position: relative; display: inline-block; 
    font-family: 'Rajdhani', sans-serif; text-transform: uppercase; 
}
.section-header h2:hover {
    text-shadow: 2px 0 var(--accent), -2px 0 var(--secondary);
    animation: glitch-skew 1s infinite linear alternate-reverse;
}
.section-header h2::before {
    counter-increment: section;
    content: "0" counter(section) ".";
    position: absolute; left: -60px; top: 0; font-size: 1.2rem;
    color: var(--primary); opacity: 0.3; letter-spacing: 0;
}
.section-header h2:after {
    content: ''; position: absolute; width: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    bottom: -15px; left: 50%; transform: translateX(-50%); border-radius: 2px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-header:hover h2:after { width: 100%; }
.section-header p { color: white; max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* --- Section Access Level --- */
.access-level {
    position: absolute; top: 40px; left: 5%; font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem; color: var(--accent); opacity: 0.4; letter-spacing: 3px;
    text-transform: uppercase; border: 1px solid var(--accent); padding: 2px 10px;
    pointer-events: none;
}

/* --- 2. LAYOUT: FOOTER --- */

footer {
    background: #010014;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 70px; margin-bottom: 10px; }
.footer-column h3 {
    margin-bottom: 25px; font-size: 1.3rem; position: relative;
    padding-bottom: 10px; color: var(--primary);
}
.footer-column h3:after {
    content: ''; position: absolute; width: 40px; height: 3px;
    background: var(--primary); bottom: 0; left: 0; border-radius: 2px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: white; text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-link {
    width: 40px; height: 40px; background: var(--dark-card);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--dark-text); transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: white; transform: translateY(-3px); }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); color: white; font-size: 0.9rem; }

/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute; background: var(--dark-card);
    min-width: 260px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 1001; border-radius: 8px; border: 1px solid rgba(59, 130, 246, 0.2);
    top: 100%; left: 0; padding: 12px 0; margin-top: 10px; backdrop-filter: blur(10px);
}
.dropdown-content a {
    padding: 12px 20px !important; text-decoration: none; display: block;
    color: var(--dark-text); font-size: 0.95rem; transition: var(--transition);
}
.dropdown-content a:after { display: none !important; }
.dropdown-content a:hover { background: rgba(59, 130, 246, 0.1); color: var(--primary) !important; padding-left: 25px !important; }
.dropdown:hover .dropdown-content { display: block; }
.nav-links .dropdown > a i { margin-left: 8px; font-size: 0.75rem; transition: transform 0.3s; }
.dropdown:hover > a i { transform: rotate(180deg); color: var(--primary); }

/* --- 3. COMPONENTS: BUTTONS --- */

.btn {
    display: inline-block; padding: 14px 32px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white; text-decoration: none; border-radius: 8px;
    font-weight: 600; transition: var(--transition); border: none; cursor: pointer;
    font-family: 'Montserrat', sans-serif; box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    position: relative; overflow: hidden;
}
.btn::after {
    content: ''; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%;
    background: rgba(255, 255, 255, 0.2); transform: rotate(30deg);
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.7); }

/* Magnetic Interaction Class */
.magnetic-item { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }

.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: white; }

/* --- 3. COMPONENTS: FORMS --- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--primary); }
.form-control {
    width: 100%; padding: 14px; 
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 10px;
    color: var(--dark-text); 
    font-family: inherit; 
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 15px rgba(59, 130, 246, 0.3); }

/* --- 3. COMPONENTS: ALERTS --- */
.alert { padding: 12px; border-radius: 8px; margin-bottom: 20px; }
.alert-error { background: rgba(255, 0, 0, 0.1); color: #ff6b6b; border: 1px solid rgba(255, 0, 0, 0.2); }
.alert-success { background: rgba(0, 255, 0, 0.1); color: #51cf66; border: 1px solid rgba(0, 255, 0, 0.2); }

/* --- 4. UTILITIES --- */
.hidden { display: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Category Tabs Filtering Buttons */
.category-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 50px; }
.category-tab {
    background: rgba(21, 21, 34, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark-text); 
    padding: 10px 16px; 
    border-radius: 50px;
    cursor: pointer; 
    transition: var(--transition); 
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; 
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    outline: none;
}
.category-tab:hover { 
    border-color: var(--primary); 
    background: rgba(59, 130, 246, 0.1); 
    transform: translateY(-2px);
    box-shadow: var(--glow);
}
.category-tab.active {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white; 
    border: none; 
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Partner Page Specific */
.system-card-primary-border { border-top-color: var(--primary) !important; }
.system-label-primary { background: var(--primary) !important; color: var(--dark-bg) !important; }

/* --- 5. COMPONENTS: CARDS & GRIDS --- */

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; counter-reset: item-id; }
.product-card {
    position: relative; border-radius: 15px; overflow: hidden;
    aspect-ratio: 4 / 3; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition); background: var(--dark-card); perspective: 1000px;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-12px) rotateX(4deg) scale(1.03); }

/* Holographic Shimmer Effect */
.product-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 45%, rgba(59, 130, 246, 0.1) 50%, rgba(255,255,255,0.05) 55%, transparent 60%);
    background-size: 200% 100%; background-position: 150% 0;
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1); z-index: 3; pointer-events: none;
}
.product-card:hover::before { background-position: -50% 0; }

/* Corner Accents for Cards */
.product-card::before, .gallery-item::before {
    content: ''; position: absolute; top: 15px; left: 15px; width: 12px; height: 12px;
    border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
    z-index: 5; opacity: 0; transition: var(--transition); pointer-events: none;
}
.product-card:hover::before, .gallery-item:hover::before { opacity: 1; transform: translate(-3px, -3px); }

/* Technical Asset ID */
.product-card::after, .gallery-item::after {
    counter-increment: item-id;
    content: "ASSET-ID: 00" counter(item-id);
    position: absolute; top: 15px; right: 20px; font-family: 'Rajdhani', sans-serif;
    font-size: 0.65rem; color: var(--primary); opacity: 0.5; z-index: 5; letter-spacing: 1px;
}

.product-content {
    position: absolute; inset: 0;
    background: linear-gradient(transparent, rgba(2, 0, 29, 0.95));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 25px; opacity: 0; transition: var(--transition); z-index: 2;
}
.product-card:hover .product-content { opacity: 1; padding-bottom: 50px; }

.product-content h3 { color: var(--primary); font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; margin-bottom: 5px; }
.product-content p { color: white; font-size: 0.9rem; line-height: 1.4; margin-bottom: 10px; }

.product-features { display: none; }
.product-features li { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative; padding-left: 25px; }
.product-features li:before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.product-badge {
    position: absolute; top: 15px; right: 15px; background: var(--accent);
    color: #000; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem;
    font-weight: 600; box-shadow: 0 0 10px rgba(255, 204, 0, 0.7); z-index: 2;
}

.product-indicator {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: var(--primary); color: #000; font-size: 0.85rem;
    font-weight: 700; padding: 10px 0; text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
    text-decoration: none;
    z-index: 3;
    display: block;
}
.product-card:hover .product-indicator { transform: translateY(0); }

/* Partner Card UI */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }
.partner-card {
    position: relative; border-radius: 15px; overflow: hidden;
    aspect-ratio: 16 / 9; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition); background: var(--dark-card);
    display: flex; flex-direction: column; text-decoration: none;
}
.partner-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-5px); }

.partner-logo { 
    position: absolute; inset: 0; display: flex; align-items: center; 
    justify-content: center; padding: 40px; transition: var(--transition);
    z-index: 1;
}
.partner-logo img { max-width: 80%; max-height: 80%; object-fit: contain; transition: var(--transition); }

.partner-indicator {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: var(--primary); color: #000; font-size: 0.85rem; font-weight: 700;
    padding: 10px 0; text-align: center; transform: translateY(100%);
    transition: var(--transition); z-index: 2;
}
.partner-card:hover .partner-indicator { transform: translateY(0); }
.partner-card:hover .partner-logo { padding-bottom: 60px; background: rgba(59, 130, 246, 0.05); }
.partner-card:hover .partner-logo img { transform: scale(1.1); }

/* Partner Subpages Hero */
.partner-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.1) 0%, rgba(255, 42, 109, 0.1) 100%);
    text-align: center;
}
.partner-logo-large {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.partner-logo-large img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    object-fit: contain;
}

.partner-description { font-size: 1.2rem; color: var(--dark-text-secondary); margin-bottom: 40px; max-width: 800px; margin: 0 auto; }
.partner-content { background: var(--dark-card); border-radius: 12px; padding: 40px; margin-top: -40px; position: relative; z-index: 1; border: 1px solid rgba(255, 255, 255, 0.05); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin: 40px 0; }
.feature-card {
    background: var(--dark-card); border-radius: 15px; padding: 45px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition);
    text-align: center; position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-10px); }
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0; transition: var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 3.5rem; color: var(--primary); margin-bottom: 25px; transition: var(--transition); z-index: 1; }
.feature-card:hover .feature-icon { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5)); }
.feature-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 1.6rem; margin-bottom: 15px; z-index: 1; color: var(--dark-text); }
.feature-card p { color: var(--dark-text-secondary); font-size: 0.95rem; z-index: 1; transition: var(--transition); line-height: 1.6; }
.feature-card:hover p { color: var(--dark-text); }

.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); text-decoration: none; margin-bottom: 30px; transition: var(--transition); }
.back-link:hover { gap: 15px; }

.section-divider { height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); margin: 40px 0; }
.tagline { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-align: center; margin: 20px 0; letter-spacing: 2px; font-family: 'Rajdhani', sans-serif; }
.highlight-box { 
    background: rgba(59, 130, 246, 0.05); 
    border-left: 4px solid var(--primary); 
    padding: 35px; 
    border-radius: 0 20px 20px 0; 
    margin: 30px 0;
    backdrop-filter: blur(10px);
}
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }

.image-section { margin: 60px 0; }
.image-section-header { text-align: center; margin-bottom: 40px; }
.image-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.image-content.reverse { direction: rtl; }
.image-content.reverse > * { direction: ltr; }
.image-container { 
    border-radius: 20px; overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
}
.image-container::before {
    content: ''; position: absolute; inset: 0;
    border: 1px solid var(--primary); opacity: 0;
    transition: var(--transition); pointer-events: none;
    clip-path: polygon(0 0, 20% 0, 0 20%, 0 0, 100% 0, 80% 0, 100% 20%, 100% 0, 100% 100%, 80% 100%, 100% 80%, 100% 100%, 0 100%, 20% 100%, 0 80%, 0 100%);
}
.image-container img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.image-container:hover { border-color: var(--primary); box-shadow: var(--glow); }
.image-container:hover::before { opacity: 0.5; }
.image-container:hover img { transform: scale(1.05); }
.image-list { list-style: none; margin: 20px 0; }
.image-list li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: var(--dark-text-secondary); position: relative; padding-left: 25px; }
.image-list li:before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.systems-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 30px 0; }
.system-card {
    background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(10px);
    border-radius: 15px; padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.system-card:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-8px); }
.system-card::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transition: 0.6s;
}
.system-card:hover::after { left: 100%; }
.system-label { display: inline-block; background: var(--primary); color: var(--dark-bg); padding: 2px 8px; border-radius: 4px; font-weight: 700; margin-bottom: 10px; font-size: 0.9rem; }

/* --- 10. PRELOADER & INTERACTION --- */
.preloader {
    position: fixed; inset: 0; background: var(--dark-bg);
    z-index: 10000; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.preloader.fade-out { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-line {
    width: 200px; height: 1px; background: rgba(255, 255, 255, 0.05);
    margin-top: 20px; position: relative; overflow: hidden;
}
.loader-line::after {
    content: ''; position: absolute; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanProgress 2s infinite;
}
@keyframes scanProgress { 100% { left: 100%; } }

/* Gallery View Lens */
.view-lens {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    color: #000; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition); z-index: 4;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    pointer-events: none;
}
.gallery-item:hover .view-lens, .product-card:hover .view-lens {
    opacity: 1; transform: translate(-50%, -50%) scale(1);
}

/* Product/Solution Images */
.product-image {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 1; overflow: hidden;
}
.product-image::after, .gallery-item::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0; transition: var(--transition);
    z-index: 2; pointer-events: none;
}
.product-card:hover .product-image::after, .gallery-item:hover::after { opacity: 1; }

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.1); }

/* Client Logos */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}
.client-logo {
    background: var(--dark-card);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    padding: 20px;
}
.client-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(1) opacity(0.5);
    transition: var(--transition);
}
.client-logo:hover { background: rgba(255, 255, 255, 0.02); border-color: var(--primary); }
.client-logo:hover img { filter: grayscale(0) opacity(1); transform: scale(1.1); }

/* --- Gallery Grid & Item Styles --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; margin: 40px 0; }

/* Masonry Variant for non-uniform images */
.masonry-grid { column-count: 3; column-gap: 25px; margin: 40px 0; }
.masonry-grid .gallery-item { break-inside: avoid; margin-bottom: 25px; aspect-ratio: auto; }
.masonry-grid .gallery-item img { height: auto; }
@media (max-width: 992px) { .masonry-grid { column-count: 2; } }
@media (max-width: 576px) { .masonry-grid { column-count: 1; } }

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    background: var(--dark-card);
}
.gallery-item::after {
    /* Reuse the digital grid logic but specifically for the bottom right corner */
    content: ''; position: absolute; bottom: 15px; right: 15px; width: 12px; height: 12px;
    border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
    z-index: 5; opacity: 0; transition: var(--transition); pointer-events: none;
    background: none; /* Override grid pattern from general selector */
}
.gallery-item:hover::after { opacity: 1; transform: translate(3px, 3px); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(2, 0, 29, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

/* Scanning line animation */
.gallery-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; z-index: 3;
}
.gallery-item:hover .gallery-overlay::before { 
    animation: scanLine 2s linear infinite; opacity: 1; 
}
@keyframes scanLine { 0% { top: 0%; } 100% { top: 100%; } }

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(2deg); }
    40% { transform: skew(-2deg); }
    60% { transform: skew(1deg); }
    80% { transform: skew(-1deg); }
    100% { transform: skew(0deg); }
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover { border-color: var(--primary); box-shadow: var(--glow); transform: translateY(-5px); }

.gallery-overlay h4 { color: var(--primary); font-family: 'Rajdhani', sans-serif; font-size: 1.4rem; margin-bottom: 5px; }
.gallery-overlay p { color: white; font-size: 0.9rem; line-height: 1.4; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 9. CUSTOM SECTIONS --- */
.hero-banner {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent),
                linear-gradient(135deg, #02001d 0%, #0a0a12 100%);
    background-size: cover;
    background-position: center;
    color: var(--dark-text);
    text-align: center;
    padding: 100px 20px; /* Adjust padding as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 450px; /* Example height, adjust as needed */
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Adjust based on header height */
    background-attachment: fixed;
    animation: backgroundShift 20s infinite alternate linear;
}

@media (max-width: 768px) {
    .hero-banner {
        margin-top: 60px; /* Smaller margin for mobile nav */
    }
}

@keyframes backgroundShift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1750px;
    margin: 0 auto;
}

.hero-banner h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
}

.hero-banner p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
    color: var(--dark-text-secondary);
}

/* Specific style for the security image */
.security-image {
    max-width: 1250px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow);
    transition: var(--transition);
}
.security-image:hover { transform: scale(1.02); border-color: var(--primary); }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 1.5rem;
    animation: float 2s infinite;
    z-index: 2;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-down:hover {
    opacity: 1;
    text-shadow: var(--glow);
}
/* --- 6. ADMIN PANEL UI --- */
table {
    width: 100%; border-collapse: collapse; background: var(--dark-card);
    border-radius: 8px; overflow: hidden; margin: 20px 0;
}
th, td { padding: 15px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
th { background: rgba(0, 245, 255, 0.1); color: var(--primary); font-family: 'Rajdhani', sans-serif; font-size: 1.1rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { 
    background: var(--dark-card); padding: 35px 25px; border-radius: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.05); text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); transform: translateY(-5px); box-shadow: var(--glow); }
.stat-number { font-size: 3rem; font-weight: 800; color: var(--primary); display: block; font-family: 'Rajdhani', sans-serif; line-height: 1; margin-bottom: 10px; }
.stat-label { color: var(--dark-text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.tabs { display: flex; gap: 10px; margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.tab-link {
    background: transparent; border: none; color: var(--dark-text-secondary);
    padding: 15px 25px; cursor: pointer; font-weight: 600; transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.tab-link:hover { color: var(--primary); }
.tab-link.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; animation: fadeIn 0.4s ease; }
.tab-content.active { display: block; }

.status-badge {
    padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
}
.status-unread, .status-failed { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; }
.status-read, .status-sent, .status-active { background: rgba(81, 207, 102, 0.2); color: #51cf66; }

/* Admin Header */
.admin-header {
    background: var(--dark-card);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 40px;
}
.admin-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header .logo img {
    height: 40px;
}
.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.admin-header .user-info span {
    color: var(--dark-text);
    font-weight: 500;
}

/* Admin Content Wrapper */
.admin-content-wrapper {
    padding-bottom: 80px; /* Space for footer */
}

/* Login Form */
.login-form-container {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
    margin: 100px auto; /* Center login form */
}
.login-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}
.login-form-container .form-group input {
    width: 100%;
    padding: 14px;
    background: rgba(10, 10, 18, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--dark-text);
    font-family: 'Montserrat', sans-serif;
}
.login-form-container .form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}
.login-form-container .btn {
    width: 100%;
    padding: 14px;
}

/* Setup Page Styles (moved from setup.php) */
.setup-container {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 500px;
    margin: 100px auto; /* Center setup form */
}
.setup-container .help-text {
    font-size: 0.9rem;
    color: var(--dark-text-secondary);
    margin-top: 5px;
}

/* --- 7. ANIMATIONS --- */
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.floating { animation: float 5s ease-in-out infinite; }

/* --- 8. RESPONSIVE --- */
@media (max-width: 992px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .two-column, .image-content, .image-content.reverse, .systems-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .footer-content { grid-template-columns: 1fr; }
    .mobile-nav-toggle { display: block; }
    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background: var(--dark-bg); 
        flex-direction: column; 
        padding: 20px; 
        gap: 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.active { display: flex; }
    .dropdown-content { position: static; background: none; box-shadow: none; border: none; padding: 0 0 0 15px; }
    .dropdown-content a { padding: 10px 0 !important; }
}