/* Universal Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root Variables for Colors, Fonts, Spacing, Shadows */
:root {
    /* Colors */
    --color-primary-blue: #007bff; /* Bright blue for main actions */
    --color-primary-darkblue: #0056b3; /* Darker blue for hover states */
    --color-secondary-orange: #fd7e14; /* Orange for accents/highlights */
    --color-secondary-darkorange: #cc6500; /* Darker orange for hover */
    --color-text-dark: #333; /* Dark gray for body text */
    --color-text-light: #f8f9fa; /* Light gray for text on dark backgrounds */
    --color-background-dark: #222; /* Dark background for sections */
    --color-background-light: #fff; /* Light background for sections */
    --color-light-grey: #f0f2f5; /* Light grey for subtle section backgrounds */
    --color-border: #dee2e6; /* Light grey for borders */
    --color-transparent-dark: rgba(0, 0, 0, 0.7); /* For overlays */
    --color-transparent-light: rgba(255, 255, 255, 0.9); /* For light overlays */

    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-size-base: 1rem;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
    --font-size-large: 1.15rem;
    --font-size-small: 0.875rem;

    /* Spacing */
    --spacing-xs: 0.25rem; /* 4px */
    --spacing-sm: 0.5rem;  /* 8px */
    --spacing-md: 1rem;    /* 16px */
    --spacing-lg: 1.5rem;  /* 24px */
    --spacing-xl: 2rem;    /* 32px */
    --spacing-xxl: 3rem;   /* 48px */
    --spacing-xxxl: 4rem;  /* 64px */

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background-dark);
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}
body {
    /* ... existing properties ... */

    /* NEW: Background for the entire page */
    background-image: url('images/a1-1020x1980.jpg'); /* Placeholder image, replace with your own */
    background-size: cover; /* Cover the entire viewport */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Keep background fixed when scrolling */
    background-position: center center;
}
a {
    text-decoration: none;
    color: var(--color-primary-blue);
    transition: color var(--transition-speed) var(--transition-timing);
}

a:hover {
    color: var(--color-primary-darkblue);
}

/* NEW/MODIFIED: Ensure all default ul styles are reset */
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ADD THIS NEW RULE for the specific nav menu list on desktop */
/* This makes the <ul> itself a flex container for its <li> children */
.nav-menu ul {
    display: flex; /* <-- THIS IS THE KEY CHANGE */
    gap: var(--spacing-xl); /* Add space between horizontal nav items */
    /* You might already have gap on .nav-menu, you can choose to put it here or keep it on .nav-menu */
    /* If you keep gap on .nav-menu, ensure it's not double-counting or conflicting */
    /* My previous comprehensive CSS already had gap on .nav-menu, let's keep it there for consistency */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    color: white;
}

.container.text-center h2 + p {
    color: white; /* Or var(--color-text-light); if you prefer your defined light grey */
}

.section-padding {
    padding: var(--spacing-xxl) 0;
}

.text-center {
    text-align: center;
}

.bg-light-grey {
    background-color: var(--color-light-grey);
}

.bg-primary-blue {
    background-color: var(--color-primary-blue);
    color: var(--color-text-light); /* Ensure text is readable on this background */
}

.bg-primary-blue h2, .bg-primary-blue p, .bg-primary-blue .testimonial-author {
    color: var(--color-text-light);
}

/* Buttons */
.nav-link {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-speed) var(--transition-timing);
    border-radius: var(--border-radius-sm);
}

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: pointer;
    border: none;
    font-size: var(--font-size-base);
}

.btn-primary {
    background-color: var(--color-primary-blue);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-darkblue);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-blue);
    border: 2px solid var(--color-primary-blue);
}

.btn-secondary:hover {
    background-color: var(--color-primary-blue);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* Header & Navigation */
.main-header {
    background-color: dark grey;
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all var(--transition-speed) var(--transition-timing);
}

.navbar {
    display: flex; /* Changed from absolute to flex */
    justify-content: space-between; /* Spreads logo and nav items */
    align-items: center;
    position: relative; /* Changed from absolute to relative to contain dropdown */
}

.logo-link {
    display: flex; /* Ensures image behaves like a block and allows vertical alignment */
    align-items: center; /* Vertically aligns the image if container has height */
}

.logo-img {
    height: 50px; /* Adjust as needed */
    width: auto;
    max-width: 100%; /* Ensures logo scales down on smaller screens */
}

.nav-menu {
    display: flex;
    /* Removed: align-items: center; (redundant, handled by .navbar) */
    /* Removed: height: 100%; (can cause issues with flex sizing) */
    flex-grow: 1; /* Allows nav-menu to take up remaining horizontal space */
    justify-content: flex-end; /* Keeps navigation items pushed to the right */
    align-self: center; /* Explicitly centers this flex item (nav-menu) within the navbar */
}

.nav-menu ul {
    display: flex; /* Makes <li> items horizontal */
    list-style: none; /* Removes default bullet points */
    padding: 0;
    margin: 0;
    gap: var(--spacing-xl); /* Adds space BETWEEN THE LIST ITEMS */
}

.nav-item .nav-link {
    color: #000000;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-timing);
    background-color: white;
    padding: 0.25rem 0.5rem; /* Reduced padding by 50% */
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem; /* Reduced margin between buttons */
    font-size: 0.75rem; /* Reduced font size by 50% from 1.5rem (h2 size) */
}

.nav-item .nav-link:hover {
    color: var(--color-primary-blue);
}
    transition: width var(--transition-speed) var(--transition-timing);
}
.nav-item .nav-link:hover::after,
.nav-item .nav-link.active::after {
    width: 100%;
}
.hero-section {
    /* ... existing properties ... */
    border-bottom: 5px solid var(--color-secondary-orange); /* Orange line at the bottom */
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: var(--spacing-sm);
    font-size: 0.8em;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg) 0;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex;
}

.dropdown-item {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-text-dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: var(--color-primary-blue);
    color: var(--color-text-light);
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        min-width: 100%;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-sm);
    }
  
    
    .dropdown-item {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

.nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary-orange);
    transition: width var(--transition-speed) var(--transition-timing);
}

.nav-item .nav-link:hover::after,
.nav-item .nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu (for mobile) */
.hamburger {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001; /* Above nav menu when open */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    transition: all var(--transition-speed) var(--transition-timing);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px; /* Offset for fixed header */
}

/* Hero Background Image Styles */
.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
    object-position: center;
}

/* Hide mobile image on desktop */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* Show mobile image and hide desktop image on mobile */
@media (max-width: 768px) {
    .desktop-image {
        display: none;
    }
    
    .mobile-image {
        display: block;
        object-fit: cover;
    }
}

/* Mobile-specific hero background */
@media (max-width: 768px) {
    .hero-background-image {
        /* This will be handled by the img src directly now, no need for background-image property */
        background-size: cover; /* Fallback */
        background-position: center; /* Fallback */
    }
}
/* If using video, apply similar styles for .hero-background-video */
.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-background-pattern {
    background-size: cover; /* Cover the entire area */
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before { /* Dark overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.0); /* Increased opacity to 0.6 for better contrast */
    z-index: 1; /* Ensure it's above the background image/video */
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above the overlay */
    text-align: center; /* Center align content */
    padding: var(--spacing-xl) 0;
}

.hero-content h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero-content p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section - Ensure it's a positioning context */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Changed from space-between to center */
    align-items: center;
    height: 100vh;
    overflow: hidden;
    text-align: center;
    padding-top: var(--spacing-xxl); /* Add padding at the top */
    padding-bottom: var(--spacing-xxl); /* Add padding at the bottom */
}

/* Hero Overlay Text - Refined positioning */
.hero-overlay-text {
    position: absolute; /* Position over the video/image */
    top: 50%; /* Center vertically */
    left: 25%; /* Adjusted to be on the left side */
    transform: translate(-50%, -50%); /* Adjust for perfect centering relative to its new left position */
    z-index: 2; /* Ensure text is above the background and overlay */
    /* Removed default color from here, will apply directly to h1 and p */
    font-family: var(--font-heading); /* Use your heading font */
    font-size: var(--font-size-h1); /* Use your defined H1 size */
    font-weight: 700; /* Bold text */
    /* text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9); -- Removed from parent, applied to children */
    line-height: 1.2;
    padding: var(--spacing-md); /* Add some padding */
    max-width: 45%; /* Limit width to prevent overlapping the image */
    text-align: left; /* Align text to the left within its container */
}

/* Specific styling for the H1 inside hero-overlay-text */
.hero-overlay-text h1 {
    color: white; /* Explicitly set to white for maximum contrast */
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 1); /* Stronger text shadow */
    margin-bottom: var(--spacing-md); /* Adjust margin as needed */
}

/* Specific styling for the "Convert" text */
.highlight-orange-text {
    color: var(--color-secondary-orange); /* Orange color for "Convert" */
}

/* Specific styling for the hero description text */
.hero-description-text {
    font-size: var(--font-size-large); /* Changed to large font size */
    color: white; /* Changed to white for better visibility */
    font-weight: 500; /* Slightly less bold than H1 */
    margin-top: 1.5rem; /* Adds 1.5rem (24px) of space above the paragraph */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Stronger subtle shadow for readability */
}

/* Adjustments for the hero button to ensure it's still visible */
.hero-button {
    position: relative; /* Keep this to ensure z-index works, or remove if not strictly needed */
    z-index: 3;
    /* margin-top: var(--spacing-xxl); This line should be removed or commented out */
    margin-bottom: 0; /* Ensure no extra margin at the bottom */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .hero-overlay-text {
        top: 34.5%;   /* Adjusted to move down by an additional 5% for mobile */
        left: 0;
        transform: translateY(-50%);
        font-size: var(--font-size-h2);
        text-align: left;
        max-width: 90%;
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .hero-overlay-text h1,
    .hero-overlay-text .highlight-orange-text,
    .hero-overlay-text .hero-description-text {
        color: white;
    }
    /* Increased overlay opacity for mobile */
    .hero-section::before {
        background-color: rgba(0, 0, 0, 0.85); /* Even darker overlay for mobile */
    }
    .hero-overlay-text h1 {
        color: var(--color-secondary-orange); /* Make H1 orange on mobile */
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 1); /* Stronger shadow for mobile H1 */
    }
    .hero-description-text {
        color: var(--color-primary-blue); /* Make description blue on mobile */
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9); /* Stronger shadow for mobile description */
    }
    /* Adjust hero background image position for mobile */
    .hero-background-image {
        object-position: right center; /* Shift image content more to the right */
    }
}
@media (max-width: 480px) {
    :root {
        --font-size-h1: 1.8rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.2rem;
        --spacing-xxl: 2rem;
    }
    .hero-overlay-text {
        font-size: 1.8rem; /* Further adjust font size for mobile */
    }
}
/* Services Section */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}
.card {
    background-color: var(--color-background-light);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
    cursor: pointer; /* ADD THIS LINE */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-icon {
    font-size: var(--font-size-h2);
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-md);
}
.card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-dark);
}
.card p {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    margin-bottom: 0;
}
/* Portfolio Section (repurposed for SEO Approach) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}
.portfolio-item {
    background-color: var(--color-background-light);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.portfolio-item img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover; /* Cover, but maintain aspect ratio */
    display: block;
}
.portfolio-info {
    padding: var(--spacing-lg);
}
.portfolio-info h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary-blue);
    font-size: var(--font-size-h3);
}
.portfolio-info p {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-md);
}
.portfolio-info .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-small);
}
.about-content p {
    color: var(--color-text-light); /* Uses your light text variable */
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}
.team-member-card {
    background-color: var(--color-background-light);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-speed) var(--transition-timing), box-shadow var(--transition-speed) var(--transition-timing);
}
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.team-member-card .member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
    border: 3px solid var(--color-primary-blue);
}
.team-member-card h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary-blue);
}
.team-member-card .role {
    font-size: var(--font-size-small);
    color: #fd7e14;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}
.team-member-card p {
    font-size: var(--font-size-base);
    color: var(--color-text-dark);
    margin-bottom: 0;
}
/* Testimonials Section (repurposed for SEO Case Studies) */
.testimonial-carousel {
    display: flex;
    overflow-x: hidden; /* Hide overflow for carousel effect */
    scroll-snap-type: x mandatory;
    margin-top: var(--spacing-xxl);
    position: relative;
    width: 100%;
}
.testimonial-item {
    flex: 0 0 100%; /* Each item takes full width of carousel */
    scroll-snap-align: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-xxl);
    background-color: rgba(255, 255, 255, 0.1); /* Subtle background for items */
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    color: var(--color-text-light);
    min-height: 200px; /* Ensure consistent height */
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
/* ADDED: Rule to display the active testimonial item */
.testimonial-item.active {
    display: flex; /* Make the active slide visible */
}
.testimonial-item p {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-light);
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-secondary-orange);
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-base);
}

.carousel-nav-dots {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
    gap: var(--spacing-md);
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--color-secondary-orange);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
}

.contact-info, .contact-form {
    background-color: var(--color-background-light);
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    color: var(--color-text-dark);
}

.contact-info h3, .contact-form h3 {
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-lg);
}

.contact-info p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.contact-info ul li i {
    color: var(--color-secondary-orange);
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-large);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-form label {
    font-weight: 600;
    color: var(--color-text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    padding: var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    width: 100%;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    align-self: flex-start;
}

/* Footer Styles */
.footer-section {
    background-color: var(--color-background-dark);
    padding: var(--spacing-xl) 0;
    color: var(--color-text-light);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-col {
    padding: var(--spacing-md);
}

.footer-col h3 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h4);
}

.footer-links,
.footer-contact {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: var(--color-primary-blue);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-contact i {
    color: var(--color-primary-blue);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.social-icon:hover {
    background-color: var(--color-primary-darkblue);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-lg);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Footer styles for mobile */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-col {
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}


/* Modals */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    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.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md); /* Padding for smaller screens */
}

.modal.active {
    display: flex; /* Show the modal */
}

.modal-content {
    background-color: var(--color-background-light);
    margin: auto;
    padding: var(--spacing-xxl);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-width: 900px;
    width: 90%; /* Responsive width */
    color: var(--color-text-dark); /* Ensure text is dark on light background */
    max-height: 90vh; /* Limit modal height */
    overflow-y: auto; /* Enable scrolling within modal content */
}

.close-button {
    color: var(--color-text-dark);
    font-size: 2.5rem;
    font-weight: bold;
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-lg);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--color-primary-blue);
    text-decoration: none;
}

.modal-content h2 {
    color: var(--color-primary-blue);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    font-size: var(--font-size-h2);
}

.modal-content h3 {
    color: var(--color-text-dark);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-h3);
}

.modal-content p {
    color: var(--color-text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.modal-content ul,
.modal-content ol {
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.modal-content ul li,
.modal-content ol li {
    margin-bottom: var(--spacing-sm);
}

.modal-button-container {
    text-align: center;
    margin-top: var(--spacing-xxl);
}

@media (max-width: 768px) {
    .modal-content {
        padding: var(--spacing-lg);
        width: 95%;
    }

    .close-button {
        font-size: 2rem;
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .modal-content h2 {
        font-size: var(--font-size-h3);
    }

    .modal-content h3 {
        font-size: var(--font-size-h4);
    }
}

/* Specific Modal for Landing Page Info */
#landingPageModal .modal-content {
    background-color: var(--color-background-light); /* Ensure light background for readability */
}

#landingPageModal .modal-content h2,
#landingPageModal .modal-content h3 {
    color: var(--color-primary-blue); /* Headings in primary blue */
}

#landingPageModal .modal-content p,
#landingPageModal .modal-content ul li,
#landingPageModal .modal-content ol li {
    color: var(--color-text-dark); /* Ensure text is dark for readability */
}
/* Privacy Policy Specific Styles */

/* Ensure the main content area has appropriate padding and background */
.privacy-policy-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background-light); /* Light background for readability */
    color: var(--color-text-dark); /* Dark text on light background */
}

.privacy-policy-main .container {
    max-width: 900px; /* Slightly narrower container for policy text */
    padding: var(--spacing-lg); /* Add padding inside the container */
}

.privacy-policy-section h1,
.privacy-policy-section h2,
.privacy-policy-section h3 {
    color: var(--color-primary-blue); /* Headings in primary blue */
    margin-top: var(--spacing-xxl); /* More space above main headings */
    margin-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--color-border); /* Subtle line under headings */
    padding-bottom: var(--spacing-sm);
}

.privacy-policy-section h1 {
    font-size: var(--font-size-h2); /* Slightly smaller H1 for policy title */
    text-align: center;
    border-bottom: none; /* No border for the main title */
}

.privacy-policy-section h2 {
    font-size: var(--font-size-h3);
}

.privacy-policy-section h3 {
    font-size: var(--font-size-h4);
    margin-top: var(--spacing-xl);
    border-bottom: none; /* No border for sub-headings */
}

.privacy-policy-section p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark); /* Ensure text color is dark for readability */
}

.privacy-policy-section ul {
    list-style: disc; /* Use disc bullets for lists */
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.privacy-policy-section ol {
    list-style: decimal; /* Use numbers for ordered lists */
    margin-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.privacy-policy-section ul li,
.privacy-policy-section ol li {
    margin-bottom: var(--spacing-sm);
}

.privacy-policy-section a {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

.privacy-policy-section a:hover {
    color: var(--color-primary-darkblue);
}

.privacy-policy-section strong {
    font-weight: 700;
}

/* Responsive adjustments for privacy policy page */
@media (max-width: 768px) {
    .privacy-policy-main .container {
        padding: var(--spacing-md); /* Reduce padding on smaller screens */
    }

    .privacy-policy-section h1 {
        font-size: var(--font-size-h3);
    }

    .privacy-policy-section h2 {
        font-size: var(--font-size-h4);
    }
}