@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
 --primary-color: #2d3748; /* Dark Slate Gray */
 --accent-color: #4a5568; /* Slightly Lighter Slate Gray */
 --light-bg-color: #f8fafc; /* Very Light Gray */
 --white-color: #ffffff;
 --text-color: #2d3748;
 --light-text-color: #f0f0f0;
 --border-color: #e2e8f0;
 --success-color: #4CAF50;
 --error-color: #f44336;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: 'Roboto', sans-serif;
 line-height: 1.6;
 color: var(--text-color);
 background-color: var(--white-color);
}

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

section {
 padding: 4rem 0;
 overflow: hidden; /* For animations */
}

.section-padding {
 padding: 4rem 1.5rem; /* Consistent padding for sections */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 margin-bottom: 1rem;
 color: var(--primary-color);
}

h1 {
 font-size: 2.8rem;
 line-height: 1.1;
}

h2 {
 font-size: 2.2rem;
 text-align: center;
 margin-bottom: 2rem;
}

h3 {
 font-size: 1.7rem;
}

p {
 margin-bottom: 1rem;
 font-size: 1.1rem;
 line-height: 1.7;
}

.section-description {
 text-align: center;
 font-size: 1.2rem;
 color: var(--accent-color);
 margin-bottom: 3rem;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: color 0.3s ease;
}

a:hover {
 color: var(--accent-color);
}

ul {
 list-style: none;
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 5px;
 font-weight: 500;
 text-align: center;
 transition: all 0.3s ease;
 cursor: pointer;
 text-transform: capitalize;
 font-size: 1rem;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--white-color);
 border: 2px solid var(--primary-color);
}

.btn-primary:hover {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
}

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

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

.btn-primary-alt { /* For CTA sections with contrasting background */
 background-color: var(--white-color);
 color: var(--primary-color);
 border: 2px solid var(--white-color);
}

.btn-primary-alt:hover {
 background-color: transparent;
 color: var(--white-color);
 border-color: var(--white-color);
}

.btn-link {
 color: var(--primary-color);
 font-weight: 500;
 padding: 0;
 border: none;
 background: none;
 display: inline-flex;
 align-items: center;
}

.btn-link:hover {
 color: var(--accent-color);
}

/* Header */
.main-header {
 background-color: var(--white-color);
 padding: 1rem 0;
 box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
 position: sticky;
 top: 0;
 z-index: 1000;
 transition: all 0.3s ease;
}

.main-header.scrolled {
 padding: 0.7rem 0;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--primary-color);
 padding: 0.5rem 0;
}

.nav-links {
 display: flex;
 gap: 2rem;
}

.nav-links a {
 color: var(--primary-color);
 font-weight: 500;
 font-size: 1.1rem;
 padding: 0.5rem 0;
 position: relative;
}

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

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

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 0.5rem;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--primary-color);
 margin: 5px 0;
 transition: all 0.3s ease;
}

/* Hero Section */
.hero {
 position: relative;
 height: 80vh;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
 overflow: hidden;
}

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

.hero-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.35); /* Uniform dark overlay */
 z-index: -1;
}

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

.hero h1 {
 font-size: 3.5rem;
 margin-bottom: 1.5rem;
 color: var(--white-color);
}

.hero p {
 font-size: 1.5rem;
 margin-bottom: 2.5rem;
 color: var(--light-text-color);
}

.hero-buttons .btn {
 margin: 0 0.5rem;
 min-width: 180px;
}

.hero-buttons .btn-primary {
 background-color: var(--primary-color);
 border-color: var(--primary-color);
 color: var(--white-color);
}

.hero-buttons .btn-primary:hover {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
}

.hero-buttons .btn-secondary {
 background-color: transparent;
 border-color: var(--white-color);
 color: var(--white-color);
}

.hero-buttons .btn-secondary:hover {
 background-color: var(--white-color);
 color: var(--primary-color);
}

/* Why Choose Us / Features Grid */
.why-choose-us {
 background-color: var(--white-color);
}

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

.feature-item {
 background-color: var(--light-bg-color);
 padding: 2rem;
 border-radius: 8px;
 text-align: center;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
 transform: translateY(-5px);
 box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
 font-size: 3.5rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
 display: inline-block;
 padding: 10px;
 background-color: var(--white-color);
 border-radius: 50%;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
 font-size: 1.4rem;
 margin-bottom: 0.8rem;
}

.feature-item p {
 font-size: 1rem;
 color: var(--accent-color);
}

/* Content Grid (About Preview, etc.) */
.content-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 3rem;
 align-items: center;
}

.content-grid .content-text {
 padding: 1.5rem 0;
}

.content-grid .content-text h2 {
 text-align: left;
}

.content-grid .content-image img {
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Services Preview / Cards */
.services-preview {
 background-color: var(--white-color);
}

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

.service-card, .blog-card, .team-member-card, .gallery-item {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 display: flex;
 flex-direction: column;
}

.service-card:hover, .blog-card:hover, .team-member-card:hover, .gallery-item:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card img, .blog-card img, .team-member-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
}

.service-card h3, .blog-card h3 {
 padding: 1.5rem 1.5rem 0.5rem;
 font-size: 1.3rem;
}

.service-card p, .blog-card p {
 padding: 0 1.5rem 1rem;
 font-size: 0.95rem;
 color: var(--accent-color);
 flex-grow: 1; /* Ensures equal height for cards with varying text */
}

.service-card .btn-link, .blog-card .btn-link {
 display: block;
 padding: 1rem 1.5rem 1.5rem;
 text-align: right;
}

/* Testimonials */
.testimonials-section {
 background-color: var(--light-bg-color);
}

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

.testimonial-card {
 background-color: var(--white-color);
 padding: 2rem;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 text-align: center;
 transition: transform 0.3s ease;
}

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

.testimonial-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1rem;
 border: 3px solid var(--primary-color);
}

.testimonial-quote {
 font-style: italic;
 font-size: 1.1rem;
 color: var(--accent-color);
 margin-bottom: 1rem;
}

.testimonial-author {
 font-weight: 600;
 color: var(--primary-color);
}

/* Blog Preview */
.blog-preview {
 background-color: var(--white-color);
}

.blog-cards-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

/* CTA Section */
.cta-section {
 background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
 color: var(--white-color);
 padding: 5rem 1.5rem;
 text-align: center;
}

.cta-section h2 {
 color: var(--white-color);
 font-size: 2.5rem;
 margin-bottom: 1.5rem;
}

.cta-section p {
 color: var(--light-text-color);
 font-size: 1.3rem;
 margin-bottom: 2.5rem;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

/* FAQ Section */
.faq-container {
 max-width: 800px;
 margin: 3rem auto 0;
}

.faq-item {
 background-color: var(--white-color);
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 1rem;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-question {
 width: 100%;
 background-color: var(--light-bg-color);
 border: none;
 padding: 1.2rem 1.5rem;
 text-align: left;
 font-size: 1.15rem;
 font-weight: 500;
 color: var(--primary-color);
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color 0.3s ease;
}

.faq-question:hover {
 background-color: #eef2f6;
}

.faq-question::after {
 content: '+';
 font-size: 1.5rem;
 color: var(--primary-color);
 transition: transform 0.3s ease;
}

.faq-question.active::after {
 content: '-';
 transform: rotate(0deg); /* No rotation for minus sign */
}

.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.3s ease-out;
}

.faq-answer p {
 padding: 1rem 1.5rem 1.5rem;
 font-size: 1rem;
 color: var(--accent-color);
 border-top: 1px solid var(--border-color);
 margin-bottom: 0;
}

/* Footer */
.main-footer {
 background-color: var(--primary-color);
 color: var(--light-text-color);
 padding: 3rem 0 1rem;
 font-size: 0.95rem;
}

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

.footer-col h3 {
 color: var(--white-color);
 font-size: 1.3rem;
 margin-bottom: 1.2rem;
 text-transform: uppercase;
}

.footer-col p, .footer-col address {
 color: var(--light-text-color);
 margin-bottom: 0.7rem;
}

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

.footer-col ul li {
 margin-bottom: 0.6rem;
}

.footer-col ul li a {
 color: var(--light-text-color);
 opacity: 0.8;
 transition: opacity 0.3s ease;
}

.footer-col ul li a:hover {
 opacity: 1;
 color: var(--white-color);
}

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

.footer-bottom p {
 margin-bottom: 0;
 color: inherit;
}

/* Specific Page Styling */
/* About Page */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
 text-align: center;
}

.team-member-card {
 background-color: var(--white-color);
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
 overflow: hidden;
 text-align: center;
 padding-bottom: 1.5rem;
}

.team-member-card img {
 height: 250px;
 width: 100%;
 object-fit: cover;
 margin-bottom: 1rem;
}

.team-member-card h3 {
 font-size: 1.4rem;
 margin-bottom: 0.5rem;
}

.team-member-card p {
 font-size: 1rem;
 color: var(--accent-color);
 margin-bottom: 0;
 padding: 0 1rem;
}

/* Services Page */
.service-detail-section {
 padding: 3rem 0;
}

.service-detail-section h3 {
 font-size: 1.8rem;
 margin-top: 2rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
 text-align: left;
}

.service-detail-section p {
 font-size: 1.1rem;
 margin-bottom: 1rem;
}

.service-detail-section ul {
 list-style: disc;
 margin-left: 1.5rem;
 margin-bottom: 1.5rem;
}

.service-detail-section ul li {
 margin-bottom: 0.5rem;
 font-size: 1rem;
 color: var(--accent-color);
}

.service-detail-section .content-grid img {
 max-height: 400px;
 margin-bottom: 2rem; /* Add margin for mobile */
}

/* Contact Page */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 gap: 3rem;
 margin-top: 3rem;
}

.contact-info h3 {
 font-size: 1.6rem;
 margin-bottom: 1.5rem;
 text-align: left;
}

.contact-info p {
 margin-bottom: 1rem;
 font-size: 1.1rem;
 color: var(--accent-color);
}

.contact-info p strong {
 color: var(--primary-color);
}

.contact-form {
 background-color: var(--light-bg-color);
 padding: 2.5rem;
 border-radius: 8px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
 text-align: center;
 margin-bottom: 2rem;
 font-size: 1.8rem;
}

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

.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
 color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 0.9rem 1rem;
 border: 1px solid var(--border-color);
 border-radius: 5px;
 font-size: 1rem;
 font-family: 'Roboto', sans-serif;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.2);
 outline: none;
}

.form-group textarea {
 resize: vertical;
 min-height: 120px;
}

.contact-form .btn-primary {
 width: 100%;
 padding: 1rem;
 font-size: 1.1rem;
}

.map-container {
 margin-top: 3rem;
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
 width: 100%;
 height: 450px;
 border: 0;
}

/* Blog Post Pages */
.blog-post-header {
 text-align: center;
 padding: 3rem 0;
 background-color: var(--light-bg-color);
 margin-bottom: 3rem;
}

.blog-post-header h1 {
 font-size: 2.5rem;
 margin-bottom: 1rem;
}

.blog-meta {
 color: var(--accent-color);
 font-size: 0.95rem;
 margin-bottom: 1.5rem;
}

.blog-meta img {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 vertical-align: middle;
 margin-right: 0.5rem;
}

.blog-content {
 max-width: 800px;
 margin: 0 auto 4rem;
 line-height: 1.8;
}

.blog-content h2 {
 text-align: left;
 margin-top: 2rem;
 margin-bottom: 1rem;
 font-size: 1.8rem;
}

.blog-content h3 {
 text-align: left;
 margin-top: 1.5rem;
 margin-bottom: 0.8rem;
 font-size: 1.4rem;
}

.blog-content img {
 max-width: 100%;
 height: auto;
 border-radius: 8px;
 margin: 1.5rem 0;
}

.blog-content p {
 margin-bottom: 1.2rem;
 font-size: 1.1rem;
}

/* Related Posts */
.related-posts {
 margin-top: 4rem;
 padding-top: 3rem;
 border-top: 1px solid var(--border-color);
}

.related-posts h2 {
 margin-bottom: 2rem;
}

.related-posts .blog-cards-grid {
 margin-top: 0;
}

/* Gallery Page */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 1.5rem;
 margin-top: 3rem;
}

.gallery-item {
 cursor: pointer;
 border-radius: 8px;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 overflow: hidden;
 position: relative;
 padding: 0; /* Override service/blog card padding */
}

.gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 display: block;
 transition: transform 0.3s ease;
}

.gallery-item:hover img {
 transform: scale(1.05);
}

.gallery-item-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(45, 55, 72, 0.7); /* Primary color with transparency */
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
 opacity: 1;
}

.gallery-item-overlay::after {
 content: '';
 font-size: 3rem;
 color: var(--white-color);
}

/* Lightbox styles */
.lightbox {
 display: none;
 position: fixed;
 z-index: 2000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.8);
 justify-content: center;
 align-items: center;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 background-color: var(--white-color);
 padding: 20px;
 border-radius: 8px;
 position: relative;
 box-shadow: 0 0 20px rgba(0,0,0,0.5);
 text-align: center;
}

.lightbox-content img {
 max-width: 100%;
 max-height: 70vh;
 display: block;
 margin: 0 auto 10px;
 border-radius: 5px;
 object-fit: contain;
}

.lightbox-caption {
 color: var(--text-color);
 font-size: 1.1rem;
 margin-top: 10px;
}

.lightbox-close {
 position: absolute;
 top: 15px;
 right: 25px;
 color: var(--primary-color);
 font-size: 2.5rem;
 font-weight: bold;
 cursor: pointer;
 transition: color 0.3s ease;
}

.lightbox-close:hover {
 color: var(--accent-color);
}

/* Legal Pages */
.legal-content {
 line-height: 1.8;
 max-width: 900px;
 margin: 0 auto;
 padding: 2rem 0;
}

.legal-content h1 {
 text-align: center;
 margin-bottom: 2rem;
 font-size: 2.5rem;
}

.legal-content h2 {
 text-align: left;
 margin-top: 2.5rem;
 margin-bottom: 1rem;
 font-size: 1.8rem;
}

.legal-content h3 {
 text-align: left;
 margin-top: 1.5rem;
 margin-bottom: 0.8rem;
 font-size: 1.4rem;
}

.legal-content p {
 margin-bottom: 1rem;
}

.legal-content ol, .legal-content ul {
 margin-left: 2rem;
 margin-bottom: 1rem;
 list-style-type: decimal;
}

.legal-content ul {
 list-style-type: disc;
}

.legal-content li {
 margin-bottom: 0.5rem;
 font-size: 1rem;
}

/* Thanks Page */
.thanks-section {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 min-height: 70vh;
 text-align: center;
 background-color: var(--light-bg-color);
 padding: 3rem 1.5rem;
}

.thanks-section h1 {
 font-size: 3rem;
 color: var(--primary-color);
 margin-bottom: 1.5rem;
}

.thanks-section p {
 font-size: 1.3rem;
 color: var(--accent-color);
 margin-bottom: 2rem;
 max-width: 600px;
}

.thanks-section .btn {
 font-size: 1.2rem;
 padding: 1rem 2.5rem;
}

/* 404 Page */
.error-page {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 min-height: 80vh;
 text-align: center;
 background-color: var(--light-bg-color);
 padding: 3rem 1.5rem;
}

.error-page h1 {
 font-size: 6rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
 line-height: 1;
}

.error-page h2 {
 font-size: 2.5rem;
 color: var(--accent-color);
 margin-bottom: 1.5rem;
}

.error-page p {
 font-size: 1.2rem;
 color: var(--text-color);
 margin-bottom: 2.5rem;
 max-width: 600px;
}

/* Utility Classes */
.text-center {
 text-align: center;
}

.mt-4 {
 margin-top: 2rem;
}

.bg-light-tint {
 background-color: var(--light-bg-color);
}

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

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

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

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

/* Media Queries */

/* Tablet & Mobile */
@media (max-width: 1024px) {
 .container {
 padding: 0 1rem;
 }

 .nav-links {
 gap: 1.5rem;
 }

 h1 {
 font-size: 2.5rem;
 }

 h2 {
 font-size: 1.8rem;
 }

 .hero h1 {
 font-size: 2.8rem;
 }

 .hero p {
 font-size: 1.2rem;
 }

 .hero-buttons .btn {
 min-width: 160px;
 padding: 0.7rem 1.5rem;
 }

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

 .content-text {
 order: 2; /* Text below image on smaller screens */
 }

 .content-image {
 order: 1; /* Image above text on smaller screens */
 }

 .about-preview .content-image {
 order: 1; /* For about preview, image on top */
 }

 .about-preview .content-text {
 order: 2;
 }

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

/* Mobile */
@media (max-width: 768px) {
 .main-header .container {
 flex-wrap: wrap;
 justify-content: space-between;
 }

 .logo {
 margin-right: auto;
 }

 .nav-toggle {
 display: block;
 }

 .nav-links {
 display: none; /* Hidden by default for mobile */
 flex-direction: column;
 width: 100%;
 background-color: var(--primary-color); /* Darker background for mobile menu */
 position: absolute;
 top: 100%; /* Position below header */
 left: 0;
 padding: 1rem 1.5rem;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
 z-index: 999;
 }

 .nav-links.active {
 display: flex;
 }

 .nav-links li {
 margin: 0.5rem 0;
 text-align: center;
 }

 .nav-links a {
 color: var(--white-color); /* White links on dark background */
 font-size: 1.2rem;
 padding: 0.8rem 0;
 display: block;
 }

 .nav-links a::after {
 background-color: var(--white-color); /* White underline */
 }

 .nav-toggle.active span:nth-child(1) {
 transform: translateY(8px) rotate(45deg);
 }

 .nav-toggle.active span:nth-child(2) {
 opacity: 0;
 }

 .nav-toggle.active span:nth-child(3) {
 transform: translateY(-8px) rotate(-45deg);
 }

 .hero {
 height: 70vh;
 }

 .hero h1 {
 font-size: 2.2rem;
 }

 .hero p {
 font-size: 1.1rem;
 }

 .hero-buttons {
 flex-direction: column;
 gap: 1rem;
 }

 .hero-buttons .btn {
 width: 80%;
 margin: 0 auto;
 }

 h2 {
 font-size: 1.6rem;
 }

 .section-description {
 font-size: 1rem;
 }

 .features-grid, .service-cards-grid, .testimonials-grid, .blog-cards-grid, .team-grid, .gallery-grid {
 grid-template-columns: 1fr;
 }

 .testimonial-quote {
 font-size: 1rem;
 }

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

 .cta-section p {
 font-size: 1.1rem;
 }

 .faq-question {
 font-size: 1.05rem;
 padding: 1rem 1.2rem;
 }

 .faq-answer p {
 padding: 0.8rem 1.2rem 1.2rem;
 }

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

 .footer-col ul {
 padding: 0;
 }

 .footer-col ul li a {
 padding: 0.5rem 0;
 display: block;
 }

 .blog-post-header h1 {
 font-size: 2rem;
 }

 .error-page h1 {
 font-size: 4rem;
 }
}

@media (max-width: 480px) {
 h1 {
 font-size: 2rem;
 }

 h2 {
 font-size: 1.5rem;
 margin-bottom: 1.5rem;
 }

 .hero {
 height: 60vh;
 }

 .hero h1 {
 font-size: 1.8rem;
 }
 .hero p {
 font-size: 1rem;
 margin-bottom: 1.5rem;
 }

 .hero-buttons .btn {
 width: 95%;
 padding: 0.6rem 1.2rem;
 font-size: 0.9rem;
 }

 .section-padding {
 padding: 3rem 1rem;
 }

 .feature-icon {
 font-size: 3rem;
 }

 .map-container iframe {
 height: 300px;
 }

 .error-page h1 {
 font-size: 3rem;
 }
 .error-page h2 {
 font-size: 1.8rem;
 }
 .error-page p {
 font-size: 1rem;
 }
}