/* assets/css/housing/society.css */

/* =========================================
   1. ROOT VARIABLES & GLOBAL THEME
   ========================================= */
:root {
    --qb-teal: #00BFB3;       /* Core Tech Color (Innovation) */
    --qb-teal-glow: rgba(0, 191, 179, 0.4);
    --qb-navy: #0f172a;       /* Deep Space Blue Background */
    --qb-card-bg: rgba(255, 255, 255, 0.03); /* Dark Glass */
    --qb-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Poppins', sans-serif;
}

body {
    background-color: #0b1120; /* Dark Mode Base */
    color: #e2e8f0;            /* Soft White Text */
    font-family: var(--font-main);
}

/* =========================================
   2. HERO SECTION (VISIBILITY FIXED)
   ========================================= */
.housing-hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    text-align: center;
    
    /* FIX: Directional Gradient (Lighter at top to see image, Dark at bottom to blend) */
    background: linear-gradient(to bottom, rgba(11, 17, 32, 0.5) 0%, rgba(11, 17, 32, 1) 100%), 
                url('../../images/housing/hero-bg.jpg');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect for "Premium" feel */
}

/* The Animated Blobs (QualiBolt DNA - Subtle) */
.aurora-blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5; /* Reduced opacity so it doesn't hide the bg image */
    animation: float 10s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: #2c3e50; }
.blob-2 { bottom: 10%; right: -10%; width: 400px; height: 400px; background: #005f59; }
.blob-3 { top: 40%; left: 30%; width: 300px; height: 300px; background: rgba(0, 191, 179, 0.1); }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Hero Typography (Readability Enhanced) */
.housing-hero h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    /* FIX: Strong Text Shadow for readability over image */
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8); 
    letter-spacing: -1px;
}

.housing-hero .lead {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    color: #cbd5e1; /* Brighter grey */
    max-width: 600px;
    margin: 0 auto 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

/* =========================================
   3. HEADER OVERRIDES (FOR DARK THEME)
   ========================================= */
/* Ensure header links are white on dark background */
.main-header .main-nav ul li a {
    color: rgba(255, 255, 255, 0.85);
}
.main-header .main-nav ul li a:hover,
.main-header .main-nav ul li a.active {
    color: var(--qb-teal);
}
.main-header .site-title {
    color: #fff;
}

/* Dark Glass on Scroll (Matches Academy behavior but Dark) */
.main-header.scrolled {
    background: rgba(15, 23, 42, 0.9); /* Dark Navy Glass */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* =========================================
   4. LIVE ZONE BADGE (PULSE EFFECT)
   ========================================= */
.live-zone-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6); /* Darker bg for contrast */
    border: 1px solid var(--qb-teal);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 25px;
    color: var(--qb-teal);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--qb-teal);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 0 rgba(0, 191, 179, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 191, 179, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 191, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 191, 179, 0); }
}

/* =========================================
   5. GLASS TABS (SWITCHER)
   ========================================= */
.hero-tabs {
    position: relative;
    z-index: 1;
    display: inline-flex;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 60px;
    padding: 6px;
    border: 1px solid var(--qb-border);
}

.hero-tab-btn {
    padding: 12px 35px;
    border-radius: 50px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-tab-btn.active {
    background: var(--qb-teal);
    color: #000;
    box-shadow: 0 0 25px var(--qb-teal-glow);
    font-weight: 700;
}

.hero-tab-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* =========================================
   6. TRUST STRIP (FLOATING SHIELD)
   ========================================= */
.safety-strip {
    background: rgba(15, 23, 42, 0.85); /* Slightly more opaque */
    backdrop-filter: blur(20px);
    border: 1px solid var(--qb-border);
    border-radius: 16px;
    padding: 30px;
    margin-top: -60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6); /* Deep shadow for lift */
}

.safety-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.safety-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.safety-icon img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px var(--qb-teal-glow));
}

.safety-text h4 { font-size: 1rem; margin: 0; color: #fff; font-weight: 600; }
.safety-text p { font-size: 0.8rem; margin: 0; color: #94a3b8; }

/* =========================================
   7. SERVICES GRID & 3D CARDS
   ========================================= */
.service-section { padding: 80px 0; }
.section-header h2 { font-size: 2.5rem; color: #fff; margin-bottom: 10px; }
.section-header p { color: #94a3b8; font-size: 1.1rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--qb-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Hover Effects */
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--qb-teal);
    box-shadow: 0 0 40px rgba(0, 191, 179, 0.1);
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}

/* 3D Icon Handling */
.service-card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 191, 179, 0.3));
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-icon img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(0, 191, 179, 0.6)); /* Brighter glow on hover */
}

.service-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; font-weight: 600; }
.service-card p { font-size: 0.95rem; color: #94a3b8; margin-bottom: 25px; line-height: 1.6; }

.btn-service {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    transition: all 0.3s;
}
.btn-service:hover { opacity: 1; color: var(--qb-teal); gap: 15px; }

/* =========================================
   8. B2B SECTION (DARKER CONTRAST)
   ========================================= */
.b2b-section {
    background: linear-gradient(to bottom, #0b1120, #020617);
    padding: 80px 0;
    border-top: 1px solid var(--qb-border);
}

/* =========================================
   9. COMPARISON TABLE (DARK MODE)
   ========================================= */
.comparison-section { padding: 80px 0; background: #0b1120; }

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--qb-border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 40px;
}

.compare-table th, .compare-table td {
    padding: 20px 30px;
    text-align: left;
    border-bottom: 1px solid var(--qb-border);
    color: #e2e8f0;
}

.compare-table th { 
    background: rgba(255,255,255,0.03); 
    color: #94a3b8; 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
}
.compare-table th.qb-header { 
    background: var(--qb-teal); 
    color: #000; 
    font-weight: 700; 
}

.compare-table td i.fa-check-circle { color: var(--qb-teal); font-size: 1.2rem; margin-right: 8px; }
.compare-table td i.fa-times-circle { color: #ef4444; opacity: 0.6; margin-right: 8px; }

/* =========================================
   10. FOOTER & LEGAL (CONSISTENT)
   ========================================= */
/* Legal Footer Note */
.legal-footer-note {
    background: #020617;
    color: #475569;
    border-top: 1px solid var(--qb-border);
    text-align: center;
    padding: 20px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Force Footer to match Dark Theme (Overriding Main CSS) */
.main-footer {
    background-color: #020617 !important;/* assets/css/housing/society.css */

/* =========================================
   1. ROOT VARIABLES (THE "CYBER-TECH" PALETTE)
   ========================================= */
:root {
    --qb-teal: #00BFB3;       /* Innovation / Active */
    --qb-teal-glow: rgba(0, 191, 179, 0.5);
    --qb-navy: #0f172a;       /* Deep Space Background */
    --qb-glass: rgba(255, 255, 255, 0.03); /* Glass Panes */
    --qb-border: rgba(255, 255, 255, 0.08);
    --qb-gold: #fbbf24;       /* For Electrical/Premium */
    --qb-danger: #ef4444;     /* For Alerts */
    --font-main: 'Poppins', sans-serif;
}

body {
    background-color: #020617; /* Darkest Navy */
    color: #e2e8f0;
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* =========================================
   2. HEADER & FOOTER OVERRIDES (CONSISTENCY)
   ========================================= */
/* Force transparent header to handle dark bg */
.main-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 191, 179, 0.2);
}
.main-header .main-nav ul li a { color: #e2e8f0; }
.main-header .main-nav ul li a:hover,
.main-header .main-nav ul li a.active { color: var(--qb-teal); }
.main-header .site-title { color: #fff; }

/* Force Footer to match Dark Theme */
.main-footer {
    background-color: #020617 !important;
    border-top: 1px solid var(--qb-border);
}
.main-footer h4, .main-footer .site-title-footer { color: #fff !important; }
.main-footer p, .main-footer a { color: #94a3b8 !important; }
.main-footer .footer-bottom { border-top: 1px solid var(--qb-border) !important; }

/* =========================================
   3. HERO SECTION (THE COMMAND CENTER)
   ========================================= */
.housing-hero {
    position: relative;
    padding: 180px 0 120px;
    text-align: center;
    /* The ONE Image you kept: The Cityscape */
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 1) 100%), 
                url('../../images/housing/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Animated Aurora Blobs (The QualiBolt DNA) */
.aurora-blob {
    position: absolute;
    filter: blur(90px);
    z-index: 0;
    opacity: 0.4;
    animation: float 10s infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: var(--qb-teal); }
.blob-2 { bottom: 10%; right: -10%; width: 400px; height: 400px; background: #3b82f6; }

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 50px); } }

/* Hero Text */
.housing-hero h1 {
    font-size: 3.5rem; font-weight: 700; margin-bottom: 1rem; position: relative; z-index: 2;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.housing-hero .lead {
    font-size: 1.2rem; color: #94a3b8; max-width: 700px; margin: 0 auto 3rem;
    position: relative; z-index: 2; font-weight: 300;
}

/* =========================================
   4. UI COMPONENTS: BADGES & TABS
   ========================================= */
.live-zone-badge {
    position: relative; z-index: 2;
    display: inline-flex; align-items: center;
    background: rgba(0, 191, 179, 0.1);
    border: 1px solid var(--qb-teal);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.8rem; margin-bottom: 25px;
    color: var(--qb-teal);
    box-shadow: 0 0 20px var(--qb-teal-glow);
    backdrop-filter: blur(5px);
}
.pulse-dot {
    width: 8px; height: 8px; background: var(--qb-teal);
    border-radius: 50%; margin-right: 10px;
    box-shadow: 0 0 0 rgba(0,191,179,0.7);
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,191,179,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0,191,179,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,191,179,0); }
}

.hero-tabs {
    position: relative; z-index: 2;
    display: inline-flex; background: rgba(255,255,255,0.05);
    border: 1px solid var(--qb-border); border-radius: 50px; padding: 5px;
    backdrop-filter: blur(10px);
}
.hero-tab-btn {
    padding: 12px 30px; border-radius: 40px; color: #94a3b8;
    text-decoration: none; font-weight: 500; transition: all 0.3s ease;
}
.hero-tab-btn.active {
    background: var(--qb-teal); color: #000;
    box-shadow: 0 0 25px var(--qb-teal-glow); font-weight: 700;
}

/* =========================================
   5. THE HOLOGRAPHIC ICONS (NO IMAGES NEEDED)
   ========================================= */
/* The Orb Container */
.holo-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.02);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    transition: all 0.4s ease;
}

/* The Inner Glow */
.holo-icon::after {
    content: ''; position: absolute; inset: 5px;
    border-radius: 50%; opacity: 0.5;
    filter: blur(8px); z-index: -1;
    transition: all 0.4s ease;
}

/* Color Variants for Services */
.holo-teal { color: var(--qb-teal); border-color: var(--qb-teal); }
.holo-teal::after { background: var(--qb-teal); }

.holo-gold { color: var(--qb-gold); border-color: var(--qb-gold); }
.holo-gold::after { background: var(--qb-gold); }

.holo-white { color: #fff; border-color: #fff; }
.holo-white::after { background: #fff; }

.holo-green { color: #10b981; border-color: #10b981; }
.holo-green::after { background: #10b981; }

.holo-purple { color: #a855f7; border-color: #a855f7; }
.holo-purple::after { background: #a855f7; }

/* Hover Animation: The "Power Up" */
.service-card:hover .holo-icon {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 0 30px currentColor; /* Glows with its own color */
    background: rgba(0,0,0,0.5); /* Contrast increase */
}

/* =========================================
   6. GLASS CARDS & GRID
   ========================================= */
.service-section { padding: 60px 0; }
.section-header h2 { font-size: 2.2rem; color: #fff; margin-bottom: 10px; }
.section-header p { color: #94a3b8; }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px; margin-top: 40px;
}

.service-card {
    background: var(--qb-card-bg);
    border: 1px solid var(--qb-border);
    border-radius: 16px; padding: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--qb-teal);
    background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.01));
}

.service-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 10px; font-weight: 600; }
.service-card p { font-size: 0.9rem; color: #94a3b8; margin-bottom: 20px; line-height: 1.5; }

.btn-service {
    color: #fff; font-size: 0.85rem; font-weight: 600; text-decoration: none;
    display: flex; align-items: center; gap: 8px; opacity: 0.7; transition: 0.3s;
}
.btn-service:hover { opacity: 1; color: var(--qb-teal); gap: 12px; }

/* =========================================
   7. TRUST STRIP (Floating)
   ========================================= */
.safety-strip {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--qb-border); border-radius: 12px;
    padding: 30px; margin-top: -60px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
    position: relative; z-index: 5;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}
.safety-item { display: flex; align-items: center; gap: 15px; }
.safety-text h4 { font-size: 1rem; color: #fff; margin: 0; }
.safety-text p { font-size: 0.8rem; color: #64748b; margin: 0; }

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    .housing-hero h1 { font-size: 2.2rem; }
    .safety-strip { grid-template-columns: 1fr; text-align: left; }
    .hero-tabs { width: 100%; justify-content: space-between; }
    .hero-tab-btn { padding: 10px; flex: 1; text-align: center; font-size: 0.9rem; }
}