/*
Theme Name: LBB Construction
Theme URI: https://lbbconstruction.com
Author: London Business Bridge
Author URI: https://londonbusinessbridge.com
Description: Professional renovation and construction services theme for LBB Construction. Features dark mode, smooth animations, lightbox gallery, and modern responsive design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lbb-construction
Tags: construction, renovation, business, portfolio, dark-mode, responsive
*/

:root {
    --cyan: #00BFFF;
    --cyan-dark: #0099CC;
    --coral: #FF5A5F;
    --coral-dark: #E54B50;
    --beige: #F9F6F0;
    --beige-light: #FDFBF7;
    --text: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --navy: #0a1a2a;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--beige);
    color: var(--text);
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

body.custom-cursor-active {
    cursor: none;
}

body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active .service-card,
body.custom-cursor-active .portfolio-item {
    cursor: none;
}

body.loading {
    overflow: hidden;
}

/* Premium Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--cyan);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.6s ease-out, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    /* Reduce logo size on preload for quicker load perception */
    width: clamp(200px, 40vw, 350px);
    filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.3));
    animation: preloaderPulse 1.8s ease-in-out infinite;
}

.preloader-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 2rem;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: loading 1.6s ease-out forwards;
}

@keyframes preloaderPulse {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes loading {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .preloader-logo {
        animation: none;
    }

    .floating {
        animation: none;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, filter 0.5s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Custom Cursor - Simple Circle */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 3px solid var(--coral);
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease-out, height 0.2s ease-out, border-color 0.2s, background 0.2s;
    opacity: 0;
    background: rgba(255, 90, 95, 0.1);
}

.cursor.visible {
    opacity: 1;
}

.cursor.hidden {
    opacity: 0;
}

.cursor-dot {
    display: none;
}

.cursor.hover {
    width: 70px;
    height: 70px;
    border-color: var(--cyan);
    background: rgba(0, 191, 255, 0.15);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(255, 90, 95, 0.3);
}

@media (max-width: 768px) {

    .cursor,
    .cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    display: inline-flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Cards */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Shine Effect */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.6s;
}

.shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Glow Effect */
.glow-coral {
    box-shadow: 0 0 30px rgba(255, 90, 95, 0.4);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
}

h1,
h2,
h3,
h4 {
    font-family: 'Manrope', sans-serif;
    color: var(--cyan);
}

/* Pointer Highlight */
.pointer-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cyan);
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 2rem;
    background: rgba(0, 191, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    /* Slightly smaller logo to reduce overall header height */
    height: clamp(50px, 7vw, 70px);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: height 0.3s ease-out, filter 0.3s;
}

header.scrolled .logo img {
    /* Smaller size when scrolled */
    height: clamp(40px, 6vw, 60px);
}

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

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: opacity 0.3s ease-out;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease-out;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover {
    opacity: 1;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.btn-coral:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--cyan);
    color: var(--white);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--beige) 0%, var(--beige-light) 50%, #E8F4F8 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 191, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(255, 90, 95, 0.06) 0%, transparent 40%);
    animation: heroGradientShift 15s ease-in-out infinite;
}

@keyframes heroGradientShift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(2%, 2%) rotate(3deg);
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.12;
    animation: floatCircle 8s ease-in-out infinite;
}

@keyframes floatCircle {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.hero-circle-1 {
    width: 350px;
    height: 350px;
    top: 5%;
    right: -100px;
    background: linear-gradient(135deg, var(--coral), var(--cyan));
    animation-delay: 0s;
}

.hero-circle-2 {
    width: 180px;
    height: 180px;
    bottom: 15%;
    left: 3%;
    background: linear-gradient(135deg, var(--cyan), var(--coral));
    animation-delay: -4s;
}

.hero-line {
    position: absolute;
    width: 250px;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--cyan));
    opacity: 0.4;
    transform: rotate(-45deg);
    top: 30%;
    right: 20%;
    animation: pulseLine 3s ease-in-out infinite;
}

@keyframes pulseLine {

    0%,
    100% {
        opacity: 0.4;
        width: 250px;
    }

    50% {
        opacity: 0.6;
        width: 280px;
    }
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid rgba(0, 191, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--coral);
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.hero-visual {
    perspective: 1000px;
}

.hero-frame {
    background: var(--white);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-frame img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Stats */
.stats {
    padding: 4rem 2rem;
    background: var(--cyan);
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

/* Subtle divider between stat items */
.stat+.stat {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Services */
.services {
    background: var(--beige-light);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    /* Add perspective so service cards can tilt in 3D */
    perspective: 1000px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.service-card:hover::before {
    border-color: var(--coral);
}

.service-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-spotlight {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 90, 95, 0.15) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-spotlight {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--white);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio {
    background: var(--beige);
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: none;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.portfolio-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    overflow: hidden;
    z-index: 10;
}

.portfolio-lens-img {
    position: absolute;
    transform-origin: center;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

/* Hide overlay when lens is active (on hover) */
.portfolio-item:hover .portfolio-overlay {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden;
}

/* Add transition to portfolio images */
.portfolio-item>img {
    transition: filter 0.3s ease-out, transform 0.3s ease-out;
}

/* Darken the main image slightly when lens is being used */
.portfolio-item:hover>img {
    filter: brightness(0.4);
}

.portfolio-overlay h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.portfolio-overlay span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Process */
.process {
    background: var(--white);
}

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--cyan));
    border-radius: 2px;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-num {
    width: 80px;
    height: 80px;
    background: var(--beige);
    border: 4px solid var(--coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--coral);
}

.process-step h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Why Clients Choose Us & FAQ sections */
.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--beige-light);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--coral);
}

.feature-content {
    transform-style: preserve-3d;
    pointer-events: none;
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--coral);
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateZ(20px) scale(1.1);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Architectural atmosphere background */
.architectural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    perspective: 800px;
}

.architectural-bg .blueprint-grid {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    /* 3D tilt for subtle perspective */
    transform: rotateX(15deg) rotateY(-10deg);
    transform-style: preserve-3d;
    /* Large grid lines with low opacity */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px;
}

.architectural-bg .ambient-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.1;
    mix-blend-mode: screen;
}

.architectural-bg .orb-1 {
    top: 20%;
    left: -10%;
    background: rgba(255, 90, 95, 0.8);
}

.architectural-bg .orb-2 {
    bottom: -20%;
    right: -15%;
    background: rgba(0, 189, 214, 0.8);
}

.architectural-bg .orb-3 {
    top: 60%;
    left: 40%;
    background: rgba(147, 51, 234, 0.8);
}

.architectural-bg .floating-marker {
    position: absolute;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--coral);
    opacity: 0.25;
    pointer-events: none;
}

.architectural-bg .marker-1 {
    top: 10%;
    left: 15%;
}

.architectural-bg .marker-2 {
    top: 80%;
    left: 70%;
}

.architectural-bg .marker-3 {
    top: 50%;
    left: 30%;
}

.architectural-bg .marker-4 {
    top: 25%;
    left: 85%;
}

/* Enhanced Decorative Parallax Layer */
.parallax-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-decor .decor-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: decorFadeIn 1s ease-out forwards;
}

@keyframes decorFadeIn {
    to {
        opacity: 1;
    }
}

.parallax-decor .gradient-orb {
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: multiply;
}

.parallax-decor .dot {
    width: 6px;
    height: 6px;
    background: var(--coral);
    border-radius: 50%;
    opacity: 0.3;
}

.parallax-decor .ring {
    border: 2px solid var(--cyan);
    background: transparent;
    opacity: 0.15;
}

.parallax-decor .cross {
    width: 20px;
    height: 20px;
    position: relative;
    opacity: 0.2;
}

.parallax-decor .cross::before,
.parallax-decor .cross::after {
    content: '';
    position: absolute;
    background: var(--coral);
}

.parallax-decor .cross::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.parallax-decor .cross::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* FAQ section background and spacing */
.faq-section {
    background: linear-gradient(135deg, var(--beige-light) 0%, #f7f8fa 100%);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* FAQ accordion styles */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--beige-light);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-color: var(--coral);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.1);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--coral);
}

.faq-answer {
    height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    opacity: 1;
    padding-bottom: 1.5rem;
}

.icon-plus {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-plus::before,
.icon-plus::after {
    content: '';
    position: absolute;
    background: currentColor;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1px;
}

.icon-plus::before {
    width: 100%;
    height: 2px;
}

.icon-plus::after {
    width: 2px;
    height: 100%;
}

.faq-item.active .icon-plus {
    transform: rotate(45deg);
}

.faq-item.active .icon-plus::after {
    opacity: 0;
}

/* Contact */
.contact {
    background: var(--beige);
}

.contact-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 191, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--cyan);
}

.contact-item-text h5 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.contact-item-text p {
    color: var(--text);
    font-weight: 500;
}

.contact-form {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

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

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--coral);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.success {
    background: #28A745;
}

/* Footer */
footer {
    background: var(--cyan);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    /* Use a larger logo in the footer */
    height: 65px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    opacity: 0.9;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-col a {
    display: block;
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.footer-col a:hover {
    opacity: 1;
}

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

.ecosystem-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* Ecosystem Heading — Styled CTA Link */
.ecosystem-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    opacity: 1 !important;
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.ecosystem-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.ecosystem-heading:hover::before {
    left: 100%;
}

.ecosystem-heading:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.12));
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 191, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.ecosystem-heading i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.ecosystem-heading:hover i {
    transform: translate(2px, -2px);
}

/* Floating Dock - Hidden on desktop, replaced by mobile-bottom-bar */
.floating-dock {
    display: none;
}

@media (max-width: 768px) {
    .floating-dock {
        display: none;
        /* Hide old dock, use mobile-bottom-bar instead */
    }
}

.dock-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dock-item:hover {
    transform: scale(1.2) translateY(-5px);
    background: var(--cyan);
}

.dock-item svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

/* Mobile */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 1024px) {

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

    .hero-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

    section {
        padding: 4rem 1rem;
        padding-bottom: 6rem;
    }
}

/* Horizontal Auto-Scroll Carousel */
.carousel-section {
    padding: 5rem 0;
    overflow: hidden;
}

.carousel-section .section-header {
    padding: 0 2rem;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: carouselScroll 30s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex-shrink: 0;
    width: clamp(300px, 40vw, 500px);
    height: clamp(200px, 25vw, 350px);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-out, box-shadow 0.3s;
}

.carousel-item:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

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

.carousel-item:hover img {
    transform: scale(1.1);
}

.carousel-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.carousel-item:hover .caption {
    opacity: 1;
    transform: translateY(0);
}

.planning-carousel {
    background: var(--beige-light);
}

.gallery-carousel {
    background: linear-gradient(135deg, var(--navy) 0%, #1a2a3a 100%);
}

.gallery-carousel .section-header h2,
.gallery-carousel .section-header p {
    color: var(--white);
}

/* Mobile Bottom Bar - Hidden on desktop, shown on mobile */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
    z-index: 9999;
    margin-bottom: env(safe-area-inset-bottom, 1rem);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
    }
}

.mobile-bottom-bar a {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(50, 50, 50, 0.8);
    border-radius: 14px;
    transition: all 0.3s ease-out;
    text-decoration: none;
}

.mobile-bottom-bar a:hover,
.mobile-bottom-bar a.active {
    background: var(--coral);
    transform: scale(1.05);
}

.mobile-bottom-bar svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Before & After slider styles */
.before-after-section {
    padding: 80px 0;
    background: var(--beige-light);
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
}

.ba-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ba-image.ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
    height: 100%;
}

.ba-range {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--coral);
    cursor: pointer;
    border-radius: 2px;
}

.ba-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--coral);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    margin-top: -8px;
}

.ba-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--coral);
    border-radius: 50%;
    border: 2px solid var(--white);
}

/*
 * Additional custom styles for swapped sections, carousel controls,
 * floating decorative shapes and the planning grid background.
 */
/* Container for portfolio and gallery carousels to position arrows */
.carousel-section {
    position: relative;
}

/* Wrapper for carousel arrows */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* Place controls above carousel items */
    z-index: 2;
}

.carousel-arrow {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: var(--coral);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Ensure arrows are above carousel items */
    z-index: 3;
}

.carousel-arrow:hover {
    background: var(--coral);
    color: #fff;
    transform: scale(1.1);
}

/* Planning grid styling and subtle background */
.planning-grid-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fb 0%, #eef2f7 100%);
}

.planning-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Decorative floating shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shapes .shape {
    position: absolute;
    opacity: 0.15;
    animation: floatShape linear infinite;
}

.floating-shapes .circle {
    border-radius: 50%;
}

.floating-shapes .line {
    border-radius: 1px;
}

@keyframes floatShape {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-200vh) rotate(360deg);
    }
}

/* Styles for the adaptive Before & After slider */
.ba-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: col-resize;
}

.ba-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
}

.resize-div {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid white;
    z-index: 2;
}

.resize-div img {
    width: 100vw;
    max-width: 800px;
}

input.ba-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: col-resize;
    z-index: 4;
    margin: 0;
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.handle-circle::after {
    content: "↔";
    color: #333;
    font-weight: bold;
    font-size: 20px;
}

.ba-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
    z-index: 3;
    user-select: none;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}


/* ========================================
   NEW FEATURES - Dark Mode, Scroll-to-Top, Lightbox, etc.
   ======================================== */

/* Dark Mode Variables */
[data-theme="dark"] {
    --beige: #1a1a2e;
    --beige-light: #16213e;
    --text: #e5e5e5;
    --text-light: #aaaaaa;
    --white: #0f0f23;
}

[data-theme="dark"] body {
    background: var(--beige);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .faq-item {
    background: var(--beige-light);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-header h2,
[data-theme="dark"] .service-card h3,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .process-step h4 {
    color: var(--cyan);
}

[data-theme="dark"] header {
    background: rgba(0, 100, 150, 0.95);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--beige) 0%, #0f0f23 50%, #1a1a2e 100%);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--beige);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .hero-frame {
    background: var(--beige-light);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--coral);
    border: none;
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 90, 95, 0.3);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 90, 95, 0.4);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle svg.sun {
    display: block;
}

[data-theme="dark"] .theme-toggle svg.moon {
    display: none;
}

.theme-toggle svg.sun {
    display: none;
}

.theme-toggle svg.moon {
    display: block;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--cyan);
    border: none;
    cursor: pointer;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 191, 255, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 191, 255, 0.4);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Image Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--coral);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--cyan);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.active a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu.active a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu.active a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu.active a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu a:hover {
    color: var(--coral);
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    position: relative;
    transform: rotate(45deg);
}

.mobile-menu-close span::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: white;
    transform: rotate(90deg);
}

/* Hamburger animation */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Particle Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--coral);
    animation: shake 0.3s ease;
}

.form-group .error-message {
    color: var(--coral);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
}

.form-group.error .error-message {
    opacity: 1;
    transform: translateY(0);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Lazy Load Placeholder */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Service cards rely on GSAP for transforms */

/* ========================================
   MOBILE OPTIMIZATION
   ======================================== */

/* Desktop Only - hide on mobile */
.desktop-only {
    display: flex;
}

/* Hide mobile bottom bar completely */
.mobile-bottom-bar {
    display: none !important;
}

/* ========================================
   TABLET STYLES (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ========================================
   MOBILE STYLES (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {

    /* Hide desktop-only elements */
    .desktop-only {
        display: none !important;
    }

    /* Header */
    header {
        padding: 0.5rem 1rem !important;
    }

    header .header-inner {
        padding: 0;
    }

    header .logo img {
        height: 28px;
    }

    header nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        width: 44px;
        height: 44px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .mobile-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
    }

    /* Hero - TEXT FIRST, then IMAGE */
    .hero {
        padding: 100px 1rem 40px !important;
        min-height: auto !important;
    }

    .hero-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .hero-content {
        order: 1 !important;
        text-align: center;
        padding: 0;
        max-width: 100%;
    }

    .hero-visual {
        order: 2 !important;
        width: 100%;
        max-width: 100%;
    }

    .hero-frame {
        max-width: 100%;
        padding: 0.5rem;
    }

    .hero-frame img {
        max-height: 250px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        line-height: 1.6;
    }

    .hero-btns {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Hide decorative elements on mobile */
    .hero-bg,
    .hero-circle,
    .hero-line,
    #particles-canvas,
    .floating-shapes,
    .parallax-decor,
    .architectural-bg,
    .pointer-glow,
    .cursor,
    .cursor-dot {
        display: none !important;
    }

    /* Stats */
    .stats {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
        margin: 0 1rem;
        border-radius: 12px;
    }

    .stat {
        flex: 1 1 45%;
        min-width: 130px;
        padding: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .stat+.stat {
        border-left: none;
    }

    /* Section headers */
    .section-header {
        padding: 0 1rem;
        margin-bottom: 1.5rem !important;
    }

    .section-header h2 {
        font-size: 1.5rem !important;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    /* Services grid */
    section.services {
        padding: 3rem 0 !important;
    }

    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
    }

    /* Portfolio */
    .portfolio-section {
        padding: 3rem 0 !important;
    }

    .portfolio-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    .portfolio-item {
        height: 200px;
    }

    /* Process */
    .process-section {
        padding: 3rem 0 !important;
    }

    .process-line {
        display: none !important;
    }

    .process-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    .process-step {
        padding: 1.25rem;
    }

    /* Why Us / Features */
    .why-us {
        padding: 3rem 0 !important;
    }

    .features-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    /* FAQ */
    .faq-section {
        padding: 3rem 0 !important;
    }

    .faq-container {
        padding: 0 1rem;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Carousels */
    .carousel-section {
        padding: 2rem 0 !important;
    }

    .carousel-track {
        padding: 0 1rem;
    }

    .carousel-item {
        min-width: 260px;
        height: 180px;
    }

    /* Before/After */
    .before-after-section {
        padding: 2rem 0 !important;
    }

    .ba-container {
        margin: 0 auto;
        max-width: calc(100% - 2rem);
        border-radius: 8px;
    }

    /* Contact */
    .contact {
        padding: 3rem 0 !important;
    }

    .contact-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    /* Footer */
    footer {
        padding: 2rem 0 1rem !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        font-size: 0.8rem;
    }

    /* Scroll to top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* Mobile Menu */
    .mobile-menu {
        padding: 80px 2rem 2rem;
    }

    .mobile-menu a {
        font-size: 1.5rem;
    }
}

/* ========================================
   EXTRA SMALL SCREENS (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero-frame img {
        max-height: 200px;
    }

    .stat {
        flex: 1 1 100%;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .section-header h2 {
        font-size: 1.35rem !important;
    }

    .carousel-item {
        min-width: 240px;
        height: 160px;
    }
}

/* Service Cards 3D tilt handled by GSAP in script.js */
.service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   HMO CONVERSION SECTION
   ======================================== */

.hmo-section {
    position: relative;
    padding: 4rem 2rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--beige) 0%, #e8f4f8 100%);
}

.hmo-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hmo-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 191, 255, 0.08) 0%, transparent 60%);
}

.hmo-section .section-header {
    position: relative;
    z-index: 1;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--coral), #ff7a7f);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 90, 95, 0.3);
}

/* Income Comparison */
.hmo-comparison {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    margin: 2rem auto;
    padding-top: 1rem;
    /* Space for the +108% badge */
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hmo-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    flex: 1;
    max-width: 320px;
    position: relative;
    border: 2px solid transparent;
}

.hmo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

.hmo-single {
    border-color: rgba(0, 191, 255, 0.2);
}

.hmo-single .house-svg {
    color: var(--cyan);
}

.hmo-multi {
    border-color: rgba(255, 90, 95, 0.3);
    background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
}

.hmo-multi .house-svg {
    color: var(--coral);
}

.hmo-house {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.house-svg {
    width: 100%;
    height: 100%;
}

.hmo-income {
    margin-bottom: 0.75rem;
}

.income-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.income-value {
    font-family: 'Manrope', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
}

.income-value.highlight {
    color: var(--coral);
    text-shadow: 0 2px 10px rgba(255, 90, 95, 0.2);
}

.hmo-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.5rem 1rem;
    background: var(--beige);
    border-radius: 8px;
    display: inline-block;
}

.hmo-multi .hmo-type {
    background: linear-gradient(135deg, var(--coral), #ff7a7f);
    color: white;
}

.hmo-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hmo-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    /* Stay centered when parent has stretch */
    gap: 0.5rem;
    color: var(--coral);
}

.hmo-arrow svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

.hmo-arrow span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

/* Benefits Grid */
.hmo-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.hmo-benefit {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

.hmo-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--coral);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--cyan);
}

.benefit-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hmo-benefit:hover .benefit-icon i {
    transform: scale(1.1);
    color: var(--coral);
}

.hmo-benefit h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.hmo-benefit p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* HMO CTA */
.hmo-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--cyan), var(--cyan-dark));
    border-radius: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 191, 255, 0.25);
}

.hmo-cta h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hmo-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hmo-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hmo-cta .btn-coral {
    background: var(--coral);
    color: white;
}

.hmo-cta .btn-white {
    background: white;
    color: var(--cyan-dark);
}

/* HMO Mobile Styles */
@media (max-width: 768px) {
    .hmo-section {
        padding: 3rem 1rem;
    }

    .hmo-comparison {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hmo-card {
        max-width: 100%;
        padding: 1.75rem 1.5rem;
    }

    .hmo-house {
        width: 100px;
        height: 100px;
    }

    .income-value {
        font-size: 2rem;
    }

    .hmo-arrow {
        transform: rotate(90deg);
    }

    .hmo-arrow svg {
        animation: arrow-bounce-mobile 1.5s ease-in-out infinite;
    }

    @keyframes arrow-bounce-mobile {

        0%,
        100% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(8px);
        }
    }

    .hmo-benefits {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hmo-benefit {
        padding: 1.25rem;
    }

    .hmo-cta {
        padding: 2rem 1.25rem;
        border-radius: 16px;
        margin: 2rem 0 0;
    }

    .hmo-cta h3 {
        font-size: 1.35rem;
    }

    .hmo-cta p {
        font-size: 0.95rem;
    }

    .hmo-cta-buttons {
        flex-direction: column;
    }

    .hmo-cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hmo-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   FLOATING BACKGROUND ELEMENTS
   ======================================== */

/* Animated floating orbs */
.floating-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--cyan), #7dd3fc);
    top: 10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--coral), #fca5a5);
    top: 60%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    top: 30%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -40px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 30px) scale(0.95);
    }

    75% {
        transform: translate(-40px, -20px) scale(1.02);
    }
}



/* HMO Benefit Tiles - Enhanced Hover */
.hmo-benefit {
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.hmo-benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.hmo-benefit:hover::before {
    left: 100%;
}

.hmo-benefit .benefit-icon {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hmo-benefit:hover .benefit-icon {
    transform: scale(1.2) rotate(5deg);
}

.hmo-benefit h4 {
    transition: color 0.3s ease;
}

.hmo-benefit:hover h4 {
    color: var(--coral);
}

/* Service card enhanced hover glow */
.service-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--cyan), var(--coral));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 0.15;
}

/* FAQ smooth arrow rotation */
.faq-question::after {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

/* ========================================
   FEATURED PROJECT SECTION
   ======================================== */

.featured-project {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(191, 155, 82, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.featured-project .section-header {
    position: relative;
    z-index: 1;
}

.featured-project .section-header h2 {
    color: #fff;
}

.featured-project .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.featured-project .section-badge {
    background: linear-gradient(135deg, #bf9b52, #d4af61);
    box-shadow: 0 4px 20px rgba(191, 155, 82, 0.35);
}

/* 3-Column Vertical Photo Gallery */
.fp-gallery {
    max-width: 1100px;
    margin: 2.5rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.fp-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.fp-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fp-card:hover {
    border-color: rgba(191, 155, 82, 0.5);
    box-shadow: 0 20px 60px rgba(191, 155, 82, 0.15);
    transform: translateY(-5px);
}

.fp-card:hover img {
    transform: scale(1.04);
}

.fp-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.45s ease;
}

.fp-card:hover .fp-card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.fp-card-overlay h4 {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

/* Zoom button */
.fp-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.35s ease;
    pointer-events: none;
}

.fp-card:hover .fp-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Tag pill */
.fp-tag {
    display: inline-block;
    background: linear-gradient(135deg, #bf9b52, #d4af61);
    color: #1a1a2e;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}

/* Feature pills row */
.fp-features {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem auto 0;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.fp-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    transition: all 0.35s ease;
}

.fp-feature:hover {
    background: rgba(191, 155, 82, 0.15);
    border-color: rgba(191, 155, 82, 0.4);
    transform: translateY(-3px);
}

.fp-feature-icon {
    color: #d4af61;
    font-size: 1rem;
}

.fp-feature span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 500;
}

/* CTA */
.fp-cta {
    text-align: center;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Featured project mobile */
@media (max-width: 768px) {
    .featured-project {
        padding: 3rem 1rem;
    }

    .fp-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fp-card-overlay {
        transform: translateY(0);
        opacity: 1;
        padding: 1rem;
    }

    .fp-card-overlay h4 {
        font-size: 0.9rem;
    }

    .fp-zoom {
        opacity: 0.7;
        transform: scale(1);
    }

    .fp-features {
        gap: 0.75rem;
    }

    .fp-feature {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .fp-features {
        gap: 0.5rem;
    }

    .fp-feature {
        flex: 1 1 calc(50% - 0.5rem);
        justify-content: center;
        padding: 0.5rem 0.75rem;
    }
}

/* Hide background effects on mobile for performance */
@media (max-width: 768px) {
    .floating-orbs {
        display: none !important;
    }
}

/* ------------------------------------------- */
/* Mobile-specific refinements (from index.php) */
/* ------------------------------------------- */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* Hide decorative elements */
    .hero-bg, .hero-circle, .hero-line, #particles-canvas, 
    .floating-shapes, .parallax-decor, .architectural-bg,
    .pointer-glow, .cursor, .cursor-dot, .desktop-only, 
    header nav, .floating-orbs, .grid-overlay, .bg-particle { display: none !important; }
    
    /* Header - always visible, fixed */
    header { 
        padding: 0.5rem 1rem !important; 
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    header .logo img { height: 28px; }
    
    /* Mobile Toggle - hamburger ☰ icon */
    .mobile-toggle { 
        display: flex !important; 
        width: 44px !important; 
        height: 44px !important; 
        background: rgba(255,255,255,0.2) !important; 
        border: none !important; 
        border-radius: 8px !important;
        justify-content: center !important; 
        align-items: center !important; 
        cursor: pointer !important;
        font-size: 24px !important;
        color: white !important;
        line-height: 1 !important;
    }
    
    /* Hero - Badge, Title, IMAGE, then text/buttons */
    .hero { padding: 80px 1rem 30px !important; min-height: auto !important; }
    .hero-inner { 
        display: grid !important; 
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto auto !important;
        gap: 1rem !important; 
    }
    .hero-content { 
        display: contents !important; /* Allow children to participate in grid */
    }
    .hero-badge { 
        grid-row: 1 !important; 
        font-size: 0.65rem; 
        padding: 0.35rem 0.7rem; 
        text-align: center;
        justify-self: center;
    }
    .hero h1 { 
        grid-row: 2 !important; 
        font-size: 1.5rem !important; 
        line-height: 1.25; 
        margin-bottom: 0 !important;
        text-align: center;
    }
    .hero-visual { 
        grid-row: 3 !important; 
        width: 100%; 
    }
    .hero-text { 
        grid-row: 4 !important; 
        font-size: 0.9rem; 
        margin-bottom: 0 !important; 
        line-height: 1.5; 
        text-align: center;
    }
    .hero-btns { 
        grid-row: 5 !important; 
        flex-direction: column; 
        gap: 0.6rem; 
    }
    .hero-frame { padding: 0.5rem; }
    .hero-frame img { max-height: 200px; width: 100%; object-fit: cover; border-radius: 12px; }
    .hero-btns .btn { width: 100%; padding: 0.85rem 1.25rem; font-size: 0.85rem; }
    
    /* Stats */
    .stats { flex-wrap: wrap; gap: 0.5rem; padding: 1rem; margin: 0 1rem; }
    .stat { flex: 1 1 45%; padding: 0.6rem; min-width: 120px; }
    .stat-number { font-size: 1.4rem; }
    .stat-label { font-size: 0.7rem; }
    
    /* Section headers */
    .section-header { padding: 0 1rem; margin-bottom: 1rem !important; }
    .section-header h2 { font-size: 1.4rem !important; }
    .section-header p { font-size: 0.85rem; }
    
    /* Service/Feature Grids - single column */
    .services-grid, .process-grid, .features-grid { display: flex !important; flex-direction: column !important; gap: 0.75rem; padding: 0 1rem; }
    .service-card, .feature-card, .process-step { padding: 1.25rem; }
    .process-line { display: none !important; }
    
    /* Portfolio Grid - 2 columns! */
    .portfolio-grid { 
        display: grid !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 0.5rem !important; 
        padding: 0 0.75rem !important; 
    }
    .portfolio-item { height: 140px !important; border-radius: 10px !important; }
    
    /* HMO Section - compact layout */
    .hmo-section { padding: 2rem 0 !important; }
    .hmo-section .section-header { margin-bottom: 1rem !important; }
    .hmo-section .section-badge { font-size: 0.7rem !important; padding: 0.4rem 0.8rem !important; margin-bottom: 0.5rem !important; }
    .hmo-section .section-header h2 { font-size: 1.3rem !important; margin-bottom: 0.5rem !important; }
    .hmo-section .section-header p { font-size: 0.8rem !important; }
    
    /* HMO Comparison - HORIZONTAL layout with arrow between */
    .hmo-comparison {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.3rem !important;
        align-items: center !important;
        padding: 0 0.5rem !important;
        margin: 1rem auto !important;
    }
    .hmo-card {
        flex: 1 !important;
        max-width: none !important;
        padding: 0.75rem 0.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 180px !important;
    }
    .hmo-house { width: 50px !important; height: 50px !important; margin-bottom: 0.5rem !important; }
    .income-value { font-size: 1.1rem !important; }
    .income-label { font-size: 0.6rem !important; }
    .hmo-type { font-size: 0.65rem !important; padding: 0.25rem 0.4rem !important; }
    .hmo-badge { 
        font-size: 0.55rem !important; 
        padding: 0.2rem 0.4rem !important; 
        top: -6px !important; 
        right: -3px !important; 
    }
    .hmo-arrow { 
        transform: none !important;
        flex-shrink: 0 !important;
        align-self: center !important;
        padding: 0 0.25rem !important;
    }
    .hmo-arrow svg { width: 20px !important; height: 20px !important; }
    .hmo-arrow span { font-size: 0.55rem !important; }
    
    /* HMO Benefits - 2 columns */
    .hmo-benefits { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 0.5rem !important; 
        padding: 0 0.75rem !important;
    }
    .hmo-benefit { padding: 0.75rem !important; }
    .benefit-icon { font-size: 1.5rem !important; margin-bottom: 0.5rem !important; }
    .hmo-benefit h4 { font-size: 0.8rem !important; }
    .hmo-benefit p { font-size: 0.7rem !important; }
    
    /* HMO CTA - more spacing from benefits */
    .hmo-cta { padding: 1.5rem 1rem !important; margin: 2.5rem 0.75rem 0 !important; }
    .hmo-cta h3 { font-size: 1.1rem !important; }
    .hmo-cta p { font-size: 0.85rem !important; }
    .hmo-cta-buttons { flex-direction: column; gap: 0.5rem; }
    .hmo-cta-buttons .btn { width: 100%; padding: 0.75rem 1rem; font-size: 0.85rem; }
    
    /* Carousel - keep default horizontsl scroll */
    .carousel-section { padding: 2rem 0.75rem !important; }
    .carousel-track { padding: 0 0.5rem !important; }
    .carousel-item { min-width: 280px !important; height: 160px !important; }
    
    /* Planning Grid - 2 columns */
    .planning-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        padding: 0 0.75rem !important;
    }
    .planning-grid .portfolio-item {
        height: 120px !important;
    }
    
    /* Before/After - FIXED centering */
    .before-after-section { 
        padding: 2rem 1rem !important; 
    }
    .ba-container {
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    
    /* Contact & Footer */
    .contact { padding: 2rem 1rem !important; }
    .contact-content { flex-direction: column; gap: 1.5rem; padding: 0 !important; }
    .contact-info { padding-left: 0.5rem !important; }
    .contact-info h2 { padding-left: 0 !important; text-align: left !important; }
    .contact-info p { padding-left: 0 !important; text-align: left !important; }
    .contact-form { padding: 1.25rem; }
    .footer-content { flex-direction: column; gap: 1.5rem; padding: 0 1rem; text-align: center; }
    .footer-col { align-items: center; }
    
    /* Form inputs - prevent iOS zoom */
    input, textarea, select { font-size: 16px !important; }
    
    /* Scroll to top - proper position */
    .scroll-to-top { 
        bottom: 20px !important; 
        right: 20px !important; 
        width: 44px !important; 
        height: 44px !important;
        z-index: 9998 !important;
    }
    
    /* Mobile Menu - centered, proper close button */
    .mobile-menu {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 2rem !important;
    }
    .mobile-menu a {
        font-size: 1.5rem !important;
        padding: 0.75rem 0 !important;
    }
    .mobile-menu-close {
        position: absolute !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        width: 44px !important;
        height: 44px !important;
        background: rgba(255,255,255,0.2) !important;
        border: none !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mobile-menu-close::before,
    .mobile-menu-close::after {
        content: '' !important;
        position: absolute !important;
        width: 20px !important;
        height: 2px !important;
        background: white !important;
        border-radius: 2px !important;
    }
    .mobile-menu-close::before { transform: rotate(45deg) !important; }
    .mobile-menu-close::after { transform: rotate(-45deg) !important; }
    .mobile-menu-close span { display: none !important; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.3rem !important; }
    .hmo-card { padding: 0.75rem 0.5rem !important; }
    .income-value { font-size: 1.1rem !important; }
    .hmo-house { width: 50px !important; height: 50px !important; }
}