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

:root {
 /* Colors */
 --primary-color: #0d4f8b; /* Deep Blue mokhtabar */
 --secondary-color: #0891b2; /* Tech Cyan mokhtabar */
 --accent-color: #e0a800; /* A touch of gold for highlights */
 --text-color: #333333;
 --light-text-color: #4a5568; /* Steel Gray mokhtabar */
 --white-color: #ffffff;
 --light-gray: #f8f8f8;
 --medium-gray: #e9ecef;
 --dark-gray: #6c757d;

 /* Fonts */
 --font-primary: 'Poppins', sans-serif;
 --font-secondary: 'Roboto', sans-serif;

 /* Spacing */
 --spacing-xs: 0.5rem;
 --spacing-sm: 1rem;
 --spacing-md: 1.5rem;
 --spacing-lg: 2rem;
 --spacing-xl: 3rem;
 --section-padding: 4rem 0;

 /* Border Radius */
 --border-radius-sm: 0.25rem;
 --border-radius-md: 0.5rem;
 --border-radius-lg: 0.75rem;

 /* Box Shadow */
 --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
 --box-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
 --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

 /* Transitions */
 --transition-speed: 0.3s ease;
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

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

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: color var(--transition-speed);
}

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

ul {
 list-style: none;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-secondary);
 color: var(--light-text-color);
 margin-bottom: var(--spacing-md);
 line-height: 1.2;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
p { margin-bottom: var(--spacing-sm); }

img {
 max-width: 100%;
 height: auto;
 display: block;
}

/* Utility Classes */
.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 var(--spacing-md);
}

.section-padding {
 padding: var(--section-padding);
}

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

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

.mb-4 { margin-bottom: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-lg); }

/* Buttons */
.btn {
 display: inline-block;
 padding: var(--spacing-xs) var(--spacing-lg);
 border-radius: var(--border-radius-md);
 font-weight: 500;
 text-align: center;
 transition: transform var(--transition-speed), background-color var(--transition-speed);
 border: none;
 cursor: pointer;
 font-size: 1rem;
 line-height: 2.5em; /* Ensure consistent height across buttons */
}

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

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

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

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

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

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

/* Header */
.main-header {
 background-color: var(--primary-color);
 box-shadow: var(--box-shadow-md);
 position: sticky;
 top: 0;
 z-index: 1000;
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: var(--spacing-sm) var(--spacing-md);
 max-width: 1200px;
 margin: 0 auto;
}

.logo {
 color: var(--white-color);
 font-family: var(--font-secondary);
 font-size: 1.8rem;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: 1px;
}

.nav-links {
 display: flex;
 gap: var(--spacing-lg);
}

.nav-links a {
 color: var(--white-color);
 font-weight: 500;
 padding: var(--spacing-xs) 0;
 position: relative;
}

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

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

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 0;
 width: 30px;
 height: 20px;
 position: relative;
}

.nav-toggle span {
 display: block;
 width: 100%;
 height: 2px;
 background-color: var(--white-color);
 position: absolute;
 left: 0;
 transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }

.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero Section */
.hero {
 position: relative;
 color: var(--white-color);
 text-align: center;
 padding: var(--section-padding) var(--spacing-md);
 display: flex;
 align-items: center;
 justify-content: center;
 min-height: 60vh;
 background-size: cover;
 background-position: center;
 background-image: url('https://images.pexels.com/photos/16313507/pexels-photo-16313507.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); /* Hero bg image */
}

.hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
 z-index: 1;
}

.hero-content {
 position: relative;
 z-index: 2;
 max-width: 800px;
}

.hero-content h1 {
 color: var(--white-color);
 font-size: 3.5rem;
 margin-bottom: var(--spacing-md);
 line-height: 1.1;
}

.hero-content p {
 font-size: 1.25rem;
 margin-bottom: var(--spacing-xl);
 max-width: 600px;
 margin-left: auto;
 margin-right: auto;
}

.hero-actions .btn {
 margin: 0 var(--spacing-xs);
 font-size: 1.1rem;
 padding: var(--spacing-sm) var(--spacing-xl);
}

/* Section Titles & Subtitles */
.section-title {
 font-size: 2.5rem;
 font-weight: 700;
 margin-bottom: var(--spacing-sm);
 color: var(--primary-color);
}

.section-subtitle {
 font-size: 1.2rem;
 color: var(--dark-gray);
 margin-bottom: var(--spacing-xl);
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

/* Features/Services Grid */
.features-grid, .services-grid, .team-grid, .blog-grid, .testimonials-grid, .gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--spacing-xl);
 padding-top: var(--spacing-md);
}

.feature-card, .service-card, .team-member-card, .blog-card, .testimonial-card, .gallery-item {
 background-color: var(--white-color);
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-md);
 overflow: hidden;
 text-align: center;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.feature-card:hover, .service-card:hover, .team-member-card:hover, .blog-card:hover, .gallery-item:hover {
 transform: translateY(-5px);
 box-shadow: var(--box-shadow-lg);
}

.feature-card img, .service-card img, .blog-card img, .gallery-item img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-top-left-radius: var(--border-radius-lg);
 border-top-right-radius: var(--border-radius-lg);
}

.feature-card h3, .service-card h3, .blog-card h3 {
 margin-top: var(--spacing-md);
 margin-bottom: var(--spacing-xs);
 padding: 0 var(--spacing-md);
 font-size: 1.4rem;
 color: var(--primary-color);
}

.feature-card p, .service-card p, .blog-card p {
 padding: 0 var(--spacing-md) var(--spacing-md);
 font-size: 0.95rem;
 color: var(--light-text-color);
}

/* About Section Preview */
.about-preview-flex {
 display: flex;
 align-items: center;
 gap: var(--spacing-xl);
 flex-wrap: wrap;
}

.about-image-wrapper {
 flex: 1;
 min-width: 300px;
 max-width: 50%;
}

.about-image-wrapper img {
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-md);
}

.about-content-wrapper {
 flex: 1;
 min-width: 300px;
}

.about-content-wrapper .section-title {
 text-align: left;
}

.about-content-wrapper .section-subtitle {
 text-align: left;
 margin-left: 0;
 margin-right: 0;
}

/* Testimonials */
.testimonial-card {
 padding: var(--spacing-lg);
 background-color: var(--white-color);
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-md);
 text-align: center;
 display: flex;
 flex-direction: column;
 align-items: center;
}

.testimonial-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: var(--spacing-md);
 border: 3px solid var(--secondary-color);
}

.testimonial-text {
 font-style: italic;
 font-size: 1.05rem;
 color: var(--light-text-color);
 margin-bottom: var(--spacing-sm);
}

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

/* Blog Preview */
.blog-card {
 text-align: left;
 height: 100%;
 display: flex;
 flex-direction: column;
}
.blog-card img {
 min-height: 200px; /* Ensure images have a consistent base height */
}

.blog-card h3 {
 font-size: 1.3rem;
 margin-top: var(--spacing-md);
 padding: 0 var(--spacing-md);
 color: var(--primary-color);
}

.blog-card p {
 flex-grow: 1; /* Allow paragraph to take up available space */
}

.blog-card .read-more-link {
 display: inline-block;
 margin: var(--spacing-sm) var(--spacing-md) var(--spacing-md);
 color: var(--secondary-color);
 font-weight: 500;
}

/* FAQ Section */
.faq-container {
 max-width: 800px;
 margin: 0 auto;
 padding-top: var(--spacing-md);
}

.faq-item {
 margin-bottom: var(--spacing-sm);
 border: 1px solid var(--medium-gray);
 border-radius: var(--border-radius-md);
 overflow: hidden;
}

.faq-question {
 background-color: var(--primary-color);
 color: var(--white-color);
 padding: var(--spacing-md);
 width: 100%;
 text-align: left;
 border: none;
 cursor: pointer;
 font-size: 1.1rem;
 font-weight: 500;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color var(--transition-speed);
}

.faq-question:hover, .faq-question.active {
 background-color: var(--secondary-color);
}

.faq-question::after {
 content: '+';
 font-size: 1.5rem;
 transition: transform var(--transition-speed);
}

.faq-question.active::after {
 content: '-';
}

.faq-answer {
 background-color: var(--white-color);
 padding: 0 var(--spacing-md);
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer.show {
 max-height: 200px; /* Adjust as needed for content */
 padding: var(--spacing-md);
}
.faq-answer p {
 margin-bottom: 0;
}

/* CTA Banner */
.cta-banner {
 background: linear-gradient(rgba(13, 79, 139, 0.85), rgba(8, 145, 178, 0.85)), url('https://images.pexels.com/photos/17489163/pexels-photo-17489163.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940') center center/cover no-repeat;
 color: var(--white-color);
 text-align: center;
}

.cta-banner h2 {
 color: var(--white-color);
 font-size: 2.5rem;
 margin-bottom: var(--spacing-md);
}

.cta-banner p {
 font-size: 1.1rem;
 margin-bottom: var(--spacing-xl);
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

/* Footer */
.main-footer {
 background-color: var(--light-text-color);
 color: var(--white-color);
 padding: var(--section-padding) 0 var(--spacing-md);
 font-size: 0.9rem;
}

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

.footer-col h3 {
 color: var(--white-color);
 font-size: 1.2rem;
 margin-bottom: var(--spacing-md);
 text-transform: uppercase;
 letter-spacing: 0.5px;
}

.footer-col p, .footer-col ul li {
 color: rgba(255, 255, 255, 0.75);
 margin-bottom: var(--spacing-xs);
}

.footer-col a {
 color: rgba(255, 255, 255, 0.75);
}

.footer-col a:hover {
 color: var(--secondary-color);
}

.footer-col.company-info .footer-social {
 margin-top: var(--spacing-md);
 display: flex;
 gap: var(--spacing-sm);
}

.footer-col.company-info .footer-social img {
 width: 24px;
 height: 24px;
 opacity: 0.75;
 transition: opacity var(--transition-speed);
}

.footer-col.company-info .footer-social img:hover {
 opacity: 1;
}

.footer-bottom {
 text-align: center;
 padding-top: var(--spacing-md);
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 color: rgba(255, 255, 255, 0.6);
}

/* Inner Page Hero Styles */
.hero-inner {
 min-height: 40vh;
 background-attachment: fixed;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--white-color);
 text-align: center;
 position: relative;
}

.hero-inner::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
 z-index: 1;
}

.hero-inner .hero-content {
 position: relative;
 z-index: 2;
}

.hero-inner h1 {
 color: var(--white-color);
 font-size: 3rem;
 margin-bottom: var(--spacing-sm);
}

.hero-inner p {
 font-size: 1.1rem;
 max-width: 700px;
 margin: 0 auto;
}

/* Specific Page Hero Backgrounds */
.hero-about { background-image: url('https://images.pexels.com/photos/16021683/pexels-photo-16021683.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }
.hero-services { background-image: url('https://images.pexels.com/photos/17489150/pexels-photo-17489150.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }
.hero-contact { background-image: url('https://images.pexels.com/photos/17489152/pexels-photo-17489152.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }
.hero-blog { background-image: url('https://images.pexels.com/photos/17489163/pexels-photo-17489163.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }
.hero-gallery { background-image: url('https://images.pexels.com/photos/8353836/pexels-photo-8353836.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }
.hero-faq { background-image: url('https://images.pexels.com/photos/17202976/pexels-photo-17202976.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }
.hero-legal { background-image: url('https://images.pexels.com/photos/16313507/pexels-photo-16313507.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940'); }

/* About Page Specific */
.about-content-section {
 max-width: 900px;
 margin: 0 auto;
}

.mission-values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--spacing-xl);
 margin-top: var(--spacing-xl);
}

.value-card {
 padding: var(--spacing-lg);
 border-radius: var(--border-radius-md);
 background-color: var(--light-gray);
 box-shadow: var(--box-shadow-sm);
 text-align: center;
}

.value-card h4 {
 color: var(--primary-color);
 margin-bottom: var(--spacing-sm);
}

.team-member-card {
 text-align: center;
}

.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto var(--spacing-sm);
 border: 3px solid var(--primary-color);
}

.team-member-card h4 {
 margin-bottom: var(--spacing-xs);
 color: var(--primary-color);
}

.team-member-card p {
 color: var(--dark-gray);
 font-size: 0.9rem;
 margin-bottom: 0;
}

/* Services Page Specific */
.service-list-section img {
 height: 250px; /* Consistent image height for services */
}

.process-steps {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: var(--spacing-lg);
 margin-top: var(--spacing-xl);
}

.step-card {
 background-color: var(--white-color);
 padding: var(--spacing-lg);
 border-radius: var(--border-radius-md);
 box-shadow: var(--box-shadow-sm);
 text-align: center;
 border-top: 5px solid var(--secondary-color);
}

.step-card span.step-number {
 display: inline-block;
 font-size: 2rem;
 font-weight: 700;
 color: var(--primary-color);
 background-color: var(--light-gray);
 border-radius: 50%;
 width: 60px;
 height: 60px;
 line-height: 60px;
 margin-bottom: var(--spacing-sm);
}

.step-card h4 {
 color: var(--primary-color);
}

/* Contact Page Specific */
.contact-grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: var(--spacing-xl);
}

.contact-info-block {
 background-color: var(--light-gray);
 padding: var(--spacing-xl);
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-sm);
}

.contact-info-block h3 {
 color: var(--primary-color);
 margin-bottom: var(--spacing-md);
}

.contact-info-block p {
 display: flex;
 align-items: center;
 gap: var(--spacing-sm);
 margin-bottom: var(--spacing-sm);
 color: var(--light-text-color);
}

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

.contact-info-block .icon {
 color: var(--secondary-color);
 font-size: 1.2rem;
 width: 20px; /* Ensure icon has consistent width */
}

.contact-form-section {
 background-color: var(--white-color);
 padding: var(--spacing-xl);
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-sm);
}

.contact-form-section form {
 display: flex;
 flex-direction: column;
 gap: var(--spacing-sm);
}

.contact-form-section label {
 font-weight: 500;
 color: var(--light-text-color);
 margin-bottom: var(--spacing-xs);
 display: block;
}

.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section input[type="tel"],
.contact-form-section textarea {
 width: 100%;
 padding: var(--spacing-sm);
 border: 1px solid var(--medium-gray);
 border-radius: var(--border-radius-sm);
 font-family: var(--font-primary);
 font-size: 1rem;
 transition: border-color var(--transition-speed);
}

.contact-form-section input[type="text"]:focus,
.contact-form-section input[type="email"]:focus,
.contact-form-section input[type="tel"]:focus,
.contact-form-section textarea:focus {
 border-color: var(--primary-color);
 outline: none;
 box-shadow: 0 0 0 2px rgba(8, 145, 178, 0.2);
}

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

.gmap-frame {
 width: 100%;
 height: 450px;
 border: 0;
 border-radius: var(--border-radius-lg);
 overflow: hidden;
 box-shadow: var(--box-shadow-md);
}

/* Blog Post Specific */
.blog-post-header {
 text-align: center;
 margin-bottom: var(--spacing-xl);
}

.blog-post-header h1 {
 font-size: 3rem;
 color: var(--primary-color);
}

.post-meta {
 font-size: 0.9rem;
 color: var(--dark-gray);
 margin-bottom: var(--spacing-md);
}

.post-meta span {
 margin: 0 var(--spacing-xs);
}

.post-content img {
 margin: var(--spacing-lg) auto;
 border-radius: var(--border-radius-md);
 box-shadow: var(--box-shadow-sm);
}

.post-content h2, .post-content h3 {
 color: var(--primary-color);
 margin-top: var(--spacing-xl);
 margin-bottom: var(--spacing-md);
}

.post-content p {
 margin-bottom: var(--spacing-md);
 line-height: 1.7;
}

.author-box {
 display: flex;
 align-items: center;
 padding: var(--spacing-md);
 background-color: var(--light-gray);
 border-radius: var(--border-radius-md);
 margin-top: var(--spacing-xl);
}

.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: var(--spacing-md);
 border: 2px solid var(--secondary-color);
}

.author-info h4 {
 margin-bottom: var(--spacing-xs);
 color: var(--primary-color);
}

.author-info p {
 font-size: 0.9rem;
 color: var(--dark-gray);
 margin-bottom: 0;
}

/* Gallery Page Specific */
.gallery-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.gallery-item {
 background-color: var(--white-color);
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-md);
 cursor: pointer;
 overflow: hidden;
 position: relative;
}

.gallery-item img {
 height: 250px;
 object-fit: cover;
 transition: transform 0.3s ease-in-out;
}

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

/* Lightbox styles (simplified for basic functionality) */
.lightbox {
 display: none;
 position: fixed;
 z-index: 2000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 overflow: auto;
 background-color: rgba(0, 0, 0, 0.8);
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
 justify-content: center;
 align-items: center;
}

.lightbox-content {
 margin: auto;
 display: block;
 max-width: 80%;
 max-height: 80%;
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-lg);
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 35px;
 color: #fff;
 font-size: 40px;
 font-weight: bold;
 transition: 0.3s;
 cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
 color: var(--secondary-color);
 text-decoration: none;
 cursor: pointer;
}

/* Legal Pages */
.legal-content {
 max-width: 900px;
 margin: 0 auto;
}

.legal-content h2 {
 color: var(--primary-color);
 margin-top: var(--spacing-xl);
}

.legal-content h3 {
 color: var(--secondary-color);
 margin-top: var(--spacing-lg);
}

.legal-content p, .legal-content ul, .legal-content ol {
 margin-bottom: var(--spacing-md);
 color: var(--light-text-color);
}

.legal-content ul, .legal-content ol {
 padding-left: var(--spacing-lg);
}

.legal-content li {
 margin-bottom: var(--spacing-xs);
}

/* Thank You Page */
.thank-you-section {
 min-height: 50vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
 background-color: var(--light-gray);
}

.thank-you-section h1 {
 color: var(--primary-color);
 font-size: 3rem;
}

.thank-you-section p {
 font-size: 1.2rem;
 color: var(--light-text-color);
 margin-bottom: var(--spacing-xl);
}

/* 404 Page */
.error-404-section {
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
 background-color: var(--white-color);
 padding: var(--section-padding);
}

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

.error-404-section h2 {
 font-size: 2.5rem;
 color: var(--light-text-color);
 margin-top: var(--spacing-md);
 margin-bottom: var(--spacing-lg);
}

.error-404-section p {
 font-size: 1.1rem;
 color: var(--dark-gray);
 margin-bottom: var(--spacing-xl);
}

/* 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);
}

.fade-in {
 opacity: 0;
 animation: fadeIn 1s ease-in-out forwards;
}

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

/* Media Queries */

/* Tablet & Smaller Desktops (768px - 1023px) */
@media (max-width: 1023px) {
 .navbar {
 padding: var(--spacing-sm) var(--spacing-lg);
 }
 .nav-links {
 gap: var(--spacing-md);
 }

 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 h3 { font-size: 1.5rem; }
 .hero-content h1 { font-size: 3rem; }
 .hero-content p { font-size: 1.1rem; }

 .about-image-wrapper, .about-content-wrapper {
 min-width: unset;
 max-width: 100%;
 }
 .about-preview-flex {
 flex-direction: column;
 }
 .about-image-wrapper img {
 width: 100%;
 }
 .about-content-wrapper .section-title, .about-content-wrapper .section-subtitle {
 text-align: center;
 }
}

/* Mobile (<= 767px) */
@media (max-width: 767px) {
 html {
 font-size: 15px;
 }

 .section-padding {
 padding: 3rem var(--spacing-md);
 }

 .nav-toggle {
 display: block;
 }

 .nav-links {
 display: none;
 flex-direction: column;
 position: absolute;
 top: 60px; /* Adjust based on header height */
 left: 0;
 width: 100%;
 background-color: var(--primary-color);
 box-shadow: var(--box-shadow-lg);
 padding: var(--spacing-md) 0;
 text-align: center;
 z-index: 999;
 }

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

 .nav-links li {
 margin: var(--spacing-xs) 0;
 }

 .nav-links a {
 padding: var(--spacing-sm) var(--spacing-md);
 display: block;
 width: 100%;
 }
 .nav-links a::after {
 display: none;
 }
 .nav-links a:hover {
 background-color: rgba(255, 255, 255, 0.1);
 }

 .hero {
 min-height: 70vh;
 padding-top: var(--spacing-xl);
 padding-bottom: var(--spacing-xl);
 }
 .hero-content h1 {
 font-size: 2.5rem;
 }
 .hero-content p {
 font-size: 1rem;
 }
 .hero-actions {
 display: flex;
 flex-direction: column;
 gap: var(--spacing-md);
 }
 .hero-actions .btn {
 width: 80%;
 margin: 0 auto;
 }
 .hero-inner h1 {
 font-size: 2.2rem;
 }

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

 .features-grid, .services-grid, .team-grid, .blog-grid, .testimonials-grid, .gallery-grid, .mission-values-grid, .process-steps {
 grid-template-columns: 1fr;
 gap: var(--spacing-lg);
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col.company-info .footer-social {
 justify-content: center;
 }
 .about-image-wrapper {
 order: -1; /* Image first on mobile */
 }
 .contact-grid {
 grid-template-columns: 1fr;
 }

 .error-404-section h1 {
 font-size: 4rem;
 }
 .error-404-section h2 {
 font-size: 2rem;
 }
}
/* Scroll to Top Button (optional based on content length) */
#scroll-to-top {
 display: none;
 position: fixed;
 bottom: 20px;
 right: 20px;
 z-index: 99;
 font-size: 1.5rem;
 border: none;
 outline: none;
 background-color: var(--secondary-color);
 color: var(--white-color);
 cursor: pointer;
 padding: 10px 15px;
 border-radius: var(--border-radius-md);
 transition: background-color var(--transition-speed);
 box-shadow: var(--box-shadow-md);
}

#scroll-to-top:hover {
 background-color: var(--primary-color);
}
.active-link {
 color: var(--secondary-color) !important;
 font-weight: 600;
}
.active-link::after {
 width: 100% !important;
 background-color: var(--secondary-color) !important;
}
/* Content Section specific styles */
.content-section {
 padding-top: var(--spacing-xl);
 padding-bottom: var(--spacing-xl);
}
.blog-post-header img {
 width: 100%;
 height: 350px;
 object-fit: cover;
 border-radius: var(--border-radius-lg);
 box-shadow: var(--box-shadow-md);
 margin-bottom: var(--spacing-xl);
}
/* Blog List - ensure blog cards have height */
.blog-grid .blog-card {
 display: flex;
 flex-direction: column;
 height: 100%; /* Make sure cards take full height */
}
.blog-grid .blog-card img {
 flex-shrink: 0; /* Image doesn't shrink */
}
.blog-grid .blog-card p {
 flex-grow: 1; /* Paragraph takes remaining space */
}
/* Legal pages section */
.legal-page h1 {
 font-size: 2.5rem;
 color: var(--primary-color);
}

.legal-section-text {
 padding: 2rem 0;
}
.legal-section-text h2 {
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
}
.legal-section-text h3 {
 color: var(--secondary-color);
 margin-top: 1.5rem;
 margin-bottom: 0.8rem;
}
.legal-section-text p, .legal-section-text ul, .legal-section-text ol {
 margin-bottom: 1rem;
 line-height: 1.7;
 color: var(--light-text-color);
}
.legal-section-text ul, .legal-section-text ol {
 margin-left: 1.5rem;
 list-style-type: disc;
}
.legal-section-text ol {
 list-style-type: decimal;
}
.legal-section-text li {
 margin-bottom: 0.5rem;
}
.legal-section-text a {
 color: var(--secondary-color);
 text-decoration: underline;
}
/* Sticky header on scroll */
.main-header.scrolled {
 background-color: var(--primary-color); /* Maintain bg color */
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
 from {
 transform: translateY(-100%);
 opacity: 0;
 }
 to {
 transform: translateY(0);
 opacity: 1;
 }
}
/* Ensure input heights are consistent for forms */
.contact-form-section input,
.contact-form-section textarea {
 min-height: 45px;
}
.contact-form-section textarea {
 min-height: 120px;
}
/* Accessibility Focus States */
a:focus, button:focus, input:focus, textarea:focus {
 outline: 2px solid var(--secondary-color);
 outline-offset: 2px;
 border-radius: var(--border-radius-sm);
}

/* Ensure padding is inside for input focus */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
 box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.3); /* So the outline is part of the element */
}

/* Remove default focus for buttons in some browsers */
.btn::-moz-focus-inner {
 border: 0;
}
/* Hide scrollbar for elements if needed, but not globally */
/* #nav-menu {
 -ms-overflow-style: none;
 scrollbar-width: none;
}
#nav-menu::-webkit-scrollbar {
 display: none;
} */
/* Adjust mobile menu for better UX */
.nav-links.active {
 overflow-y: auto; /* Enable scroll for many links on mobile */
 max-height: calc(100vh - 60px); /* Fill remaining viewport height */
}
/* Blog Post Author */
.author-box {
 margin-top: var(--spacing-xl);
 padding: var(--spacing-lg);
 background-color: var(--light-gray);
 border-radius: var(--border-radius-md);
 display: flex;
 align-items: center;
}

.author-box img {
 border-radius: 50%;
 width: 90px;
 height: 90px;
 object-fit: cover;
 margin-right: var(--spacing-md);
 flex-shrink: 0;
}

.author-info h4 {
 margin-bottom: var(--spacing-xs);
 color: var(--primary-color);
 font-size: 1.3rem;
}

.author-info p {
 margin-bottom: 0;
 font-size: 0.95rem;
 color: var(--dark-gray);
}
/* Related Posts Section */
.related-posts {
 margin-top: var(--spacing-xl);
 padding-top: var(--spacing-lg);
 border-top: 1px solid var(--medium-gray);
}

.related-posts h3 {
 text-align: center;
 margin-bottom: var(--spacing-xl);
 color: var(--primary-color);
}

.related-posts-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--spacing-md);
}

.related-post-card {
 background-color: var(--white-color);
 border-radius: var(--border-radius-md);
 box-shadow: var(--box-shadow-sm);
 overflow: hidden;
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
 display: flex;
 flex-direction: column;
 height: 100%;
}

.related-post-card:hover {
 transform: translateY(-3px);
 box-shadow: var(--box-shadow-md);
}

.related-post-card img {
 width: 100%;
 height: 180px;
 object-fit: cover;
 flex-shrink: 0;
}

.related-post-content {
 padding: var(--spacing-md);
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}

.related-post-content h4 {
 font-size: 1.1rem;
 margin-top: 0;
 margin-bottom: var(--spacing-xs);
 color: var(--primary-color);
}

.related-post-content p {
 font-size: 0.85rem;
 color: var(--dark-gray);
 line-height: 1.5;
 flex-grow: 1;
}

.related-post-content a {
 display: inline-block;
 margin-top: var(--spacing-sm);
 color: var(--secondary-color);
 font-weight: 500;
}
/* Ensure images on legal pages are properly styled if used */
.legal-content img {
 margin: var(--spacing-md) auto;
 max-width: 100%;
 height: auto;
 border-radius: var(--border-radius-md);
 box-shadow: var(--box-shadow-sm);
}
/* Ensure consistent form padding */
.contact-form-section input,
.contact-form-section textarea,
.contact-form-section .btn {
 padding: var(--spacing-sm) var(--spacing-md);
}
/* Responsive adjustments for specific content */
@media (max-width: 576px) {
 .section-title {
 font-size: 1.8rem;
 }
 .hero-content h1 {
 font-size: 2rem;
 }
 .hero-actions .btn {
 width: 100%;
 }
 .about-content-wrapper .section-title, .about-content-wrapper .section-subtitle {
 text-align: center;
 }
 .contact-info-block {
 padding: var(--spacing-md);
 }
 .contact-form-section {
 padding: var(--spacing-md);
 }
 .author-box {
 flex-direction: column;
 text-align: center;
 }
 .author-box img {
 margin: 0 auto var(--spacing-sm);
 }
 .related-posts-grid {
 gap: var(--spacing-lg);
 }
}
/* Adjust spacing for all sections to be consistent */
section:not(.hero) {
 padding-top: 4rem;
 padding-bottom: 4rem;
}
@media (max-width: 767px) {
 section:not(.hero) {
 padding-top: 3rem;
 padding-bottom: 3rem;
 }
}
/* Ensure the lightbox overlay covers the whole screen */
.lightbox {
 height: 100%; /* Covers entire page */
 background-color: rgba(0, 0, 0, 0.9); /* Darker background for visibility */
}
.lightbox-content {
 width: auto; /* Adjust width dynamically */
 height: auto; /* Adjust height dynamically */
 max-width: 90%; /* Max width 90% of viewport */
 max-height: 90%; /* Max height 90% of viewport */
 object-fit: contain; /* Ensure image fits without cropping */
}
/* Ensure social icons in footer are consistent size */
.footer-social img {
 width: 24px;
 height: 24px;
}
/* Active state for elements */
.active-link {
 color: var(--secondary-color);
 font-weight: 600;
}
.active-link::after {
 width: 100%;
 background-color: var(--secondary-color);
}
/* Add some top margin to main content to avoid overlap when header is sticky */
main {
 padding-top: 0; /* This is handled by section padding */
}
/* Force consistent line height for buttons for better spacing visually */
.btn {
 line-height: 1.5; /* Default line-height */
 padding-top: 0.8em;
 padding-bottom: 0.8em;
}
.hero-actions .btn {
 padding-top: 1em;
 padding-bottom: 1em;
}
/* Remove explicit line height for direct p in hero */
.hero-content p {
 line-height: 1.6;
}
/* Accessibility for skip links or screen readers (not generated, but good for base CSS) */
.skip-link {
 position: absolute;
 top: -40px;
 left: 0;
 background: #000;
 color: #fff;
 padding: 8px;
 z-index: 10000;
 transition: top 0.3s ease;
}
.skip-link:focus {
 top: 0;
}
/* Add more specific style for form errors if validation is implemented */
.form-group.error input,
.form-group.error textarea {
 border-color: red;
}
.form-group .error-message {
 color: red;
 font-size: 0.85rem;
 margin-top: 0.2rem;
}
/* Adjust the hero banner image for all hero sections to be less dynamic and more "serious" */
.hero {
 background-attachment: scroll; /* Keep it subtle, not fixed parallax */
}
.hero-inner {
 background-attachment: scroll; /* Consistent with main hero */
}
/* Final check on font sizing and colors for readability */
body {
 font-size: 1rem; /* Base font size */
}
p {
 font-size: 1rem;
}
/* Adjust button border-radius to be slightly more prominent for a serious feel */
.btn {
 border-radius: var(--border-radius-sm); /* Slightly sharper corners for seriousness */
}
.feature-card, .service-card, .team-member-card, .blog-card, .testimonial-card, .gallery-item {
 border-radius: var(--border-radius-sm); /* Consistent with button styling */
}
.faq-item {
 border-radius: var(--border-radius-sm); /* Consistent */
}
.contact-info-block, .contact-form-section {
 border-radius: var(--border-radius-sm); /* Consistent */
}
.gmap-frame {
 border-radius: var(--border-radius-sm); /* Consistent */
}
/* Ensure the social icons are centered in their flex container on mobile */
@media (max-width: 767px) {
 .footer-col.company-info .footer-social {
 justify-content: center; /* Center the social icons */
 }
}
.main-header.scrolled {
 background-color: var(--primary-color);
 box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.read-more-link {
 color: var(--secondary-color);
 font-weight: 500;
 display: inline-block;
 position: relative;
}

.read-more-link::after {
 content: '→';
 position: absolute;
 right: -15px;
 opacity: 0;
 transition: all var(--transition-speed);
}

.read-more-link:hover::after {
 right: -25px;
 opacity: 1;
}
/* Services Page List Item Styling */
.section-services-list {
 margin-top: 3rem;
}

.service-item-detail {
 display: flex;
 align-items: center;
 gap: 2rem;
 margin-bottom: 3rem;
 background-color: var(--white-color);
 padding: 2rem;
 border-radius: var(--border-radius-md);
 box-shadow: var(--box-shadow-sm);
 transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.service-item-detail.reverse {
 flex-direction: row-reverse;
}

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

.service-item-detail .service-img {
 flex: 1;
 min-width: 300px;
}
.service-item-detail .service-img img {
 border-radius: var(--border-radius-md);
 height: 250px;
 object-fit: cover;
}

.service-item-detail .service-content {
 flex: 2;
}

.service-item-detail .service-content h3 {
 margin-top: 0;
 color: var(--primary-color);
}

.service-item-detail .service-content p {
 color: var(--light-text-color);
}

@media (max-width: 767px) {
 .service-item-detail,
 .service-item-detail.reverse {
 flex-direction: column;
 text-align: center;
 }
 .service-item-detail .service-img {
 min-width: unset;
 width: 100%;
 margin-bottom: 1rem;
 }
}
/* Ensure proper spacing for list items in legal pages */
.legal-content ul, .legal-content ol {
 margin-left: 1.5rem;
 padding-left: 0;
}

.legal-content ol li {
 list-style-type: decimal;
}

.legal-content ul li {
 list-style-type: disc;
}
/* Remove list styling from nav links - already handled */
.footer-col ul {
 list-style: none; /* Already defined, reinforcing */
 padding-left: 0;
}
/* Ensure consistent top padding for content relative to header */
main .section-padding:first-of-type {
 padding-top: var(--section-padding);
}
@media (max-width: 767px) {
 main .section-padding:first-of-type {
 padding-top: 3rem; /* Adjust for smaller screens */
 }
}
/* Styles for gallery item overlay */
.gallery-item {
 position: relative;
 overflow: hidden;
}

.gallery-item-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(13, 79, 139, 0.7); /* Primary color with transparency */
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity var(--transition-speed);
 text-align: center;
 padding: var(--spacing-sm);
}

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

.gallery-item-overlay p {
 color: var(--white-color);
 margin: 0;
 font-size: 1.1rem;
 font-weight: 500;
 transform: translateY(10px);
 transition: transform var(--transition-speed);
}

.gallery-item:hover .gallery-item-overlay p {
 transform: translateY(0);
}

.gallery-item img {
 filter: brightness(0.8); /* Slightly dim default for overlay contrast */
 transition: filter var(--transition-speed);
}
.gallery-item:hover img {
 filter: brightness(0.6); /* Further dim on hover */
}
/* Style for pagination in blog or gallery (if implemented) */
.pagination {
 display: flex;
 justify-content: center;
 margin-top: var(--spacing-xl);
 gap: var(--spacing-sm);
}

.pagination a, .pagination span {
 display: inline-block;
 padding: var(--spacing-xs) var(--spacing-md);
 border-radius: var(--border-radius-sm);
 border: 1px solid var(--medium-gray);
 color: var(--primary-color);
 transition: all var(--transition-speed);
}

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

.pagination span.current {
 background-color: var(--primary-color);
 color: var(--white-color);
 border-color: var(--primary-color);
 font-weight: 600;
 cursor: default;
}
/* Style for an "active" class on nav links directly */
.nav-links li a.active {
 color: var(--secondary-color);
 font-weight: 600;
}

.nav-links li a.active::after {
 width: 100%;
 background-color: var(--secondary-color);
}
/* Ensure the logo is properly aligned and sized */
.navbar .logo {
 display: flex;
 align-items: center;
 height: 100%; /* Match header height */
}

/* Specific styling for list items inside main content for better readability against legal pages */
.content-section ul, .content-section ol {
 margin-left: 20px;
 margin-bottom: 1rem;
 list-style-position: outside;
}

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

.content-section ol {
 list-style-type: decimal;
}

.content-section li {
 margin-bottom: 0.5rem;
}
.blog-post-content ul, .blog-post-content ol {
 padding-left: 20px;
 margin-left: 0;
}
/* Ensure contact page specific elements have consistent padding */
.contact-detail-items {
 padding: 0;
 list-style: none;
}
.contact-detail-items li {
 display: flex;
 align-items: flex-start; /* Align icon and text at top */
 margin-bottom: var(--spacing-sm);
 color: var(--light-text-color);
}
.contact-detail-items li .icon {
 font-size: 1.5rem; /* Larger icons for contact details */
 margin-right: var(--spacing-sm);
 color: var(--secondary-color);
 flex-shrink: 0; /* Prevent icon from shrinking */
 width: auto; /* Allow icon to set its own width */
}
.contact-detail-items li a {
 color: var(--light-text-color);
}
.contact-detail-items li a:hover {
 color: var(--primary-color);
}
/* Ensure the hero section is visually distinct and prominent */
.hero {
 /* Using background-attachment: fixed for subtle parallax or scroll for a serious tone */
 background-attachment: scroll;
 padding-top: calc(var(--section-padding) + 60px); /* Adjust for header height */
 padding-bottom: calc(var(--section-padding) + 60px);
}
@media (max-width: 767px) {
 .hero {
 padding-top: calc(3rem + 60px);
 padding-bottom: calc(3rem + 60px);
 }
}
/* Specific styles for card backgrounds to avoid pure white */
.service-card, .feature-card, .blog-card, .testimonial-card, .team-member-card {
 background-color: var(--white-color); /* Kept white as per initial req, but could be var(--light-gray) */
 border: 1px solid var(--medium-gray);
}
/* Process Section */
.process-section ul {
 list-style: none;
 padding: 0;
}

.process-section li {
 display: flex;
 align-items: center;
 margin-bottom: 1.5rem;
}

.process-section .icon {
 font-size: 2rem;
 color: var(--primary-color);
 margin-right: 1rem;
 flex-shrink: 0;
}

.process-section .text h4 {
 margin-bottom: 0.5rem;
 color: var(--primary-color);
}

.process-section .text p {
 margin-bottom: 0;
 color: var(--dark-gray);
}
.process-steps .step-card {
 background-color: var(--light-gray);
 box-shadow: none;
 border: 1px solid var(--medium-gray);
}

body {
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

/* Prevent text selection when double-clicking navigation or buttons */
.navbar, .btn, .faq-question {
 -webkit-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
}
/* Adjustments for legal text line spacing and paragraph breaks */
.legal-content p {
 margin-bottom: 1.2rem;
 line-height: 1.8;
}
.legal-content ul li, .legal-content ol li {
 line-height: 1.7;
}