@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Chakra+Petch:wght@400;700&family=Inter:wght@400;500;700&family=Lexend+Deca:wght@400;700&family=Outfit:wght@400;700&family=Poppins:wght@500;600;700&family=Rubik:wght@400;700&family=Space+Mono:wght@400;700&display=swap');

/* General Styles */
:root {
    --primary-color: #007BFF;
    --accent-color: #00C2C7;
    --highlight-color: #FFB100;
    --light-bg: #F5F7FA;
    --dark-bg: #18191A;
    --light-card-bg: #FFFFFF;
    --dark-card-bg: #242526;
    --light-text: #0D0D0D;
    --dark-text: #E4E6EB;
    --light-border: #E0E0E0;
    --dark-border: #3A3B3C;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

h2 { 
    font-size: 32px; 
    text-align: center; 
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out;
}

h2.animate-underline::after{
    transform: scaleX(1);
}


h3{font-size:22px;}

section {
    padding: 5rem 2rem;
    overflow: hidden; /* Prevents scrollbars during animations */
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.logo img {
    height: 36px;
    margin-right: 12px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button-small {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.theme-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; /* Remove padding to let flexbox control spacing */
    color: inherit;
    width: 40px; /* Fixed width */
    height: 40px; /* Fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.theme-button svg {
    width: 24px; /* Ensure SVG size is consistent */
    height: 24px;
}

.theme-button .sun,
.theme-button .moon,
.theme-button .glassmorphism,
.theme-button .brutalism,
.theme-button .neubrutalism {
    display: none;
}

/* Hero Section */


/* ================================
   start of Hero Section Styling by Usman
   ================================ */
#hero {
    padding:0px !important ;
        opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100%;
    height: 100vh!important;
}
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* full viewport height */
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: 1;
    object-position: top;
}

.hero-content {
    position: relative;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-heading
 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: white;
    margin-top: 0px;
    line-height: 1.1;
}

.hero-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--accent-color);
    margin: 1rem 0 0 0 !important;
}

/* CTA button (optional if you add it back) */
.hero-cta-button {
    background-color: #ff5a5f;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    margin-top:  35% !important;
    transition: background-color 0.3s ease;
}

.hero-cta-button:hover {
    background-color: #e14c4f;
}

/* Carousel controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

/* ================================
   Responsive Media Queries
   ================================ */

/* Extra Small Devices (portrait phones, ≤576px) */
@media (max-width: 576px) {
    .hero-heading,
    .hero-title {
        font-size: 1.5rem !important ;
    }
    .hero-subheading,
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-content {
        padding: 0 50px !important;
    }
    .hero-section {
        height: 51vh; /* reduce height for small screens */
    }
    #hero{height: unset!important;}

    .hero-cta-button {
        font-size: 0.8rem !important;
        padding: 10px 20px !important;
        margin-top: 100% !important;;
    }
}

/* Small Devices (landscape phones, ≥576px and ≤768px) */
@media (min-width: 577px) and (max-width: 768px) {

    .hero-heading,
    .hero-title {
        font-size: 2rem;
    }
    .hero-subheading,
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-content {
        padding: 0 70px !important;
    }
    .hero-section {
        height: 86vh;
    }
    .hero-cta-button{
       
        margin-top: 85% !important;
    }
   
}

/* Medium Devices (tablets, ≥768px and ≤992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-heading,
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subheading,
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-section {
        height: 92vh;
    }
    .hero-cta-button{
       
        margin-top: 65% !important;
    }
}

/* Large Devices (desktops, ≥992px and ≤1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .hero-heading,
    .hero-title {
        font-size: 2.75rem;
    }
    .hero-subheading,
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-section {
        height: 88vh;
    }
    .hero-cta-button{  
        margin-top: 45% !important;
    }
}

/* Extra Large Devices (large desktops, ≥1200px) */
@media (min-width: 1201px) {
    .hero-heading,
    .hero-title {
        font-size: 3rem;
    }
    .hero-subheading,
    .hero-subtitle {
        font-size: 1.25rem;
    }
    .hero-section {
        height: 100vh; /* full height for large screens */
    }
}


/* ================================
   End of Hero Section Styling by Usman
   ================================ */



/* #hero {
    position: relative;
    height: 90vh;
    display: grid;
    grid-template-rows: 1fr auto; 
    place-items: center;
    overflow: hidden;
    padding: 2rem;
} */

.hero-slides-wrapper {
    grid-row: 1 / 2;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    z-index: -2;
}

/* #hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
} */

.hero-slide {
    position: absolute;
    width: 100%;
    max-width: 1200px; /* Increased width for longer text */
    padding: 0 1rem;
    box-sizing: border-box;
    opacity: 0;
    text-align: center;
}

.hero-heading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.1;
}

.hero-subheading {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--accent-color);
    margin: 1rem 0 0 0;
}

.hero-heading span, .hero-subheading span {
    display: inline-block;
}

/* .cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 5px;
    margin-top: 1rem;
} */

/* Hero-specific CTA styles */
.hero-cta-button {
    grid-row: 2 / 3; /* Place button in the second grid row */
    color: black !important; /* Force black text color */
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-transform: none;
    box-shadow: 0 10px 30px -10px var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 5;
    margin-top: 1rem; /* Adjust spacing */
}

#hero-backgrounds-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
}

.hero-cta-button::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--dark-bg); /* Underline color */
    transition: width 0.4s ease-out;
}

.hero-cta-button:hover::after {
    width: calc(100% - 5rem);
}

.hero-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px var(--accent-color);
}

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

/* Intro Section */
#intro {
    background-color: var(--card-bg);
    padding: 6rem 2rem;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 28px;
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Why Different Section */
#why-different {
    background-color: var(--light-bg);
}

.dark-mode #why-different {
    background-color: var(--dark-bg);
}

.glassmorphism-mode #why-different {
    background-color: var(--base-bg-1);
}

.choose-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.choose-us-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (min-width: 768px) {
    .choose-us-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.choose-us-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    position: relative;
}

.choose-us-visual img {
    max-width: 100%;
    height: auto;
    display: block;
}

.choose-us-points-wrapper {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .choose-us-points-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.choose-us-item {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.choose-us-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: -1;
    border-radius: 15px;
}

.choose-us-item:hover::before {
    opacity: 0.1;
}

.choose-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-item .icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.choose-us-item .icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature-item .icon svg {
    width: 48px;
    height: 48px;
}

.choose-us-item .icon svg {
    width: 56px;
    height: 56px;
}

.choose-us-item h3 {
    font-size: 24px;
    margin-bottom: 1rem;
}

.choose-us-item p {
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    /* transition removed for GSAP control */
}

.card .icon {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card .card-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* margin: auto; */
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}


.card .icon svg {
    width: 48px;
    height: 48px;
}

/* Process Section (Interactive Sections) */
.interactive-container {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--interactive-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    min-height: 500px;margin-top: 30px;
}

.interactive-list {
    list-style: none;
    margin: 0;
    padding: 1rem;
    flex: 1;
    border-right: 1px solid var(--border-color);
}

.interactive-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.interactive-item .icon {
    color: var(--primary-color);
    transition: color 0.3s;
}

.interactive-item.active {
    background-color: var(--primary-color);
    color: white;
}

.interactive-item.active .icon {
    color: white;
}

.interactive-display {
    flex: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.display-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 2rem;
    object-fit: cover;
    background-color: #e0e0e0;
}

.display-content {
    transition: opacity 0.4s ease-in-out;
}

.display-content.fade-out {
    opacity: 0;
}


/* Industries Section */
#industries {
    background-color: var(--card-bg);
}

#industries .tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#industries .tech-logo, #industries .tech-logo span, #industries .tech-logo svg {
    color: var(--dark-text) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.light-mode #industries .tech-logo, .light-mode #industries .tech-logo span, .light-mode #industries .tech-logo svg {
    color: var(--light-text) !important;
}

/* Technologies Section */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-logo {
    text-align: center;
    color: var(--accent-color);
}

.tech-logo span {
    display: block;
    margin-top: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

/* Ensure industry icons are visible on all themes */
#industries .tech-logo {
    color: var(--dark-text);
}

.light-mode #industries .tech-logo {
    color: var(--light-text);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;padding-top: 30px;
}

.portfolio-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

/* Testimonials Section */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-top: 30px;
}

.testimonial-slide {
    text-align: center;
}

.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
    padding-top: 30px;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-features li {
    margin-bottom: 0.75rem;
}

/* Call to Action (CTA) Section */
#cta {
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5rem 2rem;
    border-radius: 15px;
    margin: 4rem 2rem;
}

#cta h2 {
    color: white;
    font-size: 36px;
}

/* Note: .cta-button is also used in Hero section, consider if it needs to be more generic or duplicated */
.cta-button {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 5px;
    margin-top: -10rem;
}

/* Contact Form Section */
#contact-form {
    padding: 5rem 2rem;
    background-color: var(--card-bg);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    background-color: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 30px;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 2fr 1fr;
    }
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--light-bg);
    color: var(--light-text);
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form textarea:hover {
    border-color: var(--accent-color);
}

.dark-mode .contact-form input[type="text"],
.dark-mode .contact-form input[type="email"],
.dark-mode .contact-form textarea {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.glassmorphism-mode .contact-form input[type="text"],
.glassmorphism-mode .contact-form input[type="email"],
.glassmorphism-mode .contact-form textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-color);
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.contact-form .cta-button {
    margin-top: 1rem;
    width: auto;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    transition: transform 0.3s, background-color 0.3s;
}

.contact-form .cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--accent-color);
    color: white;
}

.contact-info-sidebar {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.dark-mode .contact-info-sidebar {
    background-color: var(--dark-bg);
}

.glassmorphism-mode .contact-info-sidebar {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-info-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-info-sidebar p {
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Footer Section */
footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-info {
    margin: 1rem 0;
}

/* High Contrast Mode */
body.high-contrast-mode {
    background-color: #000 !important;
    background-image: none !important;
}

/* Ensure all direct children of body and main containers have transparent backgrounds */
body.high-contrast-mode header,
body.high-contrast-mode main,
body.high-contrast-mode footer,
body.high-contrast-mode section,
body.high-contrast-mode div,
body.high-contrast-mode #mobile-nav {
    background: none !important;
    background-color: transparent !important;
}

/* Set universal text color for all text-based elements */
body.high-contrast-mode h1,
body.high-contrast-mode h2,
body.high-contrast-mode h3,
body.high-contrast-mode h4,
body.high-contrast-mode h5,
body.high-contrast-mode h6,
body.high-contrast-mode p,
body.high-contrast-mode span,
body.high-contrast-mode li,
body.high-contrast-mode a,
body.high-contrast-mode label,
body.high-contrast-mode strong,
body.high-contrast-mode em {
    color: #FFF !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
}

/* Ensure containers have a solid border for visual structure */
body.high-contrast-mode header,
body.high-contrast-mode footer,
body.high-contrast-mode section,
body.high-contrast-mode .card,
body.high-contrast-mode .choose-us-point-item,
body.high-contrast-mode .portfolio-item,
body.high-contrast-mode .pricing-card,
body.high-contrast-mode .interactive-container,
body.high-contrast-mode .contact-container,
body.high-contrast-mode .contact-info-sidebar,
body.high-contrast-mode .testimonial-slider {
    border: 2px solid #FFF !important;
    box-shadow: none !important;
}

/* Make sure interactive list items are visible */
body.high-contrast-mode .interactive-item {
    border-bottom: 1px solid #FFF !important;
}
body.high-contrast-mode .interactive-item.active {
    background-color: #FFF !important;
}
body.high-contrast-mode .interactive-item.active *,
body.high-contrast-mode .interactive-item.active .icon {
    color: #000 !important;
}


/* Style buttons and inputs for high contrast */
body.high-contrast-mode button,
body.high-contrast-mode .cta-button,
body.high-contrast-mode .cta-button-small,
body.high-contrast-mode input,
body.high-contrast-mode textarea,
body.high-contrast-mode select {
    background-color: #FFF !important;
    color: #000 !important;
    border: 2px solid #FFF !important;
}

/* Fix for theme/accessibility icons */
body.high-contrast-mode .header-actions .theme-button svg *,
body.high-contrast-mode #hamburger-menu svg *,
body.high-contrast-mode footer .theme-button svg * {
    stroke: #000 !important;
    fill: #000 !important;
}

body.high-contrast-mode .icon svg *,
body.high-contrast-mode .social-links a svg * {
    stroke: #FFF !important;
    fill: #FFF !important;
}

body.high-contrast-mode #close-nav-btn {
    color: #FFF !important;
}


/* Focus outline for keyboard navigation */
body.high-contrast-mode a:focus,
body.high-contrast-mode button:focus,
body.high-contrast-mode input:focus,
body.high-contrast-mode textarea:focus,
body.high-contrast-mode select:focus,
body.high-contrast-mode .interactive-item:focus {
    outline: 3px solid #FFFF00 !important;
    outline-offset: 2px !important;
}

/* Remove purely decorative elements */
body.high-contrast-mode h2::after,
body.high-contrast-mode nav a::after,
body.high-contrast-mode .hero-cta-button::after,
body.high-contrast-mode #hero::after,
body.high-contrast-mode .choose-us-visual,
body.high-contrast-mode #dark-theme-background,
body.high-contrast-mode #glassmorphism-theme-background,
body.high-contrast-mode .hero-background-image,
body.high-contrast-mode .card-image {
    display: none !important;
}

/* Specific fix for CTA section */
body.high-contrast-mode #cta {
    border: 2px solid #FFF !important;
}
body.high-contrast-mode #cta .cta-button {
    background: #FFF !important;
    color: #000 !important;
}

/* Specific fixes for section backgrounds in high contrast */
body.high-contrast-mode #industries,
body.high-contrast-mode #process,
body.high-contrast-mode #technologies,
body.high-contrast-mode .interactive-container {
    background: transparent !important;
}

/* Fix for glassmorphism active item in high contrast */
body.glassmorphism-mode.high-contrast-mode .interactive-item.active {
    background: #FFF !important;
}

body.glassmorphism-mode.high-contrast-mode .interactive-item.active *,
body.glassmorphism-mode.high-contrast-mode .interactive-item.active .icon {
    color: #000 !important;
}

/* Fix for glassmorphism technology icons in high contrast */
body.glassmorphism-mode.high-contrast-mode .tech-logo svg * {
    stroke: #FFF !important;
    fill: #FFF !important;
}

/* Fix for light-mode icons in high contrast */
body.light-mode.high-contrast-mode #technologies .tech-logo svg *,
body.light-mode.high-contrast-mode #industries .tech-logo svg * {
    stroke: #FFF !important;
    fill: #FFF !important;
}

body.light-mode.high-contrast-mode #industries .tech-logo span {
    color: #FFF !important;
}

/* Reduced Motion - This should be kept for users who prefer it system-wide */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-background-image, .fog-element, #glassmorphism-theme-background {
        animation: none !important;
        transition: none !important;
    }
}

#fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
    overflow: hidden;
    z-index: -1; /* Behind all content */
}

.fog-element {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
}

/*Services detail page*/

    .split-layout-wrapper {
        padding: 60px 20px;
        min-height: 100vh;
    }

    .pro-card {
        /*background: #ffffff;*/
        /*max-width: 1100px;*/
        width: 100%;
        margin: 0 auto;
        border-radius: 16px; /* Modern rounded corners */
        box-shadow: 0 15px 40px rgba(0,0,0,0.06); /* Expensive looking shadow */
        overflow: hidden;
    }

    /* --- 2. The Split Header (Unique Part) --- */
    .pro-header {
        display: flex;
        align-items: center;
        /*background: #fff;*/
        border-bottom: 1px solid #f0f0f0;
    }

    .header-content-side {
        flex: 1;
        padding: 60px;
    }

    .header-image-side {
        flex: 1;
        height: 100%;
        min-height: 400px;
        position: relative;
    }

    .header-bg-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Typography */
    .pro-cat {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #0073aa; /* Your Brand Color */
        margin-bottom: 20px;
        background: rgba(0, 115, 170, 0.1);
        padding: 6px 12px;
        border-radius: 4px;
    }

    .pro-title {
        font-size: 2.8rem;
        line-height: 1.2;
        color: #1a1a1a;
        margin-bottom: 25px;
        font-weight: 800;
    }

    .pro-meta {
        display: flex;
        align-items: center;
        font-size: 0.9rem;
        color: #666;
    }

    .meta-sep { margin: 0 10px; color: #ccc; }

    /* --- 3. Content Section (With extra space) --- */
    .pro-content-wrapper {
        max-width: 780px; /* Optimal reading width */
        margin: 0 auto;
        padding: 80px 40px; /* Massive padding for "Breathing Room" */
    }

    .entry-content {
        font-size: 1.2rem; /* Professional sizing */
        line-height: 1.8;
        color: #333;
    }

    .entry-content p { margin-bottom: 30px; }
    
    .entry-content h2 { margin-top: 60px; font-size: 2rem; color: #111; }
    
    .entry-content blockquote {
        border-left: 4px solid #0073aa;
        padding-left: 20px;
        margin: 40px 0;
        font-style: italic;
        color: #555;
        background: #f9f9f9;
        padding: 30px;
    }

    /* --- 4. Footer & Nav --- */
    .pro-footer {
        background: #fcfcfc;
        border-top: 1px solid #eee;
        padding: 50px 60px;
    }

    .pro-nav-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .nav-card {
        padding: 25px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        transition: 0.3s;
        text-decoration: none;
        display: block;
    }
    
    .nav-card:hover {
        border-color: #0073aa;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }

    .nav-label {
        font-size: 12px;
        text-transform: uppercase;
        color: #999;
        font-weight: 700;
        display: block;
        margin-bottom: 8px;
    }

    .nav-link-title {
        color: #333;
        font-weight: 700;
        font-size: 1.1rem;
        margin: 0;
    }

    /* --- Mobile Responsive --- */
    @media (max-width: 900px) {
        .pro-header { flex-direction: column-reverse; } /* Image on top on mobile */
        .header-image-side { min-height: 250px; width: 100%; }
        .header-content-side { padding: 40px 20px; }
        .pro-title { font-size: 2rem; }
        .pro-content-wrapper { padding: 40px 20px; }
        .pro-nav-grid { grid-template-columns: 1fr; }
    }
    #cta h2{margin: 10px 0px;}
        #cta p{margin: 10px 0px;}
        #cta .cta-button{margin: 10px 0px;}