﻿/* ===================================
   JUNOTEX - Landing Page 
   Flowsystems.cloud
   =================================== */

/* === CSS VARIABLES === */
:root {
    /* Brand Colors */
    --gold-primary: #C3924D;
    --gold-light: #D4A76A;
    --gold-dark: #A67C3D;
    --black: #000000;
    --white: #FFFFFF;
    --bg-light: #F6EFE5;
    --bg-cream: #FBF8F3;

    /* Grays */
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D4D4D4;
    --gray-600: #525252;
    --gray-800: #262626;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-gold: 0 4px 20px rgba(195, 146, 77, 0.25);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100vw;
    /* Strict viewport width */
}

body {
    font-family: var(--font-body);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Double enforce */
    width: 100%;
    position: relative;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-800);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;

}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(195, 146, 77, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
}

.btn-secondary:hover {
    background: var(--gold-primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-service {
    background: var(--black);
    color: var(--white);
    padding: 12px 24px;
    font-size: 0.95rem;
}

.btn-service:hover {
    background: var(--gold-primary);
    transform: translateY(-2px);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    /* Use container's horizontal padding */
    width: 100%;
    /* Ensure it doesn't collapse */
}

.logo {
    display: flex;
    flex-direction: column;
    z-index: 1001;
    /* Ensure logo stays above mobile menu if needed */
}

.logo-img {
    height: 60px;
    /* Adjust based on logo proportions */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--black);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav-cta {
    background: var(--gold-primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-nav-cta:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

.diagonal-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(195, 146, 77, 0.1) 20px,
            rgba(195, 146, 77, 0.1) 21px);
    opacity: 0.3;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3;
    height: 100%;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--gold-primary);
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 15px rgba(195, 146, 77, 0.4);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gray-200);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--gray-300);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.card-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--black);
}

.card-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-600);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--gold-primary);
    border-bottom: 2px solid var(--gold-primary);
    transform: rotate(-45deg);
}

/* === SECTION STYLES === */
section {
    padding: var(--section-padding);
    position: relative;
}

.applications-cta {
    text-align: center;
    margin-top: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    margin-bottom: 16px;
    color: var(--black);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    margin: 0 auto 24px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 2px 10px auto;
}

/* === ABOUT SECTION === */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.mv-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold-primary);
}

.mv-card h3 {
    color: var(--gold-primary);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.mv-card p {
    text-align: left;
    margin-bottom: 0;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--black);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
}

/* === SERVICES SECTION === */
.services {
    background: var(--bg-cream);
}

.services-layout {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
}

.service-row.reversed {
    flex-direction: row-reverse;
}

.service-visual {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
    /* Video-ready aspect ratio */
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-row:hover .image-wrapper img {
    transform: scale(1.05);
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
}

.service-row:hover .visual-overlay {
    background: rgba(0, 0, 0, 0);
}

.floating-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: var(--gold-primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold);
    z-index: 3;
}

.service-row.reversed .floating-number {
    left: auto;
    right: -20px;
}

.service-info {
    flex: 1;
    padding: 20px;
}

.service-info h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 20px;
}

.service-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
}

@media (max-width: 992px) {
    .service-row {
        flex-direction: column;
        gap: 40px;
    }

    .service-row.reversed {
        flex-direction: column;
    }

    .service-visual,
    .service-info {
        width: 100%;
    }

    .image-wrapper {
        height: 300px;
    }

    .floating-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.service-process {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

.service-process h4 {
    font-size: 1rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.service-process ul {
    list-style: none;
    padding-left: 0;
}

.service-process li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-800);
}

.service-process li::before {
    content: 'â†’';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
    font-weight: bold;
}

.service-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.benefit svg {
    flex-shrink: 0;
}

/* === PROCESS SECTION === */
/* === PROCESS SECTION === */
.process {
    position: relative;
    background: var(--black);
    /* Fallback color */
    overflow: hidden;
    padding: 80px 0;
    /* Increased padding for smoother scroll */
}

#process-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* object-fit handled by JS drawImage */
}



.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Restored dark overlay */
    z-index: 2;
    pointer-events: none;
}

.process .container {
    position: relative;
    z-index: 3;
}

/* Update text colors for dark background */
/* Update text colors for dark background */
.process .section-title,
.process .section-subtitle {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.process .section-subtitle {
    color: var(--gray-200);
}

/* Step content cards - White for contrast against dark video */
.process .step-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--black);
    /* Restore black text for white card */
}

.process .step-content h3 {
    color: var(--black);
}

.process .step-content p {
    color: var(--gray-600);
}

.process .step-number {
    box-shadow: 0 0 15px rgba(195, 146, 77, 0.6);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-primary), var(--gold-light));
    transform: translateX(-50%);
}

.process-step {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 130px;

    /* Reduced margin from 60px to 40px */
    position: relative;
}

.process-step:nth-child(even) .step-content {
    order: 3;
    text-align: left;
}

.process-step:nth-child(even) .step-icon {
    order: 1;
    text-align: right;
}

.process-step:nth-child(odd) .step-content {
    text-align: right;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    position: relative;
    z-index: 2;
}

.step-content {
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray-600);
    margin: 0;
}

.step-icon {
    font-size: 2rem;
}

/* === APPLICATIONS SECTION === */
.applications {
    background: var(--bg-cream);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    position: relative;
    height: 280px;
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    z-index: 1;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--black) 100%);
    border-bottom: 3px solid var(--gold-primary);
}

/* Background Image Container - Hidden initially */
.app-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0;
    transform: scale(1.2);
    transition: opacity 1.2s ease, transform 1.5s ease-out;
    filter: brightness(0.7);
}

/* When AOS triggers animation (Scroll into view) */
.app-card.aos-animate::after {
    opacity: 1;
    transform: scale(1);
}

/* Dark Overlay for Text Readability */
.app-card::before {
    content: '';
    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.4) 100%);
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
    border-bottom-color: var(--gold-light);
}

.app-card:hover::after {
    transform: scale(1.1);
    filter: brightness(0.9);
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Specific Background Images */
.app-card-1::after {
    background-image: url('https://images.unsplash.com/photo-1574634534894-89d7576c8259?auto=format&fit=crop&q=80&w=600');
}

.app-card-2::after {
    background-image: url('https://images.unsplash.com/photo-1552374196-1ab2a1c593e8?auto=format&fit=crop&q=80&w=600');
}

.app-card-3::after {
    background-image: url('https://images.unsplash.com/photo-1487222477894-8943e31ef7b2?auto=format&fit=crop&q=80&w=600');
}

.app-card-4::after {
    background-image: url('https://images.unsplash.com/photo-1551537482-f2075a1d41f2?auto=format&fit=crop&q=80&w=600');
}

.app-card-5::after {
    background-image: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&q=80&w=600');
}

.app-card-6::after {
    background-image: url('https://images.unsplash.com/photo-1520114878144-6123749968dd?auto=format&fit=crop&q=80&w=600');
}

.app-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.app-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-card h3 {
    font-size: 1.35rem;
    color: var(--white);
    margin: 0;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* === WHY CHOOSE SECTION === */
.why-choose {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.why-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.why-card h3 {
    color: var(--gold-primary);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--gray-600);
    margin: 0;
    line-height: 1.7;
}

/* === GALLERY SECTION === */
.gallery {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    /* Subtle technical grid pattern */
    background-image:
        linear-gradient(rgba(195, 146, 77, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(195, 146, 77, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Animated ambient glow */
.gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(195, 146, 77, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(195, 146, 77, 0.03) 0%, transparent 30%);
    animation: rotateBackground 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gallery .container {
    position: relative;
    z-index: 1;
}

.gallerySwiper {
    padding: 20px 0 60px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 32px 24px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--white);
}

.gallery-overlay p {
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: var(--black);
    color: var(--white);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

/* Background Texture for Testimonials */
/* Background Texture/Image for Testimonials */
.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/Textile_sublimation.jpeg');
    background-size: cover;
    background-position: center;
    opacity: 0.23;
    /* Increased visibility */
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above background */
.testimonials .container {
    position: relative;
    z-index: 2;
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    /* Dark Glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    color: var(--gold-primary);
    opacity: 0.1;
    font-family: serif;
}

.testimonial-stars {
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #ffffff !important;
    /* Force white text */
    margin-bottom: 20px;
    font-style: italic;
    flex-grow: 1;
    font-weight: 300;
    /* Cleaner look */
}

.testimonial-author h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Swiper adjustments for testimonials */
.testimonials .swiper-pagination-bullet {
    background: var(--white);
    opacity: 0.3;
}

.testimonials .swiper-pagination-bullet-active {
    background: var(--gold-primary);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--gold-primary);
}

/* === FAQ SECTION === */
.faq {
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
    text-align: left;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--gold-primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--gold-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* === CONTACT SECTION === */
.contact {
    background: var(--bg-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(195, 146, 77, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 4px;
}

.info-content p {
    color: var(--gray-600);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.info-link {
    color: var(--gold-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.info-link:hover {
    color: var(--gold-dark);
    text-decoration: underline;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--black);
    background: var(--white);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(195, 146, 77, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Custom Checkbox Styles */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--gray-800);
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 50%;
    /* Round for radio look */
    transition: var(--transition-smooth);
    border: 1px solid #ddd;
}

.checkbox-label:hover input~.checkmark {
    background-color: #e0e0e0;
}

.checkbox-label input:checked~.checkmark {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked~.checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn-submit {
    margin-top: 10px;
    justify-content: center;
}

/* === FOOTER === */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--gold-primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 60px;
    width: 50px;
    height: 50px;
    background: var(--gold-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-dark);
    transform: translateY(-5px);
}

/* === RESPONSIVE DESIGN FOR APP-LIKE FEEL === */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin: 0 auto;
        max-width: 700px;
    }

    .hero-visual {
        order: -1;
        /* Image on top for mobile/tablet */
        margin-bottom: 20px;
    }

    .hero-image-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .container {
        padding: 0 24px;
        /* Typical mobile margin */
    }

    .mv-card {
        padding: 24px 20px;
        margin-bottom: 8px;
    }

    .mv-card p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .about-text .lead {
        font-size: clamp(1.1rem, 4vw, 1.25rem);
        margin-bottom: 20px;
    }

    /* Taller Header on Mobile */
    .nav-container {
        padding: 25px 24px;
        /* Increased vertical, restored horizontal */
    }

    /* Navbar - App style drawer */
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        /* Center items */
        justify-content: center;
        padding: 40px;
        gap: 30px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        /* Removed harsh shadow */
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.25rem;
        /* Larger touch targets */
        font-weight: 600;
        color: var(--black);
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
        /* Ensure above active menu overlay */
        width: 48px;
        /* Standardize touch target */
        height: 48px;
        align-items: center;
        justify-content: center;
        margin-right: -10px;
        /* Align visual center with container edge */
    }

    /* Mobile Menu CTA */
    .nav-menu .btn-nav-cta {
        width: 80%;
        max-width: 300px;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
        margin-top: 10px;
    }

    /* Fix Logo Size on Mobile */
    .logo-img {
        height: 40px;
        /* Smaller height to prevent pushing nav items */
        width: auto;
    }

    /* Fix Back to Top positioning for mobile */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        /* Safe distance from edge */
        width: 45px;
        height: 45px;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
        /* Account for fixed header */
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Better mobile fit */
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        /* Full width buttons (app feel) */
        justify-content: center;
        padding: 16px 32px;
        /* Taller touch targets */
    }

    .floating-card {
        bottom: 10px;
        right: 10px;
        padding: 12px;
        max-width: 200px;
    }

    .floating-card .card-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .floating-card h4 {
        font-size: 0.9rem;
    }

    .floating-card p {
        font-size: 0.75rem;
    }

    /* Process Section - Mobile Timeline */
    .process-timeline::before {
        left: 24px;
        /* Perfectly centered in 50px col */
    }

    .process-step {
        grid-template-columns: 50px 1fr;
        /* Number column + Content */
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .process-step:nth-child(even) .step-content,
    .process-step:nth-child(odd) .step-content {
        order: 2;
        text-align: left;
        grid-column: 2;
    }

    .step-number {
        grid-column: 1;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        font-weight: 800;
        /* Extra bold */
        color: var(--gold-primary);
        /* Fix invisible text */
        border: 2px solid var(--gold-primary);
        /* Distinct border */
        margin: 0 auto;
        /* Center in column */
        position: relative;
        z-index: 2;
        background: var(--white);
        /* Ensure number covers line */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .process-step:nth-child(even) .step-icon,
    .process-step:nth-child(odd) .step-icon {
        display: block;
        /* Restore icons */
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
        z-index: 5;
        opacity: 0.8;
        /* Subtle look */
    }

    /* Applications Swiper - Desktop Grid Override */
    .applications-slider {
        padding: 20px 5px 60px 5px;
        /* Bottom padding for pagination */
    }

    .applications-slider .swiper-wrapper {
        /* On desktop, we want a grid. JS will disable swiper here, but we ensure layout matches */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .applications-slider .swiper-slide {
        height: auto;
        /* Let content dictate height */
        width: 100%;
        margin-right: 0 !important;
        /* Reset swiper margin */
    }

    /* Swiper Controls on Desktop - Hide them */
    .app-swiper-button-next,
    .app-swiper-button-prev,
    .applications-slider .swiper-pagination {
        display: none;
    }
}

@media (max-width: 1024px) {
    .applications-slider .swiper-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Enable Swiper layout on mobile */
    .applications-slider .swiper-wrapper {
        display: flex;
        /* Restore flex for swiper */
        grid-template-columns: none;
        gap: 0;
    }

    .applications-slider .swiper-slide {
        /* Cards in swiper - Uniform Size */
        height: auto !important;
        /* Allow aspect-ratio to control height */
        aspect-ratio: 1/1;
        /* Force square shape for container */
        width: auto !important;
        display: flex;
        /* Flexbox to stretch child */
    }

    .applications-slider .app-card {
        width: 100%;
        height: 100%;
        /* Fill the square slide container */
        margin: 0;
        /* Remove margins as gaps are handled by Swiper */
    }

    .applications-slider {
        padding-bottom: 50px;
        /* Space for pagination */
        margin-bottom: 30px;
        /* Separation from next section */
    }


    /* Show controls on mobile */
    .app-swiper-button-next,
    .app-swiper-button-prev {
        display: flex;
        width: 40px;
        height: 40px;
        background: var(--white);
        border-radius: 50%;
        box-shadow: var(--shadow-md);
        color: var(--gold-primary);
        z-index: 10;
        top: 40%;
        /* Move up slightly to avoid text overlap */
    }

    .app-swiper-button-next::after,
    .app-swiper-button-prev::after {
        font-size: 1.2rem;
        font-weight: bold;
    }

    .applications-slider .swiper-pagination {
        display: block;
        bottom: 0;
    }

    .swiper-pagination-bullet-active {
        background: var(--gold-primary);
    }

    .app-card {
        aspect-ratio: 1/1;
        /* Square cards on mobile */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    /* Why Us Grid - 2 columns on mobile */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .why-card {
        padding: 20px 15px;
        /* Compact padding */
    }

    .why-icon {
        font-size: 2rem;
        /* Smaller icon */
        margin-bottom: 10px;
    }

    .why-card h3 {
        font-size: 1rem;
        /* Smaller, readable title */
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .why-card p {
        font-size: 0.85rem;
        /* Smaller text to fit */
        line-height: 1.4;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        /* Side-by-side links */
        text-align: center;
        gap: 40px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        /* Brand section takes full width */
    }

    .footer-social {
        justify-content: center;
        /* Center icons on mobile */
    }

    .footer-logo {
        margin: 0 auto 20px auto;
        /* Center logo image */
    }

    /* Contact Form - Mobile Optimization */
    .contact-form-container {
        padding: 24px;
        /* Reduced from 40px */
    }

    .form-row {
        grid-template-columns: 1fr;
        /* Stack inputs vertically */
        gap: 15px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents auto-zoom on iOS */
        padding: 12px 14px;
        /* Slightly more compact */
    }

    .btn-submit {
        width: 100%;
        /* Full width button */
    }

    .footer-links ul {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* applications-grid handled by carousel above */

    .service-image {
        height: 220px;
    }

    .service-content {
        padding: 24px 20px;
    }

    /* Make buttons huge tap targets on small mobile */
    .btn {
        width: 100%;
        justify-content: center;
        min-height: 54px;
    }

    /* Adjust Process cards spacing */
    .process .step-content {
        padding: 20px;
    }

    /* About section mobile-only refinements */
    .about-features {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 20px;
    }

    .mv-card h3 {
        font-size: 1.15rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold-primary);
}

.bg-gold {
    background-color: var(--gold-primary);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* === VIDEOS SECTION === */
.videos-section {
    background-color: var(--bg-light);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.video-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: var(--black);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    /* Hide if video loads/plays */
}

.video-info {
    padding: 24px;
    text-align: center;
}

.video-info h3 {
    font-size: 1.25rem;
    color: var(--gold-primary);
    /* Highlight color */
    margin-bottom: 10px;
}

.video-info p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

.videos-cta {
    text-align: center;
    margin-top: 40px;
}

/* === APPLICATIONS SECTION === */
.applications {
    background-color: var(--bg-cream);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.app-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, #ffffff 0%, #fff0d4 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-primary);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
}

.app-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--black);
}

.app-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.applications-cta {
    text-align: center;
    margin-top: 40px;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        /* 1 col for videos */
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .applications-grid {
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .applications-grid {
        grid-template-columns: 1fr;
        /* 1 col for apps */
    }

    .video-info h3,
    .app-card h3 {
        font-size: 1.1rem;
    }
}

/* === REEL LAYOUT (Replaces previous Grid) === */
.process-video-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

/* Info List Style */
.video-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.info-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-left: 4px solid transparent;
}

.info-step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--gold-primary);
}

.step-icon {
    font-size: 1.5rem;
    background: var(--bg-cream);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--black);
}

.step-details p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
}

/* Reel Visual Style */
.video-reel-container {
    width: 100%;
    max-width: 350px;
    /* Typical phone width */
    position: relative;
    margin: 0 auto;
}

.reel-frame {
    width: 100%;
    aspect-ratio: 9/16;
    /* Vertical Reels Format */
    background: var(--black);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 0 8px var(--white);
    /* White frame border */
}

.reel-frame video,
.reel-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Tablet & Desktop */
@media (min-width: 992px) {
    .process-video-layout {
        flex-direction: row;
        align-items: flex-start;
        /* Align top */
        justify-content: space-between;
        gap: 60px;
    }

    .video-info-list {
        flex: 1;
        justify-content: center;
        /* If we want to center vertically relative to video, remove this or use center */
    }

    /* Option: Center info vertically against the tall video */
    .process-video-layout {
        align-items: center;
    }

    .video-reel-container {
        flex: 0 0 320px;
        /* Text takes rest, video fixed width */
        margin: 0;
    }
}

/* === WHATSAPP FLOAT BUTTON === */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff3b30;
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

.whatsapp-popup {
    position: absolute;
    right: 70px;
    bottom: 10px;
    background: var(--white);
    color: var(--black);
    padding: 10px 15px;
    border-radius: 20px 20px 0 20px;
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Auto-show animation handled by JS or CSS keyframes if simpler */
    animation: popupNewMessage 8s infinite 2s;
    /* Delays 2s, repeats every 8s */
}

/* Optional: Pause popup animation on hover */
.whatsapp-float:hover .whatsapp-popup {
    animation-play-state: paused;
    opacity: 1;
    transform: translateX(0) scale(1);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes popupNewMessage {

    0%,
    80% {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }

    85%,
    95% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }
}

/* === BACK TO TOP BUTTON ADJUSTMENT === */
.back-to-top {
    position: fixed;
    bottom: 110px !important;
    /* Place above WhatsApp button (30px + 60px height + 20px gap) */
    right: 30px !important;
    /* Align with WhatsApp button */
    width: 50px;
    height: 50px;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 990;
    /* Below WhatsApp (1000) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--gold-primary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* === UNIVERSAL MOBILE REFINEMENTS (Small Devices) === */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px 0;
    }

    .container {
        padding: 0 16px;
        /* Slightly tighter padding for small screens */
    }

    /* Navbar / Logo */
    .logo-img {
        height: 50px;
    }

    .nav-toggle {
        padding: 10px;
    }

    /* Hero */
    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Service Visuals */
    .image-wrapper {
        height: 240px;
        margin-bottom: 10px;
    }

    .floating-number {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        top: -10px;
        left: -10px;
    }

    .service-row.reversed .floating-number {
        right: -10px;
    }

    .service-info h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }

    .service-benefits {
        gap: 8px;
    }

    /* About Section Refinements */
    .about {
        overflow-x: hidden;
        /* Prevent AOS animations from causing horizontal overflow */
    }

    .about-content {
        gap: 30px;
        width: 100%;
    }

    .about-text,
    .about-features {
        width: 100%;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center everything inside */
        text-align: center;
    }

    .mission-vision {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0;
    }

    .mv-card {
        padding: 24px 20px;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        /* Keep text left aligned inside centered card */
    }

    .about-features {
        gap: 20px;
        margin-top: 40px;
    }

    .feature-card {
        padding: 30px 24px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        margin: 0;
    }

    .about-text p {
        font-size: 1.05rem;
        margin-bottom: 20px;
        width: 100%;
    }

    .about-text .lead {
        font-size: 1.25rem !important;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    /* Process steps on ultra-small screens */
    @media (max-width: 350px) {
        .process-step {
            grid-template-columns: 1fr;
            text-align: center;
        }

        .step-number {
            margin: 0 auto 15px;
        }

        .process-timeline::before {
            left: 20px;
            /* Shift line if needed or hide */
            display: none;
            /* Hide timeline line on very small to save space */
        }
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 30px;
        font-size: 0.85rem;
    }
}

/* Fix for horizontal scroll on some devices */
* {
    max-width: 100%;
}

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.back-to-top:hover {
    background: var(--gold-primary);
    transform: translateY(-5px);
}