/* VARIABLES */
:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --color-background-light: #ffffff;
    --color-background-medium: #f8f9fa;
    --color-background-dark: #e9ecef;

    --color-text-dark: #212529;
    --color-text-light: #ffffff;
    --color-text-medium: #555555;
    --color-text-muted: #6c757d;

    --color-primary: #0072b5; /* Professional Blue */
    --color-primary-dark: #005A92;
    --color-primary-rgb: 0, 114, 181;

    --color-secondary: #6c757d; /* Neutral Gray */
    --color-accent: #28a745; /* Green for positive actions */
    --color-accent-dark: #1e7e34;

    --color-border: #dee2e6;
    --color-heading-dark: #222222;
    --color-shadow-light: rgba(0, 0, 0, 0.075);
    --color-shadow-medium: rgba(0, 0, 0, 0.15);

    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2.5rem;   /* 40px */
    --spacing-xl: 4rem;     /* 64px */

    --section-padding-vertical: var(--spacing-xl);
    --section-padding-vertical-large: 6rem; /* 96px */

    --border-radius-sm: 0.25rem; /* 4px */
    --border-radius-md: 0.5rem;  /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */

    --box-shadow-sm: 0 0.125rem 0.25rem var(--color-shadow-light);
    --box-shadow-md: 0 0.5rem 1rem var(--color-shadow-medium);
    --box-shadow-lg: 0 1rem 3rem var(--color-shadow-medium);

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    --line-height-base: 1.7;
    --line-height-heading: 1.3;

    --header-height: 80px; /* Adjust if header height changes */
}

/* GLOBAL RESETS & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base for rem units */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

body.header-is-fixed {
    padding-top: var(--header-height);
}

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

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

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

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--color-heading-dark);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2.2rem, 5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw + 0.8rem, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw + 0.6rem, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw + 0.5rem, 1.8rem); }
p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-medium);
}
strong { font-weight: var(--font-weight-bold); color: var(--color-text-dark); }

/* LAYOUT */
.main-container {
    width: 100%;
    margin: 0 auto;
}

.container {
    width: 90%;
    max-width: 1200px; /* Standard max width */
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin-left: calc(-1 * var(--spacing-md)); /* Gutter compensation */
    margin-right: calc(-1 * var(--spacing-md));
}

.column {
    padding-left: var(--spacing-md); /* Gutter */
    padding-right: var(--spacing-md);
    width: 100%;
    margin-bottom: var(--spacing-md); /* Vertical spacing on mobile */
}

@media (min-width: 769px) {
    .column {
        margin-bottom: 0; /* Remove vertical spacing on desktop */
    }
    .column.is-two-thirds { width: 66.6666%; }
    .column.is-one-third { width: 33.3333%; }
    .column.is-half { width: 50%; }
    .column.is-one-quarter { width: 25%; }
}


/* UTILITIES */
.section-padding { padding-top: var(--section-padding-vertical); padding-bottom: var(--section-padding-vertical); }
.section-padding-large { padding-top: var(--section-padding-vertical-large); padding-bottom: var(--section-padding-vertical-large); }
.text-center { text-align: center; }

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md); /* Reduced from lg for tighter design */
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    color: var(--color-heading-dark);
    font-weight: var(--font-weight-bold);
}

.section-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-lg); /* Increased for more space after subtitle */
    color: var(--color-text-medium);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-base);
}

/* BUTTONS (GLOBAL) */
.button, button, input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    text-transform: capitalize;
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: var(--box-shadow-sm);
    line-height: 1.5; /* Ensure consistent height */
}

.button:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-md);
}
.button:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus {
    outline: 2px solid var(--color-primary-rgb);
    outline-offset: 2px;
}


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

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

/* FORMS (GLOBAL) */
.form-group { margin-bottom: var(--spacing-md); }
.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    font-size: 0.9rem;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="password"]:focus, textarea:focus, select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-primary-rgb), 0.2);
    outline: none;
}
textarea { min-height: 120px; resize: vertical; }

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3E%3Cpath d='M8 11.207L2.396 5.604l.707-.707L8 9.793l4.896-4.896.707.707L8 11.207z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* HEADER */
.site-header {
    background-color: var(--color-background-light);
    padding: 0; /* Remove padding if container handles it */
    position: relative; /* Default, can be fixed by JS */
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.site-header.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: var(--box-shadow-md);
    animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-decoration: none;
}
.logo:hover { color: var(--color-primary-dark); }

.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}
.main-navigation ul li {
    margin-left: var(--spacing-md);
}
.main-navigation ul li a {
    font-family: var(--font-body);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    padding: var(--spacing-xs) 0;
    position: relative;
    text-transform: capitalize;
}
.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}
.main-navigation ul li a:hover::after,
.main-navigation ul li a.active::after { /* Assuming .active class for current page */
    width: 100%;
}
.main-navigation ul li a:hover { color: var(--color-primary); }


.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001; /* Above nav items */
}
.hamburger-icon {
    width: 28px;
    height: 3px;
    background-color: var(--color-text-dark);
    display: block;
    position: relative;
    transition: background-color 0s 0.3s; /* Delay disappearance of middle bar */
}
.hamburger-icon::before, .hamburger-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-dark);
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease 0.3s; /* Delay top/bottom movement */
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.menu-toggle[aria-expanded="true"] .hamburger-icon { background-color: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger-icon::before { transform: rotate(45deg); top: 0; transition: top 0.3s ease, transform 0.3s ease 0.3s; }
.menu-toggle[aria-expanded="true"] .hamburger-icon::after { transform: rotate(-45deg); top: 0; transition: top 0.3s ease, transform 0.3s ease 0.3s; }

/* HERO SECTION */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--color-text-light);
    padding: var(--section-padding-vertical-large) 0; /* Adjust padding as needed */
    display: flex;
    align-items: center;
    min-height: 70vh; /* Ensure it's substantial but not overly large */
    text-align: center;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)); /* Darker overlay */
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-title {
    color: var(--color-text-light);
    font-size: clamp(2.5rem, 6vw, 4rem); /* Responsive font size */
    margin-bottom: var(--spacing-md);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-subtitle {
    color: var(--color-text-light);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}
.hero-section .button-primary {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* IMAGE CONTAINERS (General for sections like About Us, Vision, Behind the Scenes) */
.image-container {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-md);
    margin-bottom: var(--spacing-md); /* If text is below */
}
.image-container img {
    width: 100%;
    height: 100%; /* Ensure image fills container if fixed height is set on .image-container */
    object-fit: cover;
}

/* CARDS (General styles for Services, Case Studies, Testimonials, etc.) */
.card {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* For equal height cards in a grid */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--box-shadow-lg);
}
.card-image {
    width: 100%;
    height: 220px; /* Consistent height for card images */
    overflow: hidden;
    display: flex; /* For centering if image is smaller, though object-fit usually handles it */
    align-items: center;
    justify-content: center;
    background-color: var(--color-background-dark); /* Placeholder color */
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .card-image img {
    transform: scale(1.05);
}
.card-content {
    padding: var(--spacing-md);
    flex-grow: 1; /* Allows content to push footer elements down in flex column */
    display: flex;
    flex-direction: column;
}
.card-content h3 { font-size: 1.5rem; margin-bottom: var(--spacing-sm); }
.card-content p { font-size: 0.95rem; margin-bottom: var(--spacing-sm); flex-grow: 1; }
.card-content .button { margin-top: auto; /* Pushes button to bottom of card */ }

/* Grids for cards */
.services-grid, .case-studies-grid, .testimonials-grid, .resources-grid, .innovation-grid {
    display: grid;
    gap: var(--spacing-lg);
}
@media (min-width: 600px) {
    .services-grid, .case-studies-grid, .resources-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
    .innovation-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* SERVICES SECTION */
.service-price {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin: var(--spacing-sm) 0;
}

/* FEATURES SECTION */
.features-grid {
    display: grid;
    gap: var(--spacing-lg);
}
@media (min-width: 500px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-background-medium);
    border-radius: var(--border-radius-md);
}
.feature-icon {
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}
.feature-icon img {
    width: 60px; /* Adjust as needed */
    height: 60px;
    margin: 0 auto;
}
.feature-item h3 { font-size: 1.3rem; margin-bottom: var(--spacing-xs); }
.feature-item p { font-size: 0.9rem; }

.stats-widgets-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-radius: var(--border-radius-lg);
}
.stat-widget {
    text-align: center;
    flex: 1;
    min-width: 150px;
}
.stat-widget h4 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}
.stat-widget p {
    font-size: 1rem;
    color: var(--color-text-light);
    opacity: 0.9;
    margin-bottom: 0;
}

/* CUSTOMER STORIES (TESTIMONIALS) SECTION */
.testimonial-card {
    text-align: center;
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md) auto;
    border: 3px solid var(--color-background-light);
    box-shadow: 0 0 10px var(--color-shadow-light);
}
.testimonial-card blockquote {
    font-style: italic;
    color: var(--color-text-medium);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
}
.testimonial-card blockquote p { margin-bottom: var(--spacing-xs); color: var(--color-text-medium); }
.testimonial-card footer {
    font-style: normal;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    font-size: 0.9rem;
}

/* ACCORDIONS */
.accordion { margin-top: var(--spacing-sm); }
.accordion-header {
    background-color: var(--color-background-dark);
    color: var(--color-text-dark);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    transition: background-color 0.2s ease;
    border-radius: var(--border-radius-sm);
    position: relative;
    border-bottom: 1px solid var(--color-border);
}
.accordion-header::after { /* Arrow icon */
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    position: absolute;
    right: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}
.accordion-header.active::after {
    content: '-';
}
.accordion-header:hover { background-color: #d8dcdf; }
.accordion-content {
    padding: 0 var(--spacing-md);
    background-color: var(--color-background-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-bottom-left-radius: var(--border-radius-sm);
    border-bottom-right-radius: var(--border-radius-sm);
}
.accordion-content p { font-size: 0.95rem; padding: var(--spacing-sm) 0; margin-bottom: 0; }
.accordion-content p:first-child { padding-top: var(--spacing-md); }
.accordion-content p:last-child { padding-bottom: var(--spacing-md); }


/* PROGRESS INDICATORS */
.progress-indicator { margin-top: var(--spacing-sm); }
.progress-indicator label { font-size: 0.85rem; color: var(--color-text-medium); display: block; margin-bottom: var(--spacing-xs); }
.progress-indicator progress {
    width: 100%;
    height: 0.75rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: none; /* Remove default border */
    appearance: none; /* Remove default appearance */
    -webkit-appearance: none;
    -moz-appearance: none;
}
.progress-indicator progress::-webkit-progress-bar {
    background-color: var(--color-background-dark);
    border-radius: var(--border-radius-sm);
}
.progress-indicator progress::-webkit-progress-value {
    background-color: var(--color-accent);
    border-radius: var(--border-radius-sm);
    transition: width 0.5s ease;
}
.progress-indicator progress::-moz-progress-bar { /* Firefox */
    background-color: var(--color-accent);
    border-radius: var(--border-radius-sm);
    transition: width 0.5s ease;
}

/* SWITCHES */
.switch-container { display: flex; align-items: center; margin-top: var(--spacing-sm); }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .3s; }
input:checked + .slider { background-color: var(--color-primary); }
input:focus + .slider { box-shadow: 0 0 1px var(--color-primary); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 28px; }
.slider.round:before { border-radius: 50%; }
.switch-label { margin-left: var(--spacing-sm); font-size: 0.9rem; color: var(--color-text-medium); }

/* EXTERNAL RESOURCES SECTION */
.resource-card a { font-weight: var(--font-weight-medium); }
.resource-card a:hover { text-decoration: underline; }

/* CONTACT SECTION */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg) auto;
    padding: var(--spacing-lg);
    background-color: var(--color-background-medium);
    border-radius: var(--border-radius-lg);
}
.contact-details { text-align: center; }
.contact-details h3 { margin-bottom: var(--spacing-sm); }
.contact-details p { margin-bottom: var(--spacing-xs); }

/* FOOTER */
.site-footer {
    background-color: var(--color-heading-dark);
    color: var(--color-text-light);
    padding: var(--section-padding-vertical) 0;
}
.site-footer a { color: var(--color-background-medium); }
.site-footer a:hover { color: var(--color-text-light); }
.footer-widgets {
    display: grid;
    gap: var(--spacing-lg);
}
@media (min-width: 576px) { .footer-widgets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-widgets { grid-template-columns: repeat(4, 1fr); } }

.footer-widget h4 {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
}
.footer-widget p { color: var(--color-background-dark); font-size: 0.9rem; }
.footer-widget ul { list-style: none; padding: 0; }
.footer-widget ul li { margin-bottom: var(--spacing-xs); }
.footer-widget ul li a {
    color: var(--color-background-dark);
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-widget ul li a:hover {
    color: var(--color-text-light);
    padding-left: 4px;
}
.site-footer #currentYear { font-weight: var(--font-weight-medium); }

/* Social links in footer (text-based) */
.social-links-text li a {
    /* Styles inherited from .footer-widget ul li a */
}


/* ANIMATION SUPPORT (Initial states for GSAP) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(25px); /* Slightly less for subtle effect */
    /* GSAP will handle the transition, so CSS transition can be removed if GSAP controls it all */
    /* transition: opacity 0.6s ease-out, transform 0.6s ease-out; */
}


/* SPECIFIC PAGE STYLES */
/* Success Page (success.html) */
.page-success-container {
    min-height: calc(100vh - var(--header-height)); /* Account for fixed header */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg);
}
.page-success-container h1 { color: var(--color-accent); }
.page-success-container .button { margin-top: var(--spacing-lg); }


/* Privacy Policy & Terms Pages (privacy.html, terms.html) */
/* Assuming a wrapper div with this class or apply to <main> */
.static-page-content {
    padding-top: var(--spacing-lg); /* General padding */
    padding-bottom: var(--section-padding-vertical);
    /* The body.header-is-fixed handles the main gap for fixed header */
}
.static-page-content h1, .static-page-content h2 { margin-top: var(--spacing-lg); }
.static-page-content h1:first-child, .static-page-content h2:first-child { margin-top: 0; }


/* RESPONSIVE STYLES */
@media (max-width: 991px) { /* Tablets */
    .hero-title { font-size: clamp(2rem, 5vw, 3rem); }
    .hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); }
    .section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
}

@media (max-width: 768px) { /* Mobile menu activation point */
    .main-navigation {
        position: absolute;
        top: var(--header-height); /* Position below header */
        left: 0;
        width: 100%;
        background-color: var(--color-background-light);
        box-shadow: var(--box-shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }
    .main-navigation.active {
        max-height: 500px; /* Adjust as needed for menu items */
        border-top: 1px solid var(--color-border);
    }
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start */
        padding: var(--spacing-sm) 0;
    }
    .main-navigation ul li {
        margin-left: 0;
        width: 100%;
    }
    .main-navigation ul li a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
        border-bottom: 1px solid var(--color-background-dark);
    }
    .main-navigation ul li a::after { display: none; } /* Remove underline effect on mobile */
    .main-navigation ul li:last-child a { border-bottom: none; }

    .menu-toggle { display: block; }

    .columns {
        margin-left: 0; margin-right: 0; /* No negative margins */
    }
    .column {
        padding-left: 0; padding-right: 0; /* Full width content */
        width: 100% !important; /* Override desktop column widths */
        margin-bottom: var(--spacing-lg);
    }
    .column:last-child { margin-bottom: 0; }

    .stats-widgets-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    .stat-widget { min-width: auto; }

    .footer-widgets {
        grid-template-columns: 1fr; /* Stack footer widgets */
        text-align: center;
    }
    .footer-widget ul { text-align: center; }
}

@media (max-width: 480px) { /* Smaller mobile devices */
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
        --section-padding-vertical: var(--spacing-xl);
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }

    .container { width: 95%; }
    .card-content { padding: var(--spacing-sm); }
    .card-content h3 { font-size: 1.3rem; }
}
*{
    opacity: 1 !important;
}