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

:root {
    --primary-color: #4B70F5;
    --secondary-color: #3C5BDA;
    --dark-color: #1e293b;
    --light-gray: #f8fafc;
    --text-dark: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-purple: linear-gradient(135deg, #6a5acd 0%, #4b0082 100%);

    /* Font Family Variables */
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-accent: 'Roboto Slab', serif;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll */
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
}

p {
    font-family: 'Rubik', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.6;  /* Changed from 1.8 to 1.6 */
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Header & Navigation
=========================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.5s ease;
}

.navbar {
    padding: 2rem 0; /* Added 10px more padding */
    transition: all 0.5s ease;
}

/* Header Scrolled State */
.header.scrolled {
    background: rgba(0, 0, 0, 0.96) !important; /* 96% opacity = 4% transparent */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled .navbar {
    padding: 0.875rem 0; /* Even smaller when scrolled */
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 45px; /* Reduced from 60px */
    position: relative;
}

.logo img {
    height: 100%;
    width: auto;
    transition: all 0.5s ease;
}

.logo-full {
    opacity: 1;
    display: block;
}

.logo-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
    height: 40px !important; /* Icon size */
    filter: brightness(0) invert(1); /* Make it white */
}

/* Scrolled state - swap logos */
.header.scrolled .logo {
    height: 45px; /* Keep same height as default */
}

.header.scrolled .logo-full {
    opacity: 0;
}

.header.scrolled .logo-icon {
    opacity: 1;
    display: block;
    height: 40px !important; /* Force size */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0 0 0 auto; /* Push to right */
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-color);
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: capitalize;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

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

/* Scrolled state - white text and smaller */
.header.scrolled .nav-link {
    color: white;
    font-size: 13px;
}

.header.scrolled .nav-link:hover {
    color: #ff6b7a;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-support {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 2rem;
    border-radius: 6px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-support:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.header.scrolled .mobile-menu-toggle {
    color: white;
}

/* Header Hide State - when scrolling down */
.header.hide {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    padding: 100px 0;
    background: black;
    position: relative;
    overflow: hidden; /* This will cut off the boxes */
    height: 880px; /* Fixed height to control visible area */
    /* Background image with black overlay */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.80)), /* Black overlay at 80% opacity */
        url('../images/hero-background.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    height: 600px; /* Match available space */
}

.hero-left {
    padding-left: 0;
    position: relative;
    z-index: 1; /* Behind text content */
}

.hero-graphics {
    position: relative;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: flex-start;
    margin-left: 0; /* Align with container edge */
    height: 100%;
}

.graphic-column-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: cycleUp 30s linear infinite;  /* Slowed down from 15s to 30s */
}

.graphic-column-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: cycleDown 30s linear infinite;  /* Slowed down from 20s to 30s */
    margin-top: -1440px; /* Start with top boxes hidden (4 boxes + gaps) */
}

@keyframes cycleUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-1080px); /* Move up by 3 boxes (330*3 + 30*3 gaps) */
    }
}

@keyframes cycleDown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(1440px); /* Move down by 4 boxes (330*4 + 30*4 gaps) */
    }
}

/* Tablet animations - left column has 3 boxes, right has 4 */
@keyframes cycleUpTablet {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-885px); /* 3 boxes * (280 + 15) for left column */
    }
}

@keyframes cycleDownTablet {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(1180px); /* 4 boxes * (280 + 15) for right column */
    }
}

/* Mobile animations - left column has 3 boxes, right has 4 */
@keyframes cycleUpMobile {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-705px); /* 3 boxes * (220 + 15) for left column */
    }
}

@keyframes cycleDownMobile {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(940px); /* 4 boxes * (220 + 15) for right column */
    }
}

.graphic-box {
    width: 260px;
    height: 330px; /* Taller boxes */
    background: rgba(255, 255, 255, 0.4); /* White with 40% opacity - matching dimmed text */
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.graphic-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    opacity: 0.7; /* Slightly transparent to blend with the box */
}

/* Specific sizing for CCC Emblem - 30% smaller */
.graphic-box img[src*="ccc-emblem"] {
    max-width: 56%; /* 80% * 0.7 = 56% */
    max-height: 56%; /* 80% * 0.7 = 56% */
}

/* Specific sizing for Peak Pizza - 40% smaller */
.graphic-box img[src*="peak-pizza"] {
    max-width: 48%; /* 80% * 0.6 = 48% */
    max-height: 48%; /* 80% * 0.6 = 48% */
}

/* Hover effects for graphic boxes */
.graphic-box {
    transition: all 0.3s ease;
}

.graphic-box a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Pause animation on column hover */
.graphic-column-left:hover,
.graphic-column-right:hover {
    animation-play-state: paused !important;
}

/* Individual box hover effect */
.graphic-box:hover {
    background: rgba(255, 255, 255, 0.6); /* Increase opacity on hover */
    transform: scale(1.05); /* Subtle scale increase */
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.graphic-box:hover img {
    opacity: 0.9; /* Make image more visible on hover */
    transform: scale(1.1); /* Slight zoom on image */
    transition: all 0.3s ease;
}

.hero-right {
    position: relative;
    z-index: 2; /* Above boxes */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    padding-top: 150px; /* Move content down */
}

/* Hero section specific text colors */
.hero-section h1 {
    color: white;
    font-weight: 1000 !important;
    font-size: 70px;
    line-height: 1rem;
    letter-spacing: -3px;
}

.hero-section h2,
.hero-section h3,
.hero-section p {
    color: white;
}

.hero-right {
    color: white;
}

.hero-subtitle {
    color: #4B70F5;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-title {
    color: white;
    font-weight: 1000;
    font-size: 70px;
    line-height: 1rem;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    min-height: 308px; /* 4 lines * 77px per line */
    /* Removed conflicting animation */
}

.hero-description {
    font-family: 'Rubik', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;  /* Changed from 1.8 to 1.6 */
    color: white;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}

.btn-primary {
    display: inline-block;
    background: black;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease;
}

.hero-section .btn-primary {
    margin-top: 100px;
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.hero-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* ===========================
   Services Section
=========================== */
.services-section {
    padding: 80px 0;
    background: #f5f5f5;
    position: relative;
    z-index: 10; /* Above hero boxes */
}

.section-header {
    text-align: left;
    max-width: 100%;
    margin: 0 0 4rem;
}

.section-subtitle {
    color: black;
    font-family: 'Rubik', sans-serif;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1.25rem;
    opacity: 1;
    text-align: left;
}

.section-title {
    margin-bottom: 1.5rem;
    font-weight: 900;
    font-size: 3rem;  /* 48px - desktop size */
    line-height: 55px;  /* Desktop line height - adjusted for better spacing */
    letter-spacing: -2px;
    font-family: 'Manrope', sans-serif;
    text-align: left;
}

.section-description {
    font-family: 'Rubik', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;  /* Changed from 1.8 to 1.6 */
    color: var(--text-light);
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 cards per line on desktop */
    gap: 2rem;
}

.service-card {
    background: white;
    border: none;  /* Removed border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);  /* Added subtle drop shadow */
    border-radius: 12px;
    padding: 2.5rem;
    padding-right: 120px;  /* Add right padding to prevent text overlap with images */
    text-align: left;  /* Changed from center to left */
    position: relative;
    overflow: hidden;  /* Ensure illustrations don't overflow */
}

.card-illustration {
    position: absolute;
    top: 2rem;
    right: 2rem;
    opacity: 0.2;  /* Subtle but visible */
}

.card-illustration i {
    font-size: 4rem;
    color: #666;
    font-weight: 100;  /* Thinnest weight for line-drawing effect */
}

.authenticity-image {
    position: absolute;
    top: -10px;  /* Moved up by 15px from 5px */
    right: 20px;
    width: 120px;  /* Increased to 120px */
    height: 120px;  /* Increased to 120px */
    opacity: 1;  /* Solid, no transparency */
    z-index: 10;  /* Ensure it's on top */
}

.authenticity-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.experience-image {
    position: absolute;
    top: 0px;  /* Moved down by 10px from -10px */
    right: 20px;
    width: 100px;  /* Reduced to 100px */
    height: 100px;
    opacity: 1;
    z-index: 10;
    overflow: hidden;  /* Ensure content doesn't exceed container */
}

.experience-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100px;  /* Force maximum width */
    max-height: 100px;  /* Force maximum height */
}

.quality-image {
    position: absolute;
    top: 15px;  /* Moved down by another 5px from 10px */
    right: 20px;
    width: 70px;  /* Reduced to 70px */
    height: 70px;
    opacity: 1;
    z-index: 10;
    overflow: hidden;  /* Ensure content doesn't exceed container */
}

.quality-image img {
    width: 70px !important;  /* Force exact width */
    height: 70px !important;  /* Force exact height */
    object-fit: contain;
    max-width: 70px;  /* Force maximum width */
    max-height: 70px;  /* Force maximum height */
}

.community-image {
    position: absolute;
    top: -10px;  /* Moved up by 10px from 0px */
    right: 20px;
    width: 120px;  /* Increased to 120px */
    height: 120px;
    opacity: 1;
    z-index: 10;
    overflow: hidden;  /* Ensure content doesn't exceed container */
}

.community-image img {
    width: 120px !important;  /* Force exact width */
    height: 120px !important;  /* Force exact height */
    object-fit: contain;
    max-width: 120px;  /* Force maximum width */
    max-height: 120px;  /* Force maximum height */
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 1.5rem;  /* Removed auto margin to left-align */
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
}

.service-card h3 {
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.6rem;  /* Increased from 1.375rem */
    font-weight: 800;  /* Increased from 600 */
    letter-spacing: -1px;  /* Added letter spacing */
}

.service-card p {
    font-family: 'Rubik', sans-serif;
    font-size: 1.125rem;  /* Match section-description size */
    font-weight: 300;
    line-height: 1.6;  /* Match section-description line-height */
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.service-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ===========================
   Technical Section
=========================== */
.technical-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.technical-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.technical-content h2 {
    margin-bottom: 1.5rem;
}

.technical-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.technical-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tech-img-1, .tech-img-2 {
    height: 300px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tech-img-2 {
    margin-top: 2rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ===========================
   Clients Section
=========================== */
.clients-section {
    padding: 80px 0;
    background: white;
}

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

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.client-logos img {
    height: 40px;
    width: auto;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.client-logos img:hover {
    opacity: 1;
    filter: grayscale(0);
}

.clients-wrapper h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* ===========================
   Contact Section
=========================== */
.contact-section {
    padding: 80px 0;
    background: var(--dark-color);
    color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-email {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

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

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

.social-icons a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.contact-form-wrapper .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form-wrapper h2 {
    color: white;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 1rem;
    color: white;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===========================
   Features Section
=========================== */
.features-section {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.icon-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
}

.feature-card h3 {
    font-family: 'Manrope', sans-serif;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.feature-card p {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.divider {
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

.feature-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.feature-link:hover {
    gap: 1rem;
}

/* ===========================
   History Section
=========================== */
.history-section {
    padding: 80px 0;
    background: var(--gradient-purple);
    color: white;
}

.history-header {
    text-align: center;
    margin-bottom: 4rem;
}

.history-header .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.history-header h2 {
    color: white;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.history-item h3 {
    font-family: 'Manrope', sans-serif;
    color: white;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 600;
}

.history-item p {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* ===========================
   CTA Section
=========================== */
.cta-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.cta-content {
    text-align: center;
    margin-bottom: 4rem;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.info-item h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-item p {
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

/* ===========================
   Footer
=========================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-family: 'Rubik', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-middle {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-contact h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.footer-contact h4 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;  /* Changed from 1.8 to 1.6 */
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* ===========================
   Animations
=========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Responsive Design
=========================== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed !important;
        top: 70px !important;
        right: -320px !important; /* Increased from -100% to ensure it's fully off-screen */
        width: 300px !important;
        height: calc(100vh - 70px) !important;
        background: white !important;
        flex-direction: column !important;
        padding: 2rem !important;
        transition: right 0.3s ease !important;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important; /* Hide horizontal overflow */
        z-index: 1001 !important;  /* Higher than header */
        display: flex !important;
        margin: 0 !important;  /* Override the auto margin */
        gap: 0 !important;  /* Remove gap for mobile */
        list-style: none !important;
        border: none !important;
        transform: translateX(0) !important; /* Ensure no transform issues */
    }

    .nav-menu.active {
        right: 0 !important;
        transform: translateX(0) !important;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-item {
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid #e0e0e0 !important;
        width: 100% !important;
        display: block !important;
        color: #1e293b !important;
        background: transparent !important;
        text-decoration: none !important;
        font-size: 16px !important;
        transition: background 0.3s ease !important;
    }

    .nav-link:hover {
        background: #f8f8f8 !important;
    }

    .dropdown-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .nav-item.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f5f5f5;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
    }

    .nav-item.active .dropdown-menu {
        display: block;
        max-height: 500px;
        padding: 0.5rem 0;
    }

    .dropdown-menu a {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .btn-support {
        display: none;
    }

    .hero-grid,
    .technical-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-graphics {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Mobile header adjustments - 20% reduction */
    .navbar {
        padding: 1.6rem 0; /* 20% less than desktop 2rem */
    }

    .header.scrolled .navbar {
        padding: 0.7rem 0; /* 20% less than desktop 0.875rem */
    }

    .logo {
        height: 36px; /* 20% less than desktop 45px */
    }

    .header.scrolled .logo {
        height: 36px; /* Maintain same height when scrolled */
    }

    .header.scrolled .logo-icon {
        height: 32px !important; /* 20% less than desktop 40px */
    }

    /* Reduce burger menu icon by 20% when scrolled */
    .header.scrolled .mobile-menu-toggle {
        font-size: 19.2px; /* 20% less than default 24px */
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Mobile specific styling for section titles - proportional scaling */
    .section-title {
        font-size: 2rem !important;  /* 32px - mobile size */
        line-height: calc(2rem * 1.146) !important;  /* ~37px - maintains desktop ratio of 55/48 */
        letter-spacing: -2px !important;
    }

    /* Mobile specific paragraph line height - proportionally scaled */
    p,
    .section-description,
    .hero-description {
        line-height: 1.5 !important;  /* Reduced from desktop 1.6 for mobile readability */
    }

    .hero-section {
        padding: 80px 0 0;
        height: 400px !important; /* Reduced height for mobile */
        display: flex;
        align-items: center;
        overflow: hidden; /* Prevent horizontal scroll */
    }

    .hero-section .container {
        padding: 0; /* Remove container padding in hero */
        width: 100%;
        max-width: 100%;
    }

    /* Hide the hero text on mobile within hero section */
    .hero-title {
        display: none !important;
    }

    /* Graphic box sizes for mobile */
    .graphic-box {
        width: 170px !important;  /* Reduced width */
        height: 220px !important;  /* User requested height */
        border-radius: 15px !important;
    }

    .graphic-column-left,
    .graphic-column-right {
        gap: 15px !important;  /* Consistent gap */
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-graphics {
        display: flex !important;
        justify-content: center !important;
        width: calc(100% - 30px) !important; /* 15px on each side */
        max-width: none !important;
        margin: 0 15px !important; /* 15px space on each side */
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .hero-grid {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .hero-left {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 0 !important;
        padding-left: 0 !important; /* Override desktop padding-left */
        padding-right: 0 !important; /* Override any padding-right */
        margin: 0 !important; /* Remove all margins */
        box-sizing: border-box !important;
        position: relative !important;
    }

    .hero-right {
        display: none !important; /* Hide the right column on mobile only */
    }

    .services-grid {
        grid-template-columns: 1fr;  /* 1 card per line on mobile and tablet */
        gap: 1rem;  /* Smaller gap for mobile */
    }

    .service-card {
        padding: 1.5rem;  /* Reduced padding for mobile */
        padding-right: 100px;  /* Maintain right padding on mobile to prevent overlap */
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-info {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

@media (max-width: 480px) {
    /* Remove the display: none so graphics show on mobile */
    .hero-graphics {
        display: flex !important;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .services-section,
    .technical-section,
    .features-section,
    .history-section,
    .cta-section {
        padding: 50px 0;
    }
}

/* Mobile Hero Text Section */
.mobile-hero-text {
    display: none; /* Hidden by default on desktop */
}

/* Fix for overlap - only hide desktop title on actual mobile/tablet */
@media (min-width: 1150px) {
    /* Desktop view - show regular hero title */
    .mobile-hero-text {
        display: none !important;
    }
}

@media (max-width: 1149px) and (min-width: 884px) {
    /* Tablet range - reduce desktop hero title size to prevent overlap */
    .hero-title {
        font-size: 50px !important;  /* Reduced from 70px */
        line-height: 55px !important;  /* Reduced from 77px */
        margin-top: -40px !important;  /* Lift up by 40px */
    }

    .hero-title .line {
        height: 55px !important;
        line-height: 55px !important;
    }

    .mobile-hero-text {
        display: none !important;  /* Keep mobile version hidden on tablets */
    }

    /* Fix animation for tablet box sizes (220x280 + 15px gap) */
    .graphic-column-left {
        animation: cycleUpTablet 30s linear infinite !important; /* Consistent speed */
        margin-top: 0 !important; /* Start from top */
    }

    .graphic-column-right {
        animation: cycleDownTablet 30s linear infinite !important; /* Same speed as left */
        margin-top: -1180px !important; /* 4 boxes * (280 + 15) */
    }
}

@media (max-width: 883px) {
    /* Mobile view engages at 883px - hide desktop hero and show mobile version */
    .hero-title {
        display: none !important;
    }

    /* Hide the hero button */
    .hero-content .btn-primary,
    .hero-left .btn-primary {
        display: none !important;
    }

    /* Center the scrolling boxes */
    .hero-graphics {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .hero-left {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* Fix animation for mobile box sizes (170x220 + 15px gap) */
    .graphic-column-left {
        animation: cycleUpMobile 30s linear infinite !important; /* Consistent speed */
        margin-top: 0 !important; /* Start from top */
    }

    .graphic-column-right {
        animation: cycleDownMobile 30s linear infinite !important; /* Same speed as left */
        margin-top: -940px !important; /* 4 boxes * (220 + 15) */
    }

    .mobile-hero-text {
        display: block !important;
        background: black;
        padding: 60px 10px 120px;
        text-align: left;
        height: 420px;
        overflow: hidden;
    }

    .mobile-hero-text .container {
        padding: 0 5px;
        max-width: 100%;
    }

    .mobile-hero-title {
        color: white;
        font-weight: 1000;
        font-size: 45px !important;
        line-height: 50px !important;
        letter-spacing: -2px;
        margin: 0;
        height: 250px;
        text-align: left;
        overflow: hidden;
    }

    .mobile-hero-title .line {
        display: block !important;
        min-height: 50px !important;
        line-height: 50px !important;
        position: relative;
        margin-bottom: 0;
        vertical-align: top;
        width: 100%;
        overflow: visible !important;
        white-space: normal !important;
        height: auto !important;
    }

    .mobile-hero-title .line.dimmed {
        opacity: 0.4 !important;
        transition: opacity 0.5s ease-out;
    }

    .mobile-hero-title .line.fading {
        animation: fadeOut 0.5s ease-out;
        pointer-events: none;
    }

    /* Special handling for the fourth line */
    .mobile-hero-title .line:nth-child(4) {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* Tablet specific styles - now handled by the 1149px breakpoint above */
@media (min-width: 769px) and (max-width: 1149px) {
    .hero-section {
        height: 600px !important; /* Moderate height for tablets */
        padding: 100px 0;
    }

    /* Adjust graphic boxes for tablet */
    .graphic-box {
        width: 220px !important;
        height: 280px !important;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    /* Tablet specific styling for section titles - proportional scaling */
    .section-title {
        font-size: 2.5rem !important;  /* 40px - proportionally scaled */
        line-height: calc(2.5rem * 1.146) !important;  /* ~46px - maintains desktop ratio of 55/48 */
    }

    /* Tablet specific paragraph line height - proportionally scaled */
    p,
    .section-description,
    .hero-description {
        line-height: 1.55 !important;  /* Slightly reduced from desktop 1.6 */
    }

    /* Service cards - 2 per line on tablet */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile styles - only for screens 768px and below */
@media (max-width: 768px) {
    /* Ensure menu is completely hidden on mobile */
    html, body {
        overflow-x: hidden !important;
        position: relative;
        width: 100%;
    }

    .nav-menu {
        right: -350px !important; /* Extra distance to ensure it's off-screen */
        visibility: hidden; /* Hide by default */
    }

    .nav-menu.active {
        visibility: visible;
        right: 0 !important;
    }
    .mobile-hero-text {
        display: block !important;
        background: black;
        padding: 60px 10px 120px; /* Reduced side padding from 20px to 10px */
        text-align: left; /* Left-align text */
        height: 420px; /* Fixed height instead of min-height */
        overflow: hidden; /* Prevent expansion */
    }

    .mobile-hero-text .container {
        padding: 0 5px; /* Minimal padding on container for more width */
        max-width: 100%;
    }

    .mobile-hero-title {
        color: white;
        font-weight: 1000;  /* Increased to 1000 */
        font-size: 45px !important;  /* Reduced to 45px */
        line-height: 50px !important; /* Reduced proportionally */
        letter-spacing: -2px;
        margin: 0;
        height: 250px; /* Fixed height to accommodate wrapping */
        text-align: left; /* Ensure left alignment */
        overflow: hidden; /* Prevent expansion */
    }

    .mobile-hero-title .line {
        display: block !important; /* Changed from inline-block to block */
        min-height: 50px !important; /* Changed to min-height for wrapping */
        line-height: 50px !important; /* Match the height */
        position: relative;
        margin-bottom: 0; /* Remove any margin */
        vertical-align: top;
        width: 100%; /* Full width for each line */
        overflow: visible !important; /* Allow text to wrap */
        white-space: normal !important; /* Allow wrapping */
        height: auto !important; /* Allow height to expand */
    }

    .mobile-hero-title .line::after {
        content: '';
        position: absolute;
        right: auto;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        width: 2px;
        height: 40px;
        background: white;
        opacity: 0;
        animation: none;
        margin-left: 3px;
    }

    .mobile-hero-title .line.typing::after {
        opacity: 1;
        animation: blink 1s infinite;
    }

    .mobile-hero-title .line.done::after {
        opacity: 0;
        animation: none;
    }

    .mobile-hero-title .line.dimmed {
        opacity: 0.4 !important;
        transition: opacity 0.5s ease-out;
    }

    .mobile-hero-title .line.fading {
        animation: fadeOut 0.5s ease-out;  /* Removed 'forwards' */
        pointer-events: none; /* Prevent interaction during fade */
    }

    .mobile-hero-title .line.cleared {
        opacity: 0 !important;
        visibility: hidden !important;
        height: 0 !important;
    }

    /* Special handling for the fourth line that contains longer text */
    .mobile-hero-title .line:nth-child(4) {
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* ===========================
   Typing Animation
=========================== */
.hero-title .line {
    display: inline-block;
    height: 77px;
    line-height: 77px;
    position: relative;
    vertical-align: top;
}

.hero-title .line::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 3px;
    height: 70px;
    background: white;
    opacity: 0;
    animation: none;
}

.hero-title .line.typing::after {
    opacity: 1;
    animation: blink 1s infinite;
}

.hero-title .line.done::after {
    opacity: 0;
    animation: none;
}

.hero-title .line.fading {
    animation: fadeOut 0.5s ease-out forwards;
}

.hero-title .line.dimmed {
    opacity: 0.4;
    transition: opacity 0.5s ease-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}