/* Vornix Power Solutions - CSS Styles */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.65;
    color: var(--dark-gray); /* Dark grey text for white background */
    background-color: #ffffff; /* White background */
    font-weight: 400;
}

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

/* Color Variables */
:root {
    --primary-color: #2c3e50; /* Dark Grey */
    --secondary-accent: #FFD700; /* Gold accent only */
    --accent-color: #FFD700; /* Gold accent */
    --light-gray: #f8f9fa; /* Light gray */
    --medium-gray: #6c757d;
    --dark-gray: #2c3e50; /* Dark Grey */
    --darker-gray: #212529; /* Darker gray */
    --lighter-gray: #e9ecef; /* Lighter gray */
    --white: #ffffff; /* Pure white */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --section-bg: #f8f9fa;
    --simple-gradient: linear-gradient(135deg, #2c3e50, #ffffff);
    --simple-gradient-alt: linear-gradient(135deg, #ffffff, #f8f9fa);
    --simple-dark-gradient: linear-gradient(135deg, #2c3e50, #34495e);
}

/* Animation classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animated {
    opacity: 0;
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.animate-on-scroll:nth-child(2) {
    animation-delay: 0.4s;
}

.animate-on-scroll:nth-child(3) {
    animation-delay: 0.6s;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85), rgba(33, 37, 41, 0.85)); /* Gradient using dark grey tones only */
    backdrop-filter: blur(10px); /* Modern glass effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001; /* Higher than mobile menu */
    padding: 0; /* Remove padding to control with flex */
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
    height: 60px; /* Fixed height for consistency */
    min-height: 60px; /* Ensure minimum height */
    display: flex;
    align-items: center; /* Vertically center all header content */
}

/* Override container centering in header */
header .container {
    margin: 0; /* Override centering */
    display: flex;
    align-items: center; /* Align items in the header */
    width: 100%;
    max-width: none; /* Override any max-width */
    padding: 0 20px; /* Keep some side padding */
}

/* Additional header sleek adjustments */
.logo {
    display: flex;
    align-items: center; /* Vertically center the logo */
    justify-content: flex-start; /* Left align the logo */
    height: 100%; /* Full height of the header */
    margin-right: auto; /* Push other elements to the right, keeping logo on left */
    padding: 0; /* Remove all padding to move to leftmost side */
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo-img {
    height: 40px; /* Set appropriate height for logo */
    width: auto; /* Maintain aspect ratio */
    max-height: 80%; /* Ensure it fits within header */
}

.nav-menu ul {
    display: flex; 
    align-items: center; /* Better alignment */
    height: 100%; /* Full height of the header */
    margin-left: auto; /* Push navigation to the right */
}

.nav-menu ul li {
    margin-left: 1.0rem; /* Tighter navigation spacing */
}

.nav-menu ul li a {
    font-size: 0.8rem; /* More compact navigation text */
    padding: 2px 0; /* Minimal padding on links */
    letter-spacing: 0.2px; /* Slightly more letter spacing */
    display: flex;
    align-items: center; /* Vertically center nav links */
    height: 100%; /* Full height of the header */
}

/* Mobile adjustments for header */
@media (max-width: 768px) {
    header {
        height: 55px; /* Slightly smaller on mobile */
        min-height: 55px;
    }
    
    .logo h1 {
        font-size: 0.95rem; /* Very compact font on mobile */
    }
    
    .nav-menu ul {
        display: flex; /* Show navigation on mobile */
        flex-wrap: wrap; /* Allow wrapping if needed */
    }
    
    .nav-menu ul li {
        margin-left: 0.8rem; /* Slightly smaller spacing on mobile */
    }
    
    header .container {
        padding: 0 8px; /* Minimal padding in container */
    }
}

/* Enhanced header styles inspired by template */
header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.hidden {
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 2.2rem;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 400;
    font-size: 0.85rem; /* Decreased from 0.95rem */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-menu ul li a:hover {
    color: var(--secondary-accent); /* Gold on hover */
}

.nav-menu ul li a:active,
.nav-menu ul li a.active {
    color: var(--secondary-accent); /* Gold when active */
}

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

.nav-menu ul li a:hover:after {
    width: 100%;
}

.contact-number a {
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    background: transparent; /* Remove gold background */
    padding: 0; /* Remove padding to eliminate rounded rectangle */
    border-radius: 0; /* Remove rounded corners */
    transition: all 0.3s ease;
}

.contact-number a:hover {
    background: transparent; /* Keep transparent */
    transform: scale(1.05);
    color: #FFD700; /* Gold on hover */
}

.contact-number i {
    margin-right: 8px;
}

#phone-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15); /* Gold with transparency */
    color: var(--secondary-accent);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

#phone-trigger:hover {
    background: var(--secondary-accent);
    color: var(--dark-gray);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

#phone-number {
    position: absolute;
    left: calc(100% + 10px); /* Position to the right of the icon */
    top: 50%;
    transform: translateY(-50%);
    background: #2c3e50; /* Dark blue grey background */
    color: #ffffff; /* White text */
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 400; /* Normal weight, not bold */
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 120px;
    text-align: center;
}

#phone-trigger:hover #phone-number {
    opacity: 1;
    visibility: visible;
}

/* Header phone icon styling */
.header-phone-icon {
    width: 30px; /* Increased size */
    height: 30px; /* Increased size */
    margin-right: 8px;
    transition: all 0.3s ease;
    background: transparent; /* Ensure transparent background */
    border: none; /* Remove any borders */
}

#phone-trigger:hover .header-phone-icon {
    transform: scale(1.1);
}

/* Hamburger and close icon styling */
.hamburger-icon, .hamburger-close-icon {
    width: 30px; /* Increased size */
    height: 30px; /* Increased size */
    transition: all 0.3s ease;
    display: block;
    background: transparent !important; /* Force transparent background */
    border-radius: 0 !important; /* Remove any rounded corners */
    border: none !important; /* Remove any borders */
}

.hamburger-close-icon {
    display: none;
}

/* Show close icon when menu is active */
.mobile-menu-btn.change .hamburger-close-icon {
    display: block;
}

.hamburger-close-icon {
    display: none;
}

/* Show close icon when menu is active */
.mobile-menu-btn.change .hamburger-icon {
    display: none;
}

.mobile-menu-btn.change .hamburger-close-icon {
    display: block;
}

/* Remove yellow backgrounds and borders from header controls */
#phone-trigger {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.contact-number a {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.mobile-menu-btn {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* For better positioning on smaller screens */
@media (max-width: 768px) {
    #phone-number {
        left: auto;
        right: 100%;
        margin-right: 10px;
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-number {
    position: relative;
    display: flex;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0; /* Remove padding to eliminate rounded rectangle */
    background: transparent; /* Remove gold background */
    border-radius: 0; /* Remove rounded corners */
    transition: all 0.3s ease;
    position: relative;
    width: auto;
    height: auto;
}

/* Mobile navigation menu */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    border-radius: 8px; /* Rounded corners */
    margin-top: 5px; /* Small gap from header */
    overflow: hidden; /* Ensure rounded corners are maintained */
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.mobile-nav ul li {
    margin: 0;
    text-align: center;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.mobile-menu-btn:hover {
    background: transparent; /* Keep transparent */
    transform: scale(1.1); /* Slight scale effect */
}

.hamburger-icon, .hamburger-close-icon {
    border-radius: 0; /* Remove any rounded corners */
    background: transparent; /* Make sure background is transparent */
}

/* Hamburger to cross animation remains the same but without the rounded container */
.mobile-menu-btn.change .hamburger-icon {
    display: none;
}

.mobile-menu-btn.change .hamburger-close-icon {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.98); /* Dark grey background */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 998; /* Slightly below header */
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.mobile-nav ul li {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateX(0);
}

/* Add staggered animation for menu items */
.mobile-nav.active ul li:nth-child(1) { 
    transition: all 0.3s ease 0.1s; 
}

.mobile-nav.active ul li:nth-child(2) { 
    transition: all 0.3s ease 0.2s; 
}

.mobile-nav.active ul li:nth-child(3) { 
    transition: all 0.3s ease 0.3s; 
}

.mobile-nav.active ul li:nth-child(4) { 
    transition: all 0.3s ease 0.4s; 
}

.mobile-nav.active ul li:nth-child(5) { 
    transition: all 0.3s ease 0.5s; 
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.mobile-nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 400;
    font-size: 0.95rem;
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    color: var(--secondary-accent); /* Gold on hover */
    background: rgba(255, 215, 0, 0.1);
    padding-left: 25px;
}

.mobile-nav ul li a:active,
.mobile-nav ul li a.active {
    color: var(--secondary-accent); /* Gold when active */
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 160px 0 110px; /* More generous padding */
    text-align: center;
    margin-top: 0; /* Remove top margin since header is fixed */
    position: relative;
    overflow: hidden;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 120px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Products Hero Section */
.products-hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 120px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Services Hero Section */
.services-hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 120px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Expert Corner Hero Section */
.expert-corner-hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 120px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Background image styling for hero sections */
.page-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: fixed; /* Fixed positioning to extend behind the header */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    z-index: -2; /* Behind everything */
    overflow: hidden;
}

/* Specific styling for the background image */
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Full opacity for maximum visibility */
    filter: brightness(1.5) contrast(1.6) saturate(2) hue-rotate(3deg) sepia(0.1); /* Maximum enhancement for vivid colors */
}

/* Background image for specific sections */
.about-hero .hero-bg-image,
.expert-corner-hero .hero-bg-image {
    opacity: 1; /* Full opacity */
    filter: brightness(1.1) contrast(1.3) saturate(1.3); /* Enhanced but not as vibrant as main hero */
}

/* Ensure containers stay above the background */
.hero .container, .about-hero .container, .products-hero .container, .services-hero .container, .expert-corner-hero .container {
    position: relative;
    z-index: 2; /* Above the background image and gradient */
}

/* Update hero sections to have relative z-index */
.hero, .about-hero, .products-hero, .services-hero, .expert-corner-hero {
    position: relative;
    overflow: hidden; /* Contain the background image */
}
.hero::before, 
.about-hero::before, 
.products-hero::before, 
.services-hero::before, 
/* Background image styling for hero sections */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above the gradient background */
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5; /* Reduced opacity for better text readability */
    filter: brightness(0.7) contrast(1.1) saturate(0.9); /* Darker and more contrast for readability */
}



/* Specific styling for other sections */
.about-hero .hero-bg-image,
.products-hero .hero-bg-image,
.services-hero .hero-bg-image,
.expert-corner-hero .hero-bg-image {
    opacity: 0.4; /* Darker opacity for better text readability */
    filter: brightness(0.6) contrast(1.2) saturate(0.8); /* Even darker and more contrast for readability */
}

/* Specific overlay for about and expert corner to be darker */
.about-hero::before,
.expert-corner-hero::before {
    background: rgba(0, 0, 0, 0.5); /* Less dark overlay for better image visibility */
}

/* Update hero sections to have relative z-index to appear above background */
.hero, .about-hero, .products-hero, .services-hero, .expert-corner-hero {
    position: relative;
    overflow: visible; /* So ::before doesn't cut off */
}

.hero .container, .about-hero .container, .products-hero .container, .services-hero .container, .expert-corner-hero .container {
    position: relative;
    z-index: 1;
}

.top-text {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-text h6 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.top-text h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-top: 15px;
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -1px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--white);
    font-weight: 400;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 25px; /* More space between buttons */
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-accent), #ffdf40, var(--secondary-accent)); /* Gold gradient */
    color: var(--dark-gray); /* Dark grey text */
    text-decoration: none;
    padding: 18px 36px; /* More balanced padding */
    border-radius: 8px; /* Less rounded, more modern */
    font-size: 1.1rem; /* Slightly smaller */
    font-weight: 600; /* Less heavy */
    transition: all 0.3s ease;
    min-width: 220px;
    text-align: center;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif; /* Modern font */
}

.cta-button:hover {
    background: linear-gradient(135deg, #ffd95a, #ffdf60, #ffd95a); /* Slightly brighter gold gradient */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--dark-gray); /* Dark grey text on hover */
}

.cta-button.secondary {
    background: transparent; /* Transparent background */
    color: var(--white); /* White text for dark backgrounds */
    border: 2px solid var(--white); /* White border */
}

.cta-button.secondary:hover {
    background: var(--white); /* White background on hover */
    color: var(--dark-gray); /* Dark text on hover */
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
    background-color: #ffffff; /* White background */
    color: var(--dark-gray);
    scroll-margin-top: 80px; /* For smooth scrolling with fixed header */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
}

.section-heading h2 {
    text-align: center;
    font-size: 2.5rem; /* Larger, more modern */
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    letter-spacing: -0.5px; /* Crisp, modern look */
}

.section-heading h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-heading h6 {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem; /* Slightly smaller */
    font-weight: 600; /* Bolder */
    letter-spacing: 1.5px; /* More space between letters */
    color: var(--medium-gray); /* Medium grey color */
    margin-bottom: 1.5rem; /* Reduced space */
    opacity: 0.8; /* More subtle */
}

section h2 {
    text-align: center;
    font-size: 2.5rem; /* Larger, more modern */
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    letter-spacing: -0.5px; /* Crisp, modern look */
}

section h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* All key headings use gold color */
h1 {
    color: var(--primary-color);
}

h2 {
    color: var(--primary-color);
}

h3 {
    color: var(--primary-color);
}

section p {
    text-align: center;
    color: var(--dark-gray); /* Dark grey text for readability on white */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.93rem; /* ~15px */
    line-height: 2; /* ~30px line-height */
}

section p {
    text-align: center;
    color: var(--dark-gray); /* Dark grey text for readability */
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Ensure text is readable on dark backgrounds */
.services p,
.services h2,
.services h3 {
    color: var(--white);
}

.contact p,
.contact h2,
.contact h3 {
    color: var(--white);
}

.cta-section p,
.cta-section h2 {
    color: var(--white);
}

/* Keep gold accent color for section headings on dark backgrounds */
.services .section-heading h2,
.services .section-heading h6,
.contact .section-heading h2,
.contact .section-heading h6,
.cta-section .section-heading h2,
.cta-section .section-heading h6 {
    color: var(--secondary-accent);
}

/* Keep gold for h3 elements in dark background sections */
.services h3,
.contact h3,
.cta-section h3 {
    color: var(--secondary-accent);
}

.services .service-card,
.contact .contact-item,
.contact .contact-form {
    color: var(--dark-gray);
}

/* Products Section */
.products {
    background: linear-gradient(to bottom, #2c3e50, #f8f9fa); /* Gradient from dark to light for smooth transition */
    color: var(--white); /* White text to match hero sections */
}

/* Ensure section headings are white in products section */
.products .section-heading h2,
.products .section-heading h6 {
    color: var(--white);
}

.products p {
    color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card .icon,
    .product-card > p:not(.product-description),
    .product-card .product-description,
    .product-card .image-placeholder {
        display: none;
    }

    .product-card h3,
    .product-card .cta-button {
        display: block !important;
        margin: 10px auto;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card p.product-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 10px 0 15px;
        display: block;
    }
}

.product-card {
    background: var(--white); /* White background */
    border-radius: 16px; /* More modern rounded corners */
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--dark-gray); /* Dark gray text */
    margin-bottom: 30px; /* Card spacing */
    border: none; /* Remove border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-card .icon {
    font-size: 3.5rem;
    color: var(--secondary-accent);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.product-card .icon::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.product-card:hover .icon {
    transform: translateY(-5px);
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.product-card p {
    color: var(--medium-gray); /* Medium grey text */
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.05rem;
}

.product-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.product-card ul li {
    padding: 8px 0 8px 30px;
    color: var(--dark-gray);
    position: relative;
    line-height: 1.5;
}

.product-card ul li:before {
    content: '✓';
    color: var(--secondary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    background: linear-gradient(to bottom, #2c3e50, #34495e); /* Dark grey at top to lighter dark grey at bottom */
    color: var(--white);
}

.services-hero h1 {
    color: white;
}

/* Smaller hero section for projects page only */
.projects-page .services-hero {
    padding: 80px 0 40px; /* Reduced from default */
}

.projects-page .services-hero .container h1 {
    font-size: 2.2rem; /* Smaller font size */
    margin-bottom: 1rem;
}

.projects-page .services-hero .container p {
    font-size: 1.1rem; /* Smaller font size */
}

/* Grid layout for projects on projects page - 3x3 desktop, horizontal mobile */
@media (min-width: 769px) {
    .projects-one-row {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        overflow-x: visible;
    }
    
    .projects-one-row .project-card {
        flex: none;
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-one-row {
        display: flex !important;
        flex-wrap: wrap;
        overflow-x: auto;
        gap: 30px;
    }
    
    .projects-one-row .project-card {
        flex: 0 0 auto;
        min-width: 300px;
    }
}



/* Project image container */
.project-card .project-image-container {
    display: block;
    width: 100%;
    margin: 15px 0 10px 0;
}

.project-card .project-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.project-details-strip {
    background: white;
    color: var(--dark-gray);
    padding: 10px;
    border-radius: 0 0 8px 8px; /* Rounded at bottom only to match image curve */
    margin-top: -5px; /* Overlap slightly with image */
    position: relative;
    z-index: 1;
}

.project-details-strip h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 5px 0 5px 0;
}

.project-details-strip p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Compact sizing for first project */
.project-small {
    padding: 8px 8px !important; /* Smaller padding */
}

.project-small .project-image-container {
    margin: 8px 0 4px 0; /* Reduced margin */
}

.project-small .project-image {
    max-height: 210px; /* Keep image at 210px */
    object-fit: cover;
}

.project-small .project-details-strip {
    padding: 6px; /* Smaller strip padding */
}

.project-small .project-details-strip h3 {
    font-size: 0.9rem; /* Smaller font */
    margin: 2px 0;
}

.project-small .project-details-strip p {
    margin: 2px 0;
    font-size: 1.1rem; /* Even larger font */
}



/* Mobile optimization for project images */
@media (max-width: 768px) {
    .projects-one-row .project-card .icon {
        font-size: 1rem;
    }
}

/* Mobile optimization for projects one row layout */
@media (max-width: 768px) {
    .projects-one-row {
        gap: 15px;
    }
    
    .projects-one-row .project-card {
        min-width: 200px;
        padding: 15px 12px;
    }
    
    .projects-one-row .project-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .projects-one-row .project-card p {
        font-size: 0.85rem;
        margin: 0 0 10px;
    }
    
    .projects-one-row .project-card .icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .projects-one-row {
        gap: 10px;
    }
    
    .projects-one-row .project-card {
        min-width: 150px;
        padding: 12px 10px;
    }
    
    .projects-one-row .project-card h3 {
        font-size: 1rem;
    }
    
    .projects-one-row .project-card p {
        font-size: 0.8rem;
    }
    
    .projects-one-row .project-card .icon {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

.services-hero p {
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    background: var(--white); /* White background */
    border-radius: 16px; /* More modern rounded corners */
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--dark-gray); /* Dark gray text */
    margin-bottom: 30px; /* Card spacing */
    border: none; /* Remove border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-card .icon {
    font-size: 3.5rem;
    color: var(--secondary-accent);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.project-card .icon::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.project-card:hover .icon {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.project-card p {
    color: var(--medium-gray); /* Medium grey text */
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.05rem;
}

.project-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.project-card ul li {
    padding: 8px 0 8px 30px;
    color: var(--dark-gray);
    position: relative;
    line-height: 1.5;
}

.project-card ul li:before {
    content: '✓';
    color: var(--secondary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Services Section */
.services {
    background: var(--simple-dark-gradient);
    color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--white); /* White background */
    border-radius: 16px; /* More modern rounded corners */
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--dark-gray); /* Dark gray text */
    margin-bottom: 30px; /* Card spacing */
    border: none; /* Remove border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card .icon {
    font-size: 3.5rem;
    color: var(--secondary-accent);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.service-card .icon::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.service-card:hover .icon {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.service-card p {
    color: var(--medium-gray); /* Medium grey text */
    margin: 0 0 20px;
    font-size: 1.05rem;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
}

.service-card ul li {
    padding: 8px 0 8px 30px;
    color: var(--dark-gray);
    position: relative;
    line-height: 1.5;
}

.service-card ul li:before {
    content: '✓';
    color: var(--secondary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
    background: rgba(255, 215, 0, 0.1);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
}

/* Why Choose Section */
.why-choose {
    background: var(--white);
    color: var(--dark-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white); /* White background */
    border-radius: 16px; /* More modern rounded corners */
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: var(--dark-gray); /* Dark gray text */
    margin-bottom: 30px; /* Card spacing */
    border: none; /* Remove border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card .icon {
    font-size: 3.5rem;
    color: var(--secondary-accent);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.feature-card .icon::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.feature-card:hover .icon {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--medium-gray); /* Medium grey text */
    margin: 0 0 20px;
    text-align: center;
    font-size: 1.05rem;
}

/* Contact Section */
.contact {
    background: var(--simple-gradient);
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    padding: 70px;
    border-radius: 16px;
    background-color: var(--white); /* White background for content */
    color: var(--dark-gray);
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.contact-info h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-accent);
    border-radius: 2px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(255, 107, 0, 0.05);
}

.contact-item i {
    color: var(--secondary-accent);
    font-size: 1.3rem;
    margin-right: 15px;
    margin-top: 5px;
    min-width: 24px;
}

.contact-item p {
    margin: 0;
    color: var(--dark-gray); /* Dark grey color */
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-item div p {
    margin: 0;
    color: var(--dark-gray); /* Dark grey color */
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-item div {
    color: var(--dark-gray); /* Dark grey color */
}

.contact-item strong {
    color: var(--dark-gray); /* Dark grey color */
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--secondary-accent);
    text-decoration: underline;
}

.map-container {
    margin-top: 30px;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 350px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--primary-color), #172a45);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 280px;
        margin-top: 15px;
    }
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-accent);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    background-color: var(--white);
    border: 1px solid var(--lighter-gray);
    outline: none;
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-gray);
    padding: 0 18px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-family: 'Inter', sans-serif; /* Modern font */
}

.form-group textarea {
    margin-top: 10px;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    max-height: 180px;
    min-height: 140px;
    height: 140px;
    padding: 18px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--medium-gray);
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.08);
}

.submit-btn {
    background: linear-gradient(135deg, var(--secondary-accent), #ffdf40, var(--secondary-accent)); /* Gold gradient */
    color: var(--primary-color); /* Black text */
    border: none;
    padding: 16px 30px;
    border-radius: 7px;
    font-size: 0.93rem; /* ~15px */
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.25px;
    text-transform: capitalize;
    text-align: center;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #ffd95a, #ffdf60, #ffd95a); /* Slightly brighter gold gradient */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    color: var(--primary-color); /* Black text */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    color: var(--dark-gray); /* Set text color to dark grey */
}

.modal-content h2 {
    color: var(--secondary-accent);
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--dark-gray); /* Dark grey text */
}

.modal-content ul, .modal-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.modal-content li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--dark-gray); /* Dark grey text */
}

.close {
    color: var(--white); /* White color */
    float: right;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover,
.close:focus {
    color: var(--secondary-accent);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Expert Corner Styles */
.expert-corner-hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 120px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.expert-corner-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white); /* Kept white for contrast with dark background */
}

.expert-corner-hero p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.search-filter-section {
    background-color: #ffffff; /* White background */
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.search-filter-section .container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    background-color: var(--white);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-container input:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.search-container button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--medium-gray);
    cursor: pointer;
}

.filter-container select {
    padding: 14px 45px 14px 20px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    background-color: var(--white);
    cursor: pointer;
    min-width: 180px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.filter-container select:focus {
    outline: none;
    border-color: var(--secondary-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.expert-corner-content {
    padding: 60px 0;
    background: linear-gradient(to bottom, #2c3e50, #34495e); /* Dark blue grey gradient */
    color: var(--white); /* White text for readability on the dark background */
}

/* Ensure article text remains black/dark on expert corner page */
.expert-corner-content .article-title,
.expert-corner-content .article-snippet,
.expert-corner-content .read-more-btn {
    color: var(--dark-gray) !important;
}

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

/* Single column layout for mobile on expert corner - stacked vertically */
@media (max-width: 768px) {
    .articles-grid {
        display: flex !important;
        flex-direction: column;
        overflow-x: visible;
        gap: 20px;
    }
    
    .article-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

.article-card {
    background: var(--white); /* White background */
    border-radius: 16px; /* More modern rounded corners */
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--dark-gray); /* Dark gray text */
    margin-bottom: 30px; /* Card spacing */
    border: none; /* Remove border */
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.article-icon {
    font-size: 3rem;
    color: var(--secondary-accent);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.article-icon::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.article-title {
    color: #000000; /* Black color */
    font-size: 1.4rem;
    margin: 0 0 15px;
    font-weight: 700;
}

.article-snippet {
    color: var(--white); /* White text */
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    background-color: #FFD700; /* Gold background */
    color: #000000; /* Black text */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
    width: fit-content;
}

.read-more-btn:hover {
    background-color: #ffd95a; /* Slightly brighter gold */
    color: #000000; /* Black text */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

/* About Page Styling */
body section.about-content .about-text h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 30px 0 15px !important;
    color: var(--secondary-accent);
    font-weight: 600;
    display: block;
}

body section.about-content h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 30px 0 15px !important;
    color: var(--secondary-accent);
    font-weight: 600;
    display: block;
}

/* About Hero Section */
.about-hero {
    background: linear-gradient(to bottom, #1a2435, #2c3e50); /* Darker at top, lighter at bottom */
    color: var(--white);
    padding: 120px 0 70px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white); /* Kept white for contrast with dark background */
}

.about-hero p {
    font-size: 1.2rem;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

/* Local Maintenance Section */
.local-maintenance {
    background: var(--white);
    padding: 80px 0;
}

.local-maintenance h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-accent);
}

.maintenance-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.maintenance-text p {
    margin-bottom: 1.5rem;
    color: var(--white); /* White text */
    font-size: 1.1rem;
}

.maintenance-text ul {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.maintenance-text ul li {
    padding: 5px 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 25px;
}

.maintenance-text ul li:before {
    content: '✓';
    color: var(--secondary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Service Process Section */
.service-process {
    background: var(--white);
    padding: 80px 0;
}

.service-process h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-accent);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px; /* More rounded */
    background: #ffffff; /* White background */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); /* Gentle shadow */
    position: relative;
    transition: transform 0.3s ease;
    border: 3px solid #FFD700; /* Gold border */
    margin-bottom: 30px; /* Card spacing */
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: #FFD700;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    color: var(--secondary-accent);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.step p {
    color: var(--white); /* White text */
    margin: 0;
    font-size: 1rem;
}

/* Directions Section */
.directions {
    background-color: #ffffff; /* White background */
    padding: 80px 0;
}

.directions h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-accent);
}

.directions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.directions-text ul {
    padding-left: 20px;
    margin-top: 20px;
}

.directions-text ul li {
    padding: 8px 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 25px;
}

.directions-text ul li:before {
    content: '✓';
    color: var(--secondary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Emergency Services */
.emergency-services {
    background-color: #ffffff; /* White background */
    padding: 80px 0;
}

.emergency-services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-accent);
}

.emergency-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.emergency-text ul {
    padding-left: 20px;
    margin-top: 20px;
}

.emergency-text ul li {
    padding: 8px 0;
    color: var(--dark-gray);
    position: relative;
    padding-left: 25px;
}

.emergency-text ul li:before {
    content: '✓';
    color: var(--secondary-accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.emergency-cta {
    text-align: center;
}

.emergency-cta h3 {
    margin-bottom: 20px;
    color: var(--secondary-accent);
    font-size: 1.4rem;
}

/* Call to Action Section */
.cta-section {
    background: var(--simple-dark-gradient);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--secondary-accent);
    letter-spacing: -0.5px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.main-white-button a {
    display: inline-block;
    background-color: #FFD700; /* Gold background */
    font-size: 0.93rem; /* ~15px */
    font-weight: 600;
    color: #000000; /* Black text */
    text-transform: capitalize;
    padding: 12px 25px;
    border-radius: 7px;
    letter-spacing: 0.25px;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.main-white-button a i {
    margin-right: 10px;
    width: 22px;
    height: 22px;
    background-color: #000000;
    color: #FFD700;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    font-size: 0.75rem; /* ~12px */
    line-height: 22px;
}

.main-white-button a:hover {
    background-color: #ffd95a; /* Slightly brighter gold */
    color: #000000; /* Black text */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cta-section .cta-button {
    background-color: var(--secondary-accent); /* Gold background */
    color: var(--dark-gray); /* Dark grey text */
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    font-family: 'Inter', sans-serif; /* Modern font */
}

.cta-section .cta-button:hover {
    background-color: #ffd95a; /* Slightly brighter gold */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--dark-gray); /* Dark text */
}

.cta-section .cta-button.secondary {
    background-color: transparent; /* Transparent background */
    color: var(--white); /* White text */
    border: 2px solid var(--white); /* White border */
}

.cta-section .cta-button.secondary:hover {
    background-color: var(--white); /* White background */
    color: var(--dark-gray); /* Dark text */
}

/* Partners Section */
.partners {
    background: linear-gradient(to bottom, #253a4d, #2c3e50); /* Slightly darker at top than bottom */
    padding: 15px 0; /* More compact padding */
    position: relative;
    overflow: hidden;
}

.partners .section-heading {
    text-align: center;
    margin-bottom: 10px; /* More compact space below heading */
}

.partners .section-heading h2 {
    color: var(--secondary-accent);
    font-size: 1.5rem; /* Smaller heading */
    margin-bottom: 5px; /* Reduced margin */
    text-transform: capitalize;
    font-weight: 700;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

.partners .section-heading h2:after {
    content: '';
    display: block;
    width: 30px; /* Shorter line */
    height: 1.5px; /* Thinner line */
    background: var(--secondary-accent);
    margin: 8px auto 0; /* More compact margin */
    border-radius: 1.5px;
}

/* H6 rule no longer used since "Check Them Out" text was removed */

.partners-container {
    overflow: hidden;
    padding: 3px 0; /* Very compact padding */
    position: relative;
}

.partners-scroller {
    display: flex;
    animation: scroll 60s linear infinite; /* Slower speed for single set */
    align-items: center;
    min-width: 200%; /* Double width for proper bouncing */
    cursor: grab;
    overflow-x: hidden; /* Prevent scrollbars from appearing */
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px; /* Smaller width */
    margin: 0 18px; /* Slightly wider spacing between logos */
    padding: 10px; /* Reduced padding */
    text-align: center;
    opacity: 1; /* Full opacity always */
    transition: all 0.3s ease;
    border-radius: 5px; /* Smaller border radius */
}

/* Remove opacity change on hover */
.partner-logo:hover {
    opacity: 1; /* Keep at full opacity */
    transform: scale(1.03); /* Slight scale effect if desired */
}

.logo-container {
    background-color: white;
    padding: 8px; /* Reduced padding */
    border-radius: 8px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px; /* Reduced height */
    width: 140px; /* Keep original width */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Shadow */
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* More prominent shadow on hover */
}

.partner-logo img {
    max-width: 100px; /* Increased size */
    max-height: 75px; /* Increased size */
    width: auto; /* Maintain aspect ratio */
    height: auto;
    object-fit: contain;
    filter: brightness(1.3) contrast(1.2) saturate(1.1); /* Bright by default */
    transition: transform 0.3s ease; /* Only transition the scale */
}

/* Remove brightness hover effect but keep pop-up scale effect */
.partner-logo img:hover {
    filter: brightness(1.3) contrast(1.2) saturate(1.1); /* Explicitly set same filter on hover */
    transform: scale(1.05); /* Keep the pop-up effect */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Project Button Section */
.project-button-section {
    background: var(--simple-dark-gradient);
    padding: 40px 0;
}

.centered-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-cta-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-accent), #ffdf40, var(--secondary-accent)); /* Gold gradient */
    color: var(--dark-gray); /* Dark grey text */
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif; /* Modern font */
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.project-cta-button:hover {
    background: linear-gradient(135deg, #ffd95a, #ffdf60, #ffd95a); /* Slightly brighter gold gradient */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: var(--dark-gray); /* Dark grey text on hover */
}

.project-cta-button i {
    margin-left: 8px; /* Space between text and arrow */
    transition: transform 0.3s ease;
}

.project-cta-button:hover i {
    transform: translateX(3px); /* Arrow moves right on hover */
}

/* Footer */
footer {
    background: var(--primary-color); /* Dark grey background */
    color: var(--white);
    padding: 80px 0 40px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-accent);
}

/* Footer Logo */
.footer-logo {
    text-align: center;
    padding-bottom: 25px;
}

.footer-logo-img {
    max-height: 60px;
    max-width: 180px;
    filter: brightness(0) invert(1); /* Make logo white to match footer background */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1); /* Gold border */
}

.contact-info h3,
.social-links h3 {
    color: #FFD700; /* Gold color */
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #ffffff; /* White color */
}

.contact-info i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
    color: #FFD700; /* Gold color */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 215, 0, 0.1); /* Gold background */
    border-radius: 50%;
    color: #ffffff; /* White color */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background-color: #FFD700; /* Gold color */
    transform: translateY(-3px);
    color: #000000; /* Black color */
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Subsection headings for product categories */
.subsection-heading {
    margin: 40px 0 20px;
    text-align: center;
    padding: 0 20px;
}

.subsection-heading h3 {
    color: #FFD700; /* Gold accent color */
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.subsection-heading h3:after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #FFD700;
    margin: 8px auto 0;
    border-radius: 1px;
}

.subsection-heading h6 {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.85rem; /* Slightly smaller */
    font-weight: 600; /* Bolder */
    letter-spacing: 1.5px; /* More space between letters */
    color: #6c757d; /* Medium grey color */
    margin-bottom: 1.5rem; /* Reduced space */
    opacity: 0.8; /* More subtle */
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        padding: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .contact-number {
        display: flex; /* Keep contact number visible on mobile */
    }
    
    .contact-number a {
        font-size: 1.1rem; /* Make it larger on mobile */
        padding: 12px 20px; /* Make it bigger */
    }
    
    .hero {
        padding: 130px 0 80px;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .products-grid,
    .services-grid,
    .articles-grid,
    .features-grid,
    .projects-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
    
    .about-content,
    .contact-content,
    .service-content,
    .maintenance-content,
    .directions-content,
    .emergency-content {
        grid-template-columns: 1fr;
    }
    
    .image-placeholder {
        height: 200px;
    }
    
    .map-placeholder {
        height: 200px;
    }
    
    .nav-menu ul li {
        margin-left: 1rem;
    }
    
    .hero-ctas,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 10px 0;
    }
    
    .search-filter-section .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .section-heading h2 {
        font-size: 2.2rem;
    }
    
    .section-heading h6 {
        letter-spacing: 1px;
    }
    
    .product-card,
    .service-card,
    .feature-card,
    .article-card,
    .service-card {
        padding: 14px 11px;
    }
    
    .product-card,
    .feature-card {
        padding: 15px 12px;
    }
    
    .product-card h3,
    .feature-card h3,
    .project-card h3 {
        font-size: 1.0rem;
        margin-bottom: 6px;
    }
    
    /* Smaller heading for service cards */
    .service-card h3 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }
    
    .product-card p,
    .feature-card p,
    .project-card p {
        font-size: 0.85rem;
        margin: 0 0 8px;
    }
    
    /* More compact service descriptions */
    .service-card p {
        font-size: 0.8rem;
        margin: 0 0 6px;
        line-height: 1.3;
        max-height: 3.9rem; /* Limit to ~3 lines */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
    
    .product-card .icon,
    .feature-card .icon,
    .project-card .icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    /* Smaller icon for service cards */
    .service-card .icon {
        font-size: 1.8rem;
        margin-bottom: 6px;
    }
    
    /* Hide detailed lists on products and services for shorter mobile cards */
    .product-card ul,
    .service-card ul {
        display: none;
    }
    
    /* Show detailed lists for feature and project cards */
    .feature-card ul,
    .project-card ul {
        display: block;
        margin: 0 0 10px 0;
        padding-left: 15px;
    }
    
    .feature-card ul li,
    .project-card ul li {
        padding: 1px 0;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Adjust CTA button */
    .product-card .cta-button,
    .feature-card .cta-button,
    .project-card .cta-button {
        padding: 10px 18px;
        font-size: 0.95rem;
        min-width: auto;
    }
    
    /* Smaller button for service cards */
    .service-card .cta-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 1.7rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: auto;
    }
    
    .contact-content {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .nav-menu ul li {
        margin-left: 1rem;
    }
    
    .top-text h2 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
}