/* TechPartners Ltd. Premium Stylesheet - NO BLACK OR GREY
-------------------------------------------------- */

/* Universal Box Sizing for consistent layout calculation */
*, *::before, *::after {
    box-sizing: border-box; /* Ensures padding and border are included in an element's total width/height */
}

:root {
    /* Brand Colors */
    --gold: #FFC107; /* A warmer, richer gold */
    --gold-light: #FFD54F; /* Lighter shade for accents */
    --gold-lighter: #FFF8E1; /* Very light gold for backgrounds */
    --gold-dark: #FFA000; /* Deeper, more intense gold for strong accents */

    /* Neutrals - Replaced Black and Grey */
    --navy-deep: #1A237E; /* Deep, professional primary dark color (replaces deepest black) */
    --navy-rich: #0D1442; /* Even richer, almost black-like navy for true backgrounds (replaces true black) */
    --navy-medium: #3F51B5; /* Slightly lighter navy for secondary elements */
    --stone-blue: #607D8B; /* A warm, muted blue-grey for subordinate text (replaces slate-grey) */
    --cream: #F5F5DC; /* Soft, warm cream for light backgrounds (replaces off-white) */
    --white: #FFFFFF; /* Pure white remains for contrast */
    --smoke: #E0E0E0; /* Very light, barely-there grey for subtle separation (replaces light-grey instances, used sparingly) */


    /* General UI */
    --transition-fast: all 0.3s ease-out;
    --transition-medium: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --box-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05); /* Lighter shadows */
    --box-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    --gradient-gold-hover: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
}

/* Global HTML and Body Fixes for Horizontal Scroll
   These rules are crucial for ensuring the page width
   always fits the device width and prevents horizontal scrolling. */
html, body {
    width: 100%; /* Ensure both HTML and Body take 100% of the viewport width */
    overflow-x: hidden; /* Hide any content that overflows horizontally */
    margin: 0; /* Remove default browser margins */
    padding: 0; /* Remove default browser paddings */
    min-width: 0; /* Allow the layout to shrink as much as needed */
}

/* Responsive Image Rule - important for preventing images from overflowing */
img, video {
    max-width: 100%; /* Ensures images and videos scale down and don't overflow their containers */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes extra space below images */
}

/* Base Styles
-------------------------------------------------- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--navy-deep); /* Main body text color */
    background-color: var(--cream); /* Soft cream background */
    line-height: 1.8;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--navy-deep); /* Headings in deep navy */
}

a {
    transition: var(--transition-fast);
    color: var(--navy-medium); /* Link color in medium navy */
    text-decoration: none;
}

a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.text-gold {
    color: var(--gold) !important;
}

.bg-gold {
    background: var(--gradient-gold) !important;
    color: var(--navy-deep); /* Text on gold is deep navy */
}

.bg-gold-light {
    background-color: var(--gold-light) !important;
}

.bg-gold-lighter {
    background-color: var(--gold-lighter) !important;
}

.bg-navy-deep {
    background-color: var(--navy-deep) !important;
    color: var(--white);
}

.bg-navy-rich {
    background-color: var(--navy-rich) !important; /* Richest navy background */
    color: var(--white);
}

.bg-stone-blue {
    background-color: var(--stone-blue) !important;
    color: var(--white);
}

.bg-cream {
    background-color: var(--cream) !important;
}

/* Buttons
-------------------------------------------------- */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 30px;
    padding: 0.9rem 2.2rem;
    font-size: 0.95rem;
    transition: var(--transition-medium);
    box-shadow: var(--box-shadow-sm);
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary, .btn-gold {
    background: var(--gradient-gold);
    color: var(--navy-deep);
    border: 2px solid var(--gold);
}

.btn-primary:hover, .btn-gold:hover {
    background: var(--gradient-gold-hover);
    color: var(--navy-deep);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-5px);
}

.btn-navy-deep {
    background-color: var(--navy-deep);
    color: var(--white);
    border: 2px solid var(--navy-deep);
}

.btn-navy-deep:hover {
    background-color: var(--navy-rich); /* Darker hover for navy buttons */
    color: var(--white);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-5px);
}

.btn-outline-light {
    border: 2px solid var(--cream);
    color: var(--cream);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--cream);
    color: var(--navy-deep);
    box-shadow: var(--box-shadow-sm);
}

.btn-outline-primary {
    border: 2px solid var(--gold);
    color: var(--gold);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-gold);
    color: var(--navy-deep);
    box-shadow: var(--box-shadow-sm);
}

.btn-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
}

.btn-link {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.btn-link:hover {
    color: var(--gold-dark);
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--gold);
    transition: width 0.3s ease-out;
}

.btn-link:hover::after {
    width: 100%;
}

/* Navigation
-------------------------------------------------- */
.navbar {
    padding: 18px 0;
    transition: var(--transition-medium);
    background-color: rgba(13, 20, 66, 0.98) !important; /* Navy-rich with transparency */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.2); /* Lighter shadow */
}

.navbar-brand img {
    max-height: 45px;
    transition: var(--transition-fast);
}

.nav-link {
    font-weight: 500;
    padding: 0.6rem 1.4rem !important;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--gold);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-light) !important;
}

.dropdown-menu {
    background-color: var(--navy-rich); /* Richest navy dropdown background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.6rem 0;
    box-shadow: var(--box-shadow-md);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.8rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background-color: rgba(255, 193, 7, 0.18);
    color: var(--gold-light);
}

.talk-btn {
    margin-left: 1.5rem;
    padding: 0.7rem 1.8rem !important;
}

/* Hero Section
-------------------------------------------------- */
.hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden; /* Keep overflow hidden for hero section specifically */
    padding: 10rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 20, 66, 0.98), rgba(13, 20, 66, 0.7)); /* Navy-rich gradient */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    line-height: 1.15;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Lighter text shadow */
    color: var(--white);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Lighter text shadow */
    color: var(--cream); /* Cream for hero paragraph */
}

.hero .btn {
    margin-right: 1.5rem;
    margin-bottom: 1.2rem;
    z-index: 3;
}

/* Section Styling
-------------------------------------------------- */
section {
    padding: 7rem 0;
    position: relative;
}

.section-title {
    margin-bottom: 4.5rem;
    position: relative;
}

.section-title h2 {
    font-size: 3.2rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 1.8rem;
    color: var(--navy-deep);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 90px;
    height: 6px;
    background: var(--gradient-gold);
    border-radius: 6px;
}

.text-center .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--stone-blue); /* Stone blue for subtitle */
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.8;
}

/* Accent shapes */
.accent-shape {
    position: absolute;
    z-index: -1;
    opacity: 0.08;
}

.accent-shape.circle-gold {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient-gold);
    top: -300px;
    right: -300px;
}

.accent-shape.dots {
    width: 350px;
    height: 350px;
    background-image: radial-gradient(var(--navy-deep) 2.5px, transparent 2.5px); /* Navy dots */
    background-size: 25px 25px;
    bottom: 80px;
    left: -180px;
}

/* About Section
-------------------------------------------------- */
.about-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    position: relative;
    transform: perspective(1200px) rotateY(-8deg);
    transition: var(--transition-medium);
}

.about-img:hover {
    transform: perspective(1200px) rotateY(0deg);
    box-shadow: var(--box-shadow-lg);
}

.about-img::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 70%;
    height: 70%;
    background: var(--gradient-gold);
    z-index: -1;
    border-radius: 16px;
    opacity: 0.15;
}

.core-value {
    padding: 3rem;
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-medium);
    height: 100%;
    border-left: 6px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.core-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: var(--gradient-gold);
    transition: height 0.6s ease;
    z-index: 1;
}

.core-value:hover {
    transform: translateY(-18px);
    box-shadow: var(--box-shadow-lg);
    border-left: 6px solid var(--gold);
}

.core-value:hover::before {
    height: 100%;
}

.core-value .icon {
    width: 100px;
    height: 100px;
    background-color: var(--gold-lighter);
    color: var(--navy-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2.5rem;
    transition: var(--transition-medium);
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.core-value:hover .icon {
    background: var(--gradient-gold-hover);
    transform: rotateY(360deg) scale(1.05);
    color: var(--navy-deep);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.core-value h3 {
    position: relative;
    z-index: 2;
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: var(--navy-deep);
}

.core-value p {
    position: relative;
    z-index: 2;
    color: var(--stone-blue);
    font-size: 1.05rem;
}

/* Services Section
-------------------------------------------------- */
.service-card {
    padding: 3.5rem;
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-medium);
    height: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 6px solid transparent;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-gold);
    transition: width 0.6s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-18px);
    box-shadow: var(--box-shadow-lg);
    border-bottom: 6px solid var(--gold);
}

.service-card:hover::before {
    width: 100%;
}

.service-card .icon {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 2.5rem;
    transition: var(--transition-medium);
    position: relative;
    z-index: 2;
}

.service-card:hover .icon {
    transform: scale(1.15) rotate(15deg);
    color: var(--gold-dark);
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 2rem;
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
    color: var(--navy-deep);
}

.service-card p {
    position: relative;
    z-index: 2;
    color: var(--stone-blue);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.service-card .btn-link {
    position: relative;
    z-index: 2;
}

/* Security Assurance Section
-------------------------------------------------- */
#security {
    background-color: var(--navy-rich); /* Richest navy background */
    color: var(--white);
    position: relative;
    overflow: hidden; /* Keep overflow hidden for security section specifically */
    background-image: url('Assets/security-pattern.png');
    background-blend-mode: overlay;
    background-size: 300px;
    padding: 7rem 0;
}

#security::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 65%);
    opacity: 0.08;
}

#security::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 65%);
    opacity: 0.08;
}

.security-card {
    padding: 3.2rem;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-medium);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Lighter shadow */
}

.security-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.2) 0%, transparent 80%);
    opacity: 0;
    transition: all 0.6s ease-out;
    transform: translate(-50%, -50%);
}

.security-card:hover {
    transform: translateY(-15px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); /* Lighter shadow */
}

.security-card:hover::before {
    width: 300%;
    height: 300%;
    opacity: 1;
}

.security-card .icon {
    width: 110px;
    height: 110px;
    line-height: 110px;
    background: var(--gradient-gold);
    color: var(--navy-deep);
    border-radius: 50%;
    font-size: 2.8rem;
    margin: 0 auto 2.2rem;
    transition: var(--transition-medium);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
}

.security-card:hover .icon {
    transform: rotateY(360deg) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.45);
}

.security-card h3 {
    color: var(--white);
    margin-bottom: 1.2rem;
    font-size: 1.9rem;
    position: relative;
}

.security-card p {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    font-size: 1.05rem;
}

/* Testimonials Section
-------------------------------------------------- */
#testimonials {
    background-color: var(--cream); /* Cream background */
    position: relative;
    overflow: hidden; /* Keep overflow hidden for testimonials section specifically */
    background-image: url('Assets/testimonial-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    padding: 7rem 0;
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 20, 66, 0.9); /* Navy-rich overlay */
}

.testimonial-card {
    padding: 3.5rem;
    border-radius: 20px;
    background-color: var(--white);
    box-shadow: var(--box-shadow-md);
    margin: 0 20px;
    position: relative;
    border-top: 6px solid var(--gold);
    transition: var(--transition-medium);
    background-color: rgba(255, 255, 255, 0.98);
}

.testimonial-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--box-shadow-lg);
    background-color: var(--white);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 25px;
    right: 30px;
    color: var(--gold);
    font-size: 7rem;
    font-family: 'Georgia', serif;
    line-height: 1;
    opacity: 0.15;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Very light shadow */
}

.client-info img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 1.8rem;
    object-fit: cover;
    border: 5px solid var(--gold-light);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Lighter shadow */
}

.client-info .name {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
    color: var(--navy-deep);
}

.client-info .position {
    color: var(--stone-blue); /* Stone blue for position */
    font-size: 1rem;
    font-weight: 500;
}

/* CTA Section
-------------------------------------------------- */
#cta {
    position: relative;
    overflow: hidden; /* Keep overflow hidden for CTA section specifically */
    background: var(--gradient-gold);
    background-size: 250% 250%;
    animation: gradientBG 10s ease infinite;
    padding: 7rem 0;
    text-align: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#cta::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    z-index: 1;
}

#cta::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05); /* Keeping very light black tint for subtle effect here */
    z-index: 1;
}

#cta h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: var(--navy-deep);
    position: relative;
    z-index: 2;
}

#cta p {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--navy-deep); /* Navy-deep for CTA paragraph */
    opacity: 0.95;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

#cta .btn-navy-deep {
    border: 2px solid var(--navy-deep);
    background-color: var(--navy-deep);
    color: var(--cream); /* Cream text on navy button */
    position: relative;
    z-index: 2;
}

#cta .btn-navy-deep:hover {
    background-color: transparent;
    color: var(--navy-deep);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); /* Lighter shadow */
}

/* Footer
-------------------------------------------------- */
/* FOOTER VISIBILITY FIXES - Add to your CSS or replace existing footer styles */

/* Main Footer Container - Fix z-index and overlay issues */
footer {
    background-color: var(--navy-rich) !important;
    color: var(--white) !important;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10; /* Ensure footer is above other elements */
}

/* Fix the overlay that's covering text */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 20, 66, 0.85) !important; /* Reduced opacity from 0.98 */
    z-index: 1; /* Lower z-index */
}

/* Ensure all footer content is above the overlay */
footer .container {
    position: relative;
    z-index: 5 !important; /* Higher than overlay */
}

/* Fix footer title visibility */
.footer-title {
    color: var(--white) !important;
    font-size: 1.7rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 6 !important;
    opacity: 1 !important;
    padding-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* Fix footer links visibility */
.footer-links {
    position: relative;
    z-index: 6 !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important; /* Increased opacity */
    transition: var(--transition-fast);
    display: block;
    margin-bottom: 14px;
    position: relative;
    padding-left: 25px;
    font-size: 1.05rem;
    z-index: 6 !important;
    opacity: 1 !important;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold-light) !important;
    text-decoration: none;
    padding-left: 30px;
    opacity: 1 !important;
}

/* Fix footer contact info visibility */
.footer-contact {
    position: relative;
    z-index: 6 !important;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.9) !important; /* Increased opacity */
    font-size: 1.05rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    z-index: 6 !important;
}

.footer-contact a:hover {
    color: var(--gold-light) !important;
    opacity: 1 !important;
}

/* Fix footer contact icons */
.footer-contact i {
    color: var(--gold) !important;
    margin-right: 18px;
    margin-top: 4px;
    font-size: 1.25rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

/* Fix social links visibility */
.social-links {
    display: flex;
    margin-top: 2.5rem;
    position: relative;
    z-index: 6 !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2) !important; /* Increased opacity */
    color: var(--white) !important;
    margin-right: 15px;
    transition: var(--transition-medium);
    font-size: 1.2rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

/* Fix footer bottom section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 30px 0;
    margin-top: 50px;
    position: relative;
    text-align: center;
    z-index: 6 !important;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.85) !important; /* Increased opacity */
    font-size: 0.95rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

.footer-bottom a {
    color: var(--gold-light) !important;
    transition: var(--transition-fast);
    z-index: 6 !important;
    opacity: 1 !important;
}

/* Alternative fix if above doesn't work - remove overlay completely */
.footer-no-overlay::before {
    display: none !important;
}

/* Emergency fix for specific text elements */
footer h5,
footer p,
footer a,
footer li {
    position: relative !important;
    z-index: 10 !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Fix for Bootstrap's text-light class in footer */
footer .text-light {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
}

/* Mobile fixes */
@media (max-width: 767.98px) {
    footer::before {
        background-color: rgba(13, 20, 66, 0.8) !important; /* Even more transparent on mobile */
    }
    
    .footer-title,
    .footer-links,
    .footer-contact,
    .social-links {
        z-index: 10 !important;
        opacity: 1 !important;
    }
}

/* Responsive Styles
-------------------------------------------------- */
@media (max-width: 1199.98px) {
    .hero h1 {
        font-size: 3.8rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .section-title h2 {
        font-size: 2.8rem;
    }
    .core-value, .service-card, .security-card {
        padding: 2.5rem;
    }
    .core-value .icon, .security-card .icon {
        width: 90px;
        height: 90px;
        line-height: 90px;
        font-size: 2.2rem;
    }
    .service-card .icon {
        font-size: 3.5rem;
    }
}

@media (max-width: 991.98px) {
    section {
        padding: 5rem 0;
    }
    
    .navbar-expand-lg .navbar-nav .nav-link {
        padding: 0.8rem 0.8rem !important;
    }
    
    .talk-btn {
        margin-left: 0.8rem;
    }
    
    .navbar-collapse {
        background-color: var(--navy-deep) !important; /* Consistent deep navy background */
        padding: 1.8rem;
        border-radius: 14px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Lighter shadow */
    }
    
    .hero {
        min-height: 650px;
        padding: 8rem 0;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }

    .section-title h2 {
        font-size: 2.5rem;
    }
    
    .core-value, .service-card, .security-card {
        margin-bottom: 35px;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 4.5rem 0;
    }
    
    .hero {
        min-height: 550px;
        text-align: center;
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.15rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero .btn {
        display: block;
        width: 90%;
        margin: 0 auto 1.2rem;
        font-size: 0.9rem;
        padding: 0.8rem 2rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .btn-lg {
        padding: 1rem 2.2rem;
        font-size: 0.95rem;
    }

    .footer-title {
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links, .footer-contact, .social-links {
        text-align: center;
        margin-bottom: 2rem;
    }
    .footer-links a {
        padding-left: 0;
        text-align: center;
    }
    .footer-links a::before {
        display: none;
    }
    .footer-links a:hover {
        padding-left: 0;
    }
    .social-links {
        justify-content: center;
    }
    .footer-contact li {
        justify-content: center;
        align-items: center;
    }
    .footer-contact i {
        margin-right: 10px;
    }
}

@media (max-width: 575.98px) {
    .hero {
        min-height: 480px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.15rem;
    }
    
    .section-title h2 {
        font-size: 1.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.6rem;
        font-size: 0.85rem;
    }
    .testimonial-card {
        padding: 2.5rem;
        margin: 0 10px;
    }
    .client-info img {
        width: 70px;
        height: 70px;
    }
    .client-info .name {
        font-size: 1.1rem;
    }
    .client-info .position {
        font-size: 0.9rem;
    }
}


/* ====================== */
/* HEADER VISIBILITY FIXES (Re-evaluated for new palette) */
/* ====================== */

/* Base navbar styles */
.navbar {
    background-color: var(--navy-rich) !important; /* Ensure consistent rich navy nav */
}

/* Nav links - ensure white text */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    position: relative;
}

/* Hover/active states */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold-light) !important;
}

/* Dropdown menu fixes */
.navbar-dark .dropdown-menu {
    background-color: var(--navy-rich);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2); /* Lighter shadow */
}

.navbar-dark .dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.8rem 1.6rem;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
    background-color: rgba(255, 193, 7, 0.25) !important;
    color: var(--gold) !important;
}

/* Mobile menu fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--navy-rich) !important;
        padding: 2rem;
        margin-top: 1.2rem;
        border-radius: 10px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); /* Lighter shadow */
    }
    
    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* Ensure dropdowns appear above content */
.dropdown-menu {
    z-index: 1050 !important;
}

/* Add dark background to all dropdown parents */
.navbar-dark .dropdown:hover > .dropdown-menu {
    display: block;
    background-color: var(--navy-rich);
}

/* ====================== */
/* PAGE-SPECIFIC OVERRIDES */
/* ====================== */

/* For light-colored sections near header */
.light-section {
    position: relative;
    z-index: 1;
}

/* If using transparent headers */
.transparent-header .navbar {
    background-color: rgba(13, 20, 66, 0.95) !important; /* Navy-rich with transparency */
    backdrop-filter: blur(15px);
}




/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--navy-rich); /* Deep navy background from style.css */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of all other content */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
}

#loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Allows clicks and interactions with content underneath */
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    width: 120px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 25px;
    animation: pulse 2s infinite ease-in-out; /* Subtle pulse effect for the logo */
}

.loading-text {
    font-family: 'Poppins', sans-serif; /* Consistent with your headings */
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cream); /* Soft cream text color */
    margin-top: 20px;
}

/* Simple Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2); /* Light white border for the spinner base */
    border-top-color: var(--gold); /* Gold color for the animated part of the spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Spin animation */
    margin: 0 auto; /* Center the spinner */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/*for partners styling */

/* ==========================================================================
   Project: Partner Logos Section Styles
   Description: Styles for a two-line, discrete-moving,
                vertically swapping logo carousel with a centered focus.
   ========================================================================== */

/* Define CSS Variables for consistency (optional, but good practice) */
:root {
    --cream: #FFF8E1; /* A light, warm background color */
    --primary-yellow: #FFC107; /* A vibrant yellow for highlights */
    --primary-blue: #1A237E; /* A deep blue for contrast */
    --light-grey-bg: rgba(245, 245, 220, 0.9); /* Background for container */
    --light-grey-transparent-start: rgba(245, 245, 220, 0);
    --light-grey-transparent-mid: rgba(245, 245, 220, 0.4);
    --light-grey-transparent-end: rgba(245, 245, 220, 0.8);
    --white-transparent-border: rgba(255, 255, 255, 0.2);
    --white-strong-border: rgba(255, 255, 255, 0.4);
}

/* Partners Section Base Styles */
#partners {
    background: linear-gradient(135deg, var(--cream) 0%, rgba(255, 248, 225, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0; /* Vertical padding for the section */
    isolation: isolate; /* Ensures z-index context for pseudo-elements */
}

/* Enhanced Decorative Elements (Floating Background Shapes) */
#partners::before,
#partners::after {
    content: '';
    position: absolute;
    width: 500px; /* Size of the circular shapes */
    height: 500px;
    border-radius: 50%; /* Makes them circular */
    filter: blur(1px); /* Softens their edges */
    z-index: -1; /* Puts them behind the content */
}

#partners::before {
    top: -250px; /* Position off-screen, top-right */
    right: -250px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.08) 40%, transparent 70%); /* Yellowish gradient */
    animation: float-decoration 20s ease-in-out infinite; /* Continuous floating animation */
}

#partners::after {
    bottom: -250px; /* Position off-screen, bottom-left */
    left: -250px;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.08) 0%, rgba(26, 35, 126, 0.04) 40%, transparent 70%); /* Bluish gradient */
    animation: float-decoration 25s ease-in-out infinite reverse; /* Floating animation, reversed direction */
}

/* Keyframes for Floating Decoration Animation */
@keyframes float-decoration {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 25px) scale(0.95); }
}

/* Partner Logos Container - Main Wrapper for the Carousel */
.partner-logos-container {
    overflow: hidden; /* Hides parts of logos outside the container */
    position: relative;
    padding: 50px 0; /* Vertical padding inside the container */
    margin: 2rem 0; /* Margin above and below the container */
    background: linear-gradient(90deg,
        var(--light-grey-transparent-start) 0%,
        var(--light-grey-transparent-mid) 10%,
        var(--light-grey-transparent-end) 50%, /* Center is less transparent */
        var(--light-grey-transparent-mid) 90%,
        var(--light-grey-transparent-start) 100%);
    border-radius: 25px; /* Rounded corners */
    box-shadow:
        inset 0 0 60px rgba(255, 193, 7, 0.1), /* Softer inner yellow glow */
        0 8px 30px rgba(0, 0, 0, 0.04); /* Softer outer shadow */
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border: 1px solid var(--white-transparent-border); /* Subtle border */
    display: flex;
    flex-direction: column; /* Stacks the two logo rows vertically */
    justify-content: space-around; /* Distributes space between rows */
    height: 400px; /* Increased height for more vertical spacing */
    animation: subtle-pulse 8s ease-in-out infinite; /* Subtle pulsing border/shadow effect */
}

/* Inner Glow Effect for the Container */
.partner-logos-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.1) 0%, /* White highlight */
        transparent 50%,
        rgba(255, 193, 7, 0.05) 100%); /* Yellowish highlight */
    border-radius: 25px;
    pointer-events: none; /* Allows clicks to pass through */
    z-index: 1; /* Above container background, below logos */
}

/* Keyframes for Subtle Container Pulse Animation */
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow:
            inset 0 0 60px rgba(255, 193, 7, 0.1),
            0 8px 30px rgba(0, 0, 0, 0.04);
    }
    50% {
        box-shadow:
            inset 0 0 80px rgba(255, 193, 7, 0.15),
            0 12px 40px rgba(0, 0, 0, 0.06);
    }
}

/* Wrapper for the two logo rows */
.partner-logos-track-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%; /* Takes full height of its parent */
    overflow: hidden; /* Hides vertical overflow during swap */
    position: relative; /* Context for absolutely positioned rows */
}

/* Styles for Each Logo Row (top and bottom) */
.partner-logos-row {
    position: absolute; /* Allows precise vertical positioning for swap */
    width: 100%; /* Takes full width of its parent */
    display: flex; /* For horizontal centering of the slide */
    justify-content: center; /* Centers the .partner-logos-slide horizontally */
    align-items: center; /* Vertically centers content within the row */
    transition: top 0.8s ease-in-out; /* Smooth vertical transition during swap */
}

/* Specific positioning for the top row */
#logo-row-top {
    top: 0; /* Aligned to the top of .partner-logos-track-wrapper */
}

/* Specific positioning for the bottom row */
#logo-row-bottom {
    top: 65%; /* Moved down to increase space from the top row */
    transform: translateY(0%); /* Ensures correct initial positioning */
}

/* Individual Logos Slide (flex container for images within each row) */
.partner-logos-slide {
    display: flex;
    align-items: center; /* Vertically centers logos within the slide */
    will-change: transform; /* Hint for browser optimization */
    transition: transform 0.8s ease-in-out; /* Smooth horizontal transition for discrete moves */
}

/* Individual Logo Styling (Default state, not centered) */
.partner-logos-slide img {
    max-height: 120px; /* Ensures logos are large enough */
    max-width: 250px; /* Ensures logos are large enough */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Scales image down to fit, maintaining aspect ratio */
    margin: 0 45px; /* Spacing between logos */
    flex-shrink: 0; /* Prevents logos from shrinking */
    opacity: 0.8; /* Increased default opacity for clarity */
    transform: scale(0.9); /* Slightly smaller than center, but still prominent */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition for hover/center effects */
    border-radius: 15px; /* Rounded corners for logos */
    padding: 18px; /* Inner padding around the logo image */
    background: transparent; /* No background color or haze */
    position: relative;
    z-index: 2; /* Ensures logos are above pseudo-elements */
    filter: grayscale(10%) brightness(1); /* Subtle grayscale, normal brightness */
}

/* Logo Hover Effects */
.partner-logos-slide img:hover {
    opacity: 0.9; /* Slightly more opaque on hover */
    transform: scale(0.95); /* Slightly larger on hover */
    filter: grayscale(0%) brightness(1); /* Full color and brightness on hover */
}

/* Enhanced Center Logo Styling */
.partner-logos-slide img.center-logo {
    transform: scale(1.35) !important; /* Significantly larger, overrides default */
    opacity: 1 !important; /* Fully opaque */
    background: linear-gradient(135deg,
        rgb(255, 193, 7) 0%, /* Gentle yellow gradient */
        rgba(255, 193, 7, 0.801) 100%) !important;
    border-radius: 15px;
    z-index: 15 !important; /* Brings it to the very front */
    box-shadow:
        0 20px 50px rgba(255, 193, 7, 0.25), /* Larger, more pronounced yellow shadow */
        0 0 0 2px var(--white-strong-border), /* Thicker white border */
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important; /* Stronger inner highlight */
    filter: grayscale(0%) brightness(1.1) !important; /* Full color, slightly brighter */
    backdrop-filter: blur(12px); /* Stronger blur for the centered logo's background */
}

/* ==========================================================================
   Responsive Design Adjustments
   ========================================================================== */

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .partner-logos-slide img {
        max-height: 100px;
        max-width: 200px;
        margin: 0 35px;
        padding: 16px;
    }
    .partner-logos-container {
        height: 350px; /* Adjust height for smaller desktops */
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    #partners {
        padding: 6rem 0;
    }
    .partner-logos-slide img {
        max-height: 85px;
        max-width: 170px;
        margin: 0 30px;
        padding: 15px;
    }
    .partner-logos-container {
        padding: 40px 0;
        border-radius: 20px;
        height: 300px; /* Adjust height */
    }
    #logo-row-bottom {
        top: 60%; /* Adjust for smaller screens to maintain spacing */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    #partners {
        padding: 5rem 0;
    }
    .partner-logos-slide img {
        max-height: 70px;
        max-width: 140px;
        margin: 0 25px;
        padding: 12px;
    }
    .partner-logos-container {
        padding: 35px 0;
        margin: 1rem 0;
        border-radius: 18px;
        height: 250px; /* Adjust height */
    }
    .partner-logos-slide img.center-logo {
        transform: scale(1.2) !important; /* Slightly smaller center logo */
    }
    #logo-row-bottom {
        top: 55%; /* Adjust for smaller screens */
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    #partners {
        padding: 4rem 0;
    }
    .partner-logos-slide img {
        max-height: 60px;
        max-width: 120px;
        margin: 0 20px;
        padding: 10px;
    }
    .partner-logos-container {
        padding: 30px 0;
        border-radius: 15px;
        height: 220px; /* Adjust height */
    }
    .partner-logos-slide img.center-logo {
        transform: scale(1.15) !important; /* Even smaller center logo */
        box-shadow:
            0 15px 40px rgba(236, 221, 9, 0.2), /* Smaller shadow for mobile */
            0 0 0 1px rgba(255, 255, 255, 0.25) !important;
    }
    #logo-row-bottom {
        top: 52%; /* Adjust for very small screens */
    }
}

/* ==========================================================================
   Accessibility & Performance Optimizations
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .partner-logos-slide {
        transition: none !important; /* Disable discrete movement transition */
    }
    #partners::before,
    #partners::after {
        animation: none; /* Disable background floating animations */
    }
    .partner-logos-container {
        animation: none; /* Disable container pulse animation */
    }
    .partner-logos-row {
        transition: none !important; /* Disable vertical swap transition */
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Adjust general logo appearance in dark mode */
    .partner-logos-slide img {
        filter: grayscale(30%) brightness(1.1); /* Slightly more grayscale, brighter */
    }
    /* Adjust centered logo appearance in dark mode */
    .partner-logos-slide img.center-logo {
        filter: grayscale(0%) brightness(1.2) !important; /* Full color, brighter */
    }
    /* Optional: Adjust container background or shadows for dark mode if needed */
    .partner-logos-container {
        background: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 10%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.3) 90%,
            rgba(0, 0, 0, 0) 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow:
            inset 0 0 60px rgba(255, 193, 7, 0.05),
            0 8px 30px rgba(0, 0, 0, 0.1);
    }
    /* Adjust pseudo-elements for dark mode if they clash */
    #partners::before {
        background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.04) 40%, transparent 70%);
    }
    #partners::after {
        background: radial-gradient(circle, rgba(26, 35, 126, 0.06) 0%, rgba(26, 35, 126, 0.02) 40%, transparent 70%);
    }
}