:root {
    --primary-blue: #2563EB;
    --dark-blue: #0A1931;
    --white: #ffffff;
    --vibrant-blue: #3B82F6;
}

body {
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #93c5fd;
}

.menu-link {
    transition: background-color 0.3s ease;
    border-radius: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.menu-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.social-icon {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
}

.bg-dark-blue {
    background-color: var(--dark-blue);
}

.bg-primary-blue {
    background-color: var(--primary-blue);
}

.text-primary-blue {
    color: var(--primary-blue);
}

.text-dark-blue {
    color: var(--dark-blue);
}

.bg-vibrant-blue {
    background-color: var(--vibrant-blue);
}

.section-title {
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 140px;
    height: 7px;
    background-color: var(--primary-blue);
    margin: 8px auto 0 auto;
    border-radius: 4px;
}

.hero-bg-overlay {
    background-image: linear-gradient(to top, rgba(55, 0, 255, 0.6), rgba(101, 0, 233, 0.3)), url('./assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.features-background {
    background-color: var(--white);
    background-image: url('./assets/cyber-bg.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-bottom: 2rem;
    position: relative;
}

@media (max-width: 900px) {
    .features-background {
        background-attachment: scroll;
    }
}


/* --- Why Choose Us Section --- */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}


/* --- Services Section --- */
.service-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-10px);
}

.service-card:hover .w-12 {
    transform: scale(1.1);
}

.service-card-middle {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-blue);
}

@media (max-width: 768px) {
    .service-card-middle {
        transform: none;
        border: none;
        box-shadow: none;
    }
}


.detailed-service-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.detailed-service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: var(--primary-blue);
}

.service-image-detailed {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detailed-service-card:hover .service-image-detailed {
    transform: scale(1.05);
}

.read-more-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

.group:hover .read-more-link {
    transform: translateX(0.25rem);
}

.absolute-stagger-left {
    position: absolute;
    width: 30rem;
    height: 32rem;
    top: 15%;
    right: 65%;
    transform: translateY(-50%);
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.absolute-stagger-right {
    position: absolute;
    width: 30rem;
    height: 32rem;
    top: 15%;
    left: 65%;
    transform: translateY(-50%);
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.staggered-image-container {
    display: grid;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
}

.staggered-img-top {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

.staggered-img-bottom {
    width: 100%;
    height: 80%;
    object-fit: cover;
}


/* --- Experience Circle Graphic --- */
.experience-circle-container {
    position: relative;
    width: 28rem;
    height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-circle-base {
    position: absolute;
    left: 0;
    width: 16rem;
    height: 16rem;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.experience-circle-inner {
    position: absolute;
    right: 0;
    width: 16rem;
    height: 16rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #f3f4f6;
    z-index: 10;
}

.experience-highlight-large {
    position: absolute;
    width: 3rem;
    height: 3rem;
    background-color: #2563EB;
    border-radius: 50%;
    top: 8%;
    left: 30rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
    animation: float-dots 4s ease-in-out infinite;
    z-index: 15;
}

.experience-highlight-small {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #2563EB;
    border-radius: 50%;
    top: 55%;
    left: 29rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
    animation: float-dots 3s ease-in-out infinite 0.5s;
    z-index: 15;
}

@keyframes float-dots {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- Features Card (Darker background) --- */

.features-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.feature-card {
    background-color: #1a75ff;
    color: white;
    padding: 60px 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    transition: 0.3s ease;
}

.feature-card i {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
    max-width: 250px;
    margin: 0 auto;
}

.feature-card:first-child {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.feature-card:last-child {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}

.feature-card.featured {
    background-color: #102a52;
    /* Dark Navy Blue */
    padding-top: 80px;
    padding-bottom: 90px;
    border-radius: 15px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .features-container {
        flex-direction: column;
        padding-top: 2rem;
    }

    .feature-card {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 15px !important;
    }

    .feature-card.featured {
        transform: none;
        padding: 50px 20px;
    }
}

/* --- Service Card Enhancements (New Image-Top Style) --- */

.service-image-card {
    /* Base styling for all cards (white background, rounded corners, shadow) */
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-image-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
    border-color: var(--primary-blue);
}


.service-image-card img {
    height: 12rem;
    object-fit: cover;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.nav-link[href="contact-us.html"] {
    color: var(--primary-blue) !important;
    font-weight: 700;
}

/* --- Contact Us Page Hero Section --- */
.contact-hero {
    background-image: url('./contact-us.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Form input faint blue background */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background-color: #f0f7ff !important; /* Very faint blue */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    background-color: #ffffff !important;
    border-color: #2563EB !important;
}

/* Form card border */
#contact-form {
    border: 1px solid #e0e7ff;
}

/* Accordion Animations */
.accordion-content {
    transition: all 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.accordion-content:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Chevron rotation animation */
.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header i.rotate-180 {
    transform: rotate(180deg);
}

.accordion-item {
    transition: box-shadow 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* File upload styling */
#file-upload {
    display: none;
}

/* Form input focus styling */
input:focus,
textarea:focus,
select:focus {
    border-color: #2563EB;
}

/* --- Hero Section Mobile Fixes --- */
@media (max-width: 768px) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 2rem;
    }
    
    #hero .container {
        display: flex;
        align-items: center;
    }
    
    .hero-and-features-wrapper .max-w-xl {
        width: 100%;
    }
}

/* --- Features Container Mobile Fixes --- */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 15px !important;
        width: 100%;
    }
    
    .feature-card:first-child,
    .feature-card:last-child {
        border-radius: 15px !important;
    }
    
    .feature-card.featured {
        transform: none;
        padding: 2rem 1.5rem;
        margin: 0;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        max-width: 100%;
    }
}

/* --- About Section Mobile Fixes --- */
@media (max-width: 768px) {
    #about {
        padding: 2rem 0;
    }
    
    #about .min-h-\[45rem\] {
        min-height: auto !important;
        height: auto;
    }
    
    .relative.z-10 {
        padding: 2rem 0;
    }
}

/* --- Experience Circle Mobile Fixes --- */
@media (max-width: 768px) {
    .experience-circle-container {
        width: 100%;
        max-width: 15rem;
        height: auto;
        min-height: 15rem;
    }
    
    .experience-circle-base {
        width: 12rem;
        height: 12rem;
        left: 0;
    }
    
    .experience-circle-inner {
        width: 12rem;
        height: 12rem;
        right: 0;
    }
    
    .experience-highlight-large,
    .experience-highlight-small {
        display: none;
    }
}

/* --- Input Form Mobile Fixes --- */
@media (max-width: 640px) {
    .flex.gap-4 {
        flex-direction: column;
        gap: 1rem;
    }
    
    #hero-subscribe-form {
        width: 100%;
    }
    
    #hero-subscribe-form input {
        width: 100%;
    }
    
    button[type="submit"] {
        width: 100%;
    }
}


/* --- FIX: Hero Image/Nav Coordination --- */

/* 1. Force the navigation to stay on top of the hero overlay */
header, .fixed {
    z-index: 9999 !important; /* Ensures nav is always above the hero background */
    width: 100% !important;
    left: 0 !important;
}

/* 2. Prevent the hero background and absolute elements from pushing the page width */
html, body {
    overflow-x: hidden; /* Prevents the 'side-to-side' push on mobile */
    position: relative;
    width: 100%;
}

#hero {
    overflow: hidden; /* Clips any background effects that bleed out */
}

@media (max-width: 768px) {
    /* 3. Standardize Hero height for mobile browsers to prevent 'jumping' */
    #hero {
        min-height: 100vh;
        min-height: -webkit-fill-available; /* Fix for Safari/iPhone nav bar push */
        padding-top: 80px; /* Adjust this to match your actual nav bar height */
    }

    /* 4. Fix the absolute-staggered images from 'About' which often push the Hero view */
    .absolute-stagger-left, 
    .absolute-stagger-right {
        max-width: 100vw; /* Keeps images within phone screen width */
        right: auto !important;
        left: 0 !important;
    }
}

