/* CSS Variables for easy theming */
:root {
    --primary-green: #4CAF50;
    --accent-purple: #8E24AA;
    --neutral-dark: #212121;
    --neutral-medium: #333333;
    --neutral-light: #dddddd;
    --text-light: #ffffff;
    --text-dark: #000000;
    --font-base: clamp(16px, 1.5vw, 18px);
    --spacing-base: 1rem;
    --transition: 0.4s ease;
    --header-height: 60px;
}

/* Typography Scale */
body {
    font-family: 'Montserrat', sans-serif, system-ui;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--neutral-dark);
    line-height: 1.6;
    font-size: var(--font-base);
    padding-top: var(--header-height);
}

body.menu-open {
    overflow: hidden;
}

h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; }
h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    border-bottom: 2px solid transparent;
    text-align: center;
    text-shadow: 0 2px 4px rgba(142, 36, 170, 0.3);
}
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 700; text-shadow: 0 2px 4px rgba(142, 36, 170, 0.3); }

/* Container with fluid width */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    overflow: visible;
}

/* Header Improvements */
.header {
    background-color: #000000;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
    transition: background-color var(--transition);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

.logo {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 900;
    color: var(--primary-green);
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: clamp(12px, 2.5vw, 24px);
    margin: 0;
    margin-left: auto;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 16px);
    transition: color var(--transition), border-bottom var(--transition);
    text-transform: none;
    padding: 8px;
}

.nav a:hover {
    color: var(--accent-purple);
    border-bottom: 2px solid var(--accent-purple);
}

.nav a:active {
    color: var(--accent-purple);
}

.header-cta {
    padding: 0.5rem 1rem;
    background: var(--accent-purple);
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 700;
    animation: pulse 2s infinite;
    margin-left: 1rem;
}

.header-cta:hover,
.header-cta:active {
    background: #7B1FA2;
}

.login-button {
    padding: 0.5rem 1rem;
    background: var(--primary-green);
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 700;
    margin-left: 1rem;
    position: relative;
    cursor: default;
}

.login-button:hover::after,
.login-button:active::after {
    content: 'Coming Soon';
    position: absolute;
    top: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neutral-dark);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1001;
}

.login-button:hover,
.login-button:active {
    background: #388E3C;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.header-cta:focus, .login-button:focus {
    outline: none;
}

.header-cta:focus-visible, .login-button:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    margin-left: auto;
}

.menu-toggle.active {
    color: var(--accent-purple);
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.nav-menu {
    display: flex;
    margin-left: auto;
}

/* Hero Section */
.main-page-top-content-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-color: var(--neutral-dark);
}

.main-page-top-content-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.main-page-top-content-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.main-page-top-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(142,36,170,0.2), rgba(46,125,50,0.2));
}

.main-page-top-content-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    word-break: break-word;
}

/* Trusted Bar */
.trusted-bar {
    background-color: var(--primary-green);
    height: 8px;
    width: 100%;
    margin: 0;
    clear: both;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Delivery Section */
.delivery {
    padding: clamp(40px, 5vw, 80px) 0;
    background-color: var(--neutral-dark);
    color: var(--text-light);
    display: block;
    position: relative;
}

.delivery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.delivery > * {
    position: relative;
    z-index: 2;
}

.delivery-background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    z-index: 0;
}

.features-carousel {
    display: block;
    max-width: 100%;
    margin: var(--spacing-base) auto;
    min-height: auto;
    overflow: hidden;
    position: relative;
}

.feature-wrapper.carousel-fixed {
    position: relative;
    width: clamp(400px, 85%, 700px);
    height: 340px;
    margin: 0 auto;
    overflow: visible;
    box-sizing: border-box;
}

.feature-card {
    background: var(--neutral-medium);
    padding: clamp(20px, 2.5vw, 28px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: opacity 0.4s ease;
    text-align: center;
    border: 2px solid var(--primary-green);
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 300px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    display: none;
    box-sizing: border-box;
    margin-right: 32px;
}

.feature-card.visible {
    opacity: 1;
    display: block;
    z-index: 3;
}

.feature-card ul {
    list-style: none;
    text-align: left;
    padding-left: 1.5em;
    margin: 0;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.6;
}

.feature-card ul li {
    position: relative;
    padding-left: 1.5em;
}

.feature-card ul li::before {
    content: '•';
    position: absolute;
    left: -1.5em;
    color: var(--accent-purple);
    font-weight: bold;
}

.feature-card p, .feature-card ul {
    margin-bottom: 15px;
}

.feature-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    z-index: 3;
}

.feature-icon {
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.arrow-left, .arrow-right {
    background: var(--primary-green);
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 16px;
    border-radius: 50%;
    transition: background var(--transition);
    z-index: 4;
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    outline: none;
}

.arrow-left {
    left: 12px;
}

.arrow-right {
    right: 12px;
}

.arrow-left:hover, .arrow-right:hover,
.arrow-left:active, .arrow-right:active {
    background: var(--accent-purple);
}

.arrow-left:focus, .arrow-right:focus {
    outline: none;
}

.arrow-left:focus-visible, .arrow-right:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.process-container {
    display: flex;
    gap: var(--spacing-base);
    max-width: 90%;
    margin: var(--spacing-base) auto;
}

.step-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-button {
    background: var(--neutral-medium);
    border: 1px solid var(--neutral-light);
    color: var(--text-light);
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
    text-align: left;
    z-index: 5;
    min-height: 48px;
}

.step-button:focus {
    outline: none;
}

.step-button:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.step-button.active, .step-button:hover,
.step-button:active {
    background: var(--accent-purple);
    transform: scale(1.02);
}

.step-content {
    flex: 2;
    position: relative;
    min-height: 260px;
    width: 95%;
    max-width: 800px;
    margin: 0 auto;
    overflow-y: hidden;
}

.step-card {
    background-color: var(--neutral-medium);
    padding: clamp(16px, 2vw, 20px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: opacity 0.5s ease;
    text-align: center;
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 260px;
    opacity: 0;
    display: none;
    border: 3px solid var(--primary-green);
    overflow-y: hidden;
    box-sizing: border-box;
}

.step-card.active {
    display: block;
    opacity: 1;
    z-index: 3;
}

.step-icon {
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Section */
.why-choose {
    padding: clamp(40px, 5vw, 80px) 0;
    background-color: var(--neutral-dark);
    color: var(--text-light);
    position: relative;
    display: block;
}

.why-choose::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.why-choose > * {
    position: relative;
    z-index: 2;
}

.benefits-content {
    background-color: rgba(33,33,33,0.6);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid var(--neutral-light);
    max-width: 90%;
    margin: var(--spacing-base) auto;
    padding: clamp(16px, 2vw, 20px);
    text-align: left;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.benefits-content ul {
    list-style: none;
    padding-left: 1.5em;
    columns: 2;
    column-gap: 2rem;
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.6;
}

.benefits-content ul li {
    position: relative;
    break-inside: avoid;
}

.benefits-content ul li::before {
    content: '•';
    position: absolute;
    left: -1.5em;
    color: var(--accent-purple);
    font-weight: bold;
}

.tab-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    margin: var(--spacing-base) auto;
    overflow-x: hidden;
}

.ai-carousel-track {
    display: flex;
    flex-direction: row;
    animation: slideLeft 30s linear infinite;
}

@keyframes slideLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1200px); }
}

.tab-content {
    flex: 0 0 auto;
    width: 300px;
    min-height: 320px;
    padding: 0 10px;
    box-sizing: border-box;
}

.capability-box {
    background-color: rgba(33,33,33,0.6);
    padding: clamp(12px, 1.5vw, 16px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transition: transform var(--transition);
    width: 300px;
    min-height: 320px;
    border: 1px solid rgba(46,125,50,0.3);
    box-sizing: border-box;
}

.capability-box.highlight {
    transform: scale(1.05);
    border-color: var(--primary-green);
}

.capability-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.capability-box h3 {
    font-size: clamp(18px, 2vw, 22px);
    margin: 0 0 12px;
}

.capability-box p {
    font-size: clamp(13px, 1.3vw, 15px);
    margin: 0;
}

/* About-Testimonials Section */
.about-testimonials {
    padding: clamp(40px, 5vw, 80px) 0;
    background-color: var(--neutral-dark);
    color: var(--text-light);
    position: relative;
    display: block;
    animation: fadeInZoom 0.8s ease forwards;
}

.about-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.about-testimonials video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    z-index: -2;
}

.about-testimonials > * {
    position: relative;
    z-index: 2;
}

.about-testimonials h2 {
    border-bottom: none !important;
    text-align: center;
}

.about-testimonials p {
    max-width: 90%;
    margin: 0 auto calc(var(--spacing-base) * 2);
    font-size: clamp(18px, 1.8vw, 20px);
    line-height: 1.8;
    text-shadow: 0 0 4px rgba(142,36,170,0.3);
}

.about-testimonials .section-subheading:last-of-type {
    margin-top: calc(var(--spacing-base) * 2);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 90%;
    margin: var(--spacing-base) auto;
    z-index: 2;
}

.team-card {
    background-color: var(--neutral-medium);
    padding: clamp(20px, 2.5vw, 28px);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    text-align: center;
    word-break: break-word;
    overflow-wrap: break-word;
    min-height: 150px;
    border: 2px solid var(--primary-green);
}

.team-card h3 {
    margin: 0 0 8px;
}

.team-card p {
    font-size: clamp(14px, 1.4vw, 16px);
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 90%;
    margin: var(--spacing-base) auto;
}

.testimonial-card {
    background-color: var(--neutral-medium);
    padding: clamp(16px, 2vw, 24px);
    border-radius: 20px;
    text-align: center;
    z-index: 2;
    border: 2px solid var(--primary-green);
}

.rating {
    color: gold;
    margin-top: 8px;
}

.disclaimer {
    color: var(--neutral-light);
    font-size: 0.875rem;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.section-subheading {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--text-light);
    margin: 1rem 0;
    text-align: center;
    position: relative;
}

.section-subheading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-green), var(--accent-purple));
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@keyframes fadeInZoom {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Contact */
.contact {
    padding: clamp(40px, 5vw, 80px) 0;
    background-image: linear-gradient(to bottom, rgba(33,33,33,0.8), rgba(0,0,0,0.9));
    color: var(--text-light);
    position: relative;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(142,36,170,0.2), rgba(46,125,50,0.2));
    z-index: 1;
}

.contact > * {
    position: relative;
    z-index: 2;
}

.contact h2 {
    text-align: center;
}

.contact-form {
    display: grid;
    gap: var(--spacing-base);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input, .contact-form textarea {
    background-color: var(--neutral-medium);
    color: var(--text-light);
    border: 1px solid #555555;
    padding: 1rem;
    border-radius: 8px;
    font-size: var(--font-base);
    word-wrap: break-word;
    max-width: 100%;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
}

.contact-form input:focus-visible, .contact-form textarea:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.contact-form button {
    background-color: var(--accent-purple);
    color: var(--text-light);
    border: none;
    padding: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.contact-form button:hover,
.contact-form button:active {
    background-color: #7B1FA2;
    box-shadow: 0 0 10px var(--accent-purple);
}

.contact-form a {
    color: #4CAF50;
    text-decoration: underline;
}

.contact-form a:hover,
.contact-form a:active {
    color: var(--primary-green);
}

.contact-form a:focus {
    outline: none;
}

.contact-form a:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

.contact-info {
    text-align: center;
    margin-top: var(--spacing-base);
}

.contact-info a {
    color: #4CAF50;
}

.contact-info a:focus {
    outline: none;
}

.contact-info a:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Footer */
.footer {
    background-color: #000000;
    color: var(--neutral-light);
    padding: var(--spacing-base) 0;
    text-align: center;
}

.footer ul {
    display: flex;
    justify-content: center;
    gap: 16px;
    list-style: none;
    margin: 8px 0;
}

.footer a {
    color: #4CAF50;
    text-decoration: none;
}

.footer a:hover,
.footer a:active {
    text-decoration: underline;
}

.social-links a {
    transition: transform var(--transition);
}

.social-links a:hover,
.social-links a:active {
    transform: scale(1.2);
    text-decoration: none;
}

.social-links svg path {
    fill: #4CAF50;
}

/* Animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .fade-in, .arrow-left:hover, .arrow-right:hover {
        transition: none;
    }
    .about-testimonials {
        animation: none;
    }
    .ai-carousel-track {
        animation: none;
    }
    .delivery-background-canvas, #starfield-canvas {
        display: none;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    .nav-menu {
        display: flex;
        position: static;
        background: none;
        box-shadow: none;
        width: auto;
        padding: 0;
        z-index: 1000;
    }
    .nav ul {
        flex-direction: row;
        margin-left: auto;
        gap: clamp(8px, 1.5vw, 24px);
    }
    .nav a {
        padding: clamp(6px, 0.8vw, 8px);
        font-size: clamp(12px, 1.2vw, 16px);
        white-space: nowrap;
    }
    .header-cta {
        padding: clamp(0.4rem, 0.8vw, 0.5rem) clamp(0.8rem, 1.5vw, 1rem);
        animation: none;
    }
}

/* Mobile Breakpoints */
@media (max-width: 768px) {
    .main-page-top-content-section {
        height: 80vh;
        min-height: 400px;
    }
    .main-page-top-content-inner h1 {
        font-size: clamp(28px, 4vw, 40px);
    }
    .main-page-top-content-inner p {
        font-size: clamp(14px, 1.6vw, 16px);
    }
    .main-page-top-content-inner {
        padding: 20px;
    }
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    .nav-menu {
        display: none !important;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: #000000;
        padding: 1rem;
        z-index: 1002;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .nav-menu.active {
        display: flex !important;
    }
    .nav ul {
        flex-direction: column;
        gap: 16px;
        margin-left: 0;
        width: 100%;
        align-items: center;
    }
    .nav a {
        padding: 12px;
        min-width: 120px;
        text-align: center;
    }
    .header-cta, .login-button {
        margin-top: 16px;
        width: auto;
        display: inline-block;
    }
    .benefits-content ul {
        columns: 1;
        padding-left: 1.5em;
    }
    .process-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 8px;
    }
    .step-list {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 8px;
        flex-wrap: wrap;
    }
    .step-button {
        flex: 0 0 auto;
        text-align: center;
        padding: 10px 20px;
        min-height: 48px;
        font-size: clamp(12px, 1.3vw, 14px);
        min-width: 80px;
    }
    .step-button:nth-child(4), .step-button:nth-child(5) {
        margin-top: 8px;
    }
    .step-content {
        min-height: 150px;
        width: 95%;
        max-width: 400px;
        margin: 0 auto;
        overflow-y: visible;
    }
    .step-card {
        position: relative;
        min-height: auto;
        padding: clamp(6px, 0.8vw, 8px);
        font-size: clamp(11px, 1.2vw, 12px);
        border: 3px solid var(--primary-green);
        display: none;
        visibility: hidden;
    }
    .step-card.active {
        display: block;
        visibility: visible;
        opacity: 1;
        z-index: 3;
    }
    .step-card h3 {
        font-size: clamp(16px, 1.8vw, 18px);
    }
    .step-card p {
        font-size: clamp(11px, 1.2vw, 12px);
    }
    .step-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    .arrow-left, .arrow-right {
        font-size: 12px;
        padding: 10px;
        top: 10px;
        transform: none;
    }
    .arrow-left {
        left: 8px;
    }
    .arrow-right {
        right: 16px;
    }
    .feature-wrapper.carousel-fixed {
        width: 95%;
        max-width: 400px;
        height: 320px;
    }
    .feature-card {
        min-height: 280px;
        padding: clamp(16px, 2vw, 24px);
        margin-right: 32px;
    }
    .feature-card ul {
        font-size: clamp(14px, 1.6vw, 18px);
    }
    .tab-content {
        width: 250px;
        min-height: 300px;
    }
    .capability-box {
        width: 250px;
        min-height: 300px;
        padding: clamp(12px, 1.4vw, 14px);
    }
    .capability-box h3 {
        font-size: clamp(16px, 1.8vw, 20px);
    }
    .capability-box p {
        font-size: clamp(12px, 1.2vw, 14px);
    }
    @keyframes slideLeft {
        0% { transform: translateX(0); }
        100% { transform: translateX(-750px); }
    }
    .ai-carousel-track {
        animation: slideLeftMobile 40s linear infinite;
        animation-play-state: running;
    }
    @keyframes slideLeftMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-600px); }
    }
    .tab-container {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tab-container::-webkit-scrollbar {
        display: none;
    }
    .tab-container, .ai-carousel-track, .tab-content, .capability-box {
        pointer-events: none;
    }
    .delivery-background-canvas, #starfield-canvas {
        display: block;
    }
    .about-testimonials {
        padding: clamp(5px, 0.6vw, 7px) 0;
    }
    .about-testimonials p {
        font-size: clamp(6px, 0.6vw, 8px);
        line-height: 1.3;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        padding: 0.1rem;
    }
    .team-card {
        padding: clamp(3px, 0.5vw, 5px);
        font-size: clamp(5px, 0.5vw, 7px);
        min-height: 42px;
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        padding: 0.1rem;
    }
    .testimonial-card {
        padding: clamp(3px, 0.5vw, 5px);
        font-size: clamp(5px, 0.5vw, 7px);
    }
    .testimonial-card p {
        font-size: clamp(5px, 0.5vw, 7px);
    }
    .testimonial-card cite {
        font-size: clamp(4px, 0.4vw, 6px);
    }
    .contact-form {
        max-width: 90vw;
        width: 100%;
        margin: 0 auto;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    .contact-form input, .contact-form textarea {
        padding: 0.75rem;
        font-size: clamp(12px, 1.4vw, 14px);
    }
    .contact-form .h-captcha {
        transform: scale(0.9);
    }
    .contact-info {
        margin-top: 0.5rem;
    }
    .tab-container {
        scroll-snap-type: x mandatory;
    }
    .tab-content {
        scroll-snap-align: center;
    }
}

@media (max-width: 480px) {
    .main-page-top-content-section {
        height: 80vh;
        min-height: 350px;
    }
    .main-page-top-content-inner h1 {
        font-size: clamp(24px, 3.5vw, 36px);
    }
    .main-page-top-content-inner p {
        font-size: clamp(12px, 1.4vw, 14px);
    }
    .main-page-top-content-inner {
        padding: 20px;
    }
    h1 { font-size: 36px; }
    .cta-button { font-size: 16px; }
    .team-card {
        padding: clamp(3px, 0.5vw, 5px);
        font-size: clamp(5px, 0.5vw, 7px);
        min-height: 42px;
    }
    .testimonial-card {
        padding: clamp(3px, 0.5vw, 5px);
        font-size: clamp(5px, 0.5vw, 7px);
    }
    .testimonial-card p {
        font-size: clamp(5px, 0.5vw, 7px);
    }
    .testimonial-card cite {
        font-size: clamp(4px, 0.4vw, 6px);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        padding: 0.1rem;
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.3rem;
        padding: 0.1rem;
    }
    .arrow-left, .arrow-right {
        font-size: 12px;
        padding: 10px;
        top: 10px;
        transform: none;
    }
    .arrow-left {
        left: 8px;
    }
    .arrow-right {
        right: 16px;
    }
    .feature-wrapper.carousel-fixed {
        width: 95%;
        max-width: 400px;
        height: 300px;
    }
    .feature-card {
        min-height: 260px;
        padding: clamp(12px, 1.8vw, 20px);
        margin-right: 32px;
    }
    .feature-card ul {
        font-size: clamp(12px, 1.4vw, 16px);
    }
    .step-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 0 8px;
    }
    .step-button {
        padding: 8px 12px;
        font-size: clamp(11px, 1.2vw, 12px);
        min-width: 70px;
        min-height: 44px;
    }
    .step-button:nth-child(4), .step-button:nth-child(5) {
        margin-top: 6px;
    }
    .step-content {
        min-height: 150px;
        overflow-y: visible;
    }
    .step-card {
        position: relative;
        min-height: auto;
        padding: clamp(6px, 0.8vw, 8px);
        font-size: clamp(11px, 1.2vw, 12px);
    }
    .step-card h3 {
        font-size: clamp(16px, 1.8vw, 18px);
    }
    .step-card p {
        font-size: clamp(11px, 1.2vw, 12px);
    }
    .step-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    .tab-content {
        width: 200px;
        min-height: 260px;
    }
    .capability-box {
        width: 200px;
        min-height: 260px;
        padding: clamp(10px, 1.2vw, 12px);
    }
    .capability-box h3 {
        font-size: clamp(14px, 1.6vw, 18px);
    }
    .capability-box p {
        font-size: clamp(11px, 1.1vw, 13px);
    }
    @keyframes slideLeft {
        0% { transform: translateX(0); }
        100% { transform: translateX(-600px); }
    }
    .contact-form .h-captcha {
        max-width: 100%;
        transform: scale(0.85);
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .team-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Mid-mobile refinement (larger phones like 414px) */
@media (min-width: 414px) and (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}