/**
 * Overflo Digital - Main Stylesheet
 * 
 * TABLE OF CONTENTS:
 * 
 * 1. CSS VARIABLES & RESET
 * 2. TYPOGRAPHY & GLOBAL ELEMENTS
 * 3. LAYOUT & CONTAINERS
 * 4. COMPONENTS
 *    a. Buttons
 *    b. Cards
 *    c. Sections
 * 5. NAVIGATION & HEADER
 * 6. HERO SECTION
 * 7. TRUSTED BY (LOGO SLIDER)
 * 8. ABOUT US
 * 9. OUR WORK
 * 10. CTA SECTIONS
 * 11. OUR SERVICES
 * 12. TESTIMONIALS
 * 13. TECH STACK
 * 14. FOOTER
 * 15. UTILITIES
 * 16. ANIMATIONS
 * 17. MEDIA QUERIES
 */

/* ===============================================
   1. CSS VARIABLES & RESET
   =============================================== */
   :root {
    --primary: #2453FF;
    --primary-light: #EEF1FF;
    --secondary: #111827;
    --accent: #6366F1;
    --accent2: #10B981;
    --accent3: #C6FF00;
    --text: #1F2937;
    --text-light: #4B5563;
    --text-lighter: #9CA3AF;
    --background: #FFFFFF;
    --background-off: #F9FAFB;
    --border: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===============================================
   2. TYPOGRAPHY & GLOBAL ELEMENTS
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--secondary);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

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

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

/* ===============================================
   3. LAYOUT & CONTAINERS
   =============================================== */
.container {
    width: 100%;
    padding: 0 24px;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 700px;
}

.section-eyebrow {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.section-eyebrow:before {
    content: '';
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    margin-right: 12px;
    display: inline-block;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Background shape elements */
.shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.shape-blob {
    border-radius: 62% 38% 72% 28% / 67% 32% 68% 33%;
    background-color: rgba(99, 102, 241, 0.1);
    width: 300px;
    height: 300px;
}

.shape-circle {
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    width: 200px;
    height: 200px;
}

.shape-dots {
    background-image: radial-gradient(var(--primary) 2px, transparent 2px);
    background-size: 20px 20px;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

/* ===============================================
   4. COMPONENTS
   =============================================== */

/* a. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.btn-icon {
    margin-left: 8px;
}

/* b. Cards */
/* Standard layout for all CTA cards */
.cta-card {
    background-color: #f3f4ff;
    border-radius: 24px;
    padding: 30px 25px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
    line-height: 1.3;
}

.cta-subtitle {
    font-size: 16px;
    color: #4B5563;
    margin-bottom: 24px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #2453FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #ffffff;
    color: #2453FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 83, 255, 0.2);
}

/* c. Sections */
.section-cta {
    padding: 10px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* 1. Nav Bar - UPDATED */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; /* Solid white instead of transparent */
    border-bottom: 1px solid #ffffff; /* Explicit color instead of variable */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-hidden {
    transform: translateY(-100%); /* Slide up out of view */
}

.text-logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: color 0.3s ease;
}

.navbar.scrolled .text-logo {
    color: var(--text);
}

.text-logo span {
    color: var(--accent3);
}

/* Updated navbar container styles for three-section layout */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    width: 100%;
}

/* Logo section */
.navbar-logo {
    flex: 1; /* Take up 1/3 of space */
}

/* Center the navigation links */
.desktop-menu {
    display: none; /* Hidden by default on mobile */
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex: 2; /* Take up 1/3 of space and center content */
}

.desktop-menu-item {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.desktop-menu-item:hover {
    color: var(--primary);
}

/* Nav button section */
.navbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1; /* Take up 1/3 of space */
    gap: 16px; /* Space between button and menu toggle */
}

/* Style for the nav button - matches footer */
.nav-cta {
    display: none; /* Hide by default on mobile */
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px rgba(36, 83, 255, 0.3);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.navbar.scrolled .menu-toggle {
    color: var(--text);
}

/* CHANGE: Updated mobile menu with better scroll handling */
.mobile-menu {
    overflow: auto; /* Change from hidden to auto */
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    background-color: var(--background);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0 0 0; /* Changed from 40px to account for header */
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background-color: var(--background);
}

.mobile-menu-logo {
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    color: var(--text);
}

.mobile-menu-logo span {
    color: var(--accent3);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}

/* CHANGE: Updated menu items with better positioning */
.menu-items {
    margin-top: -150px; /* Changed from -150px */
    padding-left: 60px; /* Added consistent padding */
    max-height: none; /* Removed fixed height constraint */
    overflow: visible; /* Changed from hidden */
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 2;
    margin-bottom: 40px; /* Added space below menu items */
}

.menu-item {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s ease;
}

.menu-item:hover {
    color: var(--primary);
}

/* CHANGE: Updated footer positioning */
.mobile-menu-footer {
    position: absolute;
    bottom: 40px; /* Changed from 150px to 20px */
    left: 0; /* Changed from 24px */
    right: 0; /* Changed from 24px */
    width: 100%;
}

/* CHANGE: Added padding to social icons */
.mobile-menu-socials {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-left: 60px; /* Added consistent padding */
}

.social-link {
    color: var(--text-light);
    font-size: 20px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
}

/* CHANGE: Updated contact info styling */
.mobile-menu-contact {
    color: var(--text-light);
    font-size: 14px;
    padding-left: 60px; /* Added consistent padding */
    line-height: 1.5; /* Added for better readability */
}

.mobile-menu-contact p:first-child {
    color: var(--primary);
    font-size: 16px; /* Changed from 14px */
    font-weight: 600;
    margin-bottom: 8px; /* Added spacing */
}

.mobile-menu-contact p:last-child {
    color: var(--primary);
    font-size: 20px; /* Changed from 27px for better proportion */
    font-weight: 600;
    margin-bottom: 20px; /* Added spacing before CTA */
}

/* NEW: Added CTA button in mobile menu */
.mobile-menu-cta {
    padding-left: 60px;
    margin-bottom: 20px;
    position: relative;
    top: -25px; /* Negative value moves it up */
}

.mobile-menu-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu-cta .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(36, 83, 255, 0.3);
    color: white;
}

/* NavBar desktop items - keeping your existing media query */
@media (min-width: 768px) {
    .desktop-menu {
        display: flex;
    }
    
    .nav-cta {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* ===============================================
   6. HERO SECTION
   =============================================== */
   .hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-title {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: white;
    position: relative;
}

.hero-title span {
    color: var(--accent3);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* ===============================================
   7. TRUSTED BY (LOGO SLIDER)
   =============================================== */
.trusted-by {
    padding: 20px 0;
    background-color: var(--background-off);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding-bottom: 60px;
}

.trusted-by-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.trusted-shape-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.trusted-title {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.slide-container {
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.infinite-slider {
    display: flex;
    width: max-content;
    animation: slide 30s linear infinite;
}

.infinite-slider.reverse {
    animation: slide-reverse 30s linear infinite;
}

.logo-group {
    display: flex;
    flex-shrink: 0;
}

.logo-group svg {
    height: 32px;
    margin: 0 40px;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: grayscale(100%);
}

.logo-group svg:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* ===============================================
   8. ABOUT US
   =============================================== */
.about-us {
    padding: 60px 0 0px;
    background-color: var(--background);
    position: relative;
    margin-top: -60px;
}

.about-us-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.about-shape-1 {
    position: absolute;
    top: 10%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(36, 83, 255, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.about-shape-2 {
    position: absolute;
    bottom: 10%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(198, 255, 0, 0.05) 0%, rgba(198, 255, 0, 0.08) 100%);
    border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.about-content p {
    margin-bottom: 16px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 18px;
}

/* ===============================================
   9. OUR WORK
   =============================================== */
.our-work {
    padding: 60px 0;
    background-color: var(--background);
    position: relative;
}

.our-work-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.work-shape-1 {
    position: absolute;
    top: 10%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(36, 83, 255, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.work-shape-2 {
    position: absolute;
    bottom: 10%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(198, 255, 0, 0.05) 0%, rgba(198, 255, 0, 0.08) 100%);
    border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.work-item {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item.portrait {
    aspect-ratio: 3/4;
}

.work-item.landscape {
    aspect-ratio: 4/3;
}

/* Make tall and wide have NO EFFECT on mobile */
.work-item.tall, 
.work-item.wide {
    aspect-ratio: 1/1; /* Reset to default square */
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.work-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, 
                rgba(0,0,0,0.9) 0%, 
                rgba(0,0,0,0.7) 50%, 
                rgba(0,0,0,0.3) 80%, 
                transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.work-type-tag, .service-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    line-height: 1.2;
    opacity: 1;
}

.work-type-tag {
    background-color: var(--accent3);
    color: var(--secondary);
}

.service-tag {
    background-color: var(--primary);
    color: white;
    margin-left: 6px;
}

.work-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: white;
}

.work-item-category {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.view-all-projects {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-projects .btn {
    background-color: var(--primary);
    color: white;
    transition: all 0.3s ease;
}

.view-all-projects .btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* ===============================================
   10. CTA SECTIONS
   =============================================== */
/* Used the consolidated CTA style above in section 4.Components */

/* ===============================================
   11. OUR SERVICES
   =============================================== */
.our-services {
    padding: 100px 0;
    background-color: var(--background-off);
    position: relative;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    padding-top: 180px;
    padding-bottom: 180px;
    margin-top: -50px;
    margin-bottom: -80px;
}

.services-header {
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

.service-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.service-category {
    background-color: var(--background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.service-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-title-underlined {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    position: relative;
    margin-bottom: 8px;
    display: inline-block;
    border-bottom: 2px solid var(--accent3);
    padding-bottom: 4px;
}

.service-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 0 20px;
}

.service-pill {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fc;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.service-pill:hover {
    background-color: #eef1ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--text);
}

.find-out-more {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-left: 20px;
    margin-bottom: 20px;
}

.find-out-more:hover {
    text-decoration: underline;
}

.arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    margin-left: 12px;
    transition: all 0.2s ease;
}

.find-out-more:hover .arrow-icon {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateX(4px);
}

/* ===============================================
   12. TESTIMONIALS
   =============================================== */
   .testimonials {
    padding: 100px 0 60px;
    background-color: var(--background);
    position: relative;
    overflow: visible; /* Allow peek to be visible */
}

.testimonial-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.testimonial-shape-1 {
    position: absolute;
    top: 20%;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(99, 102, 241, 0.05);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.testimonial-shape-2 {
    position: absolute;
    bottom: 10%;
    left: -50px;
    width: 300px;
    height: 300px;
    background-color: rgba(198, 255, 0, 0.05);
    border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
    z-index: 0;
}

.testimonials-header {
    margin-bottom: 40px;
}

.testimonials-wrapper {
    width: 100%;
    margin-left: 0;
    padding: 0;
    overflow: hidden;
}

.testimonials-slider {
    position: relative;
    width: 100%;
    overflow: visible;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-y; /* Allow vertical scrolling */
}

.testimonial-card {
    flex: 0 0 70%;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-video {
    position: relative;
    width: 100%;
    max-width: 270px; /* Width for portrait format */
    margin: 0 auto;
}

.testimonial-video-inner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9/12; /* Portrait aspect ratio */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-video-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--accent3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--primary);
}

.play-button i {
    color: white;
    font-size: 32px;
    margin-left: 6px;
}

.testimonial-content {
    position: relative; /* Make it a positioning reference */
    display: flex;
    flex-direction: column;
    min-height: 180px; /* Set a minimum height to accommodate quotes */
    justify-content: space-between; /* This spreads content, pushing author to bottom */
}

.testimonial-quote {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text);
    position: relative;
    padding-left: 24px;
    border-left: 3px solid var(--primary);
    flex-grow: 1; /* Allow quote to expand */
    margin-bottom: 20px; /* Consistent space before author info */
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.testimonial-author-name {
    font-weight: 600;
    font-size: 18px;
    color: var(--text);
}

.testimonial-author-company {
    color: var(--text-light);
    font-size: 14px;
}

.testimonial-navigation {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 16px;
}

.nav-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--background-off);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: var(--primary);
    color: white;
}

/* Make container visible to allow peek */
.container {
    overflow: visible;
}

/* ===============================================
   13. TECH STACK
   =============================================== */
.tech-stack {
    padding: 80px 0;
    background-color: var(--background-off);
    position: relative;
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 100%);
    padding-top: 140px;
}

.tech-stack-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-shape-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 16px;
    width: fit-content;
    margin: 0 auto;
    justify-content: center;
}

.tech-item {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tech-logo {
    max-width: 70px;
    max-height: 60px;
    object-fit: contain;
}

/* ===============================================
   14. FOOTER
   =============================================== */
.footer {
    background-color: var(--background);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer-shape-1 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(36, 83, 255, 0.05) 0%, rgba(99, 102, 241, 0.08) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
}

.footer-shape-2 {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(198, 255, 0, 0.05) 0%, rgba(198, 255, 0, 0.08) 100%);
    border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    line-height: 0.9;
}

.footer-logo span {
    color: var(--accent3);
}

.footer-connect-heading {
    margin-top: 3rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background-off);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.footer-social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(36, 83, 255, 0.2);
}

.footer-columns {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.footer-section h3 {
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact-info a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-contact-info {
    margin-bottom: 20px;
}

.footer-contact-info p {
    margin-bottom: 10px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    color: white;
    box-shadow: 0 4px 12px rgba(36, 83, 255, 0.3);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

.footer-legal,
.footer-registration {
    color: var(--text-lighter);
    font-size: 0.875rem;
}

.footer-legal p,
.footer-registration p {
    margin: 0.25rem 0;
}

.footer-legal a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-registration {
    margin-top: 0.5rem;
}

/* ===============================================
   15. UTILITIES
   =============================================== */
.text-primary {
    color: var(--primary);
}

/* ===============================================
   16. ANIMATIONS
   =============================================== */
@keyframes blob-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(40px, 30px) rotate(5deg); }
    100% { transform: translate(-40px, -30px) rotate(-5deg); }
}

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

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes slide-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, 20px) rotate(5deg); }
}

.animate {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }

/* ===============================================
   17. MEDIA QUERIES
   =============================================== */

/* Mobile Styles */
@media (max-width: 767px) {
    /* Fix hero video on mobile */
    .hero {
        height: auto; /* Let height be determined by video */
        margin-top: 60px; /* Space for navbar */
        padding-bottom: 0; /* Remove padding */
        overflow: visible; /* Allow overflow */
    }
    
    .hero .hero-video-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%; /* 16:9 aspect ratio */
        overflow: hidden;
    }
    
    .hero .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height of container */
        object-fit: fill; /* Stretch to fill container */
    }
    
    /* Reset tall and wide classes on mobile */
    .work-item.tall, 
    .work-item.wide {
        aspect-ratio: 1/1; /* Default to square on mobile */
        grid-row: auto; /* Reset any spanning */
        grid-column: auto; /* Reset any spanning */
        min-height: auto; /* Reset min-height */
    }
    
    /* Make sure portrait and landscape aspect ratios are maintained */
    .work-item.tall.portrait {
        aspect-ratio: 3/4; /* Keep portrait aspect ratio even for tall items */
    }
    
    .work-item.tall.landscape {
        aspect-ratio: 4/3; /* Keep landscape aspect ratio even for tall items */
    }
    
    .work-item.wide.portrait {
        aspect-ratio: 3/4; /* Keep portrait aspect ratio even for wide items */
    }
    
    .work-item.wide.landscape {
        aspect-ratio: 4/3; /* Keep landscape aspect ratio even for wide items */
    }

    .testimonial-navigation {
        display: flex !important;
        justify-content: center;
        margin-top: 40px;
        gap: 16px;
    }

}

/* Extra small devices */
@media (max-width: 480px) {
    .hero {
        height: 30vh; /* Shorter height for small devices */
    }
    
    .hero-video {
        top: 70px; /* Slightly closer to top on very small screens */
        height: calc(100% - 70px);
    }

    .about-shape-1, 
    .about-shape-2 {
        /* Reduce size by 50% */
        width: 200px !important;
        height: 200px !important;
    }

    .about-shape-2 {
        left: -150px !important; /* Move in from left edge */
        bottom: -3% !important; /* Adjust vertical position */
    }

    .our-services {
        /* Keep the slant position but increase height to start higher */
        height: auto; /* Make sure height isn't restricted */
        padding-top: 200px !important; /* Increase this value for more/less space */
        padding-bottom: 180px !important; /* Maintain existing bottom spacing */
        
        /* Adjust clip-path to start higher while maintaining bottom */
        clip-path: polygon(0 5%, 100% 6%, 100% 93%, 0 94%) !important;
        /* This preserves bottom spacing while starting higher */
    }
    
    /* Move content up within the section */
    .our-services .section-eyebrow {
        margin-top: -80px !important; /* Negative margin to pull content up */
    }
    
    /* If needed, also adjust container padding */
    .our-services .container {
        padding-top: 0 !important;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    .service-pills {
        gap: 8px;
    }
    
    .service-pill {
        padding: 6px 12px;
        font-size: 14px;
    }
    .tech-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* Change to 2 columns */
        grid-template-rows: repeat(6, 1fr) !important; /* Set to 6 rows */
        gap: 16px !important; /* Adjust gap as needed */
        width: 100% !important; /* Take full width */
        max-width: 100% !important; /* Ensure it doesn't exceed container */
    }
    
    /* Ensure each tech item sizes properly */
    .tech-item {
        width: 100% !important; /* Each item takes full width of its grid cell */
        max-width: 100% !important;
    }

    .footer-shape-1 {
        top: 33% !important;
        right: -5%;
    }

}

/* Container Sizes */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* SPECIFIC TABLET/IPAD FIX */
@media (min-width: 768px) and (max-width: 991px) {
    /* Fix hero video specifically for iPad/tablet sizes */
    body .hero {
        height: auto;
        margin-top: 60px;
        position: relative;
        overflow: hidden;
    }
    
    body .hero .hero-video-container {
        position: relative;
        width: 100%;
        padding-top: 56.25%;
    }
    
    body .hero .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background-color: #000;
    }
    
    /* Ensure navbar is above video */
    .navbar {
        z-index: 1000 !important; /* Ensure navbar stays on top */
    }
    
    /* UPDATED: Navbar adjustments to prevent wrapping */
    .desktop-menu {
        gap: 16px !important; /* Further reduced gap between menu items */
    }
    
    .desktop-menu-item {
        font-size: 14px !important; /* Smaller font size */
        white-space: nowrap !important; /* Prevent text wrapping */
        padding: 0 !important; /* Remove any padding that might add width */
    }
    
    /* Reduce logo size to create more space */
    .text-logo {
        font-size: 24px !important;
    }
    
    .nav-cta {
        padding: 8px 14px !important; /* Slightly smaller padding */
        font-size: 13px !important; /* Slightly smaller font */
        white-space: nowrap !important;
    }
    
    .navbar-container {
        padding: 10px 16px !important; /* Tighter padding */
        justify-content: space-between !important;
    }

    /* Add this for footer heading alignment */
    .footer-section h3.section-eyebrow {
        margin-bottom: 15px; /* Consistent spacing below headings */
        display: flex;
        align-items: center;
        min-height: 30px; /* Set minimum height for alignment */
    }
    
    /* Make footer columns more consistent */
    .footer-columns {
        align-items: flex-start; /* Align columns from the top */
    }
    
    /* Align QUICK LINKS and CONTACT US */
    .footer-columns .footer-section:first-child,
    .footer-columns .footer-section:last-child {
        padding-top: 0; /* Remove any top padding */
    }
    
    /* Make footer links more consistent in height */
    .footer-links li {
        margin-bottom: 10px; /* Consistent spacing */
    }
    
    /* Work grid on tablet */
    .work-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: minmax(280px, auto) !important;
        gap: 16px;
        max-width: none;
    }
    
    /* Remove aspect ratio constraints for work items */
    .work-item, .work-item.portrait, .work-item.landscape {
        aspect-ratio: unset !important;
        height: 100% !important;
        min-height: 280px !important;
    }
    
    /* Apply custom sizes */
    .work-item.tall {
        grid-row: span 2 !important;
        min-height: 580px !important;
    }
    
    .work-item.wide {
        grid-column: span 2 !important;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .section-title {
        font-size: 48px;
    }
    
    .hero-title {
        font-size: 72px;
    }
    
    .service-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Work grid on tablet and desktop */
    .work-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: minmax(280px, auto) !important;
        gap: 16px;
        max-width: none;
    }
    
    /* Remove aspect ratio constraints */
    .work-item, .work-item.portrait, .work-item.landscape {
        aspect-ratio: unset !important;
        height: 100% !important;
        min-height: 280px !important;
    }
    
    /* Apply custom sizes */
    .work-item.tall {
        grid-row: span 2 !important;
        min-height: 580px !important;
    }
    
    .work-item.wide {
        grid-column: span 2 !important;
    }
    
    .work-item-category {
        opacity: 1;
    }
    
    /* Testimonial cards on tablet and desktop - show all 4 */
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        transform: none;
    }
    
    .testimonial-card {
        flex: none;
        margin-right: 0;
    }
    
    .testimonial-navigation {
        display: none;
    }
    
    /* Footer layout on tablet */
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-brand {
        width: 50%;
    }
    
    .footer-logo {
        font-size: 7.5rem;
    }
    
    .footer-columns {
        flex-direction: row;
        gap: 4rem;
        width: 40%;
    }
    
    /* NavBar desktop items */
    .desktop-menu {
        display: flex;
    }
    
    .nav-cta {
        display: flex;
    }
    
    .menu-toggle {
        display: none;
    }
    
    /* CTA section adjustment */
    .section-cta {
        padding: 40px 24px;
    }
    
    .cta-card {
        padding: 35px 40px;
    }
    
    .cta-title {
        font-size: 28px;
    }
}

/* Comprehensive fixes for smaller tablet sizes (768px-905px) */
@media (min-width: 768px) and (max-width: 905px) {
    /* Adjust logo size */
    .footer-logo {
        font-size: 5.5rem; /* Smaller size for this range */
    }
    
    /* Fix footer layout */
    .footer-main {
        justify-content: space-between; /* Ensure proper spacing */
        max-width: 100%; /* Ensure it doesn't overflow */
    }
    
    /* Adjust brand/logo container */
    .footer-brand {
        width: 40%; /* Reduce width from 50% */
        margin-right: 0; /* Remove any right margin */
    }
    
    /* Adjust columns container */
    .footer-columns {
        width: 55%; /* Increase width slightly */
        gap: 2rem; /* Reduce gap between columns */
        padding-right: 10px; /* Ensure content doesn't get cut off */
    }
    
    /* Adjust individual footer sections */
    .footer-section {
        flex-shrink: 1; /* Allow sections to shrink if needed */
    }
    
    /* Make sure Quick Links and Contact sections fit */
    .section-eyebrow {
        font-size: 13px; /* Slightly smaller headings */
    }
    
    /* Ensure footer links don't overflow */
    .footer-links {
        max-width: 100%; /* Prevent overflow */
    }
    
    /* Make contact info fit */
    .footer-contact-info {
        max-width: 100%;
        font-size: 14px; /* Slightly smaller text */
    }
    
    /* Ensure Let's Chat button fits */
    .btn-cta {
        padding: 10px 20px; /* Slightly smaller padding */
    }
    
    /* Tech grid for iPad/tablet - 4x3 layout with better spacing */
    .tech-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 columns */
        grid-template-rows: repeat(3, 1fr); /* 3 rows */
        gap: 24px; /* Maintain good spacing */
        width: 90%; /* Same as desktop */
        max-width: 800px; /* Reasonable max-width for iPad */
        margin: 0 auto; /* Center the grid */
    }
    
    .tech-item {
        width: 100px; /* Better proportion */
        height: 100px;
        margin: 0 auto; /* Ensure items are centered */
    }
    
    .tech-logo {
        max-width: 70px; /* Proportional to item size */
        max-height: 55px;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .section-title {
        font-size: 56px;
    }
    
    .hero-title {
        font-size: 86px;
    }
    
    /* Fix for desktop hero */
    .hero {
        margin-top: 80px; /* Space for navbar */
    }
    
    .hero-video {
        position: absolute;
        top: 0; /* Start at the top of hero section */
        height: 100%; /* Take full height of hero area */
        object-fit: cover !important;
        z-index: 1;
    }
    
    /* Tech grid on desktop */
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 30px;
        width: 90%;
        max-width: 1000px;
    }
    
    .tech-item {
        width: 120px;
        height: 120px;
    }
    
    .tech-logo {
        max-width: 80px;
        max-height: 70px;
    }
    
    /* Work grid on desktop - larger gap */
    .work-grid {
        gap: 24px !important;
    }
}

.tech-stack + .section-cta {
    padding: 48px 24px;
}

/* Large Desktop Styles */
@media (min-width: 1280px) {
    .footer-logo {
        font-size: 9rem;
    }
    
    .hero-title {
        font-size: 96px;
    }
}

/* Landscape orientation fix for tablets */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    /* Footer alignment fixes */
    .footer-section h3.section-eyebrow {
        margin-top: 0 !important;
        margin-bottom: 16px !important;
        padding-top: 0 !important;
        min-height: 30px !important;
        display: flex !important;
        align-items: center !important;
    }


    
}

/* Safari-specific fixes */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .work-item, .work-item.portrait, .work-item.landscape {
            height: 100% !important;
        }
        
        .work-item.tall {
            min-height: 580px !important;
        }
    }
}

@media (min-width: 768px) {
    .work-item.wide {
        grid-column: span 2;
        height: 300px; /* Match the min-height of standard cards */
        min-height: 300px !important;
        max-height: 400px !important;
    }
}

/* Target only the inner content container */
.our-services .container {
    padding-top: 50px !important; /* Add padding at the top of the container */
}

/* ===============================================
   CONTACT PAGE SPECIFIC STYLES
   =============================================== */

/* Page Header Styles */
.page-header {
    padding: 120px 0 60px;
    background-color: var(--background-off);
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* To account for fixed navbar */
}

.page-header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-shape-1 {
    position: absolute;
    top: 20%;
    right: -50px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(36, 83, 255, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.header-shape-2 {
    position: absolute;
    bottom: 10%;
    left: -50px;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(198, 255, 0, 0.05) 0%, rgba(198, 255, 0, 0.08) 100%);
    border-radius: 58% 42% 38% 62% / 42% 55% 45% 58%;
    z-index: 0;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--secondary);
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    position: relative;
    z-index: 2;
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 0;
    background-color: var(--background);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Contact Info Card */
.contact-info-card {
    background-color: var(--background-off);
    border-radius: 16px;
    padding: 40px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3 {
    margin-bottom: 16px;
}

.contact-info-card p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--secondary);
}

.contact-text a, .contact-text p {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 0;
}

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

.contact-socials {
    margin-top: 20px;
}

.contact-socials h4 {
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Form Styles */
.form-card {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    background-color: var(--background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.checkbox-container label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 0;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.form-button {
    grid-column: span 2;
    margin-top: 10px;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.submit-button i {
    font-size: 16px;
}

/* Map Section Styles */
.map-section {
    padding: 0 0 80px;
    background-color: var(--background);
}

.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

/* Add "active" class for the navigation to highlight current page */
.desktop-menu-item.active, 
.menu-item.active {
    color: var(--primary);
    font-weight: 600;
}

/* Thank You Page Styles */
.thank-you-container {
    text-align: center;
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thank-you-icon {
    width: 120px;
    height: 120px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.thank-you-icon i {
    font-size: 48px;
    color: var(--primary);
}

.thank-you-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
}

.thank-you-text {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 32px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    color: white;
}

/* Media Queries for responsive design */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .page-title {
        font-size: 56px;
    }
    
    .form-card, .contact-info-card {
        height: 100%;
    }
}

@media (max-width: 767px) {
    .form-card, .contact-info-card {
        padding: 30px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-button {
        grid-column: span 1;
    }
    
    .page-header {
        padding: 100px 0 40px;
    }
    
    .header-shape-1, .header-shape-2 {
        width: 200px;
        height: 200px;
    }

    .contact-section {
        padding-top: 20px; /* Reduced from 80px */
      }
      
      /* If needed, also reduce the space below the header */
      .page-header {
        padding-bottom: 20px; /* Reduced from 60px */
      }
      
      /* To target specifically the form card on mobile */
      .form-card {
        margin-top: 0; /* Remove any margin */
      }

}

@media (max-width: 480px) {
    .form-card, .contact-info-card {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
}

/* Tablet-specific adjustments for contact page */
@media (max-width: 992px) and (min-width: 768px) {
    /* Adjust container padding */
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Adjust contact grid layout */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Make both sections full width */
    .contact-info, 
    .contact-form-container {
        max-width: 100%;
    }
    
    /* Optimize form layout */
    .form-card {
        padding: 25px;
    }
    
    /* Ensure form groups are properly sized */
    .form-group {
        width: 100%;
    }
    
    /* Tablet-specific field adjustments */
    input, select, textarea {
        font-size: 15px;
    }
    
    /* Check for any overflow issues */
    .form-card,
    .contact-info-card {
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Additional media query for smaller tablets */
@media (max-width: 820px) {
    /* More aggressive layout adjustments if needed */
    .container {
        padding: 0 15px;
    }
    
    /* Reduce padding in cards */
    .form-card,
    .contact-info-card {
        padding: 20px;
    }
}

/* iOS Safari specific adjustments for mobile menu
   This uses a combination of CSS that only matches on iOS devices
   to ensure the Let's Chat button is visible and not hidden by
   the Safari navigation bar at the bottom */

/* Target iOS devices only - this combination of features is specific to iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* iOS-specific menu adjustments */
    .mobile-menu {
        /* Adjust padding to move everything up */
        padding-top: 10px;
        /* Ensure we have padding at the bottom for the Safari bar */
        padding-bottom: 10px;
    }
    
    /* Move menu items higher - adjust this value to move content down/up */
    .menu-items {
        /* You can increase this value to move content down (e.g. -180px, -160px) */
        margin-top: -180px;
    }
    
    /* Reposition footer elements to be higher */
    .mobile-menu-footer {
        /* You can decrease this value to move footer down (e.g. 60px, 50px) */
        bottom: 60px;
    }
    
    /* Ensure CTA button is visible */
    .mobile-menu-cta {
        /* You can decrease this negative value to move button down (e.g. -25px, -15px) */
        top: -25px;
        /* Make sure button has enough bottom margin */
        margin-bottom: 30px;
    }
    
    /* Make sure social icons move up together with other elements */
    .mobile-menu-socials {
        margin-bottom: 30px;
    }
    
    /* For very small iOS devices (iPhone SE, etc.) */
    @media (max-height: 667px) {
        .menu-items {
            /* Reduce gap between menu items */
            gap: 18px;
            /* Move even higher on small devices */
            margin-top: -220px;
        }
        
        .mobile-menu-footer {
            /* Move even higher on small screens */
            bottom: 90px;
        }
    }
}

/* IPAD LANDSCAPE FIX - ADD AT THE VERY END OF THE CSS FILE */
@media only screen 
and (min-device-width: 768px) 
and (max-device-width: 1024px)
and (orientation: landscape) {
    /* Make hero take full width below navbar */
    html body .hero {
        height: calc(100vh - 60px) !important; /* Viewport height minus navbar */
        margin-top: 60px !important; /* Navbar height */
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Simple full-width container */
    html body .hero .hero-video-container {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
    }
    
    /* Show full video with no cropping */
    html body .hero .hero-video {
        position: absolute !important;
        width: 100% !important; /* Full width */
        height: 100% !important; /* Full height */
        object-fit: contain !important; /* No cropping */
        background-color: #000 !important;
    }
    
    /* Testimonial grid fixes */
    html body .testimonials-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        transform: none !important;
    }
    
    html body .testimonial-card {
        flex: none !important;
        margin-right: 0 !important;
    }
}

/* COOKIE BANNER - Add to the end of your styles.css file */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Inter', sans-serif;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    max-width: 1320px;
    margin: 0 auto;
}

.cookie-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary);
}

.cookie-text p {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-light);
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.cookie-btn-outline:hover {
    background-color: var(--background-off);
}

.cookie-btn-primary {
    background-color: var(--primary);
    color: white;
}

.cookie-btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center; /* Keep vertical centering */
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-45vh); /* Pull upward by 20% of viewport height */
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 20px;
}

.cookie-option {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-text {
    flex: 1;
}

.option-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.option-text p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary);
}

input:disabled + .toggle-slider {
    opacity: 0.7;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.modal-footer {
    padding: 16px 20px 20px;
    display: flex;
    justify-content: flex-end;
}

/* Media Queries */
@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 20px 40px;
    }
    
    .cookie-text {
        margin-right: 20px;
    }
    
    .cookie-text p {
        margin-bottom: 0;
    }
    
    .cookie-buttons {
        flex-shrink: 0;
    }
}

/* Add these media queries to handle mobile devices */
@media (max-width: 767px) {
    .modal-content {
        transform: translateY(-41vh); /* Increased upward shift for mobile */
        width: 95%; /* Slightly wider on mobile */
    }
    
    /* Make modal content more compact on mobile */
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 10px 15px;
    }
    
    .cookie-option {
        padding: 12px 0;
    }
    
    /* Adjust button padding */
    .modal-footer {
        padding: 10px 15px;
    }
    
    /* Ensure text is slightly smaller on mobile */
    .option-text h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .option-text p {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Even smaller screens may need more adjustment */
@media (max-width: 380px) {
    .modal-content {
        transform: translateY(-40vh); /* Even higher position for very small screens */
    }
}