@import url('services.css');

/* --- Modern Design System --- */
:root {
    --navy-blue: #1B365D;
    --patriotic-red: #e74c3c;
    --metallic-silver: #C0C0C0;
    --silver-light: #e0e0e0;
    --text-light: #f8f9fa;
    --text-dark: #212529;
    --background-light: #ffffff;
    --background-dark: #111827;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Utility Classes --- */
.bg-light {
    background-color: #f8f9fa;
}

.bg-navy {
    background-color: var(--navy-blue);
    color: var(--text-light);
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Button Styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary, .btn:not(.btn-secondary):not(.btn-light) {
    background-color: var(--patriotic-red);
    color: white;
}

.btn-primary:hover, .btn:not(.btn-secondary):not(.btn-light):hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--patriotic-red);
    border: 2px solid var(--patriotic-red);
}

.btn-secondary:hover {
    background-color: var(--patriotic-red);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--navy-blue);
}

.btn-light:hover {
    background-color: var(--text-light);
    transform: translateY(-2px);
}

/* --- Header --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    background-color: var(--navy-blue); /* Add this line */
}

#main-header.scrolled {
    background-color: rgba(27, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    height: 110px; /* Increased for more prominence */
    max-height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

@media (max-width: 992px) {
  .logo img {
    height: 80px;
    max-height: 90px;
  }
}

@media (max-width: 600px) {
  .logo img {
    height: 60px;
    max-height: 70px;
  }
}

.logo:hover img {
    transform: rotate(-10deg);
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

#main-nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

#main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

#main-nav a:hover::after,
#main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    background-image: linear-gradient(rgba(27, 54, 93, 0.7), rgba(27, 54, 93, 0.7)), url('https://placehold.co/1920x1080/1B365D/FFFFFF?text=Elite+Construction');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
}

.hero-content {
    max-width: 900px;
}

.hero-content .subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--metallic-silver);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin: 1rem 0;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    color: var(--text-light);
}

.hero-content h1 .highlight {
    color: var(--patriotic-red);
}

.hero-content .tagline {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- General Section Styling --- */
.section {
    padding: 100px 2rem;
}

.section-padding {
    padding: 80px 2rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .subtitle {
    color: var(--patriotic-red);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--navy-blue);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--patriotic-red);
}

/* --- Video Testimonials Styles --- */
.testimonial-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn.active,
.tab-btn:hover {
    background-color: var(--navy-blue);
    color: white;
}

.testimonial-content {
    display: none;
}

.testimonial-content.active {
    display: block;
}

.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.video-testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.video-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: var(--navy-blue);
    background-size: cover;
    background-position: center;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.play-button-overlay i {
    color: white;
    font-size: 1.2rem;
    margin-left: 3px;
}

.video-testimonial-card:hover .play-button-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(231, 76, 60, 1);
}

.video-info {
    padding: 20px;
}

.video-info h4 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 8px;
}

.video-info .client-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.video-info .location {
    color: #6c757d;
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tag {
    background-color: var(--silver-light);
    color: var(--navy-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.video-cta {
    text-align: center;
    margin-top: 40px;
}

.video-cta p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* --- Video Modal --- */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    background: black;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.close-video-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1;
}

.close-video-modal:hover {
    color: var(--patriotic-red);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Services Page Specific --- */
.page-hero {
    color: white;
    text-align: center;
    padding: 150px 20px 100px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero.bg-navy {
    background-color: var(--navy-blue);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Service Overview Section --- */
.service-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease;
}

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

.stat-card i {
    font-size: 2.5rem;
    color: var(--patriotic-red);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 5px;
}

/* --- Service Detail Cards --- */
.service-header {
    background: var(--navy-blue);
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
    color: white;
    text-align: center;
}

.service-header .service-icon {
    font-size: 2.5rem;
    color: var(--patriotic-red);
    margin-bottom: 1rem;
}

.service-header h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.service-header .service-tag {
    color: var(--metallic-silver);
    font-size: 1rem;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    padding: 2rem 0;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
}

@media (max-width: 1400px) {
    .services-detailed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.service-detail-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
    min-height: 450px;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-detail-card:hover .card-image::after {
    opacity: 0.7;
}

.service-detail-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    width: 100%;
    text-align: center;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-blue);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.card-content h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.service-features {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
    flex: 1;
}

.service-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.service-features i {
    color: var(--patriotic-red);
    font-size: 0.8rem;
}

.service-badges {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--navy-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.badge i {
    font-size: 0.8rem;
    color: var(--patriotic-red);
}

.service-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 1rem;
}

.service-actions .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.service-detail-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* --- Service Process Timeline --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--patriotic-red);
    opacity: 0.2;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 15px;
}

.process-step h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 10px;
}

/* --- Service Video Testimonials --- */
.service-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-video-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.service-video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.video-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #6c757d;
}

.video-meta i {
    color: var(--patriotic-red);
}

/* --- Service Area Banner --- */
.service-area-banner {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.banner-content h2 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.service-locations {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.service-locations span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* --- About Page Specific --- */
.story-highlights {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--silver-light);
    padding: 10px 20px;
    border-radius: 30px;
}

.highlight-item i {
    color: var(--patriotic-red);
}

.image-caption {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: #6c757d;
}

/* --- Values Section --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.value-icon {
    font-size: 3rem;
    color: var(--patriotic-red);
    margin-bottom: 20px;
}

.value-card h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 15px;
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--patriotic-red);
}

.team-member h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--patriotic-red);
    font-weight: 600;
    margin-bottom: 15px;
}

.military-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 15px 0;
}

.team-social {
    margin-top: 20px;
}

.team-social a {
    color: var(--navy-blue);
    font-size: 1.2rem;
    margin: 0 10px;
    transition: color var(--transition-speed) ease;
}

.team-social a:hover {
    color: var(--patriotic-red);
}

/* --- Mission Section --- */
.our-mission {
    background: var(--navy-blue);
    color: white;
    text-align: center;
}

.our-mission h2 {
    color: white;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.our-mission blockquote {
    font-size: 1.3rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 40px;
    position: relative;
    padding: 20px;
}

.mission-pillars {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.pillar {
    text-align: center;
}

.pillar i {
    font-size: 2rem;
    color: var(--patriotic-red);
    margin-bottom: 10px;
}

.pillar h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* --- Featured Video Testimonial --- */
.featured-video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-testimonial-large {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.video-thumbnail-large {
    position: relative;
    padding-bottom: 56.25%;
    background-color: var(--navy-blue);
    background-size: cover;
    background-position: center;
}

.play-button-overlay-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(231, 76, 60, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed) ease;
}

.play-button-overlay-large i {
    color: white;
    font-size: 1.5rem;
    margin-left: 5px;
}

.video-testimonial-large:hover .play-button-overlay-large {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(231, 76, 60, 1);
}

.video-description {
    padding: 30px;
}

.video-description h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 15px;
}

.client-info {
    color: var(--patriotic-red);
    margin-top: 15px;
}

/* --- Awards Section --- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.award-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.award-item i {
    font-size: 2.5rem;
    color: var(--patriotic-red);
    margin-bottom: 15px;
}

.award-item h4 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 8px;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 40px auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-dark);
    background: none;
    border: none;
    line-height: 1;
}

.close-button:hover {
    color: var(--patriotic-red);
}

#planner-input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
}

#planner-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    text-align: left;
}

.loader {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--navy-blue);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

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

/* --- Why Choose Us Section --- */
#why-choose-us {
    background-color: var(--background-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-us-content .value-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.value-item .icon {
    font-size: 1.5rem;
    color: var(--patriotic-red);
    background-color: rgba(231, 76, 60, 0.1);
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.value-item h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 5px;
}

.value-item p {
    color: var(--text-dark);
    line-height: 1.6;
}

.why-us-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* --- Services Section --- */
#services {
    background-color: #f8f9fa;
}

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

.service-card {
    background: var(--background-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--silver-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-card .card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-card .card-content {
    padding: 25px;
}

.service-card .card-icon {
    font-size: 2.5rem;
    color: var(--patriotic-red);
    margin-bottom: 15px;
}

.service-card h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-dark);
}

.service-card .learn-more {
    color: var(--patriotic-red);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card .learn-more i {
    transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* --- Stats Section --- */
#stats {
    background: var(--navy-blue);
    color: var(--text-light);
    padding: 80px 2rem;
    text-align: center;
}

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

.stat-item .counter {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--patriotic-red);
}

.stat-item p {
    font-size: 1.1rem;
    margin-top: 5px;
    color: var(--metallic-silver);
}

/* --- Service Area Section --- */
#service-area {
    background-color: var(--background-light);
}

.service-area-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.area-list h3 {
    font-family: var(--font-heading);
    color: var(--navy-blue);
    margin-bottom: 20px;
}

.area-list ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.area-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.area-list i {
    color: var(--patriotic-red);
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: #f8f9fa;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 15px;
    box-sizing: border-box;
}

.testimonial-content {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 3rem;
    color: rgba(231, 76, 60, 0.1);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--patriotic-red);
}

.author-info h4 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--navy-blue);
}

.author-info p {
    margin: 0;
    color: var(--text-dark);
}

.rating {
    color: #FFC107;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    left: -15px;
    right: -15px;
    width: calc(100% + 30px);
}

.slider-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--navy-blue);
    font-size: 1rem;
}

.slider-btn:hover {
    background-color: var(--navy-blue);
    color: white;
}

/* --- CTA Section --- */
#cta {
    background: linear-gradient(45deg, var(--navy-blue), #34495e);
    color: var(--text-light);
    text-align: center;
}

#cta .container {
    max-width: 800px;
}

.cta-content h2 {
    color: var(--text-light);
    font-size: 2.5rem;
}

.cta-content p {
    margin-bottom: 30px;
    color: var(--silver-light);
}

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

.btn-primary {
    background-color: var(--patriotic-red);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--navy-blue);
}

/* --- Footer --- */
#main-footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 2rem 20px;
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--silver-light);
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: color var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--patriotic-red);
}

.footer-links h3, .footer-services h3, .footer-contact h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links ul, .footer-services ul {
    list-style: none;
    padding: 0;
}

.footer-links a, .footer-services a {
    color: var(--silver-light);
    text-decoration: none;
    padding: 5px 0;
    display: block;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--patriotic-red);
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--silver-light);
}

.contact-info a {
    color: var(--silver-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contact-info a:hover {
    color: var(--patriotic-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #6c757d;
}

.footer-bottom a {
    color: var(--silver-light);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--patriotic-red);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: -50px;
    right: 20px;
    background-color: var(--patriotic-red);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    transition: bottom 0.4s ease;
    z-index: 999;
    text-decoration: none;
}

.back-to-top.show {
    bottom: 20px;
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Prevent fading in service overview section */
#service-overview {
    opacity: 1 !important;
    transform: none !important;
}

#service-overview .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* --- Responsive Design --- */
@media (max-width: 1200px) {
    .services-detailed-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-card {
        flex-direction: row;
    }

    .service-detail-card:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .card-image {
        flex: 1;
        height: auto;
        min-height: 300px;
    }

    .card-content {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .why-us-grid,
    .service-area-content {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .service-area-banner {
        flex-direction: column;
        text-align: center;
    }

    .services-detailed-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card,
    .service-detail-card:nth-child(odd) {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    #main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--navy-blue);
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
    }

    #main-nav.active {
        right: 0;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #main-nav a {
        font-size: 1.2rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .mobile-nav-toggle.active i::before {
        content: '\f00d'; /* Font Awesome close icon */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .video-testimonials-grid,
    .service-videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-modal-content {
        margin: 20px auto;
        width: 95%;
    }

    .close-video-modal {
        top: -35px;
        font-size: 1.5rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .mission-pillars {
        flex-direction: column;
        gap: 20px;
    }

    .story-highlights {
        flex-direction: column;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 60px 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .service-stats {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}