* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Design Tokens for Theme Swapping */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --accent-color: #f91413;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: #222222;
    --toggle-bg: #ffffff;
    --toggle-text: #000000;
}

[data-theme="light"] {
    --bg-color: #FFF;
    --card-bg: #ffffff;
    --accent-color: #066da4; 
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --toggle-bg: #000000;
    --toggle-text: #ffffff;
}

body {
    font-family: 'Inter', 'Calibri', sans-serif; /* Modern premium Typography upgrade */
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation Bar - Blurry background distinct layer */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgb(from var(--bg-color) r g b / 45%); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.logo span {
    color: #0dc1fc;
    font-size: 0.96rem;
    font-weight: 900;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Active State Menu Link */

.nav-links a.active {
    color: var(--accent-color) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 4px;
}


.theme-toggle-btn {
    background-color: var(--toggle-bg);
    color: var(--toggle-text);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

/* Generic Section Styling */
section:not(#home) {
    padding: 8rem 2rem 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 span {
    color: var(--accent-color);
}
h4 span {
    color:#0dc1fc;
	
	margin-bottom: 0.1rem;
}

.subtitle {
    margin-bottom: 3.5rem;
    text-align: center;
    max-width: 650px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Hero/Home Section Setup with text overlays */
#home {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.light-video { opacity: 0; pointer-events: none; }
.dark-video { opacity: 1; }

[data-theme="light"] #home .dark-video { opacity: 0; pointer-events: none; }
[data-theme="light"] #home .light-video { opacity: 1; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* Tint protection for foreground text readability */
    z-index: 2;
    transition: background 0.3s ease;
}

[data-theme="light"] .hero-overlay {
    background: rgba(255, 255, 255, 0.45);
}

.hero-content {
    position: relative;
    z-index: 3; /* Places text safely in front of videos */
    max-width: 850px;
}

#home h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-main);
}

#home p {
    font-size: 1.4rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgb(from var(--accent-color) r g b / 30%);
}

.cta-button:active {
    transform: translateY(0);
}

/* Services Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* About Section Flex Grid Layout */
.about-container {
    display: flex;
    gap: 2.5rem;
    width: 100%;
    align-items: flex-start;
}

.about-col-left {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.about-col-right {
    flex: 1;
    display: flex;    
    gap: 1.5rem;      
}

.about-small-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between vertical stacked cards */
}


/* --- Pin Pad Vault Section Layout Adjustments --- */
#solution {
    width: 100%;
    min-height: 100vh;
    position: relative; 
    overflow: hidden;
    
    /* These three lines fix the vertical stacking structure */
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    
    padding: 8rem 2rem 5rem 2rem;
    max-width: 100% !important; 
    margin: 0 auto;
    user-select: none;
}

/* Fix heading alignment and bring it to the absolute foreground layer */
#solution h2 {
    position: relative;
    z-index: 3; /* Forces it in front of the video so it doesn't disappear! */
    margin-bottom: 2rem;
    text-align: center;
    width: 100%; /* Gives it the full width of the screen to stay on one line */
    white-space: nowrap; /* Strictly forbids the browser from making it two lines */
}

/* Force media element layer to scale edge-to-edge behind everything */
.solution-bg-media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1; /* Stays locked at the bottom layer */
}

/* Protection mask layer over video/image */
.solution-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75); 
    z-index: 2; /* Sandwiched over video, under text/keypad content */
    transition: background 0.3s ease;
}

/* Light Mode support wrapper override rules */
[data-theme="light"] #solution .solution-overlay {
    background: rgba(255, 255, 255, 0.65); 
}

/* Bring presentation layout layer safely forward */
.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3; /* Floating safely over background tint layer */
    width: 100%;
    max-width: 380px;
}

  /* Centralized layout wrapper */
  
        /* Brand Header Styles */
        .brand-header {
            text-align: center;
            margin-bottom: 28px;
            width: 100%;
        }
        .brand-title {
            font-size: 26px;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 1px;
            text-shadow: 0 4px 16px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,0.9);
            margin-bottom: 8px;
        }
        .brand-subtitle {
            font-size: 14px;
            color: #cbd5e1;
            font-weight: 500;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 8px rgba(0,0,0,0.8);
        }
        /* Request Access Text Link style */
        .request-link {
            color: #0be056;
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s;
        }
        .request-link:hover {
            color: #a5b4fc;
            text-decoration: underline;
        }
        /* Login Card Frame */
        .login-card {
            width: 100%; 
            background: rgba(13, 20, 32, 0.72);
            backdrop-filter: blur(20px); 
            -webkit-backdrop-filter: blur(20px);
            border-radius: 24px; 
            padding: 32px; 
            display: flex; 
            flex-direction: column;
            align-items: center; 
            justify-content: center; 
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
        }
        .lock-icon-wrap {
            width: 48px; height: 48px; background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 50%;
            display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
        }
        .lock-icon { width: 24px; height: 24px; color: #0be056; fill: none; }
        
        /* PIN dots */
        .pin-container { display: flex; justify-content: center; gap: 20px; margin-bottom: 32px; width: 100%; }
        .dot {
            width: 16px; height: 16px; border-radius: 50%; border: 2px solid #4b5563;
            background: transparent; transition: all 0.2s ease;
        }
        .dot.active {
            background: #0be056; border-color: #818cf8;
            box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
        }
        /* Error Area */
        .error-box {
            display: none; align-items: center; justify-content: center; gap: 8px;
            background: rgba(127, 29, 29, 0.5); border: 1px solid rgba(220, 38, 38, 0.4);
            padding: 10px 16px; border-radius: 10px; margin-bottom: 24px; width: 100%;
        }
        .error-text { font-size: 13px; color: #f87171; font-weight: 500; }
        
        /* Centered Grid container */
        .grid-container { 
            display: grid !important; 
            grid-template-columns: repeat(3, 70px) !important; 
            gap: 16px !important; 
            width: 100% !important; 
            max-width: 242px !important; 
            margin: 0 auto !important;
            justify-content: center !important;
            align-content: center !important;
        }
        .btn {
            background: rgba(28, 36, 51, 0.6); border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px; width: 70px; height: 70px; display: flex; align-items: center;
            justify-content: center; font-size: 20px; font-weight: 500; color: #e5e7eb;
            cursor: pointer; outline: none; transition: all 0.15s ease;
            margin: 0 auto;
        }
        .btn:hover { background: #0be056; color: #fff; border-color: #818cf8; box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
        .btn:active { transform: scale(0.93); }
        .btn-del { background: rgba(127, 29, 29, 0.3); border-color: rgba(220, 38, 38, 0.3); color: #f87171; }
        .btn-del:hover { background: #dc2626; color: #fff; border-color: #ef4444; box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
        .spacer { width: 70px; height: 70px; }
        
        /* Loading view overlay */
        .overlay {
            position: absolute; inset: 0; background: rgba(11, 15, 25, 0.92);
            border-radius: 24px; display: none; align-items: center; justify-content: center; z-index: 20;
        }
        .spinner {
            width: 36px; height: 36px; border: 4px solid rgba(99, 102, 241, 0.2);
            border-top-color: #6366f1; border-radius: 50%; animation: spin 0.8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* POPUP MODAL STYLES */
        .modal-backdrop {
            position: fixed; inset: 0; background: rgba(5, 8, 16, 0.85);
            backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            display: none; align-items: center; justify-content: center; p: 20px;
            z-index: 100;
        }
        .modal-card {
            background: #131a26; width: 100%; max-width: 420px;
            border-radius: 20px; padding: 28px; border: 1px solid rgba(255,255,255,0.08);
            box-shadow: 0 20px 40px rgba(0,0,0,0.3); position: relative;
        }
        .modal-close {
            position: absolute; top: 28px; right: 16px; background: none; border: none;
            color: #9ca3af; font-size: 22px; cursor: pointer;
        }
        .modal-close:hover { color: #ffffff; }
        .modal-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; color: #fff; text-align: left; }
        .modal-desc { font-size: 13px; color: #9ca3af; margin-bottom: 20px; text-align: left; }
        
        /* Form Field Element Styles */
        .form-group { margin-bottom: 16px; text-align: left; user-select: auto; }
        .form-label { display: block; font-size: 12px; font-weight: 600; color: #9ca3af; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
        .form-input {
            width: 100%; background: #1c2433; border: 1px solid rgba(255,255,255,0.08);
            border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 14px; outline: none;
            transition: border-color 0.2s; user-select: auto;
        }
        .form-input:focus { border-color: #6366f1; }
        .submit-btn {
            width: 100%; background: #0be056; color: #fff; border: none; font-size: 15px;
            font-weight: 600; padding: 14px; border-radius: 10px; cursor: pointer; margin-top: 8px;
            transition: background 0.2s, transform 0.1s;
        }
        .submit-btn:hover { background: #059036; }
        .submit-btn:active { transform: scale(0.98); }






/* Contact Section Form */
.contact-form {
    width: 100%;
    max-width: 550px;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    background-color:#0dc1fc;
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgb(from var(--accent-color) r g b / 25%);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Mobile Responsive Engine */
@media (max-width: 900px) {
    #home h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column; 
    }
    .about-col-right {
        flex-direction: column; 
        gap: 1.5rem;
        width: 100%;
    }
    section:not(#home) {
        padding: 6rem 1.5rem 3rem 1.5rem;
    }
}
 
/* --- Pin Pad Vault Section Layout Adjustments --- */
#solution {
    width: 100%;
    min-height: 100vh;
    position: relative; /* Essential to anchor background layers inside this specific section */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 5rem 2rem;
    max-width: 100% !important; /* Forces layout to fill whole browser track width edge-to-edge */
    margin: 0 auto;
    user-select: none;
}

/* Force media element layer to scale edge-to-edge behind everything */
.solution-bg-media {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1; /* Lowest layer: stays in background */
}

/* Protection mask layer over video/image to keep keypad buttons crisp */
.solution-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.75); /* Dark screen tint protection mask */
    z-index: 2; /* Sandwiched over video, under keypad content wrapper */
    transition: background 0.3s ease;
}

/* Light Mode support wrapper override rules */
[data-theme="light"] #solution .solution-overlay {
    background: rgba(255, 255, 255, 0.65); /* Elegant light theme visibility tint block */
}

/* Bring presentation layout layer safely forward */
.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3; /* Highest layer: floats comfortably over media files */
    width: 100%;
    max-width: 380px;
}

/* Fix heading alignment rule within solution view track context */
#solution h2 {
    margin-bottom: 24px;
}


   /* Footer Customization */
        footer {
            background-color: var(--card-bg);
            text-align: center;
            padding: 1.5rem;
            border-top: 1px solid var(--border-color);
            color: var(--text-muted);
            font-size: 0.85rem;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        @media (max-width: 768px) {
            #home h1 { font-size: 2.2rem; }
            .nav-links { display: none; } 
            section { padding-top: 5rem; }
        }


