:root {
    /* Color Palette - LIGHT MODE (Default) */
    --clr-primary-dark: #0a165e;
    --clr-primary-bright: #2b4dff;
    --clr-white: #ffffff;
    --clr-bg: #f8fafc; /* Light background */
    --clr-bg-alt: #ffffff;
    --clr-text: #1e293b; /* Dark text */
    --clr-text-muted: #475569; /* Darker muted text for better contrast */
    --clr-heading: #0f172a;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary-bright) 0%, var(--clr-primary-dark) 100%);
    --grad-glow: linear-gradient(90deg, #2b4dff, #0a165e);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(43, 77, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    /* Color Palette - DARK MODE */
    --clr-bg: #030826; 
    --clr-bg-alt: #0a165e;
    --clr-text: #e2e8f0;
    --clr-text-muted: #94a3b8;
    --clr-heading: #ffffff;
    
    --grad-glow: linear-gradient(90deg, #2b4dff, #00d2ff);
    
    --glass-bg: rgba(10, 22, 94, 0.2);
    --glass-border: rgba(43, 77, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--clr-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--clr-text);
    transition: var(--transition);
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(43, 77, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 77, 255, 0.6);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--clr-primary-dark);
    border: 1px solid var(--clr-primary-bright);
}

[data-theme="dark"] .btn-secondary {
    color: var(--clr-white);
}

.btn-secondary:hover {
    background: rgba(43, 77, 255, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

[data-theme="dark"] #navbar.scrolled {
    background: rgba(3, 8, 38, 0.85);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--clr-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.theme-toggle:hover {
    color: var(--clr-primary-bright);
    transform: translateY(-2px);
}

.theme-toggle .light-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .dark-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .light-icon {
    display: block;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--clr-primary-bright);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--clr-primary-bright);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(43, 77, 255, 0.1);
    border: 1px solid rgba(43, 77, 255, 0.3);
    border-radius: 50px;
    color: var(--clr-primary-bright);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.highlight {
    color: transparent;
    background: var(--grad-glow);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--clr-text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--clr-primary-bright);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--clr-primary-bright);
    border-radius: 2px;
}

.center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--clr-text-muted);
}

.security-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(10, 22, 94, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--clr-primary-bright);
    margin-top: 2rem;
}

.security-banner i {
    font-size: 2rem;
    color: var(--clr-primary-bright);
}

.security-banner h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.security-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.image-panel {
    padding: 1rem;
    position: relative;
}

.floating-img {
    width: 100%;
    border-radius: 8px;
    animation: float 6s ease-in-out infinite;
}

.panel-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(43,77,255,0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(43, 77, 255, 0.8), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 30px rgba(43, 77, 255, 0.3);
}

.service-card:hover::after {
    opacity: 1;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
}

[data-theme="dark"] .service-content {
    background: linear-gradient(to top, rgba(10, 22, 94, 0.8), rgba(10, 22, 94, 0.2));
}

.service-icon {
    font-size: 2rem;
    color: var(--clr-primary-bright);
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(135deg, #2b4dff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list i {
    color: var(--clr-primary-bright);
    font-size: 0.8rem;
}

/* Why Us */
.why-us {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.why-us-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.93); /* highly opaque to fade the image */
    z-index: 0;
}

[data-theme="dark"] .why-us-overlay {
    background: linear-gradient(to bottom, var(--clr-bg), rgba(3, 8, 38, 0.6) 50%, var(--clr-bg));
}

.why-us-container {
    position: relative;
    z-index: 1;
}

.features-list {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 22, 94, 0.1);
    border: 1px solid transparent;
    border-radius: 12px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(10, 22, 94, 0.3);
    border-color: var(--glass-border);
    transform: translateX(10px);
}

.feature-icon {
    background: rgba(43, 77, 255, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-primary-bright);
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-content p {
    color: var(--clr-text-muted);
    margin: 0;
}

/* CTA */
.cta-box {
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(43,77,255,0.15) 0%, transparent 60%);
    z-index: -1;
}

.cta-box p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--clr-text-muted);
}

.footer {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    color: var(--clr-text);
}

.footer p, .footer a:not(.btn) {
    color: var(--clr-text-muted);
}

.footer h4, .footer .logo {
    color: var(--clr-heading);
}

.footer-links a:hover {
    color: var(--clr-primary-bright);
    padding-left: 5px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--clr-primary-bright);
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.footer-contact p {
    color: var(--clr-text-muted);
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.b12-link {
    color: #9f7aea; /* Retaining the original purple for B12 logo */
    font-weight: 600;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* Reveal Elements on Scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--clr-bg-alt);
        padding: 2rem 0;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Contact Page Styles */
.contact-page {
    min-height: 100vh;
}

.contact-section {
    padding: 150px 0 80px;
    position: relative;
    z-index: 10;
}

.contact-title {
    margin-bottom: 0.5rem;
    font-size: 3rem;
}

.cyan-underline {
    width: 60px;
    height: 4px;
    background: #2b4dff; /* Theme primary bright */
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    color: var(--clr-text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

/* Form Styles */
.contact-form-wrapper {
    padding: 2.5rem;
    background: var(--clr-glass-panel); /* Adaptable */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text);
}

.required {
    color: #2b4dff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.5); /* Dark grey input */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff; /* White text for dark inputs */
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Light mode specific override for inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--clr-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2b4dff;
    background: rgba(30, 41, 59, 0.8);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    background: rgba(255, 255, 255, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: rgba(0,0,0,0.4);
}



/* Right Side Cards */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card, .cta-card {
    padding: 2.5rem;
    background: var(--clr-glass-panel);
}

.info-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-text-muted);
    margin-bottom: 0.8rem;
}

.info-text {
    line-height: 1.6;
}

.focus-list {
    list-style: none;
    padding: 0;
}

.focus-list li {
    margin-bottom: 0.8rem;
    color: var(--clr-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.focus-list li i {
    color: #2b4dff;
    font-size: 0.8rem;
}

.cta-text {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}



@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
