/*
Theme Name: Desert Moon Lighting
Theme URI: https://desertmoonlighting.com
Description: A premium WordPress theme for Desert Moon Lighting - a veteran-owned permanent lighting company serving Arizona homes and businesses. Features a modern dark design with smart navigation, service showcases, and lead generation forms.
Version: 3.5.0
Author: Desert Moon Lighting
Author URI: https://desertmoonlighting.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desert-moon-lighting
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, business, portfolio

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* --- CSS VARIABLES & RESET --- */
:root {
    --neon-pink: #ff5ec7;
    --neon-blue: #2fd6ff;
    --bg-dark: #121212; /* Deep black/charcoal */
    --bg-card: #1c1c1c; /* Slightly lighter for contrast */
    --text-light: #ffffff;
    --text-gray: #b3b3b3;
    --section-spacing: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: 0.3s;
}

/* --- UTILITIES --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

/* The "Neon" Button Style */
.btn-neon {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    color: white;
    box-shadow: 0 0 20px rgba(47, 214, 255, 0.4);
}

.btn-neon:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 94, 199, 0.6);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Base gradient text class - can be used anywhere */
.gradient-text {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.section-title .gradient-text {
    hyphens: auto;
}

/* Neon underline effect for titles */
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    margin: 20px auto 0;
    box-shadow: 0 0 10px var(--neon-pink);
}

/* --- HEADER & NAV --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(18,18,18,0.8), transparent);
}

.nav-logo img {
    height: 120px;
    width: 120px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-size: 1.375rem;
    font-weight: 600;
}

nav ul li a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.header-cta {
    display: none;
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* REPLACE WITH YOUR HIGH-RES NIGHT HOME IMAGE */
    background-image: linear-gradient(rgba(18,18,18,0.7), rgba(18,18,18,0.9)), url('../img/unsplash-hero.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--neon-blue);
    box-shadow: 0 10px 30px -10px rgba(47, 214, 255, 0.3);
}

.hero-content img {
    max-width: 350px;
    margin-bottom: 30px;
    /* A subtle glow behind the main logo image to integrate it */
    filter: drop-shadow(0 0 20px rgba(47, 214, 255, 0.2));
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.hero-content h1 .gradient-text {
    text-shadow: none;
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-gray);
}

/* --- BADGES BAR --- */
.badges-bar {
    background-color: var(--bg-card);
    border-bottom: 1px solid #333;
    padding: 25px 0;
    position: relative;
    z-index: 5;
}

.badges-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-icon {
    color: var(--neon-pink);
    font-size: 1.2rem;
    filter: drop-shadow(0 0 3px var(--neon-pink));
}

/* --- FEATURES SECTION --- */
#features {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-card);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid transparent;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

/* Subtle neon borders on hover */
.feature-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 94, 199, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    /* Gradient Text for Icons */
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- STATS SECTION --- */
#stats {
    padding: 60px 0;
    background-color: #0a0a0a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-card {
    padding: 30px 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(47, 214, 255, 0.3);
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--text-light);
}

.stat-caption {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* --- GALLERY SECTION --- */
#gallery {
    padding: var(--section-spacing) 0;
    background-color: #0a0a0a;
}

.gallery-carousel-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.gallery-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.gallery-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.gallery-carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 15px;
    position: relative;
}

.gallery-lightbox-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-lightbox-link:hover {
    transform: scale(1.02);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(47, 214, 255, 0.2), rgba(255, 94, 199, 0.2));
    border: 2px solid var(--neon-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.gallery-carousel-prev {
    left: 20px;
}

.gallery-carousel-next {
    right: 20px;
}

.gallery-carousel-btn:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 20px rgba(47, 214, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-btn i {
    font-size: 20px;
}

.gallery-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.gallery-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.gallery-carousel-dot.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(47, 214, 255, 0.6);
}

.gallery-carousel-caption {
    text-align: center;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 24px;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 20px rgba(47, 214, 255, 0.5);
    letter-spacing: 0.5px;
    filter: drop-shadow(0 0 10px rgba(255, 94, 199, 0.4));
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(47, 214, 255, 0.3);
}

.lightbox-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
    font-size: 1.1rem;
    padding: 0 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(47, 214, 255, 0.6);
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 0 30px rgba(255, 94, 199, 0.8);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 0 20px rgba(47, 214, 255, 0.6);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(255, 94, 199, 0.8);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 10000;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(47, 214, 255, 0.2), rgba(255, 94, 199, 0.2));
    border: 2px solid var(--neon-blue);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 20px rgba(47, 214, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev i,
.carousel-next i {
    font-size: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(47, 214, 255, 0.6);
}

/* --- BEFORE/AFTER SLIDER --- */
#before-after {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-dark);
}

.before-after-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.before-after-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    cursor: ew-resize;
    user-select: none;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center !important;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.slider-line {
    flex: 1;
    width: 4px;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-pink));
    box-shadow: 0 0 10px rgba(47, 214, 255, 0.5);
}

.slider-button {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 0 20px rgba(47, 214, 255, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-button i {
    color: white;
    font-size: 12px;
}

.before-after-slider:active .slider-button {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(47, 214, 255, 0.8);
}

.slider-labels {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 5;
}

.label-before,
.label-after {
    background: rgba(18, 18, 18, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.label-before {
    background: linear-gradient(135deg, rgba(47, 214, 255, 0.2), rgba(255, 94, 199, 0.2));
    border-color: var(--neon-blue);
}

.label-after {
    background: linear-gradient(135deg, rgba(255, 94, 199, 0.2), rgba(47, 214, 255, 0.2));
    border-color: var(--neon-pink);
}

/* --- FAQ SECTION --- */
#faq {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 14px;
    border: 1px solid #333;
    padding: 20px 24px;
    margin-bottom: 15px;
    background: var(--bg-card);
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.faq-item:hover {
    border-color: var(--neon-blue);
    transform: translateX(5px);
}

.faq-q {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.faq-a {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- CTA BANNER --- */
#cta-banner {
    padding: 80px 0;
    text-align: center;
    /* A subtle gradient background */
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(47, 214, 255, 0.1) 100%);
    border-top: 1px solid #333;
}

#cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

#cta-banner span.highlight {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 94, 199, 0.5);
}

/* --- FOOTER --- */
footer {
    background-color: black;
    padding: 50px 0 20px;
    text-align: center;
    border-top: 2px solid var(--neon-blue);
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    height: 120px;
    width: 120px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto 20px auto;
}

.footer-info p {
    color: var(--text-gray);
    margin-bottom: 10px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
}

/* WordPress Core Styles */
.alignleft {
  float: left;
  margin-right: 1.5em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ========================================
   UNIFIED MOBILE-FIRST RESPONSIVE STYLES
   ======================================== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    /* Container & Spacing */
    .container {
        width: 92%;
    }
    
    :root {
        --section-spacing: 50px;
    }
    
    /* Header & Navigation */
    header {
        flex-direction: column;
        gap: 15px;
        background: rgba(18,18,18,0.98);
        padding: 15px 5%;
    }
    
    .nav-logo img {
        height: 80px;
        width: 80px;
    }
    
    nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.85rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-content img {
        max-width: 200px;
        margin-bottom: 20px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* Badges Bar */
    .badges-bar {
        padding: 20px 0;
    }
    
    .badges-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding-left: 15px;
    }
    
    .badge-item {
        font-size: 0.85rem;
        gap: 10px;
    }
    
    .badge-icon {
        font-size: 1rem;
    }
    
    /* Typography */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section-title::after {
        width: 60px;
        height: 2px;
        margin: 15px auto 0;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .stat-caption {
        font-size: 0.85rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
    
    /* Before/After Slider */
    .before-after-slider {
        aspect-ratio: 4/3;
        border-radius: 10px;
    }
    
    .slider-handle {
        width: 3px;
    }
    
    .slider-line {
        width: 3px;
    }
    
    .slider-button {
        width: 40px;
        height: 40px;
        gap: 3px;
    }
    
    .slider-button i {
        font-size: 10px;
    }
    
    .slider-labels {
        padding: 0 10px;
        top: 10px;
    }
    
    .label-before,
    .label-after {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    /* Gallery Carousel */
    .gallery-carousel-track {
        aspect-ratio: 4/3;
    }
    
    .gallery-carousel-btn {
        width: 35px;
        height: 35px;
        border-width: 1px;
    }
    
    .gallery-carousel-prev {
        left: 8px;
    }
    
    .gallery-carousel-next {
        right: 8px;
    }
    
    .gallery-carousel-btn i {
        font-size: 14px;
    }
    
    .gallery-carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .gallery-carousel-caption {
        font-size: 0.95rem;
        margin-top: 15px;
    }
    
    /* Lightbox */
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-caption {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    /* Carousel General */
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-prev i,
    .carousel-next i {
        font-size: 14px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    /* FAQ Section */
    .faq-item {
        padding: 15px 18px;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .faq-q {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .faq-a {
        font-size: 0.9rem;
    }
    
    /* CTA Banner */
    #cta-banner {
        padding: 50px 0;
    }
    
    #cta-banner h2 {
        font-size: 1.7rem;
        margin-bottom: 15px;
    }
    
    /* Footer */
    footer {
        padding: 40px 0 15px;
    }
    
    .footer-logo img {
        height: 80px;
        width: 80px;
    }
    
    .footer-info p {
        font-size: 0.9rem;
    }
    
    /* About & Contact Pages */
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .about-box,
    .contact-form,
    .contact-info {
        padding: 25px !important;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    /* Inline subtitle styles adjustment */
    section p[style*="text-align: center"] {
        font-size: 0.95rem !important;
        padding: 0 10px;
    }
    
    /* Mobile App Section Responsive */
    .mobile-app-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .app-features {
        order: 1;
    }
    
    .app-features-title {
        text-align: center;
    }
    
    .app-screenshot {
        order: 2;
    }
    
    .app-badges {
        order: 3;
    }
    
    /* DIY Comparison Grid Responsive */
    .diy-comparison-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    /* Extreme mobile optimization */
    .container {
        width: 95%;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
    
    .hero-content img {
        max-width: 150px;
    }
    
    nav ul {
        gap: 8px;
        font-size: 0.75rem;
    }
    
    .nav-logo img {
        height: 60px;
        width: 60px;
    }
    
    .badge-item {
        font-size: 0.75rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .gallery-carousel-btn,
    .carousel-prev,
    .carousel-next {
        width: 30px;
        height: 30px;
    }
    
    .gallery-carousel-btn i,
    .carousel-prev i,
    .carousel-next i {
        font-size: 12px;
    }
    
    .slider-button {
        width: 35px;
        height: 35px;
    }
    
    .label-before,
    .label-after {
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .faq-q {
        font-size: 0.95rem;
    }
    
    .faq-a {
        font-size: 0.85rem;
    }
    
    #cta-banner h2 {
        font-size: 1.4rem;
    }
    
    .footer-logo img {
        height: 60px;
        width: 60px;
    }
    
    /* App badges and CTA buttons stack vertically on smallest screens */
    .app-badges,
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}
