:root {
    /* Colors inspired by the logo */
    --color-green: #5ba946;
    --color-green-glow: rgba(91, 169, 70, 0.4);
    --color-blue: #3a619c;
    --color-blue-glow: rgba(58, 97, 156, 0.4);
    
    /* Theme - Bright/Light Mode */
    --bg-light: #f0f4f8; /* Soft subtle blueish-grey background */
    --glass-bg: rgba(255, 255, 255, 0.85); /* High opacity white for visibility */
    --glass-border: rgba(255, 255, 255, 1);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    
    /* Text */
    --text-main: #1e293b;
    --text-muted: #64748b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-light);
    /* Subtle dot grid pattern */
    background-image: radial-gradient(rgba(58, 97, 156, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 1rem;
    position: relative;
}

/* =======================================
   CCTV EFFECTS & OVERLAYS 
   ======================================= */

.cctv-ui {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; /* Let clicks pass through */
    z-index: 5;
}

/* Reticle corners */
.cctv-corner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(58, 97, 156, 0.4);
}

.top-left { top: 40px; left: 40px; border-bottom: none; border-right: none; }
.top-right { top: 40px; right: 40px; border-bottom: none; border-left: none; }
.bottom-left { bottom: 40px; left: 40px; border-top: none; border-right: none; }
.bottom-right { bottom: 40px; right: 40px; border-top: none; border-left: none; }

/* REC icon */
.rec-indicator {
    position: absolute;
    top: 50px;
    right: 120px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ef4444; /* Red */
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
}

.red-dot {
    width: 16px;
    height: 16px;
    background-color: #ef4444;
    border-radius: 50%;
    animation: blink 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    box-shadow: 0 0 10px #ef4444;
}

@keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.9); }
}

/* Cam Info Text */
.cam-info {
    position: absolute;
    top: 50px;
    left: 120px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    color: var(--color-blue);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(58, 97, 156, 0.2);
}

/* Scanning line effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to bottom, rgba(58, 97, 156, 0), rgba(58, 97, 156, 0.15), rgba(58, 97, 156, 0));
    animation: scan 8s linear infinite;
    z-index: 6;
    opacity: 0.8;
}

@keyframes scan {
    0% { transform: translateY(-100px); }
    100% { transform: translateY(110vh); }
}

/* =======================================
   BACKGROUND BLOBS 
   ======================================= */

.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.45; /* High enough to be visible on light bg */
    animation: float 15s infinite ease-in-out alternate;
}

.blob.green {
    background-color: var(--color-green);
    width: 500px;
    height: 500px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    top: -100px;
    left: -100px;
}

.blob.blue {
    background-color: var(--color-blue);
    width: 550px;
    height: 550px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
    animation-duration: 20s;
}

.blob.green.small {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    opacity: 0.25;
    animation-delay: -2s;
    animation-duration: 12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(30px, -40px) scale(1.05) rotate(5deg); }
    66% { transform: translate(-20px, 20px) scale(0.95) rotate(-5deg); }
    100% { transform: translate(40px, 40px) scale(1.1) rotate(2deg); }
}

/* =======================================
   MAIN CONTENT 
   ======================================= */

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    margin: auto;
    z-index: 10;
    box-shadow: 
        0 30px 60px -15px var(--glass-shadow),
        0 0 40px rgba(58, 97, 156, 0.05); /* Soft aura */
    text-align: center;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(58, 97, 156, 0.2), transparent);
}

.logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.1)); /* Pop out from background */
    transition: transform 0.3s ease;
}

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

.company-name {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-green), var(--color-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Content Area */
.icon-wrapper {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.icon {
    width: 65px;
    height: 65px;
    color: var(--color-blue);
    filter: drop-shadow(0 5px 15px var(--color-blue-glow));
    animation: pulseIcon 4s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.maintenance-title {
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text-main);
}

.maintenance-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Card */
.contact-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.25rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(58, 97, 156, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(58, 97, 156, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--color-green), var(--color-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(58, 97, 156, 0.15);
    border-color: rgba(58, 97, 156, 0.3);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.phone-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-blue);
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: var(--color-green);
}

.phone-icon-wrapper {
    background: rgba(58, 97, 156, 0.1);
    padding: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.phone-icon {
    width: 32px;
    height: 32px;
    color: var(--color-blue);
    animation: wiggle 2.5s ease infinite;
    transition: color 0.3s ease;
}

@keyframes wiggle {
    0%, 80%, 100% { transform: rotate(0deg); }
    85% { transform: rotate(-15deg); }
    90% { transform: rotate(15deg); }
    95% { transform: rotate(-15deg); }
}

.phone-number:hover .phone-icon {
    color: var(--color-green);
}

.phone-number:hover .phone-icon-wrapper {
    background: rgba(91, 169, 70, 0.15);
}

/* Services Tags */
.services {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.75rem;
    background: rgba(58, 97, 156, 0.05); /* soft tinted background */
    border-radius: 30px;
    border: 1px solid rgba(58, 97, 156, 0.15);
}

.service-icon {
    width: 22px;
    height: 22px;
    color: var(--color-blue);
}

.services p {
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
}

/* =======================================
   RESPONSIVE DESIGN 
   ======================================= */

@media (max-width: 900px) {
    .rec-indicator { right: 40px; top: 40px; }
    .cam-info { left: 40px; top: 40px; }
}

@media (max-width: 768px) {
    .glass-container {
        padding: 2.5rem;
        width: 85%;
    }
    .maintenance-title { font-size: 1.8rem; }
    .phone-number { font-size: 2rem; }
    
    .cctv-corner { width: 30px; height: 30px; }
    .top-left { top: 20px; left: 20px; }
    .top-right { top: 20px; right: 20px; }
    .bottom-left { bottom: 20px; left: 20px; }
    .bottom-right { bottom: 20px; right: 20px; }
    
    .rec-indicator { right: 30px; top: 30px; font-size: 1rem; }
    .cam-info { left: 30px; top: 30px; font-size: 1rem; }
}

@media (max-width: 480px) {
    body {
        /* No specific flex-start override to keep it centered */
    }
    
    .glass-container {
        padding: 2rem 1.5rem;
        width: 92%;
        border-radius: 24px;
        box-shadow: 0 15px 30px -10px var(--glass-shadow);
        z-index: 10;
        position: relative;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    
    .logo { height: 65px; }
    .company-name { font-size: 1.75rem; }
    .maintenance-title { font-size: 1.6rem; }
    
    .contact-card { padding: 1.5rem; }
    .phone-number { font-size: 1.75rem; gap: 0.75rem; }
    .phone-icon-wrapper { padding: 0.75rem; }
    .phone-icon { width: 24px; height: 24px; }
    
    .services {
        padding: 0.85rem 1.25rem;
        flex-direction: column;
        text-align: center;
    }
    
    /* On very small mobile screens, CCTV overlay needs to be minimal */
    .cctv-corner { display: none; }
    .rec-indicator { top: 15px; right: 15px; }
    .cam-info { display: none; }
}
