/* Variables */
:root {
    --primary: #C5E000;
    --primary-dark: #A8C100;
    --secondary: #1A1A1A;
    --accent: #FF6B00;
    --dark: #000000;
    --light: #FFFFFF;
    --gray: #F7F7F7;
    --gray-medium: #eaeaea;
    --gray-light: #f9f9f9;
    --text: #1A1A1A;
    --text-light: #666666;
    --focus-ring: 0 0 0 3px rgba(197, 224, 0, 0.4);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--light);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    width: 100%;
}

/* Accessibility */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* Prevent line breaks */
}

/* Focus Visible */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px; /* Optional: round focus ring corners */
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1; /* Adjusted for better consistency */
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6rem); /* Adjusted clamp */
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

.mega-text {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
}

.highlight {
    color: var(--primary);
}

/* Buttons */
.primary-button, .secondary-button, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center content */
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease; /* Simplified transition */
    position: relative;
    overflow: hidden;
    border: none; /* Ensure no default border */
    cursor: pointer;
}

.primary-button {
    background: var(--primary);
    color: var(--dark);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1); /* Adjusted shadow */
    background: var(--primary-dark);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 2px solid var(--light);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.secondary-button:hover {
    transform: translateY(-2px);
    background: var(--light);
    color: var(--dark);
    border-color: var(--light);
}

.primary-button i,
.secondary-button i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.primary-button:hover i,
.secondary-button:hover i {
    transform: translateX(3px); /* Slightly reduced movement */
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 11;
    padding: 1.5rem 0;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
    background: transparent;
    will-change: transform;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    z-index: 1600;
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.logo img {
    height: 80px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo .logo-white {
    display: block;
}

.logo .logo-black {
    display: none;
}

.navbar.scrolled .logo .logo-white {
    display: none;
}

.navbar.scrolled .logo .logo-black {
    display: block;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 1rem; 
}

.nav-cta-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    background-color: var(--primary);
    color: var(--dark);
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
    display: none;
}

.nav-toggle {
    position: relative;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 12;
    transition: all 0.3s ease;
    border: none;
    pointer-events: auto;
}

.nav-toggle i {
    font-size: 1.25rem; /* Slightly smaller icon */
    color: var(--light);
    transition: transform 0.3s ease;
}

.nav-toggle-close {
    background: var(--dark);
    transform: rotate(180deg);
    z-index: 12;
}

.nav-toggle-close i {
    color: var(--light);
}

.nav-toggle:hover {
    transform: scale(1.1);
}

.nav-toggle:focus-visible {
    box-shadow: var(--focus-ring); /* Use variable focus ring */
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10;
}

.nav-menu.active {
    opacity: 1;
    visibility: visible;
}

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

.nav-links a {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--light);
    text-decoration: none;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-menu.active .nav-links a {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%); /* Center the underline */
    width: 0;
    height: 3px; /* Slightly thicker */
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 60%; /* Underline doesn't span full width */
}

.nav-links a:focus-visible {
    box-shadow: none; /* Remove focus ring if needed specifically */
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Move .nav-menu-cta styles here and make them more specific */
.nav-links a.nav-menu-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    margin-top: 2rem;
    background: var(--primary);
    color: var(--dark);
    border-radius: 100px;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 900;
    transform: translateY(0) scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nav-links a.nav-menu-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.2);
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 1rem 2.4rem;
}

.nav-links a.nav-menu-cta::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100vh;
    padding: 120px 0 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)), 
                url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: left;
    padding-top: 60px; /* Add space for navbar */
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    color: var(--light);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gray);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Section Styles */
.section {
    padding: 6rem 0; /* Consistent padding */
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 4rem;
    text-align: left;
    position: relative;
}

/* Card Styles */
.card {
    background: var(--gray);
    border-radius: 24px;
    padding: 2.5rem 2rem; /* Adjusted padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%; /* Make cards in a row equal height */
}

.card:hover {
    transform: translateY(-8px); /* Reduced hover effect */
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem; /* Reduced margin */
}

.learn-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Pushes link to bottom */
    display: inline-block; /* Needed for transform */
    transition: transform 0.3s ease;
}

.learn-more:hover {
    transform: translateX(5px);
    color: var(--primary-dark);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
}

/* Case Studies Section */
.case-studies {
    position: relative;
    padding: 6rem 0;
    background: var(--light);
}

.case-studies .section-title {
    text-align: left;
    margin-bottom: 3rem; /* Adjusted margin */
}

.case-studies-content {
    position: relative;
    padding: 20px 0; /* Remove bottom padding */
}

.horizontal-scroll-section {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* UX Consideration: Hiding scrollbar reduces discoverability.
       Consider adding visual indicators (arrows) for scrolling, 
       especially on non-touch devices, if users find this difficult.
       Alternatively, style the scrollbar minimally instead of hiding it. */
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2rem 0;
    gap: 2rem;
}

.horizontal-scroll-section::-webkit-scrollbar {
    display: none;
}

.case-study {
    flex: 0 0 auto;
    width: 90%; 
    max-width: 350px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.case-study:hover {
    transform: translateY(-5px);
}

.case-study-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study-image {
    width: 100%;
    height: 250px;
    aspect-ratio: unset;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.case-study-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-study-content > div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-title {
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 10px; 
    line-height: 1.2; 
}

.case-study-description {
    font-size: 0.95rem; 
    line-height: 1.4; 
    color: var(--text-light);
    margin-bottom: 15px; 
    flex-grow: 1;
}

.case-study-link {
    align-self: flex-start;
    padding: 10px 20px; 
    background: var(--primary);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem; 
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.case-study-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Process Timeline */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 2rem;
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    background: var(--light);
    padding: 2rem 0; /* Remove horizontal padding */
    text-align: left;
}

.timeline-number {
    font-size: 3.5rem; /* Slightly smaller */
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
    background: var(--light);
}

.stats-section .section-title {
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    height: 60px;
    width: 60px;
    background: rgba(197, 224, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: var(--dark);
}

.stat-number {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    background: var(--gray);
    padding: 6rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* More responsive grid */
    gap: 4rem; /* Increased gap */
    align-items: center;
}

.contact-intro {
    max-width: 100%; /* Allow full width */
    text-align: left;
}

.contact-intro p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
    max-width: 500px; /* Limit width for readability */
}

.contact-form {
    width: 100%; /* Ensure it takes full grid column width */
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--gray-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit; /* Ensure consistency */
}

.contact-form .primary-button {
    width: 100%; /* Full width button */
}

/* Footer Styling */
.footer {
    background: var(--dark);
    color: var(--light);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem; /* Slightly larger */
    color: var(--primary);
}

.footer-brand p {
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 350px;
}

.footer-brand img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.social-links a:focus-visible {
    box-shadow: var(--focus-ring);
}

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

.link-group h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: var(--light);
    transform: translateX(5px);
}

.link-group a:focus-visible {
    box-shadow: none; /* Remove focus ring if needed specifically */
    outline: 1px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Modal Popup */
.modal {
    position: fixed;
    inset: 0; /* Replaces top, left, width, height */
    background: rgba(0, 0, 0, 0.8); /* Slightly less dark */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem; /* Add padding for small screens */
}

.modal.modal-active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--light);
    max-width: 800px;
    width: 100%; /* Responsive width */
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px; /* Consistent radius */
    padding: 2.5rem 3rem; /* Adjusted padding */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.modal.modal-active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--gray-medium);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
    font-size: 1rem;
}

.modal-close i {
    font-size: 1.1rem;
    color: var(--text);
}

.modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--accent);
    color: var(--light);
}

.modal-close:hover i {
    color: var(--light);
}

.modal-close:focus-visible {
    box-shadow: var(--focus-ring); /* Consistent focus */
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
    color: var(--text);
}

.modal-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: left;
}

.modal-description h3 {
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.3rem;
}

.modal-description p,
.modal-description ul {
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-description ul {
    padding-left: 1.5rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
}

.modal-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 350px; /* Limit height */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: block; /* Remove extra space */
}

/* Custom Cursor - Keep only if truly desired, potential accessibility/usability issues */
/* Performance/Compatibility Consideration: 
   - mix-blend-mode can be performance-intensive and may not render consistently 
     over all element types (e.g., videos, iframes).
   - Custom cursors can sometimes feel laggy or obscure underlying elements.
   - Ensure it doesn't negatively impact users with specific accessibility needs.
   - Test thoroughly across different browsers and devices.
*/
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor.hover-active {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .navbar .container {
        padding: 0 2rem;
    }
    
    .case-study {
        /* max-width: 500px; */ /* Adjusting */
        max-width: 420px; 
    }
    
    .process-timeline::before {
        left: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-cta-button {
        display: none; /* Hide CTA button when toggle is visible */
    }

    .nav-toggle {
        /* Adjustments already made above for base style */
        /* Ensure size consistency if needed */
        width: 50px; 
        height: 50px;
    }
    
    .nav-toggle i {
        font-size: 1.25rem;
    }
    
    .nav-links a {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    /* Adjust CTA size for mobile as well */
    .nav-links a.nav-menu-cta {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    }

    .nav-links a.nav-menu-cta:hover {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 0;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 100px 1rem 2rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    .horizontal-scroll-section {
        gap: 1rem;
    }
    
    .case-study {
        /* max-width: 400px; */ /* Adjusting */
        max-width: 380px; 
    }
    
    .contact-content {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    
    .contact-intro {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-intro p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        width: 100%;
        margin: 0; /* Ensure no conflicting margin */
    }
    
    .nav-cta-button {
        display: none; /* Hide CTA button when toggle is visible */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-brand p {
        max-width: 100%;
        margin: 1rem auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        text-align: center;
    }

    .link-group {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .navbar .container {
        padding: 0 1.5rem;
    }
    
    .logo {
        padding-left: 0.5rem;
    }
    
    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    .horizontal-scroll-section {
        gap: 0.5rem;
    }
    
    .case-study {
        /* max-width: 85vw; */ /* Adjusting */
        max-width: 80vw; 
    }
    
    .case-study-content {
        padding: 1.5rem;
    }

    .hero {
        height: 100vh;
        min-height: -webkit-fill-available;
        padding: 0;
    }

    .hero-content {
        padding: 80px 1rem 2rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .cta-group .primary-button,
    .cta-group .secondary-button {
        width: 100%;
        margin: 0.5rem 0;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        margin-bottom: 2rem;
    }

    .footer-brand img {
        height: 60px;
    }

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

    .link-group:last-child {
        margin-bottom: 0;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu.active ~ .navbar .nav-cta-button,
.nav-menu.active + .navbar .nav-cta-button {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
        min-height: -webkit-fill-available;
    }
    
    .hero-content {
        min-height: -webkit-fill-available;
    }
}

/* Fix horizontal scroll issues */
.section, 
.hero, 
.footer,
.nav-menu {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Specific styles for hero section buttons */
.hero .cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero .primary-button {
    background: var(--primary);
    color: var(--dark);
    border: none;
}

.hero .primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hero .secondary-button {
    background: rgba(255, 255, 255, 0.15);
    color: var(--light);
    border: 2px solid var(--light);
}

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

@media (max-width: 768px) {
    .hero .cta-group {
        gap: 1rem;
    }
    
    .hero .primary-button,
    .hero .secondary-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Form status styles */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    display: none;
}

.form-status.loading,
.form-status.success,
.form-status.error {
    display: block;
}

.form-status.loading {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.form-status.success {
    background: rgba(0, 255, 0, 0.1);
    color: #2da44e;
}

.form-status.error {
    background: rgba(255, 0, 0, 0.1);
    color: #cf222e;
}
