/* TechPartners Ltd. Premium Stylesheet - NEW THEME
-------------------------------------------------- */

/* 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 - NEW PALETTE */
    --primary-blue-dark: #2C3E50; /* Deep, professional blue-grey (replaces navy-rich/deep) */
    --secondary-blue-dark: #34495E; /* Slightly lighter blue-grey for secondary elements */
    --accent-teal: #1ABC9C; /* Vibrant teal (replaces gold) */
    --accent-light-teal: #66D9EF; /* Lighter, brighter teal for accents (replaces gold-light) */
    --light-background: #ECF0F1; /* Soft, cool grey for light backgrounds (replaces cream) */
    --text-grey: #7F8C8D; /* Medium grey for subordinate text (replaces stone-blue) */
    --white: #FFFFFF; /* Pure white remains for contrast */
    --off-white: #F9F9F9; /* A very subtle off-white for light backgrounds */


    /* 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.04); /* Lighter, cooler shadows */
    --box-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --gradient-accent: linear-gradient(135deg, var(--accent-teal) 0%, #16A085 100%); /* Teal gradient */
    --gradient-accent-hover: linear-gradient(135deg, #16A085 0%, var(--accent-teal) 100%); /* Reversed teal gradient for hover */
}

/* Global HTML and Body Fixes for Horizontal Scroll */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-width: 0;
}

/* Responsive Image Rule */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-blue-dark); /* Main body text color */
    background-color: var(--light-background); /* Soft cool grey 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(--primary-blue-dark); /* Headings in deep blue-grey */
}

a {
    transition: var(--transition-fast);
    color: var(--secondary-blue-dark); /* Link color in lighter blue-grey */
    text-decoration: none;
}

a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}

.text-accent {
    color: var(--accent-teal) !important;
}

.bg-accent {
    background: var(--gradient-accent) !important;
    color: var(--white); /* Text on accent is white */
}

.bg-accent-light {
    background-color: var(--accent-light-teal) !important;
}

.bg-primary-dark {
    background-color: var(--primary-blue-dark) !important;
    color: var(--white);
}

.bg-secondary-dark {
    background-color: var(--secondary-blue-dark) !important;
    color: var(--white);
}

.bg-text-grey {
    background-color: var(--text-grey) !important;
    color: var(--white);
}

.bg-light-background {
    background-color: var(--light-background) !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-accent {
    background: var(--gradient-accent);
    color: var(--white);
    border: 2px solid var(--accent-teal);
}

.btn-primary:hover, .btn-accent:hover {
    background: var(--gradient-accent-hover);
    color: var(--white);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-5px);
}

.btn-primary-dark {
    background-color: var(--primary-blue-dark);
    color: var(--white);
    border: 2px solid var(--primary-blue-dark);
}

.btn-primary-dark:hover {
    background-color: var(--secondary-blue-dark); /* Darker hover for dark buttons */
    color: var(--white);
    box-shadow: var(--box-shadow-md);
    transform: translateY(-5px);
}

.btn-outline-light {
    border: 2px solid var(--light-background);
    color: var(--light-background);
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: var(--light-background);
    color: var(--primary-blue-dark);
    box-shadow: var(--box-shadow-sm);
}

.btn-outline-primary {
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--box-shadow-sm);
}

.btn-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
}

.btn-link {
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.btn-link:hover {
    color: #16A085; /* Darker teal for hover */
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-teal);
    transition: width 0.3s ease-out;
}

.btn-link:hover::after {
    width: 100%;
}

/* Navigation */
.navbar {
    padding: 18px 0;
    transition: var(--transition-medium);
    background-color: rgba(44, 62, 80, 0.98) !important; /* Primary blue-dark 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);
}

.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(--accent-teal);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-light-teal) !important;
}

.dropdown-menu {
    background-color: var(--primary-blue-dark); /* Dark 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(26, 188, 156, 0.18); /* Teal tint for hover */
    color: var(--accent-light-teal);
}

.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;
    padding: 10rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.98), rgba(44, 62, 80, 0.7)); /* Primary blue-dark gradient */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, var(--accent-teal) 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);
    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);
    color: var(--off-white); /* Off-white 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(--primary-blue-dark);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 90px;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 6px;
}

.text-center .section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-grey); /* Medium grey 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-accent {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--gradient-accent);
    top: -300px;
    right: -300px;
}

.accent-shape.dots {
    width: 350px;
    height: 350px;
    background-image: radial-gradient(var(--primary-blue-dark) 2.5px, transparent 2.5px); /* Dark blue-grey 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-accent);
    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-accent);
    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(--accent-teal);
}

.core-value:hover::before {
    height: 100%;
}

.core-value .icon {
    width: 100px;
    height: 100px;
    background-color: var(--accent-light-teal);
    color: var(--primary-blue-dark);
    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(26, 188, 156, 0.2); /* Teal tint shadow */
}

.core-value:hover .icon {
    background: var(--gradient-accent-hover);
    transform: rotateY(360deg) scale(1.05);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.4); /* Teal tint shadow */
}

.core-value h3 {
    position: relative;
    z-index: 2;
    font-size: 1.9rem;
    margin-bottom: 1rem;
    color: var(--primary-blue-dark);
}

.core-value p {
    position: relative;
    z-index: 2;
    color: var(--text-grey);
    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-accent);
    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(--accent-teal);
}

.service-card:hover::before {
    width: 100%;
}

.service-card .icon {
    font-size: 4rem;
    color: var(--accent-teal);
    margin-bottom: 2.5rem;
    transition: var(--transition-medium);
    position: relative;
    z-index: 2;
}

.service-card:hover .icon {
    transform: scale(1.15) rotate(15deg);
    color: #16A085; /* Darker teal for hover */
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 2rem;
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
    color: var(--primary-blue-dark);
}

.service-card p {
    position: relative;
    z-index: 2;
    color: var(--text-grey);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.service-card .btn-link {
    position: relative;
    z-index: 2;
}

/* Security Assurance Section */
#security {
    background-color: var(--primary-blue-dark); /* Deep blue-grey background */
    color: var(--white);
    position: relative;
    overflow: hidden;
    background-image: url('Assets/security-pattern.png'); /* Assuming this pattern is still desired */
    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(--accent-light-teal) 0%, transparent 65%);
    opacity: 0.08;
}

#security::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-light-teal) 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);
}

.security-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(26, 188, 156, 0.2) 0%, transparent 80%); /* Teal tint */
    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);
}

.security-card:hover::before {
    width: 300%;
    height: 300%;
    opacity: 1;
}

.security-card .icon {
    width: 110px;
    height: 110px;
    line-height: 110px;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 2.8rem;
    margin: 0 auto 2.2rem;
    transition: var(--transition-medium);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3); /* Teal tint shadow */
}

.security-card:hover .icon {
    transform: rotateY(360deg) scale(1.05);
    box-shadow: 0 12px 30px rgba(26, 188, 156, 0.45); /* Teal tint shadow */
}

.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(--light-background); /* Light background */
    position: relative;
    overflow: hidden;
    background-image: url('Assets/testimonial-bg.jpg'); /* Assuming this pattern is still desired */
    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(44, 62, 80, 0.9); /* Primary blue-dark 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(--accent-teal);
    transition: var(--transition-medium);
    background-color: var(--off-white); /* Use off-white for card background */
}

.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(--accent-teal);
    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);
}

.client-info img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 1.8rem;
    object-fit: cover;
    border: 5px solid var(--accent-light-teal);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.client-info .name {
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
    color: var(--primary-blue-dark);
}

.client-info .position {
    color: var(--text-grey); /* Medium grey for position */
    font-size: 1rem;
    font-weight: 500;
}

/* CTA Section */
#cta {
    position: relative;
    overflow: hidden;
    background: var(--gradient-accent); /* Use new accent gradient */
    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);
    z-index: 1;
}

#cta h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: var(--white); /* Changed to white for better contrast on teal */
    position: relative;
    z-index: 2;
}

#cta p {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--off-white); /* Off-white for CTA paragraph */
    opacity: 0.95;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

#cta .btn-primary-dark {
    border: 2px solid var(--primary-blue-dark);
    background-color: var(--primary-blue-dark);
    color: var(--white); /* White text on dark button */
    position: relative;
    z-index: 2;
}

#cta .btn-primary-dark:hover {
    background-color: transparent;
    color: var(--primary-blue-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--primary-blue-dark) !important; /* Primary blue-dark background */
    color: var(--white) !important;
    padding-top: 5rem;
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.85) !important; /* Primary blue-dark with transparency */
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 5 !important;
}

.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;
}

.footer-links {
    position: relative;
    z-index: 6 !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    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(--accent-light-teal) !important;
    text-decoration: none;
    padding-left: 30px;
    opacity: 1 !important;
}

.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;
    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(--accent-light-teal) !important;
    opacity: 1 !important;
}

.footer-contact i {
    color: var(--accent-teal) !important;
    margin-right: 18px;
    margin-top: 4px;
    font-size: 1.25rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

.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;
    color: var(--white) !important;
    margin-right: 15px;
    transition: var(--transition-medium);
    font-size: 1.2rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

/* 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;
    font-size: 0.95rem;
    z-index: 6 !important;
    opacity: 1 !important;
}

.footer-bottom a {
    color: var(--accent-light-teal) !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(44, 62, 80, 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(--primary-blue-dark) !important; /* Consistent deep blue-grey background */
        padding: 1.8rem;
        border-radius: 14px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    
    .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(--primary-blue-dark) !important; /* Ensure consistent dark blue-grey 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(--accent-light-teal) !important;
}

/* Dropdown menu fixes */
.navbar-dark .dropdown-menu {
    background-color: var(--primary-blue-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.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(26, 188, 156, 0.25) !important; /* Teal tint for hover */
    color: var(--accent-teal) !important;
}

/* Mobile menu fixes */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--primary-blue-dark) !important;
        padding: 2rem;
        margin-top: 1.2rem;
        border-radius: 10px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }
    
    .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(--primary-blue-dark);
}

/* ====================== */
/* 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(44, 62, 80, 0.95) !important; /* Primary blue-dark with transparency */
    backdrop-filter: blur(15px);
}




/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-blue-dark); /* Deep blue-grey background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    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;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 25px;
    animation: pulse 2s infinite ease-in-out;
}

.loading-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--off-white); /* Soft off-white text color */
    margin-top: 20px;
}

/* Simple Spinner Animation */
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--accent-teal); /* Teal color for the animated part of the spinner */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@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 {
    --light-background: #ECF0F1; /* A light, cool background color */
    --accent-teal: #1ABC9C; /* A vibrant teal for highlights */
    --primary-blue-dark: #2C3E50; /* A deep blue-grey for contrast */
    --light-grey-transparent-start: rgba(236, 240, 241, 0); /* Transparent cool grey */
    --light-grey-transparent-mid: rgba(236, 240, 241, 0.4);
    --light-grey-transparent-end: rgba(236, 240, 241, 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(--light-background) 0%, rgba(236, 240, 241, 0.8) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
    isolation: isolate;
}

/* Enhanced Decorative Elements (Floating Background Shapes) */
#partners::before,
#partners::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(1px);
    z-index: -1;
}

#partners::before {
    top: -250px;
    right: -250px;
    background: radial-gradient(circle, rgba(26, 188, 156, 0.12) 0%, rgba(26, 188, 156, 0.08) 40%, transparent 70%); /* Tealish gradient */
    animation: float-decoration 20s ease-in-out infinite;
}

#partners::after {
    bottom: -250px;
    left: -250px;
    background: radial-gradient(circle, rgba(44, 62, 80, 0.08) 0%, rgba(44, 62, 80, 0.04) 40%, transparent 70%); /* Dark blue-grey gradient */
    animation: float-decoration 25s ease-in-out infinite reverse;
}

/* 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;
    position: relative;
    padding: 50px 0;
    margin: 2rem 0;
    background: linear-gradient(90deg,
        var(--light-grey-transparent-start) 0%,
        var(--light-grey-transparent-mid) 10%,
        var(--light-grey-transparent-end) 50%,
        var(--light-grey-transparent-mid) 90%,
        var(--light-grey-transparent-start) 100%);
    border-radius: 25px;
    box-shadow:
        inset 0 0 60px rgba(26, 188, 156, 0.1), /* Softer inner teal glow */
        0 8px 30px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-transparent-border);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 400px;
    animation: subtle-pulse 8s ease-in-out infinite;
}

/* 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%,
        transparent 50%,
        rgba(26, 188, 156, 0.05) 100%); /* Tealish highlight */
    border-radius: 25px;
    pointer-events: none;
    z-index: 1;
}

/* Keyframes for Subtle Container Pulse Animation */
@keyframes subtle-pulse {
    0%, 100% {
        box-shadow:
            inset 0 0 60px rgba(26, 188, 156, 0.1),
            0 8px 30px rgba(0, 0, 0, 0.04);
    }
    50% {
        box-shadow:
            inset 0 0 80px rgba(26, 188, 156, 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%;
    overflow: hidden;
    position: relative;
}

/* Styles for Each Logo Row (top and bottom) */
.partner-logos-row {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.8s ease-in-out;
}

/* Specific positioning for the top row */
#logo-row-top {
    top: 0;
}

/* Specific positioning for the bottom row */
#logo-row-bottom {
    top: 65%;
    transform: translateY(0%);
}

/* Individual Logos Slide (flex container for images within each row) */
.partner-logos-slide {
    display: flex;
    align-items: center;
    will-change: transform;
    transition: transform 0.8s ease-in-out;
}

/* Individual Logo Styling (Default state, not centered) */
.partner-logos-slide img {
    max-height: 120px;
    max-width: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 45px;
    flex-shrink: 0;
    opacity: 0.8;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 15px;
    padding: 18px;
    background: transparent;
    position: relative;
    z-index: 2;
    filter: grayscale(10%) brightness(1);
}

/* Logo Hover Effects */
.partner-logos-slide img:hover {
    opacity: 0.9;
    transform: scale(0.95);
    filter: grayscale(0%) brightness(1);
}

/* Enhanced Center Logo Styling */
.partner-logos-slide img.center-logo {
    transform: scale(1.35) !important;
    opacity: 1 !important;
    background: linear-gradient(135deg,
        var(--accent-teal) 0%,
        rgba(26, 188, 156, 0.801) 100%) !important; /* Teal gradient */
    border-radius: 15px;
    z-index: 15 !important;
    box-shadow:
        0 20px 50px rgba(26, 188, 156, 0.25), /* Teal shadow */
        0 0 0 2px var(--white-strong-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    filter: grayscale(0%) brightness(1.1) !important;
    backdrop-filter: blur(12px);
}

/* ==========================================================================
   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;
    }
}

/* 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;
    }
    #logo-row-bottom {
        top: 60%;
    }
}

/* 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;
    }
    .partner-logos-slide img.center-logo {
        transform: scale(1.2) !important;
    }
    #logo-row-bottom {
        top: 55%;
    }
}

/* 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;
    }
    .partner-logos-slide img.center-logo {
        transform: scale(1.15) !important;
        box-shadow:
            0 15px 40px rgba(26, 188, 156, 0.2), /* Teal shadow for mobile */
            0 0 0 1px rgba(255, 255, 255, 0.25) !important;
    }
    #logo-row-bottom {
        top: 52%;
    }
}

/* ==========================================================================
   Accessibility & Performance Optimizations
   ========================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .partner-logos-slide {
        transition: none !important;
    }
    #partners::before,
    #partners::after {
        animation: none;
    }
    .partner-logos-container {
        animation: none;
    }
    .partner-logos-row {
        transition: none !important;
    }
}

/* 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);
    }
    /* Adjust centered logo appearance in dark mode */
    .partner-logos-slide img.center-logo {
        filter: grayscale(0%) brightness(1.2) !important;
    }
    /* 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(26, 188, 156, 0.05), /* Teal tint */
            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(26, 188, 156, 0.08) 0%, rgba(26, 188, 156, 0.04) 40%, transparent 70%);
    }
    #partners::after {
        background: radial-gradient(circle, rgba(44, 62, 80, 0.06) 0%, rgba(44, 62, 80, 0.02) 40%, transparent 70%);
    }
}
