:root {
 --primary-color: #388E3C; /* Dark Green - Earthy tone */
 --secondary-color: #6A1B9A; /* Dark Violet - Complementary accent */
 --tertiary-color: #1976D2; /* Dark Blue - Sky/Water accent */
 --text-color-dark: #333333;
 --text-color-light: #555555;
 --background-light: #F5F7FA; /* Soft light gray - neumorphism base */
 --background-dark: #E0E5EC; /* Slightly darker gray for inset */
 --white: #ffffff;
 --light-gray: #F0F2F5;
 --border-color: #D1D9E6;
 --shadow-light: #FFFFFF;
 --shadow-dark: #BAC4D2;
 --font-heading: 'Montserrat', sans-serif;
 --font-body: 'Roboto', sans-serif;
 --border-radius: 12px;
 --padding-sm: 1rem;
 --padding-md: 1.5rem;
 --padding-lg: 2rem;
 --section-gap: 4rem;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-body);
 line-height: 1.6;
 color: var(--text-color-light);
 background-color: var(--background-light);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 color: var(--text-color-dark);
 margin-bottom: 0.8em;
 font-weight: 700;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; }
h3 { font-size: 1.8rem; line-height: 1.4; }
h4 { font-size: 1.4rem; }
p { margin-bottom: 1em; }

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

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

ul {
 list-style: none;
}

img {
 max-width: 100%;
 height: auto;
 display: block;
 line-height: 0; /* Fixes potential extra space below images */
}

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

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

.section-title {
 font-size: 2.5rem;
 text-align: center;
 margin-bottom: 1rem;
 position: relative;
 padding-bottom: 0.5rem;
}

.section-title::after {
 content: '';
 display: block;
 width: 60px;
 height: 3px;
 background-color: var(--primary-color);
 margin: 0.5rem auto 0;
 border-radius: 50px;
}

.section-subtitle {
 font-size: 1.1rem;
 text-align: center;
 margin-bottom: 2rem;
 color: var(--text-color-light);
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

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

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

/* Neomorphism Styles */
.neomorphic-card {
 background: var(--background-light);
 border-radius: var(--border-radius);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
 padding: var(--padding-lg);
 margin-bottom: 2rem;
 transition: all 0.3s ease;
}

.neomorphic-card:hover {
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
 transform: translateY(-2px);
}

.neomorphic-panel {
 background: var(--background-light);
 border-radius: var(--border-radius);
 box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
 padding: var(--padding-md);
 transition: all 0.3s ease;
}

.neomorphic-inset {
 background: var(--background-dark); /* Slightly darker for deeper inset feel */
 border-radius: var(--border-radius);
 box-shadow: inset 7px 7px 14px var(--shadow-dark), inset -7px -7px 14px var(--shadow-light);
 padding: var(--padding-md);
 transition: all 0.3s ease;
}

.neomorphic-inset-panel {
 background: var(--background-dark);
 border-radius: var(--border-radius);
 box-shadow: inset 10px 10px 20px var(--shadow-dark), inset -10px -10px 20px var(--shadow-light);
 padding: var(--padding-lg);
 margin-bottom: 2rem;
 border: 1px solid var(--border-color); /* Subtle border for definition */
}
/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 50px;
 font-family: var(--font-heading);
 font-weight: 600;
 font-size: 1rem;
 cursor: pointer;
 border: none;
 text-align: center;
 transition: all 0.3s ease;
 text-decoration: none;
 box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--white);
 margin-right: 1rem;
}

.btn-primary:hover {
 background-color: var(--secondary-color);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 transform: translateY(1px);
}

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

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--white);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 transform: translateY(1px);
}

.btn-tertiary {
 background-color: var(--background-light);
 color: var(--tertiary-color);
 border: 1px solid var(--tertiary-color);
}

.btn-tertiary:hover {
 background-color: var(--tertiary-color);
 color: var(--white);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 transform: translateY(1px);
}

.btn-lg {
 padding: 1rem 2.5rem;
 font-size: 1.1rem;
}

.btn-link {
 color: var(--primary-color);
 font-weight: 600;
 display: inline-block;
 margin-top: 1rem;
 position: relative;
}
.btn-link::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 1px;
 background-color: var(--primary-color);
 transform: scaleX(0);
 transform-origin: bottom right;
 transition: transform 0.3s ease-out;
}
.btn-link:hover::after {
 transform: scaleX(1);
 transform-origin: bottom left;
}

/* Header */
.main-header {
 background: var(--background-light);
 padding: var(--padding-sm) 0;
 border-bottom: 1px solid var(--border-color);
 position: sticky;
 top: 0;
 z-index: 1000;
 box-shadow: 0 4px 8px var(--shadow-dark); /* Soft shadow for header */
}

.main-header.scrolled {
 box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 background-color: rgba(245, 247, 250, 0.95); /* Slightly transparent on scroll */
 backdrop-filter: blur(5px);
}

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

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

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

.nav-links li a {
 color: var(--text-color-dark);
 font-weight: 600;
 padding: 0.5rem 1rem;
 border-radius: 50px; /* Pill shape */
 transition: all 0.3s ease;
 position: relative; /* For active indicator */
}

.nav-links li a:hover {
 color: var(--primary-color);
 background-color: var(--background-dark);
 box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
 text-decoration: none;
}

.nav-links li a.active {
 color: var(--white);
 background-color: var(--primary-color);
 box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2), inset -3px -3px 6px rgba(255,255,255,0.7);
 text-decoration: none;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 flex-direction: column;
 justify-content: space-around;
 width: 30px;
 height: 25px;
 padding: 0;
}

.nav-toggle span {
 display: block;
 width: 100%;
 height: 3px;
 background-color: var(--primary-color);
 border-radius: 2px;
 transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
 padding: var(--section-gap) 0;
 text-align: center;
 display: flex;
 align-items: center;
 background-color: var(--background-dar); /* Soft light gray for hero background */
 margin-top: 0;
 border-radius: 0; /* Hero section extends full width */
 box-shadow: none; /* Hero handles its own shadows */
}
.hero-section .hero-content {
 display: flex;
 align-items: center;
 gap: 3rem;
 text-align: left;
 background: var(--background-light);
 border-radius: var(--border-radius);
 box-shadow: 10px 10px 20px var(--shadow-dark), -10px -10px 20px var(--shadow-light);
 padding: var(--padding-lg);
 margin: 0 auto;
}

.hero-section h1 {
 font-size: 3.5rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
}

.hero-section p {
 font-size: 1.2rem;
 margin-bottom: 2rem;
 max-width: 600px;
}

.hero-buttons .btn {
 min-width: 200px;
}

.hero-image {
 flex-shrink: 0;
}
.hero-image img {
 border-radius: var(--border-radius);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

/* Welcome Section */
.welcome-section .grid-2-columns {
 display: grid;
 grid-template-columns: 1fr 1.2fr;
 gap: 3rem;
 align-items: center;
}

.welcome-image img {
 border-radius: var(--border-radius);
 box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

.welcome-text h3 {
 font-size: 2rem;
 color: var(--primary-color);
}

/* Service & Blog Grids (similar card styles) */
.grid-3-columns {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2rem;
 margin-top: 2rem;
}

.service-card, .blog-post-card {
 border-radius: var(--border-radius);
 overflow: hidden;
 text-align: center;
}
.service-card img, .blog-post-card img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 border-radius: var(--border-radius) var(--border-radius) 0 0;
 margin-bottom: 1rem;
 transition: transform 0.3s ease;
}

.service-card:hover img, .blog-post-card:hover img {
 transform: scale(1.03);
}

.service-card h3, .blog-post-card h3 {
 font-size: 1.5rem;
 margin-top: 0.5rem;
 margin-bottom: 0.5rem;
}

.service-card h3 a, .blog-post-card h3 a {
 color: var(--text-color-dark);
 text-decoration: none;
}

.service-card h3 a:hover, .blog-post-card h3 a:hover {
 color: var(--primary-color);
 text-decoration: none;
}

.blog-post-card .post-meta {
 font-size: 0.9rem;
 color: #888;
 margin-bottom: 1rem;
}
.blog-post-card .post-meta span:not(:last-child)::after {
 content: " | ";
}

/* Testimonials */
.testimonial-card {
 background: var(--background-dark); /* Slightly darker for the inset feel */
 text-align: center;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 min-height: 180px;
}

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

.client-info {
 font-weight: 600;
 color: var(--primary-color);
}
.client-info .client-title {
 display: block;
 font-size: 0.9rem;
 color: var(--text-color-light);
 margin-top: 0.2rem;
}

/* FAQ */
.faq-accordion {
 max-width: 800px;
 margin: 2rem auto;
}

.accordion-item {
 margin-bottom: 1rem;
 padding: 0; /* Neomorphic panel already has padding */
}

.accordion-header {
 width: 100%;
 background-color: var(--background-light);
 color: var(--text-color-dark);
 text-align: left;
 padding: var(--padding-md);
 border: none;
 cursor: pointer;
 font-family: var(--font-heading);
 font-size: 1.1rem;
 font-weight: 600;
 border-radius: var(--border-radius);
 box-shadow: 5px 5px 10px var(--shadow-dark), -5px -5px 10px var(--shadow-light);
 transition: all 0.3s ease;
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.accordion-header::after {
 content: '+';
 font-size: 1.5rem;
 transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] {
 background-color: var(--primary-color);
 color: var(--white);
 box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2), inset -3px -3px 6px rgba(255,255,255,0.7);
}

.accordion-header[aria-expanded="true"]::after {
 content: '-';
 transform: rotate(180deg);
}

.accordion-content {
 max-height: 0;
 overflow: hidden;
 padding: 0 var(--padding-md);
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 background-color: rgba(255, 255, 255, 0.5); /* Slightly translucent */
 border-radius: 0 0 var(--border-radius) var(--border-radius);
 border: 1px solid var(--border-color);
 border-top: none;
}

.accordion-content.active {
 max-height: 500px; /* Sufficiently large to reveal content */
 padding: var(--padding-md);
}

.accordion-content p {
 margin-bottom: 0;
}

/* CTA Section */
.cta-section {
 background-color: var(--background-dark);
 padding: var(--section-gap) 0;
 border-radius: var(--border-radius);
 margin-top: 0; /* Remove top margin from default neomorphic-card */
 box-shadow: inset 10px 10px 20px var(--shadow-dark), inset -10px -10px 20px var(--shadow-light);
}

.cta-section .section-title {
 color: var(--primary-color);
}
.cta-section .section-title::after {
 background-color: var(--tertiary-color);
}
.cta-section .section-subtitle {
 font-size: 1.2rem;
 color: var(--text-color-dark);
 margin-bottom: 2.5rem;
}

/* Footer */
.main-footer {
 background-color: var(--background-dark);
 color: var(--text-color-light);
 padding: calc(var(--section-gap) / 2) 0;
 border-top: 1px solid var(--border-color);
 box-shadow: inset 0 5px 10px var(--shadow-dark); /* Subtle inset shadow */
}

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

.footer-col h3 {
 color: var(--primary-color);
 margin-bottom: 1rem;
 font-size: 1.2rem;
}

.footer-col ul {
 padding: 0;
}

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

.footer-col a {
 color: var(--text-color-light);
}

.footer-col a:hover {
 color: var(--tertiary-color);
 text-decoration: underline;
}

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

.social-icons a {
 display: flex;
 justify-content: center;
 align-items: center;
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background-color: var(--background-light);
 box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
 transition: all 0.3s ease;
}

.social-icons a:hover {
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 transform: translateY(1px);
}

.social-icons img {
 width: 24px;
 height: 24px;
 filter: grayscale(100%);
 opacity: 0.7;
 transition: opacity 0.3s ease;
}

.social-icons a:hover img {
 filter: grayscale(0%);
 opacity: 1;
}

.footer-bottom {
 text-align: center;
 margin-top: 3rem;
 padding-top: 1.5rem;
 border-top: 1px solid var(--border-color);
 font-size: 0.9rem;
 color: var(--text-color-light);
}

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

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

.team-member img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1rem;
 border: 3px solid var(--primary-color);
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.team-member h4 {
 margin-bottom: 0.5rem;
 color: var(--primary-color);
}

.team-member p {
 font-size: 0.95rem;
 color: var(--text-color-light);
}

/* Services Page */
.service-detail-card {
 display: flex;
 flex-direction: column;
 gap: 1.5rem;
 margin-bottom: 3rem;
 padding: var(--padding-lg);
 background-color: var(--background-light);
 border-radius: var(--border-radius);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.service-detail-card:nth-child(even) {
 flex-direction: column-reverse; /* Alternating layout for visual interest on smaller screens */
}

.service-detail-card h3 {
 color: var(--primary-color);
 margin-bottom: 1rem;
 font-size: 2rem;
}
.service-detail-card p {
 margin-bottom: 1rem;
}

.service-detail-card .service-image {
 width: 100%;
 border-radius: var(--border-radius);
 box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
 padding: var(--padding-sm); /* Inner padding for image */
}
.service-detail-card .service-image img {
 border-radius: calc(var(--border-radius) - 5px); /* slightly smaller radius for actual image */
}

.process-steps {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 2rem;
 margin-top: 3rem;
}

.process-step {
 flex: 1 1 250px; /* Allows wrapping on smaller screens */
 text-align: center;
 padding: var(--padding-md);
 background: var(--background-dark); /* Deeper inset background */
 border-radius: var(--border-radius);
 box-shadow: inset 7px 7px 14px var(--shadow-dark), inset -7px -7px 14px var(--shadow-light);
 border: 1px solid var(--border-color);
 min-height: 180px;
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.process-step .icon {
 font-size: 2.5rem;
 color: var(--tertiary-color);
 margin-bottom: 0.8rem;
 display: block;
}

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

/* Contact Page */
.contact-grid {
 display: grid;
 grid-template-columns: 1.5fr 1fr;
 gap: 3rem;
}
.contact-info-block {
 padding: var(--padding-lg);
 background-color: var(--background-light);
 border-radius: var(--border-radius);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.contact-info-block h3 {
 color: var(--primary-color);
 margin-top: 0;
 margin-bottom: 1.5rem;
}
.contact-info-block p {
 margin-bottom: 1rem;
 display: flex;
 align-items: flex-start;
 gap: 0.8rem;
}
.contact-info-block p strong {
 min-width: 70px;
 color: var(--text-color-dark);
}
.contact-info-block .icon {
 font-size: 1.5rem;
 color: var(--tertiary-color);
}
.contact-info-block address {
 font-style: normal;
}
.contact-form {
 padding: var(--padding-lg);
 background-color: var(--background-light);
 border-radius: var(--border-radius);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.contact-form h3 {
 color: var(--primary-color);
 margin-top: 0;
 margin-bottom: 1.5rem;
}

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

.form-group label {
 display: block;
 margin-bottom: 0.6rem;
 font-weight: 600;
 color: var(--text-color-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 0.8rem 1.2rem;
 border: none;
 border-radius: var(--border-radius);
 background-color: var(--background-dark);
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 outline: none;
 font-family: var(--font-body);
 font-size: 1rem;
 color: var(--text-color-dark);
 transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light), 0 0 0 2px var(--primary-color);
}

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

.contact-form .btn-primary {
 width: 100%;
 margin-top: 1rem;
}

.map-container {
 margin-top: 3rem;
 border-radius: var(--border-radius);
 overflow: hidden;
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}
.map-container iframe {
 width: 100%;
 display: block;
 height: 450px;
}

/* Blog Page */
.blog-post-full {
 background-color: var(--background-light);
 padding: var(--padding-lg);
 border-radius: var(--border-radius);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.blog-post-full h1 {
 font-size: 2.5rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.blog-meta-info {
 font-size: 0.95rem;
 color: #888;
 margin-bottom: 2rem;
 border-bottom: 1px dashed var(--border-color);
 padding-bottom: 1rem;
}

.blog-meta-info span {
 margin-right: 1.5rem;
}

.blog-meta-info span strong {
 color: var(--text-color-dark);
}

.blog-content p {
 margin-bottom: 1.5rem;
 font-size: 1.05rem;
}

.blog-content h2, .blog-content h3 {
 color: var(--primary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
}

.blog-content img {
 margin: 2rem 0;
 border-radius: var(--border-radius);
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
}

.author-box {
 display: flex;
 gap: 1.5rem;
 align-items: center;
 background-color: var(--background-dark);
 border-radius: var(--border-radius);
 padding: var(--padding-md);
 margin-top: 3rem;
 box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

.author-box img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 border: 2px solid var(--tertiary-color);
 flex-shrink: 0;
 margin: 0;
}

.author-info h4 {
 margin-bottom: 0.5rem;
 color: var(--primary-color);
}
.author-info p {
 margin-bottom: 0;
 font-size: 0.95rem;
}

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

.gallery-item {
 cursor: pointer;
 border-radius: var(--border-radius);
 overflow: hidden;
 box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
 transition: transform 0.3s ease;
 background-color: var(--background-light);
 padding: var(--padding-sm);
}

.gallery-item:hover {
 transform: translateY(-5px);
 box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.gallery-item img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--border-radius);
}

/* Lightbox Modal */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed; /* Stay in place */
 z-index: 1001; /* Sit on top */
 padding-top: 50px; /* Location of the box */
 left: 0;
 top: 0;
 width: 100%; /* Full width */
 height: 100%; /* Full height */
 overflow: auto; /* Enable scroll if needed */
 background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
}

.lightbox-content {
 margin: auto;
 display: block;
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
 border-radius: var(--border-radius);
 box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

.lightbox-caption {
 margin: auto;
 display: block;
 width: 80%;
 max-width: 700px;
 text-align: center;
 color: #ccc;
 padding: 10px 0;
 height: 150px;
}

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

.close-lightbox:hover,
.close-lightbox:focus {
 color: #bbb;
 text-decoration: none;
}

/* Testimonials page */
.testimonial-list .testimonial-card {
 margin-bottom: 2rem;
 min-height: auto; /* Allow height to adjust */
 background-color: var(--background-dark); /* Inset for testimonials */
 box-shadow: inset 7px 7px 14px var(--shadow-dark), inset -7px -7px 14px var(--shadow-light);
 border: 1px solid var(--border-color);
}
.testimonial-list .testimonial-card p {
 text-align: left;
}
.testimonial-list .testimonial-card .client-info {
 text-align: right;
}

.testimonial-avatar {
 width: 70px;
 height: 70px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 1rem;
 flex-shrink: 0;
 float: left; /* Aligns avatar with text flow */
 margin-bottom: 1rem;
 border: 2px solid var(--primary-color);
}

/* Legal pages */
.legal-content h1 {
 font-size: 2.5rem;
 color: var(--primary-color);
 margin-bottom: 1.5rem;
 text-align: center;
}

.legal-content h2 {
 font-size: 1.8rem;
 color: var(--tertiary-color);
 margin-top: 2rem;
 margin-bottom: 1rem;
 border-bottom: 2px solid var(--border-color);
 padding-bottom: 0.5rem;
}

.legal-content h3 {
 font-size: 1.4rem;
 color: var(--text-color-dark);
 margin-top: 1.5rem;
 margin-bottom: 0.8rem;
}

.legal-content ul {
 list-style: disc;
 margin-left: 1.5rem;
 margin-bottom: 1rem;
}

.legal-content ol {
 list-style: decimal;
 margin-left: 1.5rem;
 margin-bottom: 1rem;
}

.legal-content li {
 margin-bottom: 0.5rem;
}
.legal-content a {
 color: var(--tertiary-color);
 text-decoration: underline;
}

/* Thank You page */
.thank-you-content {
 text-align: center;
 padding: var(--section-gap) 0;
}

.thank-you-content h1 {
 color: var(--primary-color);
 font-size: 3rem;
 margin-bottom: 1.5rem;
}

.thank-you-content p {
 font-size: 1.2rem;
 max-width: 700px;
 margin: 0 auto 2.5rem;
 color: var(--text-color-dark);
}

/* 404 page */
.error-404 {
 text-align: center;
 padding: var(--section-gap) 0;
}

.error-404 img {
 max-width: 400px;
 margin: 0 auto 2rem;
 animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
 0%, 100% { transform: translateY(0); }
 50% { transform: translateY(-15px); }
}

.error-404 h1 {
 font-size: 4rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.error-404 p {
 font-size: 1.3rem;
 margin-bottom: 2rem;
 color: var(--text-color-dark);
}

/* Media Queries */
@media (max-width: 1024px) {
 .nav-links li a {
 padding: 0.5rem 0.8rem;
 }
 h1 { font-size: 2.5rem; }
 h2 { font-size: 2rem; }
 h3 { font-size: 1.6rem; }
 .section-title { font-size: 2.2rem; }
 .hero-section .hero-content {
 flex-direction: column;
 text-align: center;
 }
 .hero-section .hero-text {
 order: 2; /* Text below image on smaller screens */
 }
 .hero-section .hero-image {
 order: 1;
 margin-bottom: 2rem;
 }
 .grid-2-columns, .grid-3-columns {
 grid-template-columns: 1fr;
 }
 .welcome-section .grid-2-columns {
 grid-template-columns: 1fr;
 gap: 2rem;
 }
 .welcome-text {
 text-align: center;
 }
 .welcome-image {
 margin: 0 auto;
 }
 .service-detail-card {
 flex-direction: column; /* Always column */
 }
 .service-detail-card:nth-child(even) {
 flex-direction: column; /* Ensure all stack for consistency */
 }
 .contact-grid {
 grid-template-columns: 1fr;
 }
 .process-step {
 flex-basis: 100%;
 }
}

@media (max-width: 768px) {
 .main-header {
 padding: var(--padding-sm);
 }
 .nav-toggle {
 display: flex;
 z-index: 1001; /* Above mobile menu */
 }

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

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

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

 .nav-links {
 position: fixed;
 right: -100%; /* Hidden off-screen */
 top: 0;
 height: 100%;
 width: 70%;
 background-color: var(--background-light);
 flex-direction: column;
 align-items: center;
 padding-top: 80px; /* Space for logo/toggle */
 box-shadow: -8px 0 16px rgba(0,0,0,0.2);
 transition: right 0.4s ease-out;
 z-index: 999;
 box-shadow: 5px 0 10px var(--shadow-dark), inset 5px 5px 10px var(--shadow-dark); /* Neomorphic slide-in */
 }

 .nav-links.active {
 right: 0;
 }

 .nav-links li {
 width: 100%;
 text-align: center;
 margin-bottom: 1rem;
 }
 .nav-links li a {
 display: block;
 width: calc(100% - 2rem);
 margin: 0 auto;
 padding: 0.8rem 1rem;
 background-color: var(--background-dark); /* Neomorphic panel for links */
 box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
 }
 .nav-links li a:hover, .nav-links li a.active {
 background-color: var(--primary-color);
 color: var(--white);
 box-shadow: inset 3px 3px 6px rgba(0,0,0,0.2), inset -3px -3px 6px rgba(255,255,255,0.7);
 }

 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 .section-title { font-size: 2rem; }
 .hero-section h1 {
 font-size: 2.8rem;
 }
 .hero-section p {
 font-size: 1.1rem;
 }
 .hero-buttons {
 display: flex;
 flex-direction: column;
 gap: 1rem;
 }
 .hero-buttons .btn {
 margin-right: 0;
 }

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

 .footer-col h3 {
 margin-top: 1.5rem;
 }
 .footer-col.about-mfgdrone .social-icons {
 justify-content: center;
 }
 .legal-content h1 {
 font-size: 2rem;
 }
 .legal-content h2 {
 font-size: 1.6rem;
 }
}

@media (max-width: 480px) {
 h1 { font-size: 1.8rem; }
 h2 { font-size: 1.6rem; }
 h3 { font-size: 1.4rem; }
 .section-title { font-size: 1.8rem; }
 .hero-section h1 {
 font-size: 2.2rem;
 }
 .hero-section .hero-image img {
 height: 250px;
 }
 .btn {
 padding: 0.7rem 1.2rem;
 font-size: 0.9rem;
 }
 .btn-lg {
 padding: 0.9rem 1.8rem;
 font-size: 1rem;
 }
 .hero-section .hero-content {
 padding: var(--padding-md);
 }
 .footer-col p, .footer-col li, .footer-bottom p {
 font-size: 0.9rem;
 }
 .testimonial-card p {
 font-size: 1rem;
 }
 .accordion-header {
 font-size: 1rem;
 padding: var(--padding-sm);
 }
 .legal-content h1 {
 font-size: 1.7rem;
 }
 .legal-content h2 {
 font-size: 1.4rem;
 }
}

.page-header {
 background-color: var(--background-dark);
 padding: 3rem 0;
 margin-bottom: var(--section-gap);
 box-shadow: inset 0 5px 10px rgba(0,0,0,0.1);
 text-align: center;
}
.page-header h1 {
 color: var(--primary-color);
 font-size: 3rem;
 margin-bottom: 0.5rem;
}
.page-header p {
 font-size: 1.1rem;
 max-width: 700px;
 margin: 0 auto;
 color: var(--text-color-dark);
}
@media (max-width: 768px) {
 .page-header h1 {
 font-size: 2.5rem;
 }
}
@media (max-width: 480px) {
 .page-header {
 padding: 2rem 0;
 }
 .page-header h1 {
 font-size: 2rem;
 }
 .page-header p {
 font-size: 1rem;
 }
}