/* ==========================================================================
   PERSPECTIVE PAINTING - COMPLETE CSS STYLESHEET
   ========================================================================== */

/* ==========================================================================
   1. GLOBAL STYLES & CSS VARIABLES
   ========================================================================== */

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

:root {
    --primary: #2E5F8D;
    --secondary: #1A1A1A;
    --accent: #4A90E2;
    --dark: #000000;
    --light-bg: #F5F5F5;
    --soft-bg: #EEEEEE;
    --white: #FFFFFF;
    --success: #28A745;
    --warning: #FFC107;
    --info: #17A2B8;
    --purple: #6F42C1;
    --teal: #20C997;
    --gradient-warm: linear-gradient(135deg, #2E5F8D 0%, #1E3A5F 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1A1A1A 100%);
    --gradient-main: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #1A2C3D 100%);
    --gradient-ocean: linear-gradient(135deg, #2E5F8D 0%, #4A90E2 50%, #17A2B8 100%);
    --gradient-forest: linear-gradient(135deg, #1A1A1A 0%, #28A745 50%, #20C997 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-blue: 0 10px 30px rgba(46, 95, 141, 0.3);
    --transition: all 0.3s ease;
}

html {
    height: 100%;
    background: #0D0D0D !important;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0D0D0D;
    overflow-x: hidden;
    color: var(--secondary);
    line-height: 1.6;
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    margin: 0;
    padding: 0;
    margin-bottom: 0 !important;
    background: var(--gradient-main);
    flex: 1 0 auto;
}

/* ==========================================================================
   2. ANIMATED BACKGROUND ELEMENTS
   ========================================================================== */

.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(46, 95, 141, 0.02) 0%, rgba(46, 95, 141, 0.01) 100%);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -5%;
    animation-duration: 25s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -5%;
    animation-duration: 20s;
    animation-delay: 5s;
}

.shape:nth-child(3) {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: 10%;
    animation-duration: 30s;
    animation-delay: 10s;
}

.shape:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 30%;
    right: 20%;
    animation-duration: 15s;
    animation-delay: 2s;
}

.shape:nth-child(5) {
    width: 250px;
    height: 250px;
    bottom: 30%;
    right: 10%;
    animation-duration: 22s;
    animation-delay: 7s;
}

.shape:nth-child(6) {
    width: 180px;
    height: 180px;
    top: 60%;
    left: 5%;
    animation-duration: 18s;
    animation-delay: 3s;
}

.shape:nth-child(7) {
    width: 320px;
    height: 320px;
    top: 20%;
    right: 30%;
    animation-duration: 28s;
    animation-delay: 8s;
}

.shape:nth-child(8) {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 40%;
    animation-duration: 20s;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.02;
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg);
        opacity: 0.03;
    }
    50% {
        transform: translate(-20px, 30px) rotate(180deg);
        opacity: 0.02;
    }
    75% {
        transform: translate(40px, 20px) rotate(270deg);
        opacity: 0.03;
    }
}

.decorative-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.03;
}

.decorative-element.left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 300px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    border-radius: 0 150px 150px 0;
}

.decorative-element.right {
    right: 0;
    top: 30%;
    width: 100px;
    height: 300px;
    background: linear-gradient(-90deg, var(--primary) 0%, transparent 100%);
    border-radius: 150px 0 0 150px;
}

/* ==========================================================================
   3. HEADER STYLES
   ========================================================================== */

header {
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #1A2C3D 100%);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    border-bottom: 1px solid rgba(46, 95, 141, 0.1);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #0A0A0A 0%, #151515 50%, #1F0F0F 100%);
}

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

.main-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.main-logo img {
    height: 50px;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.main-logo:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    transform: scale(1.05);
}

.company-name {
    font-size: 24px;
    font-weight: 700;
}

.company-name .perspective {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.company-name .painting {
    color: #E8E8E8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 17px;
    position: relative;
    transition: var(--transition);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta-buttons {
    display: flex;
    gap: 15px;
}

.phone-btn {
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #2A2A2A 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 50%, #3A3A3A 100%);
    border-color: rgba(255, 255, 255, 0.2);
}

.phone-btn i {
    color: rgba(255, 255, 255, 0.9);
}

.quote-btn {
    background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 50%, #D0D0D0 100%);
    color: #1A1A1A;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 15px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #F0F0F0 0%, #FFFFFF 50%, #F5F5F5 100%);
    color: #0A0A0A;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn:hover span {
    background: white;
}


/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */

.hero-section {
    margin-top: 0;
    padding-top: 100px; /* Increased to ensure content clears fixed header */
    min-height: 100vh;
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('media/house_1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(46, 95, 141, 0.03) 35px, rgba(46, 95, 141, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(46, 95, 141, 0.02) 35px, rgba(46, 95, 141, 0.02) 70px);
    z-index: 2;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content {
    max-width: 100%;
    overflow: hidden; /* Prevent content overflow */
}

.hero-content h1 {
    /* Responsive font-size using clamp() for fluid typography */
    font-size: clamp(28px, 3.5vw, 52px); /* Reduced for better fit on all screens */
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual; /* Allow manual hyphenation if needed */
}

.hero-content h1 span {
    color: rgba(46, 95, 141, 0.9);
}

.hero-content .tagline {
    /* Responsive font-size for tagline */
    font-size: clamp(14px, 1.8vw, 22px); /* Slightly reduced */
    color: rgba(46, 95, 141, 0.8);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p {
    /* Responsive font-size for paragraph */
    font-size: clamp(13px, 1.3vw, 17px); /* Slightly reduced */
    color: #CCCCCC;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 15px;
}

.hero-feature i {
    color: rgba(46, 95, 141, 0.8);
    font-size: 18px;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.btn-hero {
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    text-transform: uppercase;
}

.btn-hero-primary {
    background: rgba(46, 95, 141, 0.9);
    color: white;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(46, 95, 141, 1);
}

.btn-hero-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-hero-secondary:hover {
    background: white;
    color: var(--secondary);
}

.hero-video {
    position: relative;
}

.hero-video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
}

.hero-video video,
.hero-video iframe {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    aspect-ratio: 16/9;
}

.hero-video iframe {
    min-height: 315px;
    border: none;
}

.video-control {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.video-control:hover {
    background: rgba(46, 95, 141, 0.9);
    border-color: var(--primary);
    transform: scale(1.1);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(46, 95, 141, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Video Controls */
.video-controls-container {
    position: absolute;
    bottom: 70px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.video-controls-container.visible {
    opacity: 1;
}

.video-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 10px;
    overflow: visible;
}

.video-progress-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.1s linear;
    pointer-events: none;
}

.video-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.2s ease;
}

.video-progress-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-time {
    color: white;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 5px;
}

.hero-video-wrapper:hover .video-controls-container {
    opacity: 1;
}

/* ==========================================================================
   5. TRUST BADGES SECTION
   ========================================================================== */

.trust-section {
    background: var(--gradient-main);
    padding: 50px 20px;
    position: relative;
    margin-top: -150px !important;
    z-index: 10;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: subtleGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    min-height: 110px;
    justify-content: center;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 5s ease-in-out infinite;
}

.trust-badge.placeholder {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 20px 30px;
    border-radius: 10px;
}

.trust-badge.placeholder span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-badge img {
    height: 80px;
    width: auto;
    max-width: 150px;
    opacity: 0.95;
    transition: var(--transition);
    filter: brightness(1.2) contrast(1.1);
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.trust-badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
    transform: translateY(-5px) scale(1.05);
    animation-play-state: paused;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.12);
}

.trust-badge:hover img {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2) drop-shadow(0 5px 15px rgba(46, 95, 141, 0.4));
}

.trust-badge:nth-child(1) { animation-delay: 0s; }
.trust-badge:nth-child(2) { animation-delay: 0.5s; }
.trust-badge:nth-child(3) { animation-delay: 1s; }
.trust-badge:nth-child(4) { animation-delay: 1.5s; }
.trust-badge:nth-child(5) { animation-delay: 2s; }

@keyframes subtleGlow {
    0%, 100% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

@keyframes shine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    15%, 85% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ==========================================================================
   5.5. STATS CAROUSEL BAR
   ========================================================================== */
.stats-carousel-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 30px 0;
    overflow: hidden;
    border-top: 1px solid rgba(46, 95, 141, 0.3);
    border-bottom: 1px solid rgba(46, 95, 141, 0.3);
    margin-top: -80px;
    z-index: 10;
}

.stats-track {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.stats-content {
    display: flex;
    animation: scrollStats 40s linear infinite;
    white-space: nowrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stat-item i {
    margin-right: 10px;
    color: rgba(46, 95, 141, 0.8);
    font-size: 20px;
}

@keyframes scrollStats {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.stats-content:hover {
    animation-play-state: paused;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-carousel-bar {
        padding: 22px 0;
        margin-top: -60px;
    }
    
    .stats-content {
        animation: scrollStats 25s linear infinite; /* Speed up from 40s to 25s */
    }
    
    .stat-item {
        padding: 0 25px;
        font-size: 15px;
    }
    
    .stat-item i {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .stats-carousel-bar {
        padding: 18px 0;
        margin-top: -50px;
    }
    
    .stats-content {
        animation: scrollStats 20s linear infinite; /* Even faster for mobile - 20s */
    }
    
    /* Gallery Preview - Reduce height and padding on mobile */
    .gallery-preview {
        padding: 60px 20px 80px !important;
    }
    
    .gallery-preview .section-header {
        margin-bottom: 20px !important;
    }
    
    .gallery-preview .section-header h2 {
        font-size: 32px !important;
        margin-bottom: 10px !important;
    }
    
    .gallery-preview .section-header p {
        font-size: 14px !important;
        margin-bottom: 0 !important;
    }
    
    .slider {
        height: 45vh !important;
        min-height: 350px !important;
        margin-bottom: 0 !important;
    }
    
    /* Gallery Slider - Position content at bottom left on mobile */
    .slider .list .item .content {
        bottom: 80px !important;
        left: 15px !important;
        right: auto !important;
        width: 75% !important;
        max-width: 75% !important;
        text-align: left;
    }
    
    .slider .list .item .content h2 {
        font-size: 28px !important;
        margin: 10px 0;
    }
    
    .slider .list .item .content p:nth-child(1) {
        font-size: 12px !important;
        letter-spacing: 5px;
    }
    
    .slider .list .item .content p:nth-child(3) {
        font-size: 14px !important;
        line-height: 1.4;
        max-width: 100%;
    }
    
    .slider .list .item::after {
        height: 50% !important;
        background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%) !important;
    }
    
    .thumbnail {
        bottom: 10px !important;
        gap: 5px;
        padding: 0 10px;
    }
    
    /* Position arrows at right center on mobile */
    .arrows {
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .arrows button {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        background: rgba(46, 95, 141, 0.8) !important;
        backdrop-filter: blur(5px);
    }
    
    .stat-item {
        padding: 0 20px;
        font-size: 13px;
    }
    
    .stat-item i {
        font-size: 15px;
        margin-right: 6px;
    }
}

/* ==========================================================================
   6. SERVICES SECTION
   ========================================================================== */

/* Mobile Gallery CTA - Hidden by default */
.mobile-gallery-cta {
    display: none;
    text-align: center;
    margin-top: 30px;
}

.btn-gallery-mobile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 95, 141, 0.3);
}

.btn-gallery-mobile:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.btn-gallery-mobile i {
    font-size: 18px;
}

.services-overview {
    padding: 100px 20px;
    background: var(--gradient-main);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide large-screen-only service cards by default */
.service-card.large-screen-only {
    display: none;
}

.services-overview::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 150px;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10,50 Q50,10 90,50 T170,50' stroke='%23A8383B' stroke-width='3' fill='none' opacity='0.1'/%3E%3C/svg%3E") no-repeat;
    opacity: 0.05;
}

.services-overview .section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
}

.services-overview .section-header h2 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.services-overview .section-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.section-divider {
    width: 100px;
    height: 2px;
    background: rgba(46, 95, 141, 0.4);
    margin: 0 auto 20px;
}

.services-grid {
    max-width: 1200px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    transition: var(--transition);
}

.service-card:hover .service-card-bg {
    filter: brightness(0.5);
    transform: scale(1.1);
}

.service-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: white;
    text-align: left;
}

.service-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.service-card .learn-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: white;
    border: 2px solid white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.service-card:hover .learn-more-btn {
    background: white;
    color: var(--secondary);
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */

.about-section {
    padding: 100px 20px;
    background: var(--gradient-main);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(46, 95, 141, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(46, 95, 141, 0.2);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(46, 95, 141, 0.9);
    color: white;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-badge .number {
    font-size: 48px;
    font-weight: 800;
}

.about-badge .text {
    font-size: 14px;
    text-transform: uppercase;
}

.about-content h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

.about-content h2 span {
    color: rgba(46, 95, 141, 0.8);
}

.about-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: rgba(46, 95, 141, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

/* ==========================================================================
   8. PROCESS SECTION
   ========================================================================== */

.process-section {
    padding: 100px 20px;
    background: var(--gradient-main);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.process-section .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.process-section .section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.process-section .section-header h2 span {
    color: rgba(46, 95, 141, 0.8);
}

.process-section .section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.process-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

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

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -40px;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, rgba(46, 95, 141, 0.3) 0%, rgba(46, 95, 141, 0.1) 100%);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(46, 95, 141, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 2px solid rgba(46, 95, 141, 0.2);
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: rgba(46, 95, 141, 0.4);
}

.process-step h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ==========================================================================
   9. GALLERY SECTION - RESTORED ORIGINAL CODE
   ========================================================================== */

   .gallery-preview {
    padding: 100px 20px 180px;
    background: var(--gradient-main);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

.gallery-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(46, 95, 141, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.gallery-preview .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.gallery-preview .section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gallery-preview .section-header h2 span {
    color: rgba(46, 95, 141, 0.8);
}

.gallery-preview .section-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.slider {
    max-width: 1400px;
    margin: 0 auto;
    height: 70vh;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.slider .list {
    position: relative;
    height: 100%;
}

.slider .list .item {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.5s;
}

.slider .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider .list .item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 30%, transparent 100%);
}

.slider .list .item .content {
    position: absolute;
    left: 10%;
    bottom: 140px;
    width: 500px;
    max-width: 80%;
    z-index: 1;
}

.slider .list .item .content p:nth-child(1) {
    text-transform: uppercase;
    letter-spacing: 10px;
    color: rgba(46, 95, 141, 0.8);
    font-weight: 600;
    font-size: 14px;
}

.slider .list .item .content h2 {
    font-size: clamp(32px, 5vw, 64px);
    margin: 15px 0;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
}

.slider .list .item .content p:nth-child(3) {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 16px;
    max-width: 400px;
}

.slider .list .item.active {
    opacity: 1;
    z-index: 10;
}

@keyframes showContent {
    to {
        transform: translateY(0);
        filter: blur(0);
        opacity: 1;
    }
}

.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3) {
    transform: translateY(30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 0.5s 0.7s ease-in-out 1 forwards;
}

.slider .list .item.active h2 {
    animation-delay: 1s;
}

.slider .list .item.active p:nth-child(3) {
    animation-duration: 1.3s;
}

.arrows {
    position: absolute;
    top: 50%;
    right: 50px;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arrows button {
    background: rgba(46, 95, 141, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: white;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.arrows button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    background: rgba(46, 95, 141, 0.5);
}

.thumbnail {
    position: absolute;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    z-index: 11;
    display: flex;
    gap: 10px;
    width: auto;
    max-width: 90%;
    height: 100px;  /* INCREASED from 80px to 100px */
    padding: 10px 0;  /* ADDED padding for better spacing */
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
    align-items: center;  /* ADDED to center items vertically */
}

.thumbnail::-webkit-scrollbar {
    width: 0;
}

.thumbnail .item {
    width: 110px;  /* INCREASED from 100px to 110px */
    height: 80px;  /* INCREASED from 70px to 80px */
    filter: brightness(0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid transparent;
    position: relative;
    margin: 0 5px;  /* ADDED horizontal margin for spacing */
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.thumbnail .item.active {
    filter: brightness(1);
    border-color: rgba(46, 95, 141, 0.8);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(46, 95, 141, 0.5);
    z-index: 2;  /* ADDED to ensure active thumbnail is above others */
}

.thumbnail .item:hover {
    filter: brightness(0.9);
    border-color: rgba(46, 95, 141, 0.4);
    transform: scale(1.05);
}

/* Responsive adjustments for thumbnails */
@media (max-width: 1024px) {
    .thumbnail {
        bottom: 20px;
        height: 90px;  /* ADJUSTED for tablets */
        padding: 8px 0;
    }
    
    .thumbnail .item {
        width: 100px;  /* ADJUSTED for tablets */
        height: 70px;  /* ADJUSTED for tablets */
    }
}

@media (max-width: 768px) {
    .thumbnail {
        height: 80px;  /* ADJUSTED for mobile */
        padding: 5px 0;
    }
    
    .thumbnail .item {
        width: 90px;  /* ADJUSTED for mobile */
        height: 60px;  /* ADJUSTED for mobile */
        margin: 0 3px;
    }
}

@media (max-width: 480px) {
    .thumbnail {
        display: none !important; /* Hide thumbnails on very small screens */
    }
}

/* Gallery Preview adjustments for larger screens */
@media (min-width: 1200px) {
    .gallery-preview {
        padding: 90px 20px 140px !important;
    }
    
    .slider {
        height: 65vh !important;
        max-height: 750px;
    }
    
    .gallery-cta-section {
        margin-top: 45px;
    }
}

@media (min-width: 1440px) {
    .gallery-preview {
        padding: 85px 20px 130px !important;
    }
    
    .slider {
        height: 62vh !important;
        max-height: 720px;
    }
}

/* Gallery CTA Button */
.gallery-cta-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
}

.gallery-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, rgba(46, 95, 141, 0.9) 0%, rgba(46, 95, 141, 0.7) 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery-more-btn::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.5s ease;
}

.gallery-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 95, 141, 0.4);
    background: linear-gradient(135deg, rgba(46, 95, 141, 1) 0%, rgba(46, 95, 141, 0.8) 100%);
}

.gallery-more-btn:hover::before {
    left: 100%;
}

.gallery-more-btn:hover i {
    transform: translateX(5px);
}

.gallery-more-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .gallery-cta-section {
        margin-top: 30px;
        padding-top: 10px;
    }
    
    .gallery-more-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-cta-section {
        margin-top: 20px;
    }
    
    .gallery-more-btn {
        padding: 12px 25px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    .gallery-more-btn i {
        font-size: 14px;
    }
}

/* ==========================================================================
   10. TEAM SECTION
   ========================================================================== */

.team-section {
    padding: 100px 20px;
    background: var(--gradient-main);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden; /* Prevent horizontal scroll on mobile */
}

/* Responsive team section padding */
@media (max-width: 480px) {
    .team-section {
        padding: 60px 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .team-section {
        padding: 70px 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-section {
        padding: 80px 20px;
    }
}

.team-section .section-header {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: center;
}

.team-section .section-header h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
}

.team-section .section-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
}

.team-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.team-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 80px; /* Increased padding to prevent overlap */
    max-width: 100%; /* Prevent overflow */
    box-sizing: border-box;
}

.team-grid {
    display: flex;
    transition: transform 0.5s ease;
}

.team-card {
    flex: 0 0 25%;
    padding: 0 15px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    position: relative;
}

/* Adjust team card spacing for larger screens */
@media (min-width: 1400px) {
    .team-card {
        padding: 0 20px;
    }
}

@media (min-width: 1920px) {
    .team-card {
        padding: 0 25px;
    }
}

@media (min-width: 2560px) {
    .team-card {
        padding: 0 30px;
    }
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-image {
    position: relative;
    height: 420px;
    min-height: 420px; /* Default height for medium screens */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
}

/* Mobile first responsive approach - smaller screens */
@media (max-width: 360px) {
    .team-image {
        height: 250px;
        min-height: 250px;
    }
}

@media (min-width: 361px) and (max-width: 480px) {
    .team-image {
        height: 280px;
        min-height: 280px;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .team-image {
        height: 300px;
        min-height: 300px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .team-image {
        height: 320px;
        min-height: 320px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-image {
        height: 360px;
        min-height: 360px;
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .team-image {
        height: 420px;
        min-height: 420px;
    }
}

/* Larger screens - increase team card image heights */
@media (min-width: 1400px) {
    .team-image {
        height: 480px;
        min-height: 480px;
    }
}

@media (min-width: 1600px) {
    .team-image {
        height: 520px;
        min-height: 520px;
    }
}

@media (min-width: 1920px) {
    .team-image {
        height: 560px;
        min-height: 560px;
    }
}

@media (min-width: 2560px) {
    .team-image {
        height: 600px;
        min-height: 600px;
    }
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.95);
    transition: all 0.4s ease;
}

.team-card:hover .team-image img {
    filter: brightness(1);
    transform: scale(1.05);
}

.team-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 95, 141, 0.9);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    color: white;
    text-align: center;
}

/* Responsive description padding */
@media (max-width: 480px) {
    .team-description {
        padding: 15px 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .team-description {
        padding: 18px 12px;
    }
}

.team-card:hover .team-description {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile touch interaction for team cards */
@media (max-width: 768px) {
    .team-card:hover .team-description {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .team-card.active-mobile .team-description {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .team-card {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

.team-description p {
    font-size: 13px;
    line-height: 1.4;
    color: white;
    max-width: 90%;
}

/* Responsive description text */
@media (max-width: 320px) {
    .team-description p {
        font-size: 11px;
        line-height: 1.3;
        max-width: 95%;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    .team-description p {
        font-size: 12px;
        line-height: 1.35;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .team-description p {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-description p {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Larger screens - increase description text */
@media (min-width: 1400px) {
    .team-description p {
        font-size: 14px;
        line-height: 1.5;
    }
}

@media (min-width: 1920px) {
    .team-description p {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (min-width: 2560px) {
    .team-description p {
        font-size: 16px;
    }
}

.team-content {
    padding: 25px 10px;
    text-align: center;
    background: transparent;
}

.team-content h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
}

.team-content .role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile responsive team content */
@media (max-width: 480px) {
    .team-content {
        padding: 20px 8px;
    }
    
    .team-content h3 {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .team-content .role {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .team-content {
        padding: 22px 10px;
    }
    
    .team-content h3 {
        font-size: 19px;
    }
    
    .team-content .role {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-content h3 {
        font-size: 19px;
    }
}

/* Larger screens - increase team content sizing */
@media (min-width: 1400px) {
    .team-content {
        padding: 30px 15px;
    }
    
    .team-content h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    
    .team-content .role {
        font-size: 14px;
    }
}

@media (min-width: 1600px) {
    .team-content h3 {
        font-size: 23px;
    }
}

@media (min-width: 1920px) {
    .team-content {
        padding: 35px 15px;
    }
    
    .team-content h3 {
        font-size: 24px;
    }
    
    .team-content .role {
        font-size: 15px;
    }
}

@media (min-width: 2560px) {
    .team-content h3 {
        font-size: 26px;
    }
    
    .team-content .role {
        font-size: 16px;
    }
}

.team-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-nav:hover {
    background: rgba(46, 95, 141, 0.9);
    border-color: rgba(46, 95, 141, 0.5);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.team-nav.prev {
    left: 10px; /* Moved inward from edge */
}

.team-nav.next {
    right: 10px; /* Moved inward from edge */
}

.team-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}

.team-dot.active {
    background: rgba(46, 95, 141, 0.5);
    transform: scale(1.2);
}

/* ==========================================================================
   11. TESTIMONIALS SECTION - STATIC 4 REVIEWS LAYOUT
   ========================================================================== */

/* Mobile Review Navigation */
.review-mobile-nav {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.review-nav-btn {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-nav-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.review-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.review-dots {
    display: flex;
    gap: 8px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

.testimonials-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(46, 95, 141, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.testimonials-header h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.testimonials-header h2 span {
    color: var(--accent);
}

.testimonials-header .divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 25px auto;
}

.testimonials-header .subtext {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Grid layout for testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    position: relative;
    z-index: 2;
}

/* Clean Minimal Card Design */
.testimonial-card {
    background: linear-gradient(135deg, #f8fafb 0%, #e8eef3 100%);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(46, 95, 141, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.6;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(46, 95, 141, 0.15);
    background: linear-gradient(135deg, #f5f8fa 0%, #e5ecf1 100%);
}

/* Card Header */
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    flex-shrink: 0;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 15px rgba(46, 95, 141, 0.3), inset 0 0 0 2px rgba(46, 95, 141, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(46, 95, 141, 0.4), inset 0 0 0 2px rgba(46, 95, 141, 0.15);
}

/* Read More Button Styling */
.read-more-btn {
    display: inline;
    margin-left: 5px;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.read-more-btn:hover {
    color: var(--accent);
    text-decoration: underline;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

.testimonial-location {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

/* Stars */
.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

.testimonial-stars i {
    color: #FFB400;
    font-size: 13px;
}

/* Title */
.testimonial-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Review text */
.testimonial-text {
    font-size: 16px;
    color: #3a4a5a;
    line-height: 1.8;
    flex-grow: 1;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    font-weight: 400;
}


/* Footer section for testimonials */
.testimonials-footer {
    text-align: center;
    padding-top: 30px;
}

.reviews-count {
    font-size: 20px;
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

.review-platforms {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.review-platforms a {
    color: rgba(46, 95, 141, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.review-platforms a:hover {
    color: white;
    background: rgba(46, 95, 141, 0.2);
}

.review-platforms span {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Design for Modern Testimonials */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-card {
        max-width: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .testimonials-header h2 {
        font-size: 32px;
    }
    
    .testimonial-card {
        padding: 24px;
    }
    
    .testimonial-header {
        gap: 10px;
    }
    
    .testimonial-avatar {
        width: 44px;
        height: 44px;
        font-size: 13px;
        border-width: 2px;
    }
    
    .testimonial-name {
        font-size: 13px;
    }
    
    .testimonial-location {
        font-size: 11px;
    }
    
    .testimonial-stars i {
        font-size: 12px;
    }
    
    .testimonial-title {
        font-size: 12px;
    }
    
    .testimonial-text {
        font-size: 12px;
    }
    
    .testimonials-footer {
        padding-top: 20px;
    }
    
    .reviews-count {
        font-size: 18px;
    }
    
    .review-platforms {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 15px;
    }
    
    .testimonials-header {
        margin-bottom: 40px;
    }
    
    .testimonials-header h2 {
        font-size: 28px;
    }
    
    .testimonials-header .subtext {
        font-size: 14px;
    }
    
    /* Mobile Review Carousel */
    .review-mobile-nav {
        display: flex;
    }
    
    .testimonials-grid {
        gap: 20px;
        display: block;
        overflow: hidden;
        position: relative;
        min-height: auto;
    }
    
    .testimonial-card {
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        width: 100%;
        max-width: 100%;
    }
    
    .testimonial-card.active {
        display: flex;
        opacity: 1;
        animation: slideIn 0.3s ease;
    }
    
    .testimonial-card.exiting {
        display: flex;
        opacity: 0;
    }
    
    .testimonial-card.entering {
        display: flex;
        opacity: 0;
    }
    
    @keyframes slideIn {
        from {
            transform: translateX(20px);
            opacity: 0;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-header {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .testimonial-avatar {
        width: 48px;
        height: 48px;
        font-size: 14px;
        border-width: 3px;
        box-shadow: 0 3px 10px rgba(46, 95, 141, 0.25);
    }
    
    .read-more-btn {
        font-size: 13px;
    }
    
    .testimonial-name {
        font-size: 13px;
    }
    
    .testimonial-location {
        font-size: 11px;
    }
    
    .testimonial-stars {
        margin-bottom: 10px;
    }
    
    .testimonial-stars i {
        font-size: 12px;
    }
    
    .testimonial-title {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .testimonial-text {
        font-size: 15px;
        line-height: 1.75;
        color: #3a4a5a;
        letter-spacing: 0.2px;
    }
    
    .reviews-count {
        font-size: 16px;
    }
    
    .review-platforms {
        font-size: 13px;
    }
}


/* ==========================================================================
   12. COLOR PALETTE SECTION
   ========================================================================== */

.color-palette-section {
    padding: 100px 20px;
    background: var(--gradient-main);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: visible;
}

@media (max-width: 768px) {
    .color-palette-section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .color-palette-section {
        padding: 40px 10px;
    }
}

.color-palette-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 95, 141, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.color-palette-header {
    text-align: center;
    margin-bottom: 60px;
}

.color-palette-header h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 800;
}

@media (max-width: 768px) {
    .color-palette-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .color-palette-header h2 {
        font-size: 28px;
    }
}

.color-palette-header h2 span {
    color: rgba(46, 95, 141, 0.8);
}

.color-palette-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.color-palette-container {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(46, 95, 141, 0.15);
    backdrop-filter: blur(10px);
    overflow: visible;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .color-palette-container {
        padding: 30px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .color-palette-container {
        padding: 25px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .color-palette-container {
        padding: 20px 15px;
        max-width: calc(100% - 20px);
    }
}

/* Color Wheel UI */
.color-tool {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 968px) {
    .color-tool {
        grid-template-columns: 1fr;
        gap: 30px;
        place-items: center;
    }
}

@media (max-width: 480px) {
    .color-tool {
        gap: 20px;
    }
}

.color-wheel-wrap {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

@media (max-width: 480px) {
    .color-wheel-wrap {
        width: 300px;
        height: 300px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 360px) {
    .color-wheel-wrap {
        width: 260px;
        height: 260px;
    }
}

#colorWheel {
    position: absolute;
    display: block;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}

#lightnessRing {
    position: absolute;
    display: block;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    cursor: crosshair;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.98;
    filter: contrast(1.05) brightness(1.02);
    will-change: transform;
}

.color-handle,
.lightness-handle {
    transition: none !important;
}

.color-handle {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(0,0,0,0.1);
    cursor: grab;
    z-index: 10;
    pointer-events: none;
    background: #1ecbe1;
    transform: translate(0, 0);
    will-change: left, top;
}

.lightness-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.6), 
                inset 0 0 0 1px rgba(0,0,0,0.2),
                0 0 0 1px rgba(255, 255, 255, 0.2);
    cursor: grab;
    z-index: 11;
    pointer-events: none;
    background: #1ecbe1;
    transform: translate(0, 0);
    will-change: left, top, background;
    outline: 2px solid rgba(255, 255, 255, 0.2);
    outline-offset: 3px;
    transition: outline 0.2s ease, box-shadow 0.2s ease;
}

.lightness-handle:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 
                inset 0 0 0 1px rgba(0,0,0,0.2),
                0 0 0 1px rgba(255, 255, 255, 0.3);
    outline: 2px solid rgba(255, 255, 255, 0.4);
}

/* Visual feedback when at boundaries */
.lightness-handle.at-boundary {
    animation: boundary-pulse 0.5s ease;
}

@keyframes boundary-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.color-handle.secondary {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    opacity: 0.8;
    z-index: 9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translate(0, 0);
    will-change: left, top;
}

.color-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 20;
}

@media (max-width: 968px) {
    .color-controls {
        max-width: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .color-controls {
        max-width: 100%;
        gap: 10px;
    }
}

.color-label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 480px) {
    .color-label {
        font-size: 14px;
        margin-top: 2px;
    }
}

.color-input-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 480px) {
    .color-input-row {
        grid-template-columns: 36px 1fr auto;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .color-input-row {
        grid-template-columns: 32px 1fr auto;
        gap: 6px;
    }
}

.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.7);
    background: #1ecbe1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

@media (max-width: 480px) {
    .color-dot {
        width: 32px;
        height: 32px;
        border: 2px solid rgba(255,255,255,0.7);
    }
}

@media (max-width: 360px) {
    .color-dot {
        width: 28px;
        height: 28px;
    }
}

.hex-input {
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0 14px;
    font-size: 16px;
    width: 100%;
}

@media (max-width: 480px) {
    .hex-input {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
}

.copy-btn {
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(46, 95, 141, 0.8);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(46, 95, 141, 1);
}

@media (max-width: 480px) {
    .copy-btn {
        height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
}

.harmony-select {
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 5;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.harmony-select:hover {
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.harmony-select:focus {
    outline: 2px solid rgba(30, 203, 225, 0.5);
    outline-offset: 2px;
    background-color: rgba(255,255,255,0.12);
}

.harmony-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
    font-size: 14px;
    border: none;
}

.harmony-select option:hover,
.harmony-select option:focus {
    background: #2a2a2a !important;
    color: #1ecbe1 !important;
}

.harmony-select option:checked {
    background: linear-gradient(90deg, rgba(30, 203, 225, 0.2), rgba(30, 203, 225, 0.1));
    color: #1ecbe1;
    font-weight: 600;
}

/* Firefox specific dropdown styling */
@-moz-document url-prefix() {
    .harmony-select {
        background-color: rgba(26, 26, 26, 0.95) !important;
    }
    
    .harmony-select option {
        background-color: #1a1a1a !important;
        color: #fff !important;
    }
}

/* Webkit browsers (Chrome, Safari) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .harmony-select {
        background-color: rgba(26, 26, 26, 0.95);
    }
    
    .harmony-select option {
        background-color: #1a1a1a;
        color: #fff;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .harmony-select {
        height: 40px;
        font-size: 14px;
        padding: 0 10px;
        padding-right: 35px;
    }
}

.swatches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .swatches {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 360px) {
    .swatches {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.swatch {
    height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .swatch {
        height: 48px;
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .color-tool {
        grid-template-columns: 1fr;
        gap: 20px;
        place-items: center;
    }
    
    .color-wheel-wrap {
        transform: scale(0.85);
    }
}

/* Ensure dropdown isn't clipped */
.color-palette-container { 
    overflow: visible !important;
}

.color-tool {
    overflow: visible !important;
}

.color-controls {
    overflow: visible !important;
}

.color-preview {
    height: 300px;
    border-radius: 15px;
    background: #E8E8E8;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.color-preview-label {
    background: rgba(46, 95, 141, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.color-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
}

.color-option:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.color-option.active {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.custom-color-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
}

input[type="color"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    background: transparent !important;
    padding: 0 !important;
}

input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 5px !important;
}

input[type="color"]::-webkit-color-swatch {
    border-radius: 8px !important;
    border: none !important;
}

input[type="color"]::-moz-color-swatch {
    border-radius: 8px !important;
    border: none !important;
}

/* ==========================================================================
   13. CTA SECTION
   ========================================================================== */

.cta-section {
    padding: 100px 0 0 0;
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0 !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(46, 95, 141, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-header {
    text-align: center;
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-header h2 {
    font-size: 56px;
    color: white;
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.cta-header h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: rgba(46, 95, 141, 0.4);
    margin: 30px auto 20px;
}

.cta-header p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta-primary {
    background: rgba(46, 95, 141, 0.9);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    background: rgba(46, 95, 141, 1);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(46, 95, 141, 0.5);
}

.btn-cta-outline:hover {
    background: rgba(46, 95, 141, 0.2);
    color: white;
    border-color: rgba(46, 95, 141, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.carousel-gallery {
    position: relative;
    width: 100vw;
    height: 450px;
    overflow: hidden;
    background: #0D0D0D;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 !important;
    padding: 0;
    margin-left: calc(-50vw + 50%);
}

.carousel-track {
    display: flex;
    animation: scroll-carousel 180s linear infinite;
    height: 100%;
    gap: 0;
    white-space: nowrap;
    width: max-content;
    flex-shrink: 0;
    min-width: 16000px;
}

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

.carousel-slide {
    flex: 0 0 400px;
    width: 400px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.carousel-slide:hover img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Removed ::after pseudo-element that was causing display issues */

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-8000px);
    }
}

/* ==========================================================================
   14. MAP SECTION
   ========================================================================== */

.map-section {
    width: 100%;
    height: 600px;
    position: relative;
    background: var(--gradient-main);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0;
    padding: 0;
}

.map-container {
    width: 100%;
    height: 100%;
    position: relative;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.map-container:hover {
    filter: grayscale(0%);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-overlay {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px 35px;
    border-radius: 10px;
    color: white;
    max-width: 380px;
    z-index: 2;
    border: 1px solid rgba(46, 95, 141, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.map-overlay h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-overlay p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-overlay i {
    color: rgba(46, 95, 141, 0.8);
    width: 20px;
}

.map-directions {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: rgba(46, 95, 141, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.map-directions:hover {
    background: rgba(46, 95, 141, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   15. FOOTER
   ========================================================================== */

footer {
    background: var(--gradient-main) !important;
    color: white;
    padding: 50px 20px 30px !important;
    min-height: 350px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(46, 95, 141, 0.3), transparent);
}

footer::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 95, 141, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1.5fr 0.8fr 0.8fr 1.2fr;
    gap: 30px; /* Reduced gap */
    margin-bottom: 40px; /* Reduced margin */
    position: relative;
    z-index: 1;
    flex-grow: 1;
    align-items: start;
    padding-top: 40px; /* Increased top padding */
}

.footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    justify-content: center;
}

.footer-section:first-child * {
    text-align: center !important;
}

.footer-company {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px; /* Increased gap */
    margin-bottom: 40px; /* Increased margin */
    width: 100%;
}

.footer-company img {
    height: 70px; /* Larger logo */
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.footer-company:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(46, 95, 141, 0.5));
}

.footer-section h3 {
    color: rgba(46, 95, 141, 0.8);
    margin-bottom: 20px; /* Reduced margin */
    font-size: 18px; /* Smaller heading */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px; /* Reduced padding */
}

.footer-section:not(:first-child) h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: rgba(46, 95, 141, 0.4);
}

.footer-section:first-child h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(46, 95, 141, 0.4);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 18px; /* Increased spacing */
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    font-size: 16px; /* Larger text */
    line-height: 1.8; /* Better spacing */
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    color: rgba(46, 95, 141, 0.6);
    opacity: 0;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 20px;
}

.footer-section ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px; /* Increased margin */
    transition: var(--transition);
    font-size: 16px; /* Larger text */
    line-height: 1.8; /* Better spacing */
}

.footer-section p:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Footer contact links */
.footer-section a[href^="tel:"],
.footer-section a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-section a[href^="tel:"]:hover,
.footer-section a[href^="mailto:"]:hover {
    color: white !important;
    text-decoration: underline;
}

.footer-section i {
    color: rgba(46, 95, 141, 0.6);
    margin-right: 12px;
    font-size: 18px; /* Larger icons */
}

.footer-social {
    display: flex;
    gap: 30px; /* Increased gap */
    margin-top: 10px; /* Increased margin */
    margin-bottom: 20px;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.footer-social a {
    width: 65px; /* Larger social icons */
    height: 65px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 12px;
}

.footer-social a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(46, 95, 141, 0.2);
    border-color: rgba(46, 95, 141, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-social a:hover img {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(46, 95, 141, 0.5));
}

.footer-bottom {
    padding: 25px 20px 20px; /* Reduced padding */
    margin-top: auto;
    margin-bottom: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px; /* Smaller text */
    position: relative;
    z-index: 1;
}

.footer-bottom::before,
.footer-bottom::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   16. UTILITY CLASSES
   ========================================================================== */

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

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
}

/* ==========================================================================
   17. RESPONSIVE COLOR PALETTE
   ========================================================================== */

/* Default: Hide responsive color options */
.color-option.tablet-show,
.color-option.desktop-show,
.color-option.large-desktop-show,
.color-option.xl-desktop-show {
    display: none;
}

/* Tablet and up (769px+) */
@media (min-width: 769px) {
    .color-option.tablet-show {
        display: block;
    }
    
    .color-options {
        grid-template-columns: repeat(8, 1fr);  /* 16 colors / 2 rows = 8 columns */
        gap: 15px;
    }
}

/* Tablet screens (768px to 1024px) - Show 6 service cards */
@media (min-width: 768px) and (max-width: 1024px) {
    .service-card.large-screen-only:nth-child(6) {
        display: block !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important; /* 3 columns for 6 cards */
        gap: 20px;
    }
}

/* Desktop and up (1024px+) */
@media (min-width: 1024px) {
    .color-option.desktop-show {
        display: block;
    }
    
    .color-options {
        grid-template-columns: repeat(12, 1fr);  /* 24 colors / 2 rows = 12 columns */
        gap: 15px;
    }
    
    .color-palette-container {
        max-width: 1200px;
    }
}

/* Laptop and larger screens (1200px+) - Show 8 service cards */
@media (min-width: 1200px) {
    /* Add larger gap after first footer section */
    .footer-content {
        column-gap: 60px;
    }
    
    .footer-section:first-child {
        margin-right: 30px; /* Additional spacing after company section */
    }
    .service-card.large-screen-only {
        display: block !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr); /* Ensure 4 columns for 8 cards */
    }
    
    /* Taller header for bigger screens */
    header {
        padding: 20px 0;
    }
    
    header.scrolled {
        padding: 15px 0;
    }
    
    .main-logo img {
        height: 60px;
    }
    
    .company-name {
        font-size: 28px;
    }
    
    .company-name .perspective {
        font-size: 28px;
    }
    
    .company-name .painting {
        font-size: 28px;
    }
    
    .nav-links a {
        font-size: 19px;
    }
    
    .header-buttons .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* Center hero content vertically on larger screens */
    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
    }
    
    .hero-container {
        padding: 40px 20px;
        min-height: auto;
        display: grid;
        place-items: center;
        transform: translateY(-45px); /* Push content up slightly */
    }
}

/* Large desktop (1440px+) */
@media (min-width: 1440px) {
    .color-option.large-desktop-show {
        display: block;
    }
    
    .color-options {
        grid-template-columns: repeat(16, 1fr);  /* 32 colors / 2 rows = 16 columns */
        gap: 18px;
    }
    
    .color-palette-container {
        max-width: 1400px;
        padding: 50px;
    }
    
    /* Maintain team image height on larger screens */
    .team-image {
        height: 450px;
        min-height: 450px;
    }
}

/* Extra large screens (1920px+) */
@media (min-width: 1920px) {
    .color-option.xl-desktop-show {
        display: block;
    }
    
    .color-options {
        grid-template-columns: repeat(18, 1fr);  /* 36 colors / 2 rows = 18 columns */
        gap: 20px;
    }
    
    .color-palette-container {
        max-width: 1600px;
        padding: 60px;
    }
    
    .color-preview {
        height: 350px;
    }
}

/* ==========================================================================
   18. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1440px) {
    /* Adjustments for smaller laptops including 13-inch MacBook Air */
    .hero-container {
        padding: 40px 25px 50px;
        gap: 35px;
        max-width: 1200px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-features {
        gap: 12px; /* Tighter spacing */
    }
    
    .hero-feature {
        font-size: 14px; /* Reduced from 15px */
    }
    
    .btn-hero {
        padding: 16px 35px; /* Slightly smaller buttons */
        font-size: 15px;
    }
    
    /* Adjust hero video for better balance */
    .hero-video-wrapper {
        max-width: 100%;
    }
    
    .hero-badge {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Specific adjustments for MacBook Air 13-inch and similar screens */
@media (max-width: 1440px) and (max-height: 900px) {
    .hero-container {
        padding: 30px 20px 40px;
        gap: 30px;
    }
    
    .hero-features {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .hero-feature {
        font-size: 13px;
    }
    
    .btn-hero {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* High-DPI small laptop screens (MacBook Air 13" 2560x1600, etc.) */
@media (max-width: 1600px) and (max-height: 1000px) {
    .hero-content h1 {
        font-size: clamp(24px, 2.8vw, 36px) !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-content .tagline {
        font-size: clamp(12px, 1.4vw, 18px) !important;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: clamp(11px, 1.1vw, 15px) !important;
        margin-bottom: 25px;
    }
    
    .hero-container {
        padding: 35px 20px 45px;
        gap: 25px;
    }
    
    .hero-features {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .hero-feature {
        font-size: 12px;
    }
    
    .btn-hero {
        padding: 12px 24px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .team-card {
        flex: 0 0 33.333%;
    }
    
    /* Further reduce hero text for screens between 1024px and 1200px */
    .hero-content h1 {
        font-size: 46px;
    }
    
    .hero-container {
        max-width: 1200px;
        padding: 45px 20px 90px;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px 100px !important;
    }
    
    .hero-section {
        min-height: 80vh !important;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Center hero-features properly on iPad screens */
    .hero-features {
        max-width: 600px;
        margin: 0 auto 40px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        align-items: center;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }
    
    .footer-about p {
        text-align: center !important;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .custom-color-section {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .testimonial-card {
        flex: 0 0 calc(50% - 20px);
    }
    
    .slider .list .item .content {
        bottom: 120px;
        left: 5%;
        width: 60%;
    }
    
    .thumbnail {
        bottom: 20px;
        height: 70px;
    }
    
    .thumbnail .item {
        width: 90px;
        height: 60px;
    }
    
    .arrows {
        right: 20px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .trust-section {
        margin-top: -100px !important;
        padding: 40px 15px;
    }
    
    .trust-container {
        gap: 25px;
    }
    
    .trust-badge {
        padding: 12px;
    }
    
    .trust-badge img {
        height: 70px;
    }
}

@media (max-width: 768px) {
    /* Color Palette Tablet Layout */
    .color-options {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
    
    .color-option.tablet-show,
    .color-option.desktop-show,
    .color-option.large-desktop-show,
    .color-option.xl-desktop-show {
        display: none !important;
    }
    
    html, body {
        background: #0D0D0D !important;
    }
    
    footer {
        margin-bottom: 0 !important;
    }
    
    .carousel-gallery {
        height: 350px;
        margin-bottom: 0 !important;
    }
    
    .hero-section {
        min-height: 80vh !important;
    }
    
    .hero-container {
        padding: 40px 20px 80px !important;
    }
    
    .trust-section {
        margin-top: -80px !important;
        padding: 35px 15px;
    }
    
    .trust-badge img {
        height: 65px;
    }
    
    .trust-badge {
        padding: 10px;
    }
    
    .trust-badge::before {
        display: none;
    }
    
    .trust-badge {
        animation: subtleGlow 4s ease-in-out infinite;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-content .tagline {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .hero-content p {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto 40px;
        text-align: center;
    }
    
    .hero-feature {
        justify-content: center;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .video-control {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        height: 350px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step::after {
        display: none;
    }
    
    .testimonial-card {
        flex: 0 0 100%;
    }
    
    .testimonials-carousel {
        padding: 0 60px; /* Maintain padding on tablets */
        overflow: visible;
    }
    
    .testimonials-nav {
        width: calc(100% + 100px);
        left: -50px;
    }
    
    .testimonials-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .testimonials-header h2 {
        font-size: 32px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        flex: 0 0 50%;
    }
    
    .team-carousel-container {
        padding: 0 60px; /* Maintain padding on tablets */
    }
}

/* Additional responsive breakpoints for team cards */
@media (max-width: 480px) {
    .team-grid {
        display: flex;
        transition: transform 0.5s ease;
    }
    
    .team-card {
        flex: 0 0 100%; /* Full width on mobile */
        padding: 0 10px;
    }
    
    .team-carousel-container {
        padding: 0 40px;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .team-card {
        flex: 0 0 50%; /* Two cards on small tablets */
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .team-card {
        flex: 0 0 50%; /* Two cards on tablets */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .team-card {
        flex: 0 0 33.333%; /* Three cards on large tablets */
    }
}

@media (min-width: 1025px) and (max-width: 1399px) {
    .team-card {
        flex: 0 0 25%; /* Four cards on desktop */
    }
    
    .team-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .team-nav.prev {
        left: 5px; /* Closer on tablets */
    }
    
    .team-nav.next {
        right: 5px; /* Closer on tablets */
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-cta {
        width: 250px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section:first-child {
        align-items: center;
    }
    
    .footer-section {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section h3 {
        text-align: center !important;
        width: 100%;
    }
    
    .footer-section h3::after {
        left: 50% !important;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        text-align: center !important;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-section ul li {
        text-align: center !important;
        width: 100%;
    }
    
    .footer-section ul li a {
        display: inline-block;
        text-align: center !important;
    }
    
    .footer-section ul li a::before {
        display: none; /* Hide arrow on mobile */
    }
    
    .footer-section ul li a:hover {
        padding-left: 0; /* No padding shift on mobile */
    }
    
    .footer-section p {
        text-align: center !important;
        width: 100%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-section i {
        margin-right: 8px;
    }
    
    .custom-color-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .custom-color-input {
        width: 60px;
        height: 60px;
    }
    
    .slider {
        height: 50vh;
    }
    
    .arrows button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .decorative-element {
        display: none;
    }
    
    .cta-header h2 {
        font-size: 36px;
    }
    
    .cta-header p {
        font-size: 16px;
    }
    
    .carousel-slide {
        flex: 0 0 300px;
        width: 300px;
    }
    
    .map-section {
        height: 500px;
    }
    
    .map-overlay {
        left: 20px;
        right: 20px;
        max-width: none;
        bottom: 20px;
        padding: 20px;
    }
    
    .map-overlay h3 {
        font-size: 18px;
    }
    
    .map-overlay p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    html, body {
        background: #0D0D0D !important;
    }
    
    footer {
        margin-bottom: 0 !important;
        padding-bottom: 20px !important;
    }
    
    .carousel-gallery {
        height: 300px;
        margin-bottom: 0 !important;
    }
    
    .hero-section {
        min-height: 70vh !important;
    }
    
    .hero-container {
        padding: 30px 15px 70px !important;
    }
    
    .trust-section {
        margin-top: -70px !important;
        padding: 30px 10px;
    }
    
    .trust-badge {
        padding: 5px;
        flex: 0 1 calc(50% - 20px);
        justify-content: center;
    }
    
    .trust-badge img {
        height: 55px;
    }
    
    .trust-container {
        gap: 20px;
        justify-content: center;
    }
    
    /* Hide the last trust badge on small mobile screens for cleaner layout */
    .trust-badge:last-child {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        height: 300px;
    }
    
    /* Hide specific service cards on mobile */
    .service-card.mobile-hide-service {
        display: none;
    }
    
    /* Show mobile gallery button */
    .mobile-gallery-cta {
        display: block;
    }
    
    .testimonials-header {
        text-align: center;
    }
    
    .testimonials-header h2 {
        font-size: 28px;
    }
    
    .testimonials-carousel {
        padding: 0 10px; /* Minimal padding on mobile */
        overflow: visible;
    }
    
    .testimonials-nav {
        position: relative;
        width: 100%;
        left: 0;
        top: auto;
        transform: none;
        margin-top: 20px;
        justify-content: center;
        gap: 30px;
        display: flex;
    }
    
    .testimonials-nav button {
        position: relative;
        margin: 0 !important;
        width: 45px;
        height: 45px;
    }
    
    .team-card {
        flex: 0 0 100%;
    }
    
    /* Color Palette Mobile Layout */
    .color-options {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .color-option.tablet-show,
    .color-option.desktop-show,
    .color-option.large-desktop-show,
    .color-option.xl-desktop-show {
        display: none !important;
    }
    
    .custom-color-section {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .custom-color-section span:first-child {
        font-size: 12px !important;
    }
    
    .custom-color-section input[type="color"] {
        width: 60px !important;
        height: 60px !important;
    }
    
    .custom-color-section #customColorValue {
        font-size: 12px !important;
        padding: 8px 15px !important;
    }
    
    .team-image {
        height: 380px;
    }
    
    .cta-header h2 {
        font-size: 28px;
    }
    
    .carousel-slide {
        flex: 0 0 250px;
        width: 250px;
    }
    
    .map-section {
        height: 450px;
    }
    
    .map-overlay {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
        max-width: none;
    }
}

/* ==========================================================================
   MOBILE MENU STYLES - Add this to your styles.css file
   ========================================================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile Menu Button Animation */
.mobile-menu-btn {
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn.active span {
    background: white !important;
}

.mobile-menu-btn span {
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Mobile Navigation Container */
@media (max-width: 1024px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #1A1F2C 100%);
        z-index: 999;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        display: flex !important;
        flex-direction: column;
        padding: 100px 30px 30px;
    }
    
    .nav-container.active {
        right: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: block;
        transition: all 0.3s ease;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background: rgba(56, 86, 138, 0.2);
        padding-left: 30px;
        border-color: rgba(56, 86, 138, 0.3);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .header-cta-buttons {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-top: auto;
    }
    
    .phone-btn,
    .quote-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 15px 24px;
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
        position: relative;
        z-index: 1001;
    }
}

@media (max-width: 768px) {
    .nav-container {
        width: 85%;
        max-width: 350px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        width: 90%;
        max-width: none;
        padding: 80px 20px 20px;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .phone-btn,
    .quote-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Close button for mobile menu (optional) */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(56, 86, 138, 0.3);
    transform: rotate(90deg);
}

/* Ensure header stays on top */
header {
    z-index: 1000 !important;
}

/* Fix header button positioning on mobile */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 15px;
    }
    
    .main-logo {
        flex: 1;
    }
    
    .company-name {
        font-size: 20px;
    }
    
    .company-name .perspective {
        font-size: 18px;
    }
    
    .company-name .painting {
        font-size: 16px;
        display: inline-block; /* Ensure it shows on tablets */
    }
}

@media (max-width: 768px) {
    .main-logo img {
        height: 55px; /* Increased from default 50px */
    }
    
    .company-name {
        font-size: 20px; /* Increased from 16px */
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }
    
    .company-name .perspective {
        font-size: 19px; /* Increased from 15px */
    }
    
    .company-name .painting {
        font-size: 16px; /* Increased from 12px */
        display: block;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
    }
    
    .main-logo img {
        height: 48px; /* Increased from 40px */
    }
    
    .company-name {
        font-size: 18px; /* Increased from 14px */
        display: flex;
        flex-direction: column;
        line-height: 1.2;
    }
    
    .company-name .perspective {
        font-size: 17px; /* Increased from 13px */
    }
    
    .company-name .painting {
        font-size: 14px; /* Increased from 11px */
        display: block; /* Show on small screens */
    }
    
    .mobile-menu-btn {
        padding: 5px;
    }
    
    .mobile-menu-btn span {
        width: 22px;
        height: 2.5px;
    }
}

/* ==========================================================================
   18. FINAL OVERRIDES
   ========================================================================== */

html, body {
    background: #0D0D0D !important;
    margin: 0 !important;
    padding: 0 !important;
}

body > *:last-child {
    margin-bottom: 0 !important;
}

body > footer {
    margin-bottom: 0 !important;
    padding-bottom: 30px !important;
}

body > footer ~ * {
    display: none !important;
}
/* ==========================================================================
   HORIZONTAL SCROLL FIX - Add this to your styles.css file
   ========================================================================== */

/* MAIN FIX - Prevent horizontal overflow on body and html */
html {
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative !important;
}

body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative !important;
}

/* Ensure main wrapper doesn't cause overflow */
main {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Fix floating shapes from causing overflow */
.floating-shapes {
    overflow: hidden !important;
    max-width: 100vw !important;
    position: fixed !important; /* Keep it fixed */
    left: 0 !important;
    right: 0 !important;
    pointer-events: none;
}

/* Ensure shapes don't extend beyond viewport */
.shape {
    max-width: 100% !important;
}

/* Fix shapes that start off-screen */
.shape:nth-child(1) {
    left: 0 !important; /* Changed from -5% */
    transform-origin: center;
}

.shape:nth-child(2) {
    right: 0 !important; /* Changed from -5% */
    transform-origin: center;
}

/* Fix decorative elements */
.decorative-element {
    overflow: hidden !important;
}

.decorative-element.left {
    left: 0 !important;
    max-width: 100px !important;
}

.decorative-element.right {
    right: 0 !important;
    max-width: 100px !important;
}

/* Fix mobile menu container when hidden */
@media (max-width: 1024px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #1A1F2C 100%);
        z-index: 999;
        transition: transform 0.3s ease; /* Use transform instead of right */
        transform: translateX(100%); /* Start off-screen */
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        display: flex !important;
        flex-direction: column;
        padding: 100px 30px 30px;
    }
    
    .nav-container.active {
        transform: translateX(0); /* Slide in */
        right: 0;
    }
}

/* Ensure all sections don't overflow */
section {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Fix hero section */
.hero-section {
    overflow: hidden !important;
    max-width: 100% !important;
}

.hero-container {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Fix any absolute positioned elements in hero */
.hero-badge {
    right: 20px !important;
    max-width: calc(100% - 40px) !important;
}

/* Fix trust section badges on mobile */
@media (max-width: 768px) {
    .trust-container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .trust-badge {
        max-width: 100% !important;
    }
    
    /* Make hero badge (star rating) smaller on mobile */
    .hero-badge {
        padding: 10px 15px !important;
        font-size: 0.9rem !important;
        top: 15px !important;
        right: 15px !important;
    }
}

/* Make hero badge even smaller on very small screens */
@media (max-width: 480px) {
    .hero-badge {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        top: 10px !important;
        right: 10px !important;
        border-radius: 20px !important;
    }
}

/* Fix carousel that might cause overflow */
.carousel-gallery {
    overflow: hidden !important;
    max-width: 100% !important;
}

/* Ensure CTA section connects properly with carousel */
.cta-section {
    padding-top: 60px !important;
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 50%, #1A2C3D 100%) !important;
    margin-top: -1px !important;
}

/* Remove any gaps between carousel and footer */
.carousel-gallery + * {
    margin-top: 0 !important;
}

.carousel-track {
    /* Ensure carousel doesn't cause horizontal scroll */
    overflow: hidden !important;
}

/* Fix process steps on mobile */
@media (max-width: 768px) {
    .process-step::after {
        display: none !important; /* Remove connecting lines on mobile */
    }
    
    .process-section {
        padding: 60px 15px;
    }
    
    .process-section .section-header {
        margin-bottom: 40px;
    }
    
    .process-section .section-header h2 {
        font-size: 32px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .process-step {
        padding: 0 5px;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .process-step h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .process-step p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Center the 7th process step on mobile only */
    .process-step:nth-child(7) {
        grid-column: 1 / -1;
        margin: 0 auto;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .process-section {
        padding: 50px 10px;
    }
    
    .process-section .section-header h2 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .process-section .section-header p {
        font-size: 14px;
    }
    
    .process-grid {
        gap: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .process-step h3 {
        font-size: 14px;
    }
    
    .process-step p {
        font-size: 11px;
        line-height: 1.3;
    }
}

/* Fix gallery slider */
.slider {
    overflow: hidden !important;
    max-width: 100% !important;
}

/* Arrows positioning handled above */

/* Fix team carousel */
.team-carousel-container {
    overflow: hidden !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .team-carousel-container {
        padding: 0 50px !important; /* Reduce padding on mobile */
    }
    
    .team-nav.prev {
        left: 5px !important;
    }
    
    .team-nav.next {
        right: 5px !important;
    }
}

/* Navigation button responsive sizing */
@media (max-width: 480px) {
    .team-carousel-container {
        padding: 0 35px !important;
    }
    
    .team-nav {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px;
    }
    
    .team-nav.prev {
        left: 0 !important;
    }
    
    .team-nav.next {
        right: 0 !important;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .team-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* Fix testimonials carousel */
.testimonials-carousel {
    overflow: hidden !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .testimonials-carousel {
        padding: 0 50px !important; /* Reduce padding */
    }
    
    .testimonials-nav {
        width: 100% !important;
        left: 0 !important;
    }
}

/* Additional viewport fix for all devices */
* {
    max-width: 100vw !important;
}

/* Footer scrolling fix */
footer {
    overflow: hidden !important;
    position: relative;
}

.footer-content {
    overflow: hidden !important;
    max-width: 100vw !important;
}

.footer-section {
    overflow: hidden !important;
}

/* Prevent horizontal scroll on footer social icons */
.footer-social {
    overflow: hidden !important;
    max-width: 100% !important;
}

/* Re-add controlled shadows */
.hero-video-wrapper,
.service-card:hover,
.trust-badge,
.team-card:hover,
.testimonial-card,
.slider {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure footer doesn't cause overflow */
footer {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.footer-content {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Map section fix */
.map-section {
    overflow: hidden !important;
    max-width: 100% !important;
}

.map-container {
    max-width: 100% !important;
}

/* Final safety net - hide any horizontal scrollbar */
::-webkit-scrollbar-horizontal {
    display: none !important;
}

/* For Firefox */
* {
    scrollbar-width: none !important; /* For horizontal scrollbar */
}

/* Emergency fix if still having issues */
#top {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

.header-content {
    max-width: 100% !important;
    overflow: hidden !important;
}
