/* ==========================================
   1. GLOBAL VARIABLES & SETUP
   ========================================== */
:root {
    --navy-blue: #0A1128;
    --pure-white: #FFFFFF;
    --off-white: #F4F5F7; 
    --accent-blue: #4A90E2; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--off-white);
    color: var(--navy-blue);
    line-height: 1.6;
    overflow-x: hidden; /* Failsafe to prevent any side-scrolling */
}

/* ==========================================
   2. TOP INFO BAR (Contact & Location)
   ========================================== */
.top-info-bar {
    background-color: var(--navy-blue); 
    color: var(--pure-white);
    padding: 10px 50px;
    display: flex;
    justify-content: flex-end; 
    font-size: 0.85rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
}

.top-bar-content span {
    margin-left: 20px;
}

.separator {
    color: var(--accent-blue);
}

/* ==========================================
   3. STICKY HEADER & LOGO
   ========================================== */
.sticky-header {
    position: sticky; 
    top: 0;
    width: 100%;
    background-color: var(--navy-blue);
    color: var(--pure-white);
    display: flex; 
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-header-logo {
    height: 100px; 
    width: auto;
}

.nav-right-side {
    display: flex;
    align-items: center;
}

.exp-badge {
    background-color: var(--accent-blue);
    color: var(--pure-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    margin-right: 30px;
}

.nav-links a {
    color: var(--pure-white);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: color 0.3s; 
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-blue); 
}

/* --- Navigation Mobile Responsiveness --- */
@media (max-width: 900px) {
    .top-info-bar {
        font-size: 0.75rem;
        padding: 5px 15px;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .top-bar-content span {
        margin-left: 10px;
    }

    .sticky-header {
        flex-direction: column;
        padding: 15px;
    }

    .main-header-logo {
        height: 60px; /* Smaller logo for mobile */
        margin-bottom: 15px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
    }
}

/* ==========================================
   4. MAIN HERO VIDEO (The 90% MP4 Template)
   ========================================== */
.main-hero-section {
    width: 100%;
    height: 90vh; /* Locks exactly to 90% of the screen height */
    overflow: hidden; 
    background-color: var(--navy-blue); /* Fallback color while video loads */
}

.main-hero-section video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces the video to crop and stretch perfectly */
    display: block;
}

/* ==========================================
   4.5. QUOTE SECTION (Interactive Particles)
   ========================================== */
.quote-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40vh;
    background-color: var(--navy-blue); /* Deep Navy Background */
    overflow: hidden; /* Keep particles contained */
}

/* Base container for the interactive canvas injected by tsParticles */
#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Keep particles strictly in background */
}

/* Wrapper to elevate text above canvas */
.quote-content-wrapper {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let the mouse go right through text to attract particles */
}

.scroll-quote {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--pure-white); /* Bright text to contrast deep navy */
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Make it pop off the background */
}

.scroll-quote.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================
   5. COMMANDER BRIEFING (The Guard & Text)
   ========================================== */
.briefing-section {
    display: flex; 
    align-items: center;
    justify-content: center;
    min-height: 80vh; 
    padding: 80px 50px; 
    background-color: var(--off-white);
}

.guard-container {
    flex: 1; 
    display: flex;
    justify-content: center;
    /* Starting point for JS to take over (Hidden and pushed left) */
    opacity: 0; 
    transform: translateX(-150px); 
    /* Absolutely NO CSS transition here, so JS can control it freely */
}

#commander-img {
    height: 70vh; 
    width: auto;
    filter: drop-shadow(10px 10px 20px rgba(0,0,0,0.15)); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer;
}

#commander-img:hover {
    transform: scale(1.05) translateY(-10px);
    filter: drop-shadow(0 20px 40px rgba(10, 17, 40, 0.3));
}

.spotlight-wrapper {
    flex: 1;
    position: relative;
    border-radius: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* PC only floating effect */
@media (hover: hover) and (pointer: fine) {
    .spotlight-wrapper:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
}

.text-box-container {
    padding: 50px;
    height: 100%;
}

/* Service text specific padding adjustments */
.service-text {
    padding-right: 50px;
}

.base-content {
    background-color: var(--off-white);
    box-shadow: 5px 5px 20px rgba(0,0,0,0.05);
    border-radius: 15px;
}

/* Base content color override for Services section (since it sits on white background) */
.services-spotlight .base-content {
    background-color: var(--pure-white); /* Match the section background */
    box-shadow: none; /* No shadow needed as it blends into the background */
    border-left: none; /* Remove blue border for cleaner look */
}

/* Add padding back for services text since container padding was removed */
.services-spotlight .base-content,
.services-spotlight .overlay-content {
    padding: 30px;
    border-radius: 15px;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navy-blue);
    border-radius: 15px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 80px at var(--mouse-x, -200px) var(--mouse-y, -200px), black 80%, transparent 100%);
    mask-image: radial-gradient(circle 80px at var(--mouse-x, -200px) var(--mouse-y, -200px), black 80%, transparent 100%);
    z-index: 2;
}

.overlay-content .briefing-title {
    color: var(--pure-white);
}

@media (hover: none) and (pointer: coarse) {
    .overlay-content {
        display: none !important;
    }
}

.briefing-title {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--navy-blue);
    line-height: 1.2;
}

#typewriter-text, #typewriter-text-overlay {
    font-size: 1.1rem;
    font-weight: 600;
    /* This height locks the box open so it doesn't shrink when JS deletes the letters */
    min-height: 400px; 
    white-space: pre-wrap; /* Ensures line breaks in JS text work correctly */
}

#typewriter-text-overlay {
    color: var(--pure-white);
}

/* --- Homepage Mobile Responsiveness Tweaks --- */
@media (max-width: 900px) {
    /* 1. Hero Video Fix */
    .main-hero-section {
        height: 32vh; /* Slightly smaller height to fit better */
    }
    .main-hero-section video {
        object-fit: cover;
        object-position: center; /* Ensure the video stays centered */
    }

    /* 2. Scroll Quote Fix (Single Line) */
    .quote-section {
        min-height: 25vh; /* Reduced vertical space for the quote section */
    }
    
    .scroll-quote {
        font-size: 1.5rem; /* Drop font size slightly more for extra breathing room */
        white-space: nowrap; /* Force the text to never wrap */
        padding: 0 10px;
    }

    /* 3. About Us / Briefing Section Stacking */
    .briefing-section {
        flex-direction: column; /* Stacks items vertically */
        padding: 40px 20px;
        gap: 30px;
    }

    .guard-container {
        /* Remove the JS transform start point on mobile so it doesn't look broken */
        transform: translateX(0) !important;
        opacity: 1 !important;
        margin-bottom: 20px;
    }

    #commander-img {
        height: auto;
        width: 80%; /* Reasonable width for mobile */
        max-width: 300px;
    }

    .spotlight-wrapper {
        width: 100%;
        border-radius: 15px; /* Full border radius since it's not side-by-side anymore */
    }

    .text-box-container {
        padding: 30px 20px;
    }

    .base-content {
        border-radius: 15px;
    }

    .briefing-title {
        font-size: 2.2rem;
        text-align: center; /* Center title on mobile */
    }

    #typewriter-text, #typewriter-text-overlay {
        min-height: auto; /* Allow height to adjust on mobile */
        font-size: 1rem;
    }

    /* Hide the spotlight overlay completely on mobile for a cleaner experience */
    .overlay-content {
        display: none !important;
    }
}

/* ==========================================
   6. SERVICES SECTION
   ========================================== */
.services-section {
    padding: 80px 50px;
    background-color: var(--pure-white);
}

.services-container {
    max-width: 1200px; /* Restricts max width for better readability on ultra-wide screens */
    margin: 0 auto;
}

.services-title {
    font-size: 3rem;
    color: var(--navy-blue);
    text-align: center;
    margin-bottom: 60px;
}

.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* Remove bottom margin for the last row */
.service-row:last-child {
    margin-bottom: 0;
}

.service-text {
    flex: 1; /* Takes up remaining space on the left */
    padding-right: 50px; /* Gap between text and image */
}

.service-text h3 {
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.service-text p {
    font-size: 1.1rem;
    color: #444; /* Slightly softer text color for paragraphs */
    line-height: 1.8;
}

/* Make overlay text white in services section too */
.overlay-content h3,
.overlay-content p {
    color: var(--pure-white);
}

.service-image-wrapper {
    flex-shrink: 0; /* Prevents the image container from shrinking */
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden; /* Ensures the image doesn't bleed out of the circle if it fails somewhat */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Adds a soft premium shadow */
    border: 5px solid var(--off-white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Smooth bouncy pop transition */
    cursor: pointer;
}

/* Image Hover Pop Effect */
.service-image-wrapper:hover {
    transform: scale(1.08) translateY(-10px); /* Pops up and grows slightly */
    box-shadow: 0 20px 40px rgba(10, 17, 40, 0.3); /* Dark navy shadow glow */
    border-color: var(--accent-blue); /* Subtle border color change on hover */
}

.service-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the circle perfectly without stretching */
    display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 900px) {
    .service-row {
        flex-direction: column-reverse; /* Stacks image on top, text below */
        text-align: center;
        gap: 30px;
    }
    
    .service-text {
        padding-right: 0; /* Remove right padding on mobile */
    }

    .service-image-wrapper {
        width: 250px; /* Slightly smaller circle on mobile */
        height: 250px;
    }
}

/* ==========================================
   7. SCROLL REVEAL ANIMATIONS
   ========================================== */
.scroll-hide {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.scroll-hide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-hide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Stagger the inner elements slightly */
.service-row.show .scroll-hide-left {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.service-row.show .scroll-hide-right {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.scroll-hide.show {
    opacity: 1;
}

/* ==========================================
   8. CONTACT US PAGE SPECIFIC
   ========================================== */
.contact-page-body {
    background-color: var(--navy-blue);
    color: var(--pure-white);
}

.contact-page-body .main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Contact Hero */
.contact-hero {
    background-color: transparent;
    color: var(--pure-white);
    text-align: center;
    padding: 100px 20px 40px;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 1px;
}

.contact-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.contact-hero p {
    font-size: 1.2rem;
    color: #b0c4de;
}

/* Contact Dashboard (Formless Cards) */
.contact-dashboard {
    padding: 50px 50px 80px;
    background-color: transparent;
}

.dashboard-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 50px;
    color: var(--pure-white);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.contact-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* Base hover style for PC */
@media (hover: hover) and (pointer: fine) {
    .contact-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }
}

.contact-card h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--pure-white);
    letter-spacing: 0.5px;
}

/* Base Contact Info Methods */
.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.contact-method .icon {
    font-size: 1.8rem;
    margin-right: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-method .icon {
    background-color: rgba(74, 144, 226, 0.2);
    transform: scale(1.1);
}

.contact-link {
    color: #b0c4de;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--pure-white);
}

/* Special Buttons & Badges */
.whatsapp-btn {
    display: inline-block;
    margin-top: auto;
    background-color: #25D366; 
    color: var(--pure-white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px rgba(37, 211, 102, 0.3);
}

.hiring-card {
    position: relative;
    overflow: visible;
}

.hiring-card p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #b0c4de;
}

.highlight-phone {
    font-size: 1.6rem;
    color: #E24A4A;
}

.hiring-card:hover .highlight-phone {
    color: #ff5c5c;
}

.hiring-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background-color: #E24A4A;
    color: white;
    padding: 8px 25px;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(226, 74, 74, 0.4);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 5px 15px rgba(226, 74, 74, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(226, 74, 74, 0.6); }
    100% { transform: scale(1); box-shadow: 0 5px 15px rgba(226, 74, 74, 0.4); }
}

/* Map Section */
.map-section {
    width: 100%;
    margin-bottom: -5px; 
}

.map-info {
    text-align: center;
    padding: 50px;
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.map-info h3 {
    font-size: 2.2rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.map-info p {
    font-size: 1.2rem;
    color: #b0c4de;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-card {
        padding: 40px 30px;
        margin-top: 20px; /* spacing for overlapping badges */
    }

    .contact-hero h1 {
        font-size: 2.8rem;
    }
    
    .hiring-badge {
        right: 50%;
        transform: translateX(50%);
        top: -20px;
    }
    
    @keyframes pulseBadge {
        0% { transform: translateX(50%) scale(1); box-shadow: 0 5px 15px rgba(226, 74, 74, 0.4); }
        50% { transform: translateX(50%) scale(1.05); box-shadow: 0 8px 20px rgba(226, 74, 74, 0.6); }
        100% { transform: translateX(50%) scale(1); box-shadow: 0 5px 15px rgba(226, 74, 74, 0.4); }
    }
}

/* ==========================================
   9. GLOBAL FOOTER
   ========================================== */
.main-footer {
    background-color: var(--navy-blue);
    color: var(--pure-white);
    padding: 60px 50px 20px;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-heading {
    font-size: 1.4rem;
    color: var(--pure-white);
    margin-bottom: 25px;
    position: relative;
}

/* Subtle accent line under footer headings */
.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-blue);
}

.footer-col p {
    color: #b0c4de; /* Soft light blue for paragraph text to contrast pure white headings */
    line-height: 1.8;
}

/* Lists (Quick Links & Contact) */
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 15px;
    color: #b0c4de;
}

.footer-links a, .footer-contact a {
    color: #b0c4de;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--pure-white);
}

/* The Bottom Legal Bar */
.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.creator-credit a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.creator-credit a:hover {
    color: var(--pure-white);
}

/* --- Mobile Responsiveness for Footer --- */
@media (max-width: 900px) {
    .main-footer {
        padding: 50px 20px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ==========================================
   10. ABOUT US PAGE SPECIFIC
   ========================================== */

/* Dark Theme specific additions */
.about-dark-theme {
    background-color: var(--navy-blue);
    color: var(--pure-white);
}

.about-page-body {
    /* Base wrapper, overridden by .about-dark-theme if needed, but styling stays focused on dark */
    background-color: var(--navy-blue);
}

.about-page-body .main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* About Hero */
.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 30px 20px;
    text-align: center;
}

.about-hero-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.about-hero h1 {
    font-size: 3.5rem;
    color: var(--pure-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-weight: 800; /* Bold title for focus */
}

/* Small thin horizontal accent line below title */
.hero-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    margin: 0 auto;
}

/* About Cards Container */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px 20px;
}

.about-cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Consistent gap between cards */
}

/* Base Card Style */
.about-card {
    background-color: #121A33; /* Slightly lighter navy than var(--navy-blue) (#0A1128) */
    border: 1px solid rgba(74, 144, 226, 0.15); /* Subtle border in accent color */
    border-radius: 12px; /* Rounded corners */
    padding: 45px 50px; /* Generous internal padding */
    transition: all 0.3s ease;
    text-align: left; /* Text inside cards is left-aligned */
}

.about-card:hover {
    border-color: rgba(74, 144, 226, 0.5); /* Glow effect / stronger border on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px); /* Floating content container */
}

.about-card h2 {
    font-size: 1.6rem;
    color: var(--pure-white);
    margin-bottom: 15px;
    font-weight: 700; /* Bold */
    letter-spacing: 0.5px;
}

.about-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #b0c4de; /* Light gray/soft blue text for readability */
    font-weight: 400; /* Regular weight */
}

@media (max-width: 900px) {
    .about-hero {
        padding-top: 60px;
    }

    .about-hero h1 {
        font-size: 2.8rem;
    }
    
    .about-hero-logo {
        max-width: 160px;
    }

    .about-card {
        padding: 30px 25px; /* Adjust padding for mobile */
    }

    .about-card h2 {
        font-size: 1.4rem;
    }

    .about-card p {
        font-size: 1.05rem;
    }
}

/* ==========================================
   11. SERVICES PAGE SPECIFIC
   ========================================== */
.services-page-body {
    background-color: var(--navy-blue);
    color: var(--pure-white);
}

.services-page-body .main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Services Hero Banner */
.services-hero {
    background: linear-gradient(135deg, rgba(10, 17, 40, 1), rgba(10, 17, 40, 0.9));
    position: relative;
    padding: 120px 20px 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* Animated grid background for creativity */
.services-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    animation: panGrid 20s linear infinite;
}

@keyframes panGrid {
    0% { transform: translateY(0); }
    100% { transform: translateY(30px); }
}

.services-hero .hero-overlay {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 3.5rem;
    color: var(--pure-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.services-hero p {
    font-size: 1.3rem;
    color: #b0c4de;
    line-height: 1.6;
}

/* Dark Theme overrides for the imported Services Section */
.dark-services {
    background-color: transparent !important;
    padding: 60px 50px;
}

.dark-services .services-title {
    color: var(--pure-white) !important;
    display: none; /* Hide the generic 'Our Services' title since we have a hero banner */
}

/* Make the base content cards dark and subtle */
.dark-services .services-spotlight .base-content {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.dark-services .service-text h3 {
    color: var(--pure-white) !important;
}

.dark-services .service-text p {
    color: #b0c4de !important;
}

/* Soften the image borders for dark mode */
.dark-services .service-image-wrapper {
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.dark-services .service-image-wrapper:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
    border-color: var(--accent-blue) !important;
}

/* Extended Details Section (The Saviour Advantage) */
.services-details {
    padding: 80px 50px 60px;
    background-color: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services-details.light-details {
    background-color: var(--off-white);
    border-top: none;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
}

.details-container h2 {
    text-align: center;
    font-size: 2.8rem;
    color: var(--pure-white);
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.light-details .details-container h2.dark-text {
    color: var(--navy-blue);
}

.details-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.4s ease;
    text-align: center;
}

.light-details .detail-card {
    background-color: var(--pure-white);
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.detail-card:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.light-details .detail-card:hover {
    background-color: var(--pure-white);
}

@media (hover: hover) and (pointer: fine) {
    .detail-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    
    .light-details .detail-card:hover {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    background-color: rgba(74, 144, 226, 0.1);
    width: 80px; height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.detail-card:hover .detail-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(74, 144, 226, 0.2);
}

.detail-card h4 {
    font-size: 1.4rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.light-details .detail-card h4 {
    color: var(--navy-blue);
}

.detail-card p {
    color: #b0c4de;
    font-size: 1.05rem;
    line-height: 1.6;
}

.light-details .detail-card p {
    color: #444;
}

@media (max-width: 900px) {
    .services-hero h1 { font-size: 2.5rem; }
    .services-details { padding: 60px 20px; }
}