:root {
 --primary-color: #007bff; /* Bright Blue */
 --secondary-color: #6c757d; /* Muted Grey */
 --accent-color: #17a2b8; /* Cyan */
 --text-color: #333;
 --light-text-color: #f8f9fa;
 --background-color: #f4f7f6; /* Light Greyish Blue */
 --card-background-color: rgba(255, 255, 255, 0.4); /* Glassmorphism light */
 --card-border-color: rgba(255, 255, 255, 0.6);
 --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
 --hover-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
 --glass-backdrop-filter: blur(10px) saturate(180%);
 --gradient-1: linear-gradient(135deg, #a8dadc, #457b9d); /* Light to Medium Blue Gradient */
 --gradient-2: linear-gradient(135deg, #e63946, #f1faee); /* Red to Light Cream Gradient */
 --gradient-3: linear-gradient(135deg, #8d99ae, #2b2d42); /* Grey to Dark Blue Gradient */
 --header-height: 70px;
 --border-radius-sm: 8px;
 --border-radius-md: 12px;
 --transition-speed: 0.3s ease;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
 line-height: 1.6;
 color: var(--text-color);
 background-color: var(--background-color);
 background-image: var(--gradient-1); /* Base gradient for the background */
 background-attachment: fixed;
 min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
 color: var(--text-color);
 margin-bottom: 0.8em;
 line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
 margin-bottom: 1em;
}

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

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

ul {
 list-style: none;
}

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

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

.mt-4 {
 margin-top: 40px;
}

/* Glassmorphism Effect */
.glass-card {
 background-color: var(--card-background-color);
 border: 1px solid var(--card-border-color);
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
 backdrop-filter: var(--glass-backdrop-filter);
 -webkit-backdrop-filter: var(--glass-backdrop-filter);
 padding: 20px;
 transition: all var(--transition-speed);
}

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

/* Buttons */
.button {
 display: inline-block;
 padding: 12px 25px;
 border-radius: 50px;
 text-transform: uppercase;
 font-weight: bold;
 font-size: 0.9em;
 cursor: pointer;
 text-align: center;
 transition: all var(--transition-speed);
 text-decoration: none;
 position: relative;
 overflow: hidden;
 z-index: 1;
}

.button:before {
 content: '';
 position: absolute;
 top: 0;
 left: -100%;
 width: 100%;
 height: 100%;
 background: rgba(255, 255, 255, 0.2);
 transition: all var(--transition-speed);
 z-index: -1;
}

.button:hover:before {
 left: 0;
}

.primary-button {
 background-color: var(--primary-color);
 color: var(--light-text-color);
 border: 1px solid var(--primary-color);
}

.primary-button:hover {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
 color: var(--light-text-color);
 text-decoration: none;
}

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

.secondary-button:hover {
 background-color: var(--primary-color);
 color: var(--light-text-color);
 border-color: var(--primary-color);
 text-decoration: none;
}

/* Header */
.header {
 width: 100%;
 position: sticky;
 top: 0;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.6); /* Frosted glass */
 backdrop-filter: var(--glass-backdrop-filter);
 border-bottom: 1px solid rgba(255, 255, 255, 0.7);
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
 transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header.scrolled {
 background-color: rgba(255, 255, 255, 0.8);
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 15px 20px;
 max-width: 1200px;
 margin: 0 auto;
}

.logo {
 font-size: 1.8em;
 font-weight: bold;
 color: var(--primary-color);
 text-decoration: none;
 letter-spacing: -0.5px;
}

.logo:hover {
 color: var(--accent-color);
 text-decoration: none;
}

.nav-links {
 display: flex;
 gap: 25px;
}

.nav-links li a {
 color: var(--text-color);
 font-weight: 500;
 padding: 8px 15px;
 position: relative;
 transition: all var(--transition-speed);
 border-radius: 20px; /* Glass pill shapes */
 background-color: rgba(255, 255, 255, 0); /* Transparent by default */
}

.nav-links li a:hover,
.nav-links li a.active {
 color: var(--primary-color);
 background-color: rgba(255, 255, 255, 0.7); /* Light glass effect on hover/active */
 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* Subtle shadow for pill */
 text-decoration: none;
}

.nav-button-desktop {
 display: none; /* Hidden on mobile */
}

.nav-button-mobile {
 display: block; /* Shown on mobile */
 margin-top: 20px;
 text-align: center;
}

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

.nav-toggle span {
 width: 100%;
 height: 3px;
 background: var(--primary-color);
 border-radius: 5px;
 transition: all 0.3s linear;
 transform-origin: 1px;
}

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

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

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

/* Hero Section */
.hero-section {
 position: relative;
 display: flex;
 justify-content: center;
 align-items: center;
 min-height: calc(100vh - var(--header-height));
 padding: 80px 20px;
 color: var(--text-color);
 overflow: hidden;
}

.hero-section::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-image: var(--gradient-2); /* A different gradient for hero background */
 opacity: 0.8;
 z-index: -1;
}

.hero-content {
 max-width: 800px;
 text-align: center;
 padding: 40px;
 border-radius: 20px;
 background-color: rgba(255, 255, 255, 0.5); /* Lighter glass for hero content */
 border: 1px solid rgba(255, 255, 255, 0.7);
 box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-content h1 {
 font-size: 3.5em;
 margin-bottom: 20px;
 color: #2b2d42;
}

.hero-subtitle {
 font-size: 1.3em;
 margin-bottom: 30px;
 color: #495057;
}

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

/* Sections */
.sections {
 padding: 50px 0;
}

.content-section {
 display: flex;
 align-items: center;
 gap: 40px;
 margin-bottom: 60px;
 padding: 40px;
}

.content-text {
 flex: 1;
}

.content-text h2 {
 font-size: 2.5em;
 margin-bottom: 20px;
}

.content-text p {
 font-size: 1.1em;
 margin-bottom: 15px;
}

.content-text ul {
 list-style: disc;
 padding-left: 20px;
 margin-bottom: 20px;
}

.content-text ul li {
 margin-bottom: 8px;
}

.content-image {
 flex: 1;
 text-align: center;
}

.content-image img {
 max-width: 100%;
 height: auto;
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
}

.colored-bg {
 background-image: var(--gradient-3); /* Another gradient for specific sections */
 color: var(--light-text-color);
 padding: 60px 0;
 margin: 60px 0;
}

.colored-bg h2, .colored-bg h3 {
 color: var(--light-text-color);
}

/* Grid Layouts */
.grid-layout {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 margin-top: 40px;
}

/* Feature Cards */
.feature-card {
 text-align: center;
 padding: 30px;
}

.feature-card h3 {
 color: var(--primary-color);
 font-size: 1.5em;
 margin-bottom: 10px;
}

/* Service Cards */
.services-preview-section .service-card {
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 align-items: flex-start;
}

.services-preview-section .service-card h3 {
 color: var(--primary-color);
 margin-bottom: 10px;
}

.services-preview-section .service-card p {
 flex-grow: 1;
 margin-bottom: 15px;
}

/* Testimonial Cards */
.testimonials-grid .testimonial-card {
 padding: 30px;
 text-align: center;
 background-color: rgba(255, 255, 255, 0.2); /* More transparent glass for reviews */
 color: var(--light-text-color);
 border-color: rgba(255, 255, 255, 0.4);
}

.testimonials-grid .testimonial-card .quote {
 font-style: italic;
 font-size: 1.1em;
 margin-bottom: 15px;
 color: var(--light-text-color);
}

.testimonials-grid .testimonial-card .author {
 font-weight: bold;
 color: var(--light-text-color);
}

/* Blog Cards */
.blog-post-card {
 padding: 20px;
 text-align: left;
 display: flex;
 flex-direction: column;
}

.blog-post-card img {
 max-width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--border-radius-sm);
 margin-bottom: 15px;
}

.blog-post-card h3 {
 font-size: 1.4em;
 margin-bottom: 10px;
}

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

.blog-post-card h3 a:hover {
 color: var(--accent-color);
 text-decoration: underline;
}

.blog-post-card .read-more {
 margin-top: auto; /* Pushes to bottom */
 display: inline-block;
 color: var(--accent-color);
 font-weight: 500;
}

/* FAQ Accordion */
.faq-accordion {
 margin-top: 40px;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

.faq-item {
 margin-bottom: 15px;
 overflow: hidden;
 background-color: rgba(255, 255, 255, 0.3); /* Slightly more transparent */
 border-color: rgba(255, 255, 255, 0.5);
 color: var(--light-text-color);
}

.faq-item .faq-question {
 width: 100%;
 background-color: transparent;
 color: var(--light-text-color);
 border: none;
 padding: 15px 20px;
 text-align: left;
 font-size: 1.1em;
 font-weight: bold;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 transition: background-color var(--transition-speed);
}

.faq-item .faq-question:hover {
 background-color: rgba(255, 255, 255, 0.1);
}

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

.faq-item.active .faq-question::after {
 content: '-';
 transform: rotate(0deg); /* No rotation needed if using + / - directly */
}

.faq-answer {
 max-height: 0;
 overflow: hidden;
 padding: 0 20px;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
 color: var(--light-text-color);
}

.faq-item.active .faq-answer {
 max-height: 200px; /* Adjust based on expected content height */
 padding: 15px 20px;
}

/* CTA Section (Bottom) */
.cta-section {
 padding: 80px 20px;
 text-align: center;
 background-image: var(--gradient-1); /* Use base gradient or choose another */
 color: var(--light-text-color);
 margin: 60px 0;
}

.cta-section .glass-card {
 max-width: 800px;
 margin: 0 auto;
 padding: 50px;
 background-color: rgba(255, 255, 255, 0.3); /* Transparent glass */
 border-color: rgba(255, 255, 255, 0.5);
}

.cta-section h2 {
 font-size: 2.8em;
 margin-bottom: 20px;
 color: var(--light-text-color);
}

.cta-section p {
 font-size: 1.2em;
 margin-bottom: 40px;
 color: var(--light-text-color);
}

.cta-section .primary-button {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
}
.cta-section .primary-button:hover {
 background-color: var(--primary-color);
 border-color: var(--primary-color);
}

/* Footer */
.footer {
 background-color: rgba(43, 45, 66, 0.8); /* Darker semi-transparent for footer */
 backdrop-filter: var(--glass-backdrop-filter);
 border-top: 1px solid rgba(255, 255, 255, 0.2);
 color: rgba(255, 255, 255, 0.8);
 padding: 40px 0;
 font-size: 0.95em;
 position: relative;
}

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

.footer-col h3 {
 color: var(--light-text-color);
 margin-bottom: 20px;
 font-size: 1.2em;
}

.footer-col ul {
 padding: 0;
}

.footer-col ul li {
 margin-bottom: 10px;
}

.footer-col ul li a {
 color: rgba(255, 255, 255, 0.7);
 text-decoration: none;
 transition: color var(--transition-speed);
}

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

.footer-col.brand-info p {
 font-size: 0.9em;
 line-height: 1.5;
 color: rgba(255, 255, 255, 0.6);
}

.footer-logo {
 font-size: 1.5em;
 font-weight: bold;
 color: var(--light-text-color);
 margin-bottom: 15px;
 display: block;
}

.footer-logo:hover {
 color: var(--primary-color);
}

.footer .contact-info p,
.footer .contact-info address {
 margin-bottom: 10px;
 color: rgba(255, 255, 255, 0.7);
}

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

.footer .contact-info a:hover {
 color: var(--primary-color);
}

.footer .disclaimer {
 font-size: 0.8em;
 opacity: 0.7;
 margin-top: 20px;
 line-height: 1.4;
}

/* Blog Page Specific Styles */
.blog-intro {
 padding: 60px 20px;
 text-align: center;
 background-image: var(--gradient-1);
 color: var(--light-text-color);
 margin-bottom: 60px;
}

.blog-intro h1 {
 font-size: 3em;
 color: var(--light-text-color);
 margin-bottom: 15px;
}

.blog-intro p {
 font-size: 1.2em;
 max-width: 800px;
 margin: 0 auto;
 color: rgba(255, 255, 255, 0.9);
}

.blog-grid-full {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
 padding-bottom: 60px;
}

.blog-grid-full .blog-post-card img {
 height: 220px;
}

/* Single Blog Post Styles */
.blog-post-hero {
 padding: 40px 20px;
 text-align: center;
 background-image: var(--gradient-2);
 color: var(--light-text-color);
 margin-bottom: 40px;
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
}

.blog-post-hero h1 {
 font-size: 3em;
 color: var(--light-text-color);
 margin-bottom: 20px;
}

.blog-post-meta {
 font-size: 0.9em;
 opacity: 0.8;
 color: var(--light-text-color);
}

.blog-content {
 background-color: var(--card-background-color);
 border: 1px solid var(--card-border-color);
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
 backdrop-filter: var(--glass-backdrop-filter);
 -webkit-backdrop-filter: var(--glass-backdrop-filter);
 padding: 40px;
 line-height: 1.8;
 font-size: 1.1em;
}

.blog-content h2, .blog-content h3 {
 color: var(--primary-color);
 margin-top: 1.5em;
 margin-bottom: 0.5em;
}

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

.blog-content ul {
 list-style: disc;
 padding-left: 25px;
 margin-bottom: 1em;
}

.blog-content ol {
 list-style: decimal;
 padding-left: 25px;
 margin-bottom: 1em;
}

.blog-content blockquote {
 border-left: 4px solid var(--accent-color);
 padding-left: 20px;
 margin: 20px 0;
 font-style: italic;
 color: #555;
}

.blog-author-info {
 display: flex;
 align-items: center;
 gap: 15px;
 margin-top: 40px;
 padding: 20px;
 border-top: 1px solid var(--card-border-color);
 background-color: var(--card-background-color);
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
}

.blog-author-info img {
 border-radius: 50%;
 width: 80px;
 height: 80px;
 object-fit: cover;
 border: 2px solid var(--primary-color);
}

.blog-author-info .author-details h4 {
 margin-bottom: 5px;
 color: var(--primary-color);
}

.blog-author-info .author-details p {
 font-size: 0.9em;
 color: #666;
 margin: 0;
}

/* Gallery Section */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 20px;
 padding-bottom: 60px;
}

.gallery-grid .gallery-item {
 position: relative;
 overflow: hidden;
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
 transition: transform var(--transition-speed);
}

.gallery-grid .gallery-item:hover {
 transform: scale(1.03);
 box-shadow: var(--hover-shadow);
}

.gallery-grid .gallery-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 display: block;
}

.gallery-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 123, 255, 0.4); /* Primary color overlay */
 backdrop-filter: blur(3px); /* Subtle blur for glass effect on hover */
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity var(--transition-speed);
}

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

.gallery-overlay span {
 color: var(--light-text-color);
 font-size: 1.5em;
 font-weight: bold;
 text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Lightbox (basic styling, assumes JS will handle logic) */
.lightbox {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.8);
 display: flex;
 justify-content: center;
 align-items: center;
 z-index: 2000;
 opacity: 0;
 visibility: hidden;
 transition: opacity var(--transition-speed), visibility var(--transition-speed);
}

.lightbox.active {
 opacity: 1;
 visibility: visible;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 border-radius: var(--border-radius-md);
 box-shadow: var(--hover-shadow);
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 font-size: 3em;
 color: var(--light-text-color);
 cursor: pointer;
 background: none;
 border: none;
 padding: 0;
 line-height: 1;
}

/* Contact Page */
.contact-section {
 padding: 60px 0;
}

.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 30px;
}

.contact-form .glass-card {
 padding: 30px;
}

.contact-form h2 {
 color: var(--primary-color);
 margin-bottom: 25px;
}

.form-group {
 margin-bottom: 20px;
}

.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 500;
 color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--card-border-color);
 border-radius: var(--border-radius-sm);
 background-color: rgba(255, 255, 255, 0.7);
 backdrop-filter: blur(5px);
 -webkit-backdrop-filter: blur(5px);
 color: var(--text-color);
 font-size: 1em;
 transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
 outline: none;
}

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

.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
 transform: scale(1.2);
}

.contact-details .glass-card {
 padding: 30px;
}

.contact-details h2 {
 color: var(--primary-color);
 margin-bottom: 25px;
}

.contact-details p {
 margin-bottom: 15px;
 line-height: 1.8;
}

.contact-details .icon-text {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-bottom: 15px;
}

.contact-details .icon-text strong {
 min-width: 80px;
 font-weight: 600;
}

.map-container {
 margin-top: 40px;
 height: 450px;
 border-radius: var(--border-radius-md);
 overflow: hidden;
 box-shadow: var(--card-shadow);
 border: 1px solid var(--card-border-color);
}

.map-container iframe {
 width: 100%;
 height: 100%;
 border: none;
}

/* About Page */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 padding-bottom: 60px;
}

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

.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 15px;
 border: 3px solid var(--primary-color);
 box-shadow: var(--card-shadow);
}

.team-member-card h3 {
 color: var(--primary-color);
 margin-bottom: 5px;
}

.team-member-card p {
 color: #666;
 font-size: 0.95em;
}

/* 404 Page */
.error-page {
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 min-height: calc(100vh - var(--header-height) - 100px); /* Adjust for header/footer */
 text-align: center;
 padding: 40px 20px;
}

.error-page h1 {
 font-size: 6em;
 color: var(--primary-color);
 margin-bottom: 10px;
 text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.error-page h2 {
 font-size: 2.5em;
 margin-bottom: 20px;
 color: var(--text-color);
}

.error-page p {
 font-size: 1.2em;
 margin-bottom: 30px;
 max-width: 600px;
 color: #555;
}

/* Thank You Page */
.thank-you-section {
 padding: 80px 20px;
 text-align: center;
 background-image: var(--gradient-1);
 color: var(--light-text-color);
 min-height: calc(100vh - var(--header-height) - 100px);
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.thank-you-section .glass-card {
 max-width: 700px;
 margin: 0 auto;
 padding: 50px;
 background-color: rgba(255, 255, 255, 0.3);
 border-color: rgba(255, 255, 255, 0.5);
 color: var(--light-text-color);
}

.thank-you-section h1 {
 font-size: 3.5em;
 color: var(--light-text-color);
 margin-bottom: 20px;
}

.thank-you-section p {
 font-size: 1.2em;
 margin-bottom: 30px;
 color: rgba(255, 255, 255, 0.9);
}

.thank-you-section .primary-button {
 background-color: var(--accent-color);
 border-color: var(--accent-color);
}
.thank-you-section .primary-button:hover {
 background-color: var(--primary-color);
 border-color: var(--primary-color);
}

/* Privacy/Terms/Legal pages */
.legal-page {
 padding: 60px 0;
}

.legal-content {
 background-color: var(--card-background-color);
 border: 1px solid var(--card-border-color);
 border-radius: var(--border-radius-md);
 box-shadow: var(--card-shadow);
 backdrop-filter: var(--glass-backdrop-filter);
 -webkit-backdrop-filter: var(--glass-backdrop-filter);
 padding: 40px;
 line-height: 1.7;
 font-size: 1.05em;
}

.legal-content h1 {
 font-size: 2.8em;
 color: var(--primary-color);
 margin-bottom: 25px;
}

.legal-content h2 {
 font-size: 2em;
 color: var(--primary-color);
 margin-top: 1.5em;
 margin-bottom: 1em;
}

.legal-content h3 {
 font-size: 1.5em;
 color: var(--primary-color);
 margin-top: 1em;
 margin-bottom: 0.8em;
}

.legal-content p, .legal-content ul, .legal-content ol {
 margin-bottom: 1em;
}

.legal-content ul, .legal-content ol {
 padding-left: 25px;
}

.legal-content strong {
 font-weight: bold;
}

/* Animations */
.fade-in-up {
 opacity: 0;
 transform: translateY(20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-right {
 opacity: 0;
 transform: translateX(20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-left {
 opacity: 0;
 transform: translateX(-20px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
 opacity: 0;
 transition: opacity 0.6s ease-out;
}

.scroll-animated.visible {
 opacity: 1;
 transform: translateY(0) translateX(0);
}

/* Animation delays for cards */
.animation-delay-1 { transition-delay: 0.1s; }
.animation-delay-2 { transition-delay: 0.2s; }
.animation-delay-3 { transition-delay: 0.3s; }
.animation-delay-4 { transition-delay: 0.4s; }
.animation-delay-5 { transition-delay: 0.5s; }
.animation-delay-6 { transition-delay: 0.6s; }

/* Media Queries */
/* Mobile (320px - 767px) */
@media (max-width: 767px) {
 .navbar {
 flex-wrap: wrap;
 padding: 10px 15px;
 }

 .nav-toggle {
 display: flex;
 }

 .nav-links {
 display: none;
 flex-direction: column;
 width: 100%;
 background-color: rgba(255, 255, 255, 0.9); /* Glass panel menu */
 backdrop-filter: var(--glass-backdrop-filter);
 position: absolute;
 top: var(--header-height);
 left: 0;
 padding: 20px 0;
 border-top: 1px solid rgba(255, 255, 255, 0.7);
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
 }

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

 .nav-links li {
 text-align: center;
 margin: 10px 0;
 }

 .nav-links li a {
 padding: 10px 0;
 display: block;
 border-radius: 0; /* No pill shape in mobile menu */
 background-color: transparent;
 }

 .nav-links li a:hover,
 .nav-links li a.active {
 background-color: rgba(0, 123, 255, 0.1);
 color: var(--primary-color);
 }

 .nav-button-desktop {
 display: none;
 }

 .nav-button-mobile {
 display: block;
 margin-top: 20px;
 padding-top: 15px;
 border-top: 1px solid rgba(0, 123, 255, 0.2);
 }
 .nav-button-mobile .button {
 width: calc(100% - 40px); /* Adjust for padding */
 margin: 0 20px;
 }

 h1 { font-size: 2.2em; }
 h2 { font-size: 1.8em; }
 h3 { font-size: 1.4em; }

 .hero-section {
 padding: 60px 15px 40px;
 min-height: auto;
 }
 .hero-content {
 padding: 30px 20px;
 }
 .hero-content h1 {
 font-size: 2.5em;
 }
 .hero-subtitle {
 font-size: 1em;
 }
 .hero-actions {
 flex-direction: column;
 gap: 15px;
 }
 .hero-actions .button {
 width: 100%;
 }

 .content-section {
 flex-direction: column;
 padding: 30px;
 margin-bottom: 40px;
 }
 .content-image {
 margin-top: 30px;
 }

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

 .testimonial-card,
 .blog-post-card {
 padding: 20px;
 }

 .faq-accordion {
 max-width: 100%;
 }
 .faq-item .faq-question {
 font-size: 1em;
 }
 .faq-item.active .faq-answer {
 max-height: 300px; /* More height for mobile answers */
 }

 .cta-section {
 padding: 50px 15px;
 }
 .cta-section .glass-card {
 padding: 40px 20px;
 }
 .cta-section h2 {
 font-size: 2em;
 }
 .cta-section p {
 font-size: 1em;
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }
 .footer-col {
 margin-bottom: 20px;
 }
 .footer-col h3 {
 margin-bottom: 10px;
 }
 .footer-col ul {
 padding: 0;
 }
 .footer-col ul li {
 margin-bottom: 5px;
 }
 .footer-logo {
 text-align: center;
 margin-bottom: 10px;
 }
 .footer .disclaimer {
 text-align: center;
 }

 .blog-intro h1 {
 font-size: 2.5em;
 }
 .blog-intro p {
 font-size: 1em;
 }
 .blog-content {
 padding: 25px;
 font-size: 1em;
 }
 .blog-author-info {
 flex-direction: column;
 text-align: center;
 }
 .blog-author-info img {
 margin-bottom: 10px;
 }

 .contact-grid {
 grid-template-columns: 1fr;
 }
 .contact-form, .contact-details {
 padding: 20px;
 }
 .map-container {
 height: 300px;
 margin-top: 30px;
 }
 .contact-details .icon-text {
 justify-content: center;
 flex-wrap: wrap;
 text-align: center;
 }

 .legal-content {
 padding: 25px;
 font-size: 0.95em;
 }
 .legal-content h1 {
 font-size: 2.2em;
 }
 .legal-content h2 {
 font-size: 1.8em;
 }
 .legal-content h3 {
 font-size: 1.3em;
 }

 .error-page h1 {
 font-size: 4em;
 }
 .error-page h2 {
 font-size: 2em;
 }
 .error-page p {
 font-size: 1em;
 }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
 .nav-links {
 gap: 20px;
 }
 .nav-links li a {
 padding: 6px 12px;
 font-size: 0.95em;
 }
 .hero-content h1 {
 font-size: 3em;
 }
 .hero-subtitle {
 font-size: 1.1em;
 }
 .hero-actions {
 gap: 15px;
 }

 .content-section {
 padding: 40px;
 gap: 30px;
 }
 .content-text h2 {
 font-size: 2em;
 }

 .grid-layout {
 grid-template-columns: repeat(2, 1fr);
 }
 .testimonials-grid {
 grid-template-columns: repeat(2, 1fr);
 }
 .blog-grid, .blog-grid-full, .gallery-grid, .team-grid {
 grid-template-columns: repeat(2, 1fr);
 }

 .cta-section .glass-card {
 padding: 40px;
 }
 .cta-section h2 {
 font-size: 2.5em;
 }

 .footer-grid {
 grid-template-columns: repeat(2, 1fr);
 }
 .footer-col.brand-info {
 grid-column: span 2;
 text-align: center;
 }
 .footer-logo {
 text-align: center;
 }

 .contact-grid {
 grid-template-columns: 1fr;
 }
 .map-container {
 margin-top: 30px;
 }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
 .nav-toggle {
 display: none;
 }
 .nav-links {
 display: flex !important; /* Override mobile menu display */
 }
 .nav-button-mobile {
 display: none;
 }
 .nav-button-desktop {
 display: block;
 margin-left: 25px; /* Spacing for the desktop button */
 }

 .hero-content {
 padding: 60px;
 }
 .hero-content h1 {
 font-size: 3.8em;
 }

 .content-section:nth-child(even) {
 flex-direction: row-reverse; /* Reverse direction for alternating sections */
 }

 .grid-layout {
 grid-template-columns: repeat(3, 1fr);
 }
 .testimonials-grid {
 grid-template-columns: repeat(3, 1fr);
 }
 .blog-grid, .blog-grid-full, .gallery-grid, .team-grid {
 grid-template-columns: repeat(3, 1fr);
 }

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

 .footer-grid {
 grid-template-columns: repeat(4, 1fr);
 }
 .footer-col.brand-info {
 text-align: left;
 }
 .footer-logo {
 text-align: left;
 }
}

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

.scroll-animated.visible {
 opacity: 1;
 transform: translateY(0);
}

.scroll-animated.fade-in.visible {
 animation: fadeIn 0.8s forwards;
}

.scroll-animated.fade-in-up.visible {
 animation: fadeInUp 0.8s forwards;
}

.scroll-animated.fade-in-right.visible {
 animation: fadeInRight 0.8s forwards;
}

.scroll-animated.fade-in-left.visible {
 animation: fadeInLeft 0.8s forwards;
}

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

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

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

@keyframes fadeInLeft {
 from { opacity: 0; transform: translateX(-20px); }
 to { opacity: 1; transform: translateX(0); }
}

/* Specific delays for grid items */
.grid-layout > .scroll-animated:nth-child(1).visible { animation-delay: 0.1s; }
.grid-layout > .scroll-animated:nth-child(2).visible { animation-delay: 0.2s; }
.grid-layout > .scroll-animated:nth-child(3).visible { animation-delay: 0.3s; }
.grid-layout > .scroll-animated:nth-child(4).visible { animation-delay: 0.4s; }
.grid-layout > .scroll-animated:nth-child(5).visible { animation-delay: 0.5s; }
.grid-layout > .scroll-animated:nth-child(6).visible { animation-delay: 0.6s; }
/* ... and so on for more children if needed */