:root {
 /* Colors */
 --clr-primary-400: #7a82ed; /* A vibrant yet soft purple/blue */
 --clr-primary-500: #5763e0; /* Darker primary for active states */
 --clr-accent-400: #50b0e6; /* A bright, calming blue */
 --clr-accent-500: #3c91c3; /* Darker accent for contrast */
 --clr-text-dark: #2c3e50; /* Dark gray for main text */
 --clr-text-light: #ecf0f1; /* Light gray for inverse text */
 --clr-bg-light: #fdfefe; /* Off-white for general backgrounds */
 --clr-bg-dark: #2c3e50; /* Dark background for footer */
 --clr-gray-100: #ecf0f1;
 --clr-gray-200: #bdc3c7;
 --clr-gray-300: #95a5a6;
 --clr-white: #ffffff;
 --clr-black: #000000;

 /* Gradients */
 --grad-hero: linear-gradient(135deg, #7a82ed 0%, #a4508b 100%); /* Purple to Pink */
 --grad-button: linear-gradient(45deg, var(--clr-primary-400), var(--clr-accent-400));
 --grad-glass-border: linear-gradient(to right, var(--clr-primary-400), var(--clr-accent-400));
 --grad-footer-line: linear-gradient(90deg, #5763e0, #a4508b);

 /* Typography */
 --ff-primary: 'Arial', sans-serif; /* Fallback to Arial */
 --ff-secondary: 'Verdana', sans-serif; /* Another common fallback */

 --fw-regular: 400;
 --fw-medium: 500;
 --fw-bold: 700;

 --fs-h1: 2.8rem;
 --fs-h2: 2.2rem;
 --fs-h3: 1.8rem;
 --fs-h4: 1.4rem;
 --fs-body: 1rem;
 --fs-small: 0.875rem;

 /* Spacing */
 --space-xs: 0.5rem;
 --space-sm: 1rem;
 --space-md: 1.5rem;
 --space-lg: 2rem;
 --space-xl: 3rem;
 --space-xxl: 4rem;

 /* Border Radius */
 --br-sm: 0.25rem;
 --br-md: 0.5rem;
 --br-lg: 1rem;
 --br-round: 50%;

 /* Shadows */
 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
 --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
 --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.16);
 --shadow-card: 0 6px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.03);
 --shadow-text: 0 1px 2px rgba(0,0,0,0.1);

 /* Glassmorphism */
 --glass-background: rgba(255, 255, 255, 0.15); /* Light glass */
 --glass-border: 1px solid rgba(255, 255, 255, 0.2);
 --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
 --glass-backdrop-filter: blur(8px);
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px; /* Base for rem units */
}

body {
 font-family: var(--ff-primary);
 line-height: 1.6;
 color: var(--clr-text-dark);
 background-color: var(--clr-bg-light);
 -webkit-font-smoothing: antialiased;
 scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--ff-secondary);
 color: var(--clr-text-dark);
 line-height: 1.2;
 margin-bottom: var(--space-sm);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
 margin-bottom: var(--space-sm);
 font-size: var(--fs-body);
}

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

a:hover {
 color: var(--clr-primary-500);
}

ul {
 list-style: none;
}

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

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

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

.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Buttons */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 padding: var(--space-sm) var(--space-lg);
 border-radius: var(--br-md);
 font-size: var(--fs-body);
 font-weight: var(--fw-bold);
 cursor: pointer;
 text-align: center;
 border: none;
 transition: all 0.3s ease;
 box-shadow: var(--shadow-sm);
}

.btn-primary {
 background: var(--grad-button);
 color: var(--clr-white);
 position: relative;
 z-index: 1;
 overflow: hidden;
}

.btn-primary::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: var(--clr-primary-500);
 z-index: -1;
 transform: scaleX(0);
 transform-origin: left;
 transition: transform 0.3s ease;
}

.btn-primary:hover::before {
 transform: scaleX(1);
}

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

.btn-secondary:hover {
 background-color: var(--clr-primary-400);
 color: var(--clr-white);
 box-shadow: var(--shadow-md);
}

.btn-small {
 padding: var(--space-xs) var(--space-md);
 font-size: var(--fs-small);
}

.btn-lg {
 padding: var(--space-md) var(--space-xxl);
 font-size: var(--fs-h4);
}

.btn-cta {
 min-width: 180px;
}

/* Sections */
.section {
 padding: var(--space-xxl) 0;
 position: relative;
 overflow: hidden;
}

.section-title {
 font-size: var(--fs-h2);
 text-align: center;
 margin-bottom: var(--space-xl);
 position: relative;
}

.section-title::after {
 content: '';
 display: block;
 width: 60px;
 height: 4px;
 background: var(--grad-button);
 margin: var(--space-sm) auto 0;
 border-radius: var(--br-sm);
}

.anchor-link { /* For smooth scrolling */
 display: block;
 margin-top: -80px; /* Adjust for fixed header height */
 padding-top: 80px;
 visibility: hidden;
}

/* Glassmorphism Effect */
.glassmorphism-card {
 background: var(--glass-background);
 box-shadow: var(--glass-shadow);
 backdrop-filter: var(--glass-backdrop-filter);
 -webkit-backdrop-filter: var(--glass-backdrop-filter);
 border-radius: var(--br-lg);
 border: var(--glass-border);
 padding: var(--space-lg);
 box-shadow: var(--shadow-lg); /* Added for better visibility */
}

/* Header & Navigation */
.main-header {
 width: 100%;
 position: fixed;
 top: 0;
 left: 0;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.8);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
 background-color: var(--clr-bg-light);
 box-shadow: var(--shadow-md);
}

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

.logo {
 font-size: var(--fs-h3);
 font-weight: var(--fw-bold);
 color: var(--clr-text-dark);
 text-decoration: none;
 transition: color 0.3s ease;
 background: var(--grad-button);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 padding: 2px 0; /* To make gradient visible */
}

.nav-links {
 display: flex;
 gap: var(--space-lg);
 align-items: center;
}

.nav-links li a {
 color: var(--clr-text-dark);
 font-weight: var(--fw-medium);
 padding: var(--space-xs);
 position: relative;
}

.nav-links li a::after {
 content: '';
 position: absolute;
 left: 0;
 bottom: 0;
 width: 100%;
 height: 2px;
 background: var(--grad-button);
 transform: scaleX(0);
 transform-origin: right;
 transition: transform 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
 transform: scaleX(1);
 transform-origin: left;
}

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

.nav-toggle span {
 display: block;
 width: 100%;
 height: 3px;
 background-color: var(--clr-text-dark);
 border-radius: 2px;
 position: absolute;
 left: 0;
 transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10.5px; }
.nav-toggle span:nth-child(3) { bottom: 0; }

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

/* Hero Section */
.hero-section {
 background: var(--grad-hero);
 min-height: 80vh;
 display: flex;
 align-items: center;
 justify-content: center;
 padding-top: 120px; /* Offset for fixed header */
 padding-bottom: var(--space-xxl);
 position: relative;
 overflow: hidden;
 color: var(--clr-white);
 text-align: center;
}

.hero-section::before {
 content: '';
 position: absolute;
 top: -50px;
 left: -50px;
 width: 200px;
 height: 200px;
 background: rgba(255, 255, 255, 0.1);
 border-radius: var(--br-round);
 filter: blur(50px);
 animation: float1 15s infinite ease-in-out;
}

.hero-section::after {
 content: '';
 position: absolute;
 bottom: -50px;
 right: -50px;
 width: 250px;
 height: 250px;
 background: rgba(255, 255, 255, 0.08);
 border-radius: var(--br-round);
 filter: blur(60px);
 animation: float2 18s infinite ease-in-out;
}

@keyframes float1 {
 0%, 100% { transform: translate(0, 0) rotate(0deg); }
 50% { transform: translate(20px, 20px) rotate(3deg); }
}

@keyframes float2 {
 0%, 100% { transform: translate(0, 0) rotate(0deg); }
 50% { transform: translate(-20px, -20px) rotate(-3deg); }
}

.hero-content {
 max-width: 800px;
 margin: 0 auto;
 position: relative;
 z-index: 10;
 text-shadow: var(--shadow-text);
}

.hero-title {
 font-size: var(--fs-h1);
 color: var(--clr-white);
 margin-bottom: var(--space-md);
}

.hero-subtitle {
 font-size: var(--fs-h4);
 margin-bottom: var(--space-xl);
 opacity: 0.9;
}

.hero-actions {
 display: flex;
 gap: var(--space-md);
 justify-content: center;
 flex-wrap: wrap;
}

.hero-card {
 position: absolute;
 bottom: var(--space-lg);
 right: var(--space-lg);
 max-width: 280px;
 padding: var(--space-md);
 color: var(--clr-text-light); /* Text on glass cards in hero should be light */
 text-align: left;
 transform: translateY(20px);
 opacity: 0;
}

.hero-card .card-title {
 color: var(--clr-white);
 margin-bottom: var(--space-sm);
}

.hero-card ul {
 list-style: disc;
 margin-left: var(--space-md);
}

.hero-card li {
 font-size: var(--fs-small);
 margin-bottom: var(--space-xs);
 opacity: 0.8;
}

/* Trust Metrics Section */
.trust-metrics {
 background-color: var(--clr-gray-100);
}

.metrics-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: var(--space-lg);
}

.metric-card {
 text-align: center;
 padding: var(--space-lg);
 background: var(--clr-white);
 border-radius: var(--br-lg);
 box-shadow: var(--shadow-card);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-left: 5px solid var(--clr-primary-400); /* Simple accent */
}

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

.metric-card h3 {
 font-size: var(--fs-h2);
 color: var(--clr-primary-400);
 margin-bottom: var(--space-xs);
}

.metric-card p {
 font-size: var(--fs-body);
 color: var(--clr-text-dark);
 margin: 0;
}

/* Benefits Section */
.benefits-section {
 background-color: var(--clr-bg-light);
 position: relative;
 display: grid;
 place-items: center;
 padding-bottom: var(--space-xxl);
}

.benefits-section::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 100px;
 background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23ecf0f1'%3E%3C/path%3E%3C/svg%3E") no-repeat center/cover;
 transform: rotate(180deg);
 z-index: 1;
}

.benefits-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: var(--space-xl);
}

.benefit-card {
 background-color: var(--clr-white);
 border-radius: var(--br-lg);
 padding: var(--space-lg);
 box-shadow: var(--shadow-card);
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}

.benefit-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: var(--br-md);
 margin-bottom: var(--space-md);
}

.benefit-card h3 {
 color: var(--clr-primary-400);
 margin-bottom: var(--space-sm);
}

/* Services Preview */
.services-preview {
 background-color: var(--clr-gray-100);
 position: relative;
 padding-top: calc(var(--space-xxl) + 100px); /* Adjust for wave */
}

.services-preview::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100px;
 background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' class='shape-fill' fill='%23fdfefe'%3E%3C/path%3E%3C/svg%3E") no-repeat center/cover;
 z-index: 1;
}

.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--space-lg);
}

.service-card {
 background-color: var(--clr-white);
 border-radius: var(--br-lg);
 padding: var(--space-lg);
 box-shadow: var(--shadow-card);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 text-align: center;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

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

.service-card h3 {
 color: var(--clr-primary-500);
 margin-bottom: var(--space-sm);
 font-size: var(--fs-h3);
}

.service-card p {
 flex-grow: 1;
 margin-bottom: var(--space-md);
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
}

.service-card .read-more {
 font-size: var(--fs-small);
 color: var(--clr-accent-400);
 font-weight: var(--fw-medium);
 transition: color 0.3s ease;
}

.service-card .read-more:hover {
 color: var(--clr-accent-500);
}

/* About Preview */
.about-preview {
 background-color: var(--clr-white);
}

.about-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: var(--space-xl);
 align-items: center;
}

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

.about-content ul {
 list-style: none;
 margin-top: var(--space-md);
 margin-bottom: var(--space-lg);
}

.about-content ul li {
 margin-bottom: var(--space-sm);
 padding-left: var(--space-md);
 position: relative;
}

.about-content ul li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--clr-primary-400);
}

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

/* Testimonials Preview */
.testimonials-preview {
 background: var(--grad-hero);
 color: var(--clr-white);
 position: relative;
}

.testimonials-preview .section-title {
 color: var(--clr-white);
}

.testimonials-preview .section-title::after {
 background: var(--grad-button); /* Re-using primary gradient */
}

.testimonial-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: var(--space-lg);
}

.testimonial-card {
 padding: var(--space-lg);
 text-align: center;
 position: relative;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 color: var(--clr-text-dark); /* Glass card content */
}

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

.testimonial-card::before {
 content: '';
 position: absolute;
 top: -10px;
 left: 20px;
 font-size: 4rem;
 color: rgba(255, 255, 255, 0.3);
 z-index: 0;
}

.testimonial-card .testimonial-text {
 font-size: var(--fs-h4);
 font-style: italic;
 margin-bottom: var(--space-md);
 position: relative;
 z-index: 1;
}

.testimonial-card .testimonial-author {
 font-weight: var(--fw-bold);
 color: var(--clr-primary-500);
 font-size: var(--fs-body);
}

/* FAQ Preview */
.faq-preview {
 background-color: var(--clr-gray-100);
}

.faq-accordion {
 max-width: 900px;
 margin: 0 auto;
}

.faq-item {
 background-color: var(--clr-white);
 border-radius: var(--br-md);
 margin-bottom: var(--space-md);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 cursor: pointer;
 transition: all 0.3s ease;
}

.faq-item:hover {
 box-shadow: var(--shadow-md);
}

.faq-question {
 font-size: var(--fs-h4);
 margin: 0;
 padding: var(--space-md) var(--space-lg);
 display: flex;
 justify-content: space-between;
 align-items: center;
 color: var(--clr-text-dark);
 position: relative;
}

.faq-question::after {
 content: '+';
 font-size: var(--fs-h3);
 font-weight: var(--fw-bold);
 color: var(--clr-primary-400);
 transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
 transform: rotate(45deg);
}

.faq-answer {
 padding: 0 var(--space-lg);
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
 max-height: 200px; /* Adjust based on expected content height */
 padding-bottom: var(--space-md);
}

.faq-answer p {
 font-size: var(--fs-body);
 color: var(--clr-gray-300);
 margin-bottom: 0;
}

/* Contact CTA */
.contact-cta {
 background: var(--grad-button);
 color: var(--clr-white);
 text-align: center;
 padding: var(--space-xxl) 0;
}

.contact-cta .section-title {
 color: var(--clr-white);
 margin-bottom: var(--space-md);
}

.contact-cta .section-title::after {
 background-color: var(--clr-white);
}

/* Footer
/* Footer */
.main-footer {
 background-color: var(--clr-bg-dark);
 color: var(--clr-gray-200);
 padding-top: var(--space-xxl);
 position: relative;
 font-size: var(--fs-small);
}

.main-footer::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 5px;
 background: var(--grad-footer-line);
}

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

.footer-col h4 {
 color: var(--clr-white);
 font-size: var(--fs-body);
 margin-bottom: var(--space-md);
 position: relative;
}

.footer-col h4::after {
 content: '';
 display: block;
 width: 30px;
 height: 2px;
 background: var(--clr-primary-400);
 margin-top: var(--space-xs);
}

.footer-col ul {
 padding: 0;
}

.footer-col ul li {
 margin-bottom: var(--space-sm);
}

.footer-col ul li a {
 color: var(--clr-gray-200);
 transition: color 0.3s ease;
}

.footer-col ul li a:hover {
 color: var(--clr-primary-400);
}

.footer-logo {
 font-size: var(--fs-h3);
 font-weight: var(--fw-bold);
 color: var(--clr-white);
 background: var(--grad-button);
 -webkit-background-clip: text;
 background-clip: text;
 color: transparent;
 display: inline-block; /* Essential for text gradients on inline elements */
 margin-bottom: var(--space-sm);
}

.brand-info p {
 font-size: var(--fs-small);
 line-height: 1.8;
}

.copyright {
 margin-top: var(--space-lg);
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
}

.footer-contact p {
 margin-bottom: var(--space-sm);
 line-height: 1.6;
}

.footer-contact a {
 color: var(--clr-gray-200);
}

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

.footer-disclaimer {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding: var(--space-md) 0;
 margin-top: var(--space-xl);
 text-align: center;
 font-size: 0.75rem;
 color: var(--clr-gray-300);
}

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

.animate-in.left {
 transform: translateX(-30px);
}

.animate-in.right {
 transform: translateX(30px);
}

.animate-in.bottom {
 transform: translateY(30px);
}

.animate-in.delay-1 { transition-delay: 0.1s; }
.animate-in.delay-2 { transition-delay: 0.2s; }
.animate-in.delay-3 { transition-delay: 0.3s; }
.animate-in.delay-4 { transition-delay: 0.4s; }
.animate-in.delay-5 { transition-delay: 0.5s; }

.animate-in.revealed {
 opacity: 1;
 transform: translate(0, 0);
}

/* Media Queries */

/* Mobile (up to 767px) */
@media (max-width: 767px) {
 :root {
 --fs-h1: 2.2rem;
 --fs-h2: 1.8rem;
 --fs-h3: 1.5rem;
 --fs-h4: 1.2rem;
 --fs-body: 0.95rem;
 --space-md: 1rem;
 --space-lg: 1.5rem;
 --space-xl: 2rem;
 --space-xxl: 3rem;
 }

 .navbar {
 padding: var(--space-sm) var(--space-md);
 }

 .nav-links {
 flex-direction: column;
 position: absolute;
 top: 100%; /* Below header */
 left: 0;
 width: 100%;
 background: rgba(255, 255, 255, 0.95);
 backdrop-filter: blur(15px);
 -webkit-backdrop-filter: blur(15px);
 box-shadow: var(--shadow-lg);
 height: 0;
 overflow: hidden;
 transition: height 0.4s ease-in-out;
 padding-top: 0;
 border-top: 1px solid var(--clr-gray-200);
 }

 .nav-links.active {
 height: auto;
 padding-top: var(--space-lg);
 padding-bottom: var(--space-lg);
 }

 .nav-links li {
 width: 100%;
 text-align: center;
 margin-bottom: var(--space-sm);
 }

 .nav-links li:last-child {
 margin-bottom: 0;
 }

 .nav-toggle {
 display: block;
 }

 .hero-section {
 min-height: 70vh;
 padding-top: 100px;
 flex-direction: column;
 justify-content: flex-start;
 text-align: center;
 }

 .hero-title {
 font-size: var(--fs-h1);
 margin-bottom: var(--space-md);
 }

 .hero-subtitle {
 font-size: var(--fs-body);
 }

 .hero-actions {
 flex-direction: column;
 gap: var(--space-sm);
 margin-top: var(--space-md);
 }

 .hero-card {
 position: relative;
 bottom: auto;
 right: auto;
 margin-top: var(--space-xl);
 max-width: 90%;
 width: fit-content;
 text-align: center;
 padding: var(--space-md);
 transform: none;
 opacity: 1; /* Always visible on mobile */
 }

 .hero-card ul {
 list-style: none;
 margin-left: 0;
 }

 .hero-card li {
 text-align: center;
 }

 .about-grid {
 grid-template-columns: 1fr;
 gap: var(--space-lg);
 }

 .about-image {
 order: -1; /* Image appears above content on mobile */
 }

 .about-content h2 {
 text-align: center;
 }

 .about-content ul {
 padding-left: 0;
 }

 .about-content ul li {
 text-align: left; /* Keep checkmarks aligned for list items */
 }

 .benefits-grid,
 .services-grid,
 .testimonial-grid,
 .metrics-grid {
 grid-template-columns: 1fr;
 gap: var(--space-md);
 }

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

 .footer-col h4::after {
 margin-left: auto;
 margin-right: auto;
 }

 .footer-col ul {
 padding: 0;
 }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
 :root {
 --fs-h1: 2.5rem;
 --fs-h2: 2rem;
 --fs-h3: 1.6rem;
 }

 .navbar {
 padding: var(--space-sm) var(--space-lg);
 }

 .nav-links {
 gap: var(--space-md);
 }

 .hero-section {
 padding-top: 100px;
 }

 .hero-card {
 max-width: 250px;
 padding: var(--space-md);
 right: var(--space-md);
 bottom: var(--space-md);
 }

 .metrics-grid {
 grid-template-columns: repeat(2, 1fr);
 gap: var(--space-md);
 }

 .benefits-grid,
 .services-grid,
 .testimonial-grid {
 grid-template-columns: repeat(2, 1fr);
 gap: var(--space-lg);
 }

 .about-grid {
 grid-template-columns: 1fr; /* Stack on tablet too */
 gap: var(--space-lg);
 }

 .about-image {
 order: -1;
 }

 .footer-grid {
 grid-template-columns: repeat(2, 1fr);
 gap: var(--space-lg);
 }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
 .nav-links .btn-small {
 margin-left: var(--space-md);
 }

 .hero-section {
 background-attachment: fixed; /* Parallax if desired */
 }

 .metrics-grid {
 grid-template-columns: repeat(3, 1fr);
 }

 .services-grid {
 grid-template-columns: repeat(3, 1fr);
 }

 .footer-grid {
 grid-template-columns: repeat(4, 1fr);
 }
}

/* Specific Page Styling */
.basic-page {
 padding-top: 120px; /* Offset for fixed header */
 padding-bottom: var(--space-xxl);
 background-color: var(--clr-bg-light);
 min-height: 70vh;
}

.basic-page h1 {
 text-align: center;
 margin-bottom: var(--space-xl);
 color: var(--clr-primary-500);
}

.two-col-layout {
 display: grid;
 grid-template-columns: 1fr 2fr;
 gap: var(--space-xl);
 margin-top: var(--space-xl);
}

.sidebar-nav {
 border-right: 1px solid var(--clr-gray-200);
 padding-right: var(--space-lg);
}

.sidebar-nav ul li {
 margin-bottom: var(--space-sm);
}

.sidebar-nav ul li a {
 display: block;
 padding: var(--space-sm) var(--space-md);
 border-radius: var(--br-md);
 color: var(--clr-text-dark);
 transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
 background-color: var(--clr-primary-400);
 color: var(--clr-white);
}

.content-section {
 padding: var(--space-md) 0;
}

@media (max-width: 767px) {
 .two-col-layout {
 grid-template-columns: 1fr;
 }
 .sidebar-nav {
 border-right: none;
 border-bottom: 1px solid var(--clr-gray-200);
 padding-right: 0;
 padding-bottom: var(--space-lg);
 margin-bottom: var(--space-lg);
 }
 .sidebar-nav ul {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: var(--space-sm);
 }
 .sidebar-nav ul li {
 margin: 0;
 }
}

/* Blog specific */
.blog-post-card {
 background-color: var(--clr-white);
 border-radius: var(--br-lg);
 box-shadow: var(--shadow-card);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 overflow: hidden;
 display: flex;
 flex-direction: column;
}

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

.blog-post-card img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 display: block;
}

.blog-post-card-content {
 padding: var(--space-lg);
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}

.blog-post-card h3 {
 margin-bottom: var(--space-sm);
 color: var(--clr-primary-500);
 font-size: var(--fs-h3);
}

.blog-post-card-meta {
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
 margin-bottom: var(--space-md);
}

.blog-post-card p {
 font-size: var(--fs-body);
 color: var(--clr-text-dark);
 flex-grow: 1;
 margin-bottom: var(--space-md);
}

.blog-post .article-meta {
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
 margin-bottom: var(--space-lg);
 border-bottom: 1px solid var(--clr-gray-100);
 padding-bottom: var(--space-md);
}

.blog-post .article-content img {
 margin: var(--space-md) 0;
 border-radius: var(--br-md);
 box-shadow: var(--shadow-sm);
 max-width: 100%;
 height: auto;
}

.blog-post .article-content h2, .blog-post .article-content h3 {
 margin-top: var(--space-lg);
 margin-bottom: var(--space-sm);
 color: var(--clr-primary-500);
}

.blog-post .article-content p {
 margin-bottom: var(--space-md);
}

.blog-post .article-content ul,
.blog-post .article-content ol {
 margin-left: var(--space-xl);
 margin-bottom: var(--space-md);
 list-style-type: disc;
}

.blog-post .article-content ol {
 list-style-type: decimal;
}

/* Gallery specific */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: var(--space-md);
}

.gallery-item {
 cursor: pointer;
 overflow: hidden;
 border-radius: var(--br-md);
 box-shadow: var(--shadow-sm);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.lightbox.active {
 display: flex;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 object-fit: contain;
 border-radius: var(--br-md);
}

.lightbox-close {
 position: absolute;
 top: var(--space-lg);
 right: var(--space-xxl);
 color: var(--clr-white);
 font-size: var(--fs-h1);
 font-weight: var(--fw-bold);
 cursor: pointer;
 transition: color 0.3s ease;
}

.lightbox-close:hover {
 color: var(--clr-primary-400);
}

/* Contact form */
.contact-form-container {
 max-width: 700px;
 margin: 0 auto;
 background-color: var(--clr-white);
 padding: var(--space-xl);
 border-radius: var(--br-lg);
 box-shadow: var(--shadow-lg);
}

.contact-form-container h2 {
 text-align: center;
 margin-bottom: var(--space-xl);
 color: var(--clr-primary-500);
}

.form-group {
 margin-bottom: var(--space-md);
}

.form-group label {
 display: block;
 margin-bottom: var(--space-xs);
 font-weight: var(--fw-medium);
 color: var(--clr-text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: var(--space-sm);
 border: 1px solid var(--clr-gray-200);
 border-radius: var(--br-sm);
 font-size: var(--fs-body);
 font-family: var(--ff-primary);
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--clr-primary-400);
 box-shadow: 0 0 0 3px rgba(122, 130, 237, 0.2);
 outline: none;
}

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

.checkbox-group {
 display: flex;
 align-items: center;
 margin-bottom: var(--space-lg);
}

.checkbox-group input[type="checkbox"] {
 margin-right: var(--space-xs);
}

.checkbox-group label {
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
}

.form-message {
 text-align: center;
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
 margin-top: var(--space-md);
}

.contact-details {
 margin-top: var(--space-xxl);
 background-color: var(--clr-gray-100);
 padding: var(--space-xl);
 border-radius: var(--br-lg);
 box-shadow: var(--shadow-md);
}

.contact-details h3 {
 text-align: center;
 color: var(--clr-primary-500);
 margin-bottom: var(--space-lg);
}

.contact-details ul {
 list-style: none;
 padding: 0;
}

.contact-details ul li {
 display: flex;
 align-items: center;
 margin-bottom: var(--space-md);
 font-size: var(--fs-body);
 color: var(--clr-text-dark);
}

.contact-details ul li strong {
 min-width: 100px;
 color: var(--clr-primary-400);
}

.contact-map {
 margin-top: var(--space-xxl);
 border-radius: var(--br-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
}

.contact-map iframe {
 width: 100%;
 min-height: 400px;
 border: none;
}

/* Team Card */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: var(--space-lg);
 margin-top: var(--space-xl);
}

.team-member-card {
 background-color: var(--clr-white);
 border-radius: var(--br-lg);
 box-shadow: var(--shadow-card);
 text-align: center;
 padding: var(--space-lg);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}

.team-member-card img {
 width: 120px;
 height: 120px;
 border-radius: var(--br-round);
 object-fit: cover;
 margin: 0 auto var(--space-md);
 border: 3px solid var(--clr-primary-400);
}

.team-member-card h3 {
 font-size: var(--fs-h4);
 color: var(--clr-primary-500);
 margin-bottom: var(--space-xs);
}

.team-member-card p {
 font-size: var(--fs-small);
 color: var(--clr-gray-300);
 margin-bottom: var(--space-sm);
}

.team-member-card .social-links a {
 color: var(--clr-accent-400);
 font-size: var(--fs-body);
 margin: 0 var(--space-xs);
}

.team-member-card .social-links a:hover {
 color: var(--clr-primary-400);
}

/* 404 page */
.error-page {
 text-align: center;
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 padding-top: 120px;
 background: var(--grad-hero);
 color: var(--clr-white);
}

.error-page h1 {
 font-size: 6rem;
 margin-bottom: var(--space-sm);
 color: var(--clr-white);
 text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.error-page h2 {
 font-size: var(--fs-h1);
 color: var(--clr-white);
 margin-bottom: var(--space-md);
}

.error-page p {
 font-size: var(--fs-h4);
 margin-bottom: var(--space-lg);
 max-width: 600px;
 opacity: 0.9;
}

.error-page .btn-primary {
 background: var(--clr-white);
 color: var(--clr-primary-400);
 border: none;
}

.error-page .btn-primary:hover {
 background: var(--clr-gray-100);
 color: var(--clr-primary-500);
}

/* Scroll to top button (optional) */
#scrollToTopBtn {
 display: none;
 position: fixed;
 bottom: var(--space-lg);
 right: var(--space-lg);
 z-index: 999;
 background: var(--grad-button);
 color: var(--clr-white);
 border: none;
 border-radius: var(--br-round);
 width: 50px;
 height: 50px;
 font-size: var(--fs-h3);
 line-height: 50px;
 text-align: center;
 box-shadow: var(--shadow-lg);
 cursor: pointer;
 transition: background 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
 transform: translateY(-5px);
 background: var(--clr-primary-500);
}