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

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

:root {
    /* Light mode — matches light hero: cyan/blue/yellow palette */
    --bg-primary: #eaf9fb;
    --bg-secondary: #ffffff;
    --text-primary: #01050f;
    --text-secondary: #17263e;
    --text-tertiary: #2d4a6e;
    --border-color: #b8dce8;
    --card-bg: #ffffff;
    --glass-bg: rgba(98, 224, 233, 0.08);
    --glass-border: rgba(98, 224, 233, 0.2);
}

[data-theme="dark"] {
    /* Dark mode — matches dark hero: teal/grey/olive palette */
    --bg-primary: #111e1f;
    --bg-secondary: #1a2e2f;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #2a3d3e;
    --card-bg: #1a2e2f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   TYPOGRAPHY — Space Grotesk for display
   ============================================ */
h1, h2, h3, .display-font {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* ============================================
   THEME-AWARE UTILITY CLASSES
   ============================================ */
body.bg-slate-50 {
    background-color: var(--bg-primary) !important;
}

.bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

.text-slate-900 {
    color: var(--text-primary) !important;
}

.text-slate-600,
.text-slate-700 {
    color: var(--text-secondary) !important;
}

.text-slate-400 {
    color: var(--text-tertiary) !important;
}

.text-slate-500{
    color: white !important;
}

.border-slate-200,
.border-slate-800 {
    border-color: var(--border-color) !important;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 50%, #0ea5e9 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   GLASS EFFECT
   ============================================ */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

header.scrolled {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] header.scrolled {
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 4px;
    color: #0f172a;
}
[data-theme="dark"] .nav-link { color: #f1f5f9 !important; }
[data-theme="dark"] .nav-link:hover { color: #0ea5e9 !important; }
[data-theme="dark"] #mobileMenuBtn { color: #f1f5f9; }
[data-theme="light"] #mobileMenuBtn { color: #0f172a; }

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 50%;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover { color: #0ea5e9; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #0ea5e9; }
.nav-link.active::after { width: 60%; }

/* Nav text: always white over transparent hero header */
header:not(.scrolled) .nav-link { color: white !important; }
header:not(.scrolled) #mobileMenuBtn { color: white !important; }

/* Nav text: dark on white scrolled header (light mode) */
[data-theme="light"] header.scrolled .nav-link { color: #1e293b !important; }
[data-theme="light"] header.scrolled .nav-link:hover,
[data-theme="light"] header.scrolled .nav-link.active { color: #0ea5e9 !important; }
[data-theme="light"] header.scrolled #mobileMenuBtn { color: #1e293b; }

/* Nav text: white on dark scrolled header (dark mode) */
[data-theme="dark"] header.scrolled .nav-link { color: #f1f5f9 !important; }


/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active { transform: translateX(0); }

.mobile-link {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 20px;
}

.mobile-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    transition: width 0.3s ease;
}

.mobile-link:hover { transform: translateX(8px); color: #0ea5e9; }
.mobile-link:hover::before { width: 12px; }

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes iconGlow {
    0%, 100% { filter: drop-shadow(0 0 8px currentColor); }
    50% { filter: drop-shadow(0 0 16px currentColor); }
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

/* ============================================
   HERO — DUAL PILLAR LAYOUT
   ============================================ */
.hero-twin-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pillar {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
}

.hero-pillar-solar {
    background: linear-gradient(135deg, rgba(14,165,233,0.12) 0%, rgba(14,165,233,0.04) 100%);
}

.hero-pillar-hydrogen {
    background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(16,185,129,0.04) 100%);
}

.hero-pillar-solar:hover {
    background: linear-gradient(135deg, rgba(14,165,233,0.22) 0%, rgba(14,165,233,0.08) 100%);
    border-color: rgba(14,165,233,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
}

.hero-pillar-hydrogen:hover {
    background: linear-gradient(135deg, rgba(16,185,129,0.22) 0%, rgba(16,185,129,0.08) 100%);
    border-color: rgba(16,185,129,0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

/* SVG pattern overlays in pillars */
.hero-pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-size: 40px 40px;
    transition: opacity 0.45s ease;
    pointer-events: none;
}

.hero-pillar-solar::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230ea5e9' fill-rule='evenodd'%3E%3Crect x='0' y='0' width='18' height='12' rx='2'/%3E%3Crect x='22' y='0' width='18' height='12' rx='2'/%3E%3Crect x='0' y='14' width='18' height='12' rx='2'/%3E%3Crect x='22' y='14' width='18' height='12' rx='2'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-pillar-hydrogen::before {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='6' fill='none' stroke='%2310b981' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='20' r='12' fill='none' stroke='%2310b981' stroke-width='0.8' opacity='0.5'/%3E%3Ccircle cx='20' cy='5' r='2' fill='%2310b981'/%3E%3Ccircle cx='20' cy='35' r='2' fill='%2310b981'/%3E%3Ccircle cx='5' cy='20' r='2' fill='%2310b981'/%3E%3Ccircle cx='35' cy='20' r='2' fill='%2310b981'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-pillar:hover::before { opacity: 0.12; }

.hero-pillar-solar .hero-pillar-icon {
    background: rgba(14,165,233,0.15);
    color: #38bdf8;
    border: 1px solid rgba(14,165,233,0.25);
}

.hero-pillar-hydrogen .hero-pillar-icon {
    background: rgba(16,185,129,0.15);
    color: #34d399;
    border: 1px solid rgba(16,185,129,0.25);
}

.hero-pillar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-pillar-solar .hero-pillar-tag {
    background: rgba(14,165,233,0.12);
    color: #7dd3fc;
    border: 1px solid rgba(14,165,233,0.2);
}

.hero-pillar-hydrogen .hero-pillar-tag {
    background: rgba(16,185,129,0.12);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.2);
}

.hero-pillar-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.35s ease;
}

.hero-pillar-solar .hero-pillar-arrow {
    background: rgba(14,165,233,0.15);
    color: #38bdf8;
}

.hero-pillar-hydrogen .hero-pillar-arrow {
    background: rgba(16,185,129,0.15);
    color: #34d399;
}

.hero-pillar:hover .hero-pillar-arrow {
    transform: translate(3px, -3px);
}

@media (max-width: 640px) {
    .hero-twin-pillars {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .hero-pillar-title { font-size: 0.85rem; }
    .hero-pillar-arrow { width: 22px; height: 22px; font-size: 0.85rem; }
    .hero-pillar { padding: 0.6rem 1rem; min-height: 60px; }
    .hero-pillar { min-height: 70px; }
}

/* ============================================
   ABOUT — FLIP CARDS
   ============================================ */
.flip-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

@media (max-width: 1024px) {
    .flip-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .flip-card-grid { grid-template-columns: 1fr; }
}

.flip-card {
    perspective: 1000px;
    height: 220px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--card-bg), var(--bg-primary));
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme="dark"] .flip-card-front {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-color: #334155;
}

.flip-card-back {
    transform: rotateY(180deg);
    border: 1px solid rgba(255,255,255,0.08);
}

.flip-card-solar .flip-card-back {
    background: linear-gradient(135deg, #0c2d4a, #0e3d6b);
}
.flip-card-hydrogen .flip-card-back {
    background: linear-gradient(135deg, #082d20, #0a3d2a);
}
.flip-card-epc .flip-card-back {
    background: linear-gradient(135deg, #2a1060, #3a1a80);
}
.flip-card-legal .flip-card-back {
    background: linear-gradient(135deg, #2d1200, #3d1a00);
}

.flip-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.flip-card-front-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.flip-card-front-sub {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.flip-card-back-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.flip-card-back-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.flip-hint {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ============================================
   SERVICE TABS — replacing carousel for Solar
   ============================================ */
.service-tabs-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

[data-theme="dark"] .service-tabs-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.service-tab-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid var(--border-color);
}

.service-tab-nav::-webkit-scrollbar { display: none; }

[data-theme="dark"] .service-tab-nav {
    border-bottom-color: #334155;
}

.service-tab-btn {
    flex-shrink: 0;
    padding: 1.1rem 1.4rem;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.service-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-tab-btn:hover { color: var(--text-primary); }

.service-tab-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.service-tab-btn.active::after { width: 100%; }

/* Solar tab accent: sky */
.solar-tabs .service-tab-btn.active { color: #0ea5e9; }
.solar-tabs .service-tab-btn.active::after { background: #0ea5e9; }

/* Hydrogen tab accent: emerald */
.hydrogen-tabs .service-tab-btn.active { color: #10b981; }
.hydrogen-tabs .service-tab-btn.active::after { background: #10b981; }

.service-tab-content {
    padding: 0;
}

.service-tab-panel {
    display: none;
    animation: tabFadeIn 0.35s ease forwards;
}

.service-tab-panel.active { display: flex; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-panel-visual {
    width: 280px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.tab-panel-icon-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-panel-big-icon {
    font-size: 5rem;
    opacity: 0.25;
}

.tab-panel-body {
    flex: 1;
    padding: 2.5rem;
}

.tab-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.tab-panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tab-panel-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tab-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.tab-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

[data-theme="dark"] .tab-feature-item {
    background: rgba(255,255,255,0.03);
    border-color: #334155;
}

.tab-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.tab-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.tab-feature-text {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

@media (max-width: 768px) {
    .service-tab-panel { flex-direction: column; }
    .service-tab-btn { padding: 0.85rem 1rem; font-size: 0.75rem; }
    .tab-panel-visual { width: 100%; min-height: 220px; }
    .tab-features-grid { grid-template-columns: 1fr; }
    .tab-panel-body { padding: 1.5rem; }
}

/* Scroll Dot Indicators */
.scroll-dot:hover,
.scroll-dot-mfg:hover {
    background: rgba(14, 165, 233, 0.5);
    transform: scale(1.2);
}

.scroll-dot.active,
.scroll-dot-mfg.active {
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    width: 28px;
    border-radius: 5px;
}

[data-theme="dark"] .scroll-dot,
[data-theme="dark"] .scroll-dot-mfg {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover { background: rgba(255, 255, 255, 0.15); }

.theme-toggle-slider {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle-slider {
    left: 30px;
    background: #1e293b;
}

.theme-toggle-icon { font-size: 12px; color: #f59e0b; }
[data-theme="dark"] .theme-toggle-icon { color: #60a5fa; }

/* ============================================
   TYPEWRITER
   ============================================ */
.typewriter {
    display: inline-block;
    border-right: 3px solid;
    border-color: #0ea5e9;
    padding-right: 5px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink { 50% { border-color: transparent; } }
.typewriter-container { min-height: 1.2em; }

/* ============================================
   SECTION SCROLL OFFSET
   ============================================ */
section { scroll-margin-top: 80px; }

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] section#about { background-color: var(--bg-secondary) !important; }
[data-theme="dark"] section#solar { background-color: var(--bg-primary) !important; }
[data-theme="dark"] section#contact { background-color: var(--bg-primary) !important; }

[data-theme="dark"] section#about .bg-gradient-to-r.from-slate-50 {
    background: #1e293b !important;
    border: 1px solid var(--border-color) !important;
}

[data-theme="dark"] section#about .bg-gradient-to-r.from-slate-50 .text-slate-900,
[data-theme="dark"] section#about .bg-gradient-to-r.from-slate-50 .font-bold {
    color: #f1f5f9 !important;
}

[data-theme="dark"] section#about .bg-gradient-to-r.from-slate-50 .text-slate-600,
[data-theme="dark"] section#about .bg-gradient-to-r.from-slate-50 p {
    color: #cbd5e1 !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #10b981);
    border-radius: 5px;
    border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #0284c7, #059669); }

/* ============================================
   TEXT SELECTION & FOCUS
   ============================================ */
::selection {
    background: rgba(14, 165, 233, 0.25);
    color: inherit;
}

*:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}

input:focus, textarea:focus, select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

/* ============================================
   RESPONSIVE — MOBILE CARDS
   ============================================ */
@media (max-width: 768px) {
    .energy-visual-card {
        min-width: 340px;
        max-width: 340px;
        min-height: 480px;
        max-height: 480px;
        width: 340px;
        height: 480px;
    }

    .energy-visual-content { padding: 1.75rem; }
    .horizontal-scroll-wrapper { margin: 0 -1rem; }
    .horizontal-scroll-container { padding: 1rem; gap: 1rem; }
    .scroll-arrow { width: 44px; height: 44px; font-size: 1rem; }
    .scroll-arrow-left { left: 8px; }
    .scroll-arrow-right { right: 8px; }
}

/* ============================================
   LOGO THEME SWITCHING
   ============================================ */
.logo-light,
.logo-dark {
    background: transparent;
}

[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: block; }
[data-theme="dark"]  .logo-light { display: none; }
[data-theme="dark"]  .logo-dark  { display: block; }

/* ============================================
   REDUCE MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   HERO — photo background, both modes identical
   The photo overlay is always dark so everything
   below is white regardless of light/dark theme.
   ============================================ */

.hero-photo-bg {
    background-image: url('Images/aerial-view-solar-power-plant.jpg');
    background-size: cover;
    background-position: center 40%;
}

/* Stronger overlay so the cloudy sky doesn't wash out text */
.hero-photo-overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.45) 45%,
        rgba(0, 0, 0, 0.72) 100%
    );
}

/* H1 — white in both modes */
#home h1,
[data-theme="light"] #home h1,
[data-theme="dark"]  #home h1 { color: #ffffff !important; }

/* Subline — soft white in both modes */
#home p.text-slate-300,
[data-theme="light"] #home p,
[data-theme="dark"]  #home p  { color: rgba(255,255,255,0.78) !important; }

/* Nav links — white over photo hero only */
[data-theme="light"] header:not(.scrolled) .nav-link { color: #ffffff !important; }
[data-theme="light"] header:not(.scrolled) .nav-link:hover { color: rgba(255,255,255,0.65) !important; }
[data-theme="light"] header:not(.scrolled) #mobileMenuBtn { color: #ffffff !important; }
[data-theme="dark"]  header:not(.scrolled) .nav-link { color: #ffffff !important; }

/* Nav links — dark on solid white bar when scrolled (light mode) */
[data-theme="light"] header.scrolled .nav-link { color: #1e293b !important; }
[data-theme="light"] header.scrolled .nav-link:hover,
[data-theme="light"] header.scrolled .nav-link.active { color: #0ea5e9 !important; }
[data-theme="light"] header.scrolled #mobileMenuBtn { color: #1e293b !important; }

/* Theme toggle — subtle white glass in both modes */
[data-theme="light"] header:not(.scrolled) .theme-toggle,
[data-theme="dark"]  header:not(.scrolled) .theme-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Pillar cards — clean white glass, same in both modes */
.hero-pillar,
[data-theme="light"] .hero-pillar,
[data-theme="dark"]  .hero-pillar {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

/* Pillar text — white in both modes */
[data-theme="light"] .hero-pillar-title,
[data-theme="dark"]  .hero-pillar-title { color: #ffffff !important; }
[data-theme="light"] .hero-pillar-sub,
[data-theme="dark"]  .hero-pillar-sub   { color: rgba(255,255,255,0.70) !important; }

/* Pillar tags — subtle white pill */
[data-theme="light"] .hero-pillar-tag,
[data-theme="dark"]  .hero-pillar-tag {
    background: rgba(255, 255, 255, 0.14) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Contact Us button — white glass in both modes */
[data-theme="light"] #home .glass,
[data-theme="dark"]  #home .glass {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
    color: #ffffff !important;
}

/* ============================================
   WHOLE SITE THEME — LIGHT MODE (cyan/yellow)
   ============================================ */
[data-theme="light"] body,
[data-theme="light"] section#about,
[data-theme="light"] section#solar,
[data-theme="light"] section#contact {
    background-color: #eaf9fb !important;
}

[data-theme="light"] section#about .bg-white,
[data-theme="light"] section#contact .bg-white,
[data-theme="light"] section#solar .bg-white,
[data-theme="light"] .bg-white {
    background-color: #ffffff !important;
    border-color: #b8dce8 !important;
}

[data-theme="light"] .text-slate-900,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: #01050f !important;
}

[data-theme="light"] .text-slate-600,
[data-theme="light"] .text-slate-700 {
    color: #17263e !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea {
    background-color: #f0fafc !important;
    border-color: #b8dce8 !important;
    color: #01050f !important;
}

[data-theme="light"] footer {
    background-color: #0d2a2c !important;
}

/* Footer contact info (address/phone) — always white, blue on hover, regardless of theme */
footer .text-slate-400,
footer .text-slate-400 li,
footer .text-slate-400 span {
    color: #ffffff !important;
}

footer .text-slate-400 a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

footer .text-slate-400 a:hover {
    color: #38bdf8 !important;
}

/* ============================================
   WHOLE SITE THEME — DARK MODE (teal/olive)
   ============================================ */
[data-theme="dark"] body,
[data-theme="dark"] section#about,
[data-theme="dark"] section#solar,
[data-theme="dark"] section#contact {
    background-color: #111e1f !important;
}

[data-theme="dark"] section#about .bg-white,
[data-theme="dark"] section#contact .bg-white,
[data-theme="dark"] section#solar .bg-white,
[data-theme="dark"] .bg-white {
    background-color: #1a2e2f !important;
    border-color: #2a3d3e !important;
}

[data-theme="dark"] .text-slate-900,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-slate-600,
[data-theme="dark"] .text-slate-700,
[data-theme="dark"] p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .text-slate-400 {
    color: #94a3b8 !important;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea {
    background-color: #1a2e2f !important;
    border-color: #2a3d3e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] footer {
    background-color: #0a1415 !important;
}

[data-theme="dark"] .border-slate-200,
[data-theme="dark"] .border-slate-300 {
    border-color: #2a3d3e !important;
}

/* About section cards */
[data-theme="dark"] .bg-gradient-to-br.from-sky-50,
[data-theme="dark"] .bg-gradient-to-br.from-emerald-50,
[data-theme="dark"] .bg-gradient-to-br.from-purple-50,
[data-theme="dark"] .bg-gradient-to-br.from-orange-50 {
    background: #1a2e2f !important;
    border: 1px solid #2a3d3e !important;
}

[data-theme="dark"] .bg-gradient-to-r.from-slate-50,
[data-theme="dark"] .bg-gradient-to-r.from-slate-100 {
    background: #1a2e2f !important;
    border-color: #2a3d3e !important;
}

[data-theme="light"] .bg-gradient-to-r.from-slate-50,
[data-theme="light"] .bg-gradient-to-r.from-slate-100 {
    background: linear-gradient(to right, #d6f5f7, #eaf9fb) !important;
    border-color: #b8dce8 !important;
}

[data-theme="light"] .bg-gradient-to-br.from-sky-50 { background: #d0f4f7 !important; }
[data-theme="light"] .bg-gradient-to-br.from-emerald-50 { background: #d4f5e9 !important; }
[data-theme="light"] .bg-gradient-to-br.from-purple-50 { background: #ede9ff !important; }
[data-theme="light"] .bg-gradient-to-br.from-orange-50 { background: #fff1e0 !important; }

[data-theme="light"] section#solar,
[data-theme="light"] section#hydrogen {
    background-color: #d6f5f7 !important;
}

[data-theme="dark"] section#solar,
[data-theme="dark"] section#hydrogen {
    background: linear-gradient(135deg, #111e1f, #1a2e2f, #111e1f) !important;
}

/* HYDROGEN LIGHT MODE */
[data-theme="light"] #hydrogen .tab-panel-title{
    color:#0f172a !important;
}

[data-theme="light"] #hydrogen .tab-panel-desc{
    color:#475569 !important;
}

[data-theme="light"] #hydrogen .tab-feature-text{
    color:#334155 !important;
}

[data-theme="light"] #hydrogen .service-tab-btn{
    color:#334155 !important;
}

[data-theme="light"] #hydrogen p{
    color:#475569 !important;
}

/* Positioning statement */
[data-theme="light"] #hydrogen .mt-20{
    background:#ffffff !important;
    border:1px solid #cbd5e1 !important;
}

[data-theme="light"] #hydrogen .mt-20 p{
    color:#334155 !important;
}