/* 
==============================================
   ADIPOLI - COMPLETE FIXES
   1. Red "Make it Adipoli" button with animation
   2. Fixed Functional Core mobile layout
   3. Fixed flickering issues
   All previous fixes included
==============================================
*/

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-glass: rgba(30, 30, 30, 0.4);
    --color-text-main: #f0f0f0;
    --color-text-muted: #a0a0a0;

    --color-accent-teal: #00e5ff;
    --color-accent-lime: #c0ff00;
    --color-accent-orange: #ff9e40;
    --color-red: #ff4040;

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Motion System - Ease */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0.0, 0.2, 1);

    /* Motion System - Duration */
    --duration-fast: 300ms;
    --duration-normal: 600ms;
    --duration-slow: 1000ms;
    --duration-epic: 1500ms;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ===================================
   UNIFIED BACKGROUND - ENTIRE WEBSITE
   FIX #3: Removed fixed attachment to prevent flickering on mobile
=================================== */
body {
    background: radial-gradient(circle at 70% 50%, #051f1a 0%, #000000 70%);
    background-size: cover;
    color: var(--color-text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Desktop only: use fixed attachment */
@media (min-width: 1024px) {
    body {
        background-attachment: fixed;
    }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--duration-fast) ease;
}

a:hover {
    color: #ff4040;
}

button,
input {
    font-family: inherit;
    border: none;
    outline: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* 
==============================================
   COMPONENTS
==============================================
*/

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out-back), 
                box-shadow var(--duration-fast) ease,
                background var(--duration-fast) ease,
                color var(--duration-fast) ease;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--color-text-main);
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 64, 64, 0.3);
    color: #ff4040;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(255, 64, 64, 0.3);
    background: #ff4040;
    color: #fff;
}

.btn-secondary:hover {
    border-color: #ff4040;
    color: #ff4040;
    background: rgba(255, 64, 64, 0.05);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* ===================================
   FIX #1: RED "MAKE IT ADIPOLI" BUTTON
=================================== */

/* Red & White Gradient Button */
.btn-white {
    background: linear-gradient(135deg, #ffffff 0%, #ff4040 100%);
    color: #000000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animated gradient shift on hover */
.btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff4040 0%, #ffffff 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-white:hover::before {
    left: 0;
}

.btn-white:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(255, 64, 64, 0.4),
        0 0 40px rgba(255, 64, 64, 0.3);
    color: #ffffff;
}

/* Pulsing glow animation */
@keyframes pulseRed {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 64, 64, 0.3),
            0 10px 20px rgba(255, 64, 64, 0.2);
    }
    50% {
        box-shadow: 
            0 0 40px rgba(255, 64, 64, 0.5),
            0 10px 30px rgba(255, 64, 64, 0.4);
    }
}

.btn-white {
    animation: pulseRed 2s ease-in-out infinite;
}

.btn-white:hover {
    animation: none;
}

/* Mobile: simplify animation */
@media (max-width: 768px) {
    .btn-white {
        animation: none;
    }
    
    .btn-white:active {
        background: linear-gradient(135deg, #ff4040 0%, #ff8080 100%);
        transform: scale(0.95);
    }
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Glass Card */
.glass-card {
    background: var(--color-surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    transition: transform var(--duration-normal) var(--ease-out-expo), 
                border-color var(--duration-fast) ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(40, 40, 40, 0.5);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--duration-normal) ease, padding var(--duration-normal) ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform var(--duration-fast) ease;
}

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

.logo-img-sm {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-link:hover {
    color: #ff4040;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: all var(--duration-fast) ease;
}

/*
==============================================
   SECTIONS
==============================================
*/

.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 80vh;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* FIX #3: Simplified floating animation to prevent flickering */
.floating-item {
    animation: floatHero 8s infinite ease-in-out;
    will-change: transform;
}

@keyframes floatHero {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.glow-effect {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--color-accent-teal) 0%, transparent 70%);
    opacity: 0.2;
    z-index: 1;
    filter: blur(80px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 5s infinite alternate ease-in-out;
    will-change: opacity;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: left;
    height: 100%;
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.benefit-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Features Layout */
.features-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.feature-item strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.check {
    color: var(--color-accent-lime);
    font-weight: bold;
}

/* ===================================
   USE CASES - MOBILE OPTIMIZED
=================================== */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    height: 400px;
}

.use-case-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    transition: flex-grow var(--duration-normal) var(--ease-out-expo), 
                transform var(--duration-normal) var(--ease-out-expo);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.use-case-item:hover {
    flex-grow: 1.5;
}

.uc-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1.2s ease;
    filter: grayscale(0.5) brightness(0.6);
}

.uc-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.use-case-item:hover .uc-bg-img {
    transform: scale(1.1);
    filter: grayscale(0) brightness(0.8);
}

.uc-content {
    position: relative;
    z-index: 2;
}

.uc-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.uc-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    transform: translateY(0);
    transition: color 0.3s ease;
    margin-top: 5px;
}

.use-case-item:hover .uc-content p {
    color: #fff;
}

/* Testimonials Base */
.testimonial-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
}

/* ===================================
   ENLARGED GULFOOD LOGO
=================================== */
.recognition {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    opacity: 0.8;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.award-logo {
    height: 120px !important;
    width: auto;
    filter: grayscale(1) brightness(2);
    opacity: 0.7;
    transition: filter var(--duration-normal) ease, transform 0.3s ease;
    margin: 2rem 0;
}

.recognition:hover .award-logo {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Contact */
.contact-container {
    max-width: 600px;
}

.contact-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    text-align: center;
}

/* ===================================
   FONT CONSISTENCY - CONTACT FORM
=================================== */
.cta-title {
    font-family: var(--font-main) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-family: var(--font-main);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

#message-container {
    animation: fadeSlideDown 0.3s ease-out;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-input {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    font-size: 1rem;
    font-family: var(--font-main) !important;
    font-weight: 400;
    line-height: 1.5;
    transition: all var(--duration-fast) ease;
}

.form-input:focus {
    border-color: var(--color-accent-teal);
    background: rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: var(--color-text-muted);
    font-family: var(--font-main);
    opacity: 0.7;
}

select.form-input {
    font-family: var(--font-main) !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0a0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-input option {
    background: #1a1a1a;
    color: var(--color-text-main);
    font-family: var(--font-main) !important;
    padding: 12px;
    font-size: 1rem;
}

textarea.form-input {
    font-family: var(--font-main) !important;
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    font-family: var(--font-main) !important;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.error-msg {
    font-family: var(--font-main);
    color: #ff4040;
    font-size: 0.8rem;
    text-align: left;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.form-group.error .form-input {
    border-color: #ff4040;
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ff4040;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.developed-by strong {
    color: var(--color-accent-teal);
}

/* Banner Section */
.banner-section {
    position: relative;
    width: 100%;
    margin-top: 5rem;
    overflow: hidden;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 800px;
}

.full-width-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-section:hover .full-width-banner {
    transform: scale(1.05);
}

.banner-content-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
    text-align: left;
}

.banner-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.05em;
    border-left: 4px solid var(--color-accent-teal);
    padding-left: 20px;
}

/* Dark Section */
.dark-section {
    position: relative;
    background-color: #050505;
    padding: 140px 0;
    overflow: hidden;
}

.dark-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.centered-max {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.big-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonials Spacing */
.testimonial-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.testimonial-card {
    max-width: 100%;
    margin: 0;
    text-align: left;
    height: 100%;
}

/* Hero Gallery */
.hero-gallery-img-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo), filter 0.6s ease;
    filter: grayscale(0.2) brightness(0.9);
}

.hero-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
    perspective: 1000px;
}

.gallery-img:hover {
    transform: scale(1.03) rotateY(2deg);
    filter: grayscale(0) brightness(1.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-gallery-grid img:nth-child(1) {
    animation: floatGallery 6s ease-in-out infinite;
}

.hero-gallery-grid img:nth-child(2) {
    animation: floatGallery 6s ease-in-out infinite reverse;
}

@keyframes floatGallery {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-gallery-grid img:nth-child(1):hover,
.hero-gallery-grid img:nth-child(2):hover {
    animation-play-state: paused;
    transform: scale(1.05);
}

/* Hero Gallery Section */
.hero-gallery-section {
    padding: 120px 0;
}

.title-display {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

.lead-paragraph {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* ===================================
   FIX #2: FUNCTIONAL CORE SECTION
   Fixed mobile layout for ticks
=================================== */
.functional-core-section {
    padding: 100px 0;
    background: radial-gradient(circle at 80% 50%, rgba(5, 31, 26, 0.8), #000000 60%);
    overflow: hidden;
}

.features-layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.feature-content-area {
    padding-left: 2rem;
}

.display-md {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #fff;
}

.text-left {
    text-align: left;
}

.feature-list-styled {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-list-styled li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    font-size: 1.1rem;
}

.check-icon {
    color: var(--color-accent-lime);
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 2px;
    flex-shrink: 0;  /* Prevent tick from shrinking */
}

.feature-list-styled strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.text-white {
    color: #fff;
}

.text-muted {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Visual Area (Bubbles) */
.features-visual-area {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chem-bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    will-change: transform;  /* Performance optimization */
}

.chem-bubble:hover {
    transform: scale(1.1);
    z-index: 10;
}

.symbol {
    font-size: 1.5rem;
}

.bubble-mg {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00e5ff;
    top: 20%;
    left: 10%;
    font-size: 1.8rem;
}

.bubble-b6 {
    width: 100px;
    height: 100px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid #ff9e40;
    color: #ff9e40;
    top: 30%;
    right: 15%;
}

.bubble-b12 {
    width: 120px;
    height: 120px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid #c0ff00;
    color: #c0ff00;
    bottom: 20%;
    left: 45%;
    font-size: 1.6rem;
}

.bubble-b3 {
    width: 90px;
    height: 90px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid #00e5ff;
    color: #00e5ff;
    top: 15%;
    right: 25%;
    font-size: 1.2rem;
}

.bubble-b7 {
    width: 80px;
    height: 80px;
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid #ff9e40;
    color: #ff9e40;
    bottom: 30%;
    right: 10%;
    font-size: 1.1rem;
}

/* NEW TESTIMONIALS */
.testimonial-card {
    text-align: left;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 300px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.user-info h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2px;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.quote {
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
}

/* MAIN HERO */
.main-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.main-hero .hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.main-hero .hero-content {
    flex: 0 0 50%;
    color: #fff;
    padding-left: 5%;
}

.hero-title .d-block {
    display: block;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 480px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.main-hero .hero-visual {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.hero-can-img {
    height: 80vh;
    max-height: 750px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

/* Secondary Hero */
.secondary-hero {
    min-height: 60vh;
    padding: 6rem 0;
}

.secondary-hero .hero-content {
    max-width: 100%;
}

.secondary-hero .hero-title {
    font-size: 3.5rem;
}

.cta-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===================================
   MOBILE RESPONSIVE FIXES
=================================== */

/* Tablet View (900px - 992px) */
@media (max-width: 992px) {
    .main-hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        height: auto;
        min-height: auto;
    }

    .main-hero .hero-container {
        flex-direction: column;
        justify-content: center;
    }

    .main-hero .hero-content {
        padding-left: 0;
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .main-hero .hero-visual {
        height: auto;
        width: 100%;
        margin-bottom: 4rem;
    }

    .hero-can-img {
        height: 50vh;
        max-height: 500px;
    }

    .features-layout-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .feature-content-area {
        padding-left: 0;
    }

    .section-title.text-left {
        text-align: center;
    }

    .feature-list-styled {
        align-items: center;
    }

    /* FIX: Keep ticks inline even on tablet */
    .feature-list-styled li {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }

    .features-visual-area {
        height: 400px;
    }

    .bubble-mg {
        top: 10%;
        left: 50%;
        transform: translateX(-150%);
    }

    .bubble-b6 {
        top: 15%;
        right: 50%;
        transform: translateX(150%);
    }

    .bubble-b12 {
        bottom: 20%;
        left: 50%;
        transform: translateX(-50%);
    }

    .title-display {
        font-size: 2.5rem;
    }
}

/* Mobile View (max-width: 768px) - COMPREHENSIVE FIXES */
@media (max-width: 768px) {
    /* Container Padding */
    .container {
        padding: 0 15px;
    }

    /* Section Padding - Reduce for mobile */
    .section {
        padding: 60px 0;
    }

    /* Typography Scaling */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .big-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .lead-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .title-display {
        font-size: 2rem;
    }

    .lead-paragraph {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .hero-cta .btn {
        width: 100%;
        padding: 16px 24px;
    }

    /* Navigation - Mobile Menu */
    .navbar {
        background: rgba(10, 10, 10, 0.95);
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background: #111;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--duration-normal) var(--ease-out-expo);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
    }

    /* USE CASES - CRITICAL MOBILE FIX */
    .use-case-grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5rem;
    }

    .use-case-item {
        min-height: 320px;
        max-height: 400px;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .use-case-item:hover {
        flex-grow: 1;
        transform: none;
    }

    .uc-content {
        position: relative;
        z-index: 2;
        padding-bottom: 0.5rem;
    }

    .uc-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
        color: #fff;
        line-height: 1.2;
    }

    .uc-content p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
        opacity: 1;
        line-height: 1.6;
        margin-top: 0.5rem;
    }

    /* Better gradient for text visibility */
    .uc-overlay {
        background: linear-gradient(
            to top, 
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 40%,
            rgba(0, 0, 0, 0.3) 70%,
            transparent 100%
        );
    }

    .uc-bg-img {
        filter: grayscale(0.2) brightness(0.8);
        object-position: center;
    }

    /* Benefits Grid */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
    }

    .benefit-card h3 {
        font-size: 1.3rem;
    }

    .benefit-card p {
        font-size: 0.95rem;
    }

    /* Features Layout */
    .features-layout,
    .hero-gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-gallery-section {
        padding: 60px 0;
    }

    /* Banner Section */
    .banner-section {
        margin-top: 3rem;
    }

    .banner-image-wrapper {
        min-height: 300px;
        height: 60vh;
        max-height: 500px;
    }

    .banner-content-overlay {
        left: 5%;
        right: 5%;
        max-width: 90%;
    }

    .banner-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
        padding-left: 15px;
        border-left-width: 3px;
    }

    /* Dark Section */
    .dark-section {
        padding: 80px 0;
    }

    /* ===================================
       FIX #2: FUNCTIONAL CORE MOBILE LAYOUT
       Keep ticks inline on mobile
    =================================== */
    .functional-core-section {
        padding: 60px 0;
    }

    .features-layout-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .feature-content-area {
        padding-left: 0;
        text-align: left;  /* Changed from center */
        padding: 0 10px;
    }

    .display-md {
        font-size: 2rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    .feature-list-styled {
        gap: 1.5rem;
        align-items: flex-start;  /* Changed from center */
    }

    /* CRITICAL FIX: Keep ticks and text on same line */
    .feature-list-styled li {
        flex-direction: row;  /* Keep horizontal layout */
        align-items: flex-start;  /* Align to top */
        text-align: left;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .check-icon {
        flex-shrink: 0;
        min-width: 20px;
        margin-top: 4px;
    }

    .feature-list-styled strong {
        font-size: 1.1rem;
    }

    .text-muted {
        font-size: 0.9rem;
    }

    /* Bubbles on Mobile - Simplified Layout */
    .features-visual-area {
        height: 300px;
        margin-top: 2rem;
    }

    .chem-bubble {
        font-size: 0.9rem;
    }

    .bubble-mg {
        width: 100px;
        height: 100px;
        top: 10%;
        left: 15%;
        transform: none;
        font-size: 1.4rem;
    }

    .bubble-b6 {
        width: 80px;
        height: 80px;
        top: 10%;
        right: 15%;
        transform: none;
    }

    .bubble-b12 {
        width: 90px;
        height: 90px;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.3rem;
    }

    .bubble-b3 {
        width: 70px;
        height: 70px;
        top: 50%;
        left: 10%;
        transform: translateY(-50%);
        font-size: 1rem;
    }

    .bubble-b7 {
        width: 65px;
        height: 65px;
        top: 50%;
        right: 10%;
        transform: translateY(-50%);
        font-size: 0.9rem;
    }

    /* Testimonials */
    .testimonial-track {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .testimonial-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .testimonial-header {
        flex-direction: row;
        text-align: left;
    }

    .avatar-img {
        width: 50px;
        height: 50px;
    }

    .user-info h4 {
        font-size: 1rem;
    }

    .quote {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Contact Form - Mobile */
    .cta-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-input {
        padding: 14px;
        font-size: 0.95rem;
        padding-right: 35px;
    }

    select.form-input {
        background-position: right 14px center;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* Red button mobile adjustments */
    .btn-white {
        padding: 16px 24px;
    }

    /* Footer */
    .footer {
        padding: 40px 0;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand p {
        font-size: 0.85rem;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    /* Scroll Indicator - Hide on Mobile */
    .scroll-indicator {
        display: none;
    }

    /* Awards Section - Mobile Logo Size */
    .award-logo {
        height: 100px !important;
        margin: 1.5rem 0;
    }

    /* Glass Card Hover Effects - Disable on Mobile */
    .glass-card:hover {
        transform: none;
    }

    .use-case-item:hover .uc-bg-img {
        transform: scale(1);
    }

    .gallery-img:hover {
        transform: none;
    }

    /* FIX #3: Disable heavy animations on mobile to prevent flickering */
    .floating-item {
        animation: none;
    }
}

/* Very Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 2rem;
    }

    .display-md {
        font-size: 1.75rem;
    }

    .title-display {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .use-case-item {
        min-height: 250px;
    }

    .uc-content h3 {
        font-size: 1.2rem;
    }

    .uc-content p {
        font-size: 0.9rem;
    }

    /* Simplify bubbles further */
    .bubble-b3,
    .bubble-b7 {
        display: none;
    }

    .features-visual-area {
        height: 250px;
    }

    /* Awards Logo - Very Small Mobile */
    .award-logo {
        height: 80px !important;
    }

    /* Further simplify animations */
    .chem-bubble {
        animation: none !important;
    }
}

/* FIX #3: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}