/* ═══════════════════════════════════════════════════════════
   SKM SOLAR EXPERTS — Design System & Styles
   Premium dark-first theme with light toggle
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Custom Properties (Dark Theme Default) ───────── */
:root {
    /* Brand Colors */
    --gold: #FFC300;
    --gold-dim: #e0ac00;
    --gold-glow: rgba(255, 195, 0, 0.15);
    --red-accent: #E53935;
    --green-wa: #25D366;

    /* Dark Theme (Default) */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f35;
    --bg-card-hover: #222845;
    --bg-glass: rgba(17, 24, 39, 0.7);
    --bg-header: rgba(10, 14, 26, 0.85);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border-color: rgba(255, 195, 0, 0.12);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-color: rgba(0, 0, 0, 0.4);

    --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #1a1040 50%, #0a0e1a 100%);
    --gradient-section: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-gold: linear-gradient(135deg, #FFC300 0%, #ff9500 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,195,0,0.05) 0%, transparent 60%);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.35s;
}

/* ─── Light Theme ──────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-header: rgba(248, 250, 252, 0.9);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);
    --shadow-color: rgba(0, 0, 0, 0.08);

    --gradient-hero: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f8fafc 100%);
    --gradient-section: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,195,0,0.06) 0%, transparent 60%);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--duration) var(--ease-smooth),
                color var(--duration) var(--ease-smooth);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ─── Utility Classes ──────────────────────────────────── */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: all var(--duration) var(--ease-smooth);
    white-space: nowrap;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 195, 0, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 195, 0, 0.45);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--green-wa);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
    background: #20c157;
}

/* ─── Header / Navbar ──────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent;
    transition: all 0.4s var(--ease-smooth);
}

.header.scrolled {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px var(--shadow-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.nav-logo-img {
    height: 45px;
    width: auto;
}

.nav-logo span {
    color: var(--gold);
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color var(--duration) var(--ease-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--duration) var(--ease-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--gold);
    font-size: 1.1rem;
    transition: all var(--duration) var(--ease-smooth);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--gold);
    color: #000;
    transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
    display: block;
}

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

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

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

/* ─── Hero Section ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero video: plays if a <source> is present; poster/fallback image shows otherwise */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-fallback-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-video:not([src]):not([poster]) + .hero-fallback-img,
.hero-video source[src=""] ~ .hero-fallback-img {
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(10, 14, 26, 0.92) 0%,
        rgba(10, 14, 26, 0.65) 50%,
        rgba(10, 14, 26, 0.80) 100%
    );
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.82) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-glow);
    border: 1px solid rgba(255, 195, 0, 0.25);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Animated gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--red-accent);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ─── About Section ────────────────────────────────────── */
.about-section {
    padding: var(--section-padding);
    background: var(--gradient-section);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.6s var(--ease-smooth);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-image-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--gradient-gold);
    color: #000;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 8px 25px rgba(255, 195, 0, 0.35);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.about-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ─── Leadership Team ──────────────────────────────────── */
.team-intro {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 0;
}

.team-intro .section-label {
    justify-content: center;
}

.team-intro .section-subtitle {
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    margin-top: 3rem;
    perspective: 1800px;
}

.team-card-wrap {
    transform-style: preserve-3d;
}

.team-card {
    position: relative;
    height: 100%;
    background: linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 40%, rgba(255,195,0,0.03) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-smooth), box-shadow 0.6s var(--ease-smooth), border-color 0.6s;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,195,0,0.35), transparent 40%, transparent 60%, rgba(255,195,0,0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Alternating 3D tangent tilt, straightens on hover */
.team-card-wrap:nth-child(1) .team-card {
    transform: rotateY(9deg) rotateX(3deg) translateZ(0);
}

.team-card-wrap:nth-child(2) .team-card {
    transform: rotateY(0deg) rotateX(0deg) translateY(-14px);
}

.team-card-wrap:nth-child(3) .team-card {
    transform: rotateY(-9deg) rotateX(3deg) translateZ(0);
}

.team-card-wrap:hover .team-card {
    transform: rotateY(0deg) rotateX(0deg) translateY(-14px) scale(1.02);
    border-color: rgba(255, 195, 0, 0.4);
    box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 195, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.team-photo {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.team-card-wrap:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem 1.5rem 1.75rem;
    position: relative;
}

.team-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.team-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.9rem;
}

.team-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* ─── Solutions Section ────────────────────────────────── */
.solutions-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all var(--duration) var(--ease-smooth);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
    opacity: 0;
    transition: opacity var(--duration) var(--ease-smooth);
}

.solution-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 195, 0, 0.25);
    box-shadow: 0 20px 50px var(--shadow-color);
    background: var(--bg-card-hover);
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: all var(--duration) var(--ease-smooth);
}

.solution-card:hover .solution-icon {
    background: var(--gradient-gold);
    transform: scale(1.1);
}

.solution-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.solution-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── Gallery Section ──────────────────────────────────── */
.gallery-section {
    padding: var(--section-padding);
    background: var(--gradient-section);
}

.gallery-videos {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    height: 520px;
}

.gallery-video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration) var(--ease-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-video-card:hover {
    border-color: rgba(255, 195, 0, 0.25);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.gallery-video-featured {
    grid-row: 1 / 3;
    grid-column: 1;
}

.gallery-video {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: block;
    background: #000;
    object-fit: cover;
}

.gallery-video-label {
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-video-tag {
    background: var(--gradient-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.gallery-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.gallery-photo-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.gallery-photo-card:hover img {
    transform: scale(1.08);
}

.gallery-photo-tag {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 2.5rem 1rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: all var(--duration) var(--ease-smooth);
}

.gallery-photo-card:hover .gallery-photo-tag {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Reviews Section ──────────────────────────────────── */
.reviews-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all var(--duration) var(--ease-smooth);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 195, 0, 0.25);
    box-shadow: 0 20px 50px var(--shadow-color);
}

.review-stars {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.review-score {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0;
    font-family: var(--font-heading);
}

.review-text {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.review-divider {
    width: 40px;
    height: 1px;
    background: var(--border-color);
    margin-bottom: 1rem;
}

.review-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.review-location {
    font-size: 0.8rem;
    color: var(--green-wa);
}

/* legacy project-overlay retained for compatibility */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--duration) var(--ease-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.project-overlay p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.project-overlay .project-tag {
    display: inline-block;
    background: var(--gradient-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    width: fit-content;
}

/* ─── AI Solar Consultant ──────────────────────────────── */
.consultant-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
    position: relative;
}

.consultant-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 195, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.consultant-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin-top: 2.5rem;
    position: relative;
}

/* Appliance List */
.appliance-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    overflow: hidden;
}

.appliance-category {
    margin-bottom: 0.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.category-header .cat-icon {
    font-size: 1rem;
}

.category-header h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
}

.appliance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    gap: 1rem;
}

.appliance-row:last-child {
    border-bottom: none;
}

.appliance-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.appliance-watt {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 50px;
    text-align: right;
}

.appliance-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
}

.qty-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.qty-btn:hover {
    background: var(--gold);
    color: #000;
}

.qty-value {
    width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
}

.hours-input {
    width: 42px;
    height: 32px;
    text-align: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.hours-input:focus {
    border-color: var(--gold);
}

/* Live Load Meter Sidebar */
.load-meter {
    position: sticky;
    top: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: fit-content;
}

.meter-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.meter-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    background: var(--bg-primary);
    transition: border-color 0.5s;
}

.meter-circle.active {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(255, 195, 0, 0.15);
}

.meter-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
}

.meter-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

.meter-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.meter-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
}

.meter-stat-value {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

.meter-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.recommendation-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 1rem;
}

.recommendation-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recommendation-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.meter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-reset {
    width: 100%;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    border-color: var(--red-accent);
    color: var(--red-accent);
}

.btn-quote {
    width: 100%;
    padding: 12px;
    background: var(--green-wa);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-quote:hover {
    background: #20c157;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* ─── Contact / Footer ─────────────────────────────────── */
.contact-section {
    padding: var(--section-padding);
    background: var(--gradient-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(0.8) contrast(1.1);
    transition: filter 0.3s;
}

[data-theme="light"] .contact-map iframe {
    filter: none;
}

.contact-map:hover iframe {
    filter: none;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--duration) var(--ease-smooth);
}

.footer-social:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* ─── Floating WhatsApp Button ─────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--green-wa);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--ease-smooth);
    animation: pulse-wa 2s ease-in-out infinite;
}

.wa-float:hover {
    transform: scale(1.12);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.55);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ─── Animations ───────────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ─── Counter Animation ────────────────────────────────── */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 9998;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .mobile-toggle {
        display: flex;
        z-index: 9999;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        perspective: none;
    }

    .team-card-wrap:nth-child(1) .team-card,
    .team-card-wrap:nth-child(2) .team-card,
    .team-card-wrap:nth-child(3) .team-card {
        transform: none;
    }

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

    .gallery-videos {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
    }

    .gallery-video-featured {
        grid-row: auto;
        grid-column: auto;
    }

    .gallery-video {
        aspect-ratio: 16/9;
        flex: none;
    }

    .gallery-photos {
        grid-template-columns: 1fr 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }

    .consultant-layout {
        grid-template-columns: 1fr;
    }

    .load-meter {
        position: relative;
        top: 0;
        order: -1;
    }

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

@media (max-width: 640px) {
    :root {
        --section-padding: 50px 0;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

    .gallery-photos {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .wa-float {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
