/*
Theme Name: Tamim Naweed Construction
Description: Premium construction company theme with modern design
Version: 2.0.0
Author: Tamim Naweed Team
*/

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #3b82f6;
    --accent: #eff6ff;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Header-specific variables */
    --header-text-light: #ffffff;
    --header-text-dark: #111827;
    --header-bg-transparent: transparent;
    --header-bg-scrolled: rgba(255, 255, 255, 0.85);
    --header-border-scrolled: rgba(0, 0, 0, 0.1);
    --header-shadow-scrolled: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --header-transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray-700);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure no background exposure */
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* Header Styles - FIXED VERSION */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

/* Scrolled state - THIS IS THE FIX */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

/* WordPress admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--header-transition);
}

/* Logo in scrolled state */
.site-header.scrolled .logo-img {
    filter: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

/* Nav links in scrolled state */
.site-header.scrolled .nav-link {
    color: var(--gray-900);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 250ms ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2051c7, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle span {
    background: var(--gray-900);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: url('assets/hero%20image.webp') center/cover no-repeat !important;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)),
        radial-gradient(ellipse 400px 200px at top left, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at top right, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(ellipse 300px 150px at top center, rgba(255,255,255,0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-background {
    display: none; /* Hide the old background element */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.trust-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3rem;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Partners Section */
.partners-section {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 1.5rem 3rem;
    text-align: center;
    z-index: 100;
    transition: all 0.3s ease;
    min-width: 800px;
}

.partners-text {
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.partners-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.partner-logo {
    height: 55px;
    width: auto;
    max-width: 160px;
    filter: brightness(0) invert(1) opacity(0.8);
    transition: all 0.3s ease;
    object-fit: contain;
}

.partner-logo-item:hover .partner-logo {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
    border: none;
    outline: none;
    box-shadow: none;
}

.services::before,
.services::after {
    display: none;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gray-50);
}

.about-content-full {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-content-full .section-header {
    margin-bottom: 3rem;
}

.about-text-full {
    text-align: justify;
    margin-bottom: 4rem;
    columns: 2;
    column-gap: 3rem;
    column-rule: 1px solid var(--gray-200);
}

.about-text-full p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 1.2rem;
    text-align: justify;
    break-inside: avoid;
}

.about-text-full p:last-child {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    font-weight: 500;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}



.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-700);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #fbbf24);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-card p {
    color: var(--gray-700);
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    background: none;
    padding: 2rem 0;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 0;
}

.services-cta::before,
.services-cta::after {
    display: none;
}

.services-cta .btn {
    border: none;
    outline: none;
    box-shadow: none;
}

.services-cta .btn::before,
.services-cta .btn::after {
    display: none;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin-top: 1rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900), #1f2937);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-section h3 {
    font-size: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.15s ease;
    cursor: pointer;
}

.footer-section ul li:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
/* Mobile styles consolidated in assets/css/style.css */

/* Small device styles consolidated in assets/css/style.css */

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    :root {
        --header-transition: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .site-header,
    .logo-img,
    .nav-link,
    .mobile-menu-toggle span {
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .partners-section,
    .hero-actions {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 0;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

/* Projects Page Styles */
.projects-section {
    padding: 4rem 0;
    background: var(--gray-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    line-height: 1.4;
}

.project-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Services Page - New Clean Design */
.services-header {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.services-header .page-subtitle {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Main Services Content */
.services-main {
    background: var(--white);
    padding: 0;
}

.service-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.service-section:last-of-type {
    border-bottom: none;
}

.service-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-300);
    line-height: 1;
    min-width: 80px;
    flex-shrink: 0;
}

.service-details {
    flex: 1;
}

.service-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.service-main-description {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
}

.service-expanded-content {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
}

.service-expanded-content p {
    margin-bottom: 1.5rem;
}

.service-expanded-content p:last-child {
    margin-bottom: 0;
}

/* Machinery Service Sub-sections */
.service-sub-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.sub-service {
    background: var(--gray-50);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.sub-service h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

/* Equipment Table Styles */
.equipment-table {
    margin-top: 3rem;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.equipment-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.equipment-table thead {
    background: var(--gray-50);
}

.equipment-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.equipment-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
    vertical-align: top;
}

.equipment-table tbody tr:hover {
    background: var(--gray-50);
}

.equipment-table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating Service Section Backgrounds */
.service-section:nth-child(even) {
    background: var(--gray-50);
}

/* Page Number Styling */
.service-section::before {
    content: '';
    position: absolute;
    right: 2rem;
    top: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 50%;
    display: none; /* Hidden by default, can be shown if needed */
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-header {
        padding: 6rem 0 3rem;
    }
    
    .service-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .service-number {
        font-size: 2rem;
        min-width: auto;
    }
    
    .service-main-title {
        font-size: 1.875rem;
    }
    
    .service-main-description {
        font-size: 1.125rem;
    }
    
    .service-sub-sections {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .equipment-table {
        margin: 2rem -1.5rem 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .equipment-table th,
    .equipment-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .equipment-table th {
        font-size: 0.8rem;
    }
}

/* Services CTA Section */
.services-page .services-cta {
    background: none;
    border-radius: 0;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--gray-900);
    margin-top: 2rem;
    border: none;
    box-shadow: none;
}

.services-page .cta-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--gray-900);
}

.services-page .cta-content p {
    font-size: 1.125rem;
    opacity: 1;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--gray-700);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--gray-900);
    transform: translateY(-2px);
}

/* Hero actions styling - single button layout */
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive Design for Projects and Services */
@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .services-page .services-cta {
        padding: 2rem 1.5rem;
        background: none;
        color: var(--gray-900);
    }
    
    .services-page .cta-content h2 {
        font-size: 1.875rem;
        color: var(--gray-900);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* EMERGENCY FIX - Header Background on Scroll */
.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.site-header.scrolled .logo-img {
    filter: none !important;
}

.site-header.scrolled .nav-link {
    color: #111827 !important;
}

.site-header.scrolled .mobile-menu-toggle span {
    background: #111827 !important;
}
