:root {
    --bg: #000000;
    --surface: #111111;
    --surface-2: #181818;
    --border: #2a2a2a;

    --text: #ffffff;
    --text-muted: #b3b3b3;

    --orange: #ff7b00;
    --orange-hover: #ff8f1f;
    --red: #c8102e;
    --red-hover: #e01a3c;

    --button: #2b2b2b;
    --button-hover: #3a3a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #000000;
    color: #ffffff;
}

/* =========================
   NAVIGATION
========================= */
/* Home starts transparent */
body.home nav {
    background: transparent;
    border-bottom-color: transparent;
}

/* Home starts with dark logo */
body.home .logo-dark {
    display: block;
}

body.home .logo-white {
    display: none;
}

/* Home starts with dark text */
body.home .nav-center a{
    color: var(--text);
}

body.home .nav-center a:hover{
    color: var(--red);
}
/* Home after scrolling */
body.home nav.scrolled {
    background: #070707;
    border-bottom-color: #222;
}

body.home nav.scrolled .logo-dark {
    display: none;
}

body.home nav.scrolled .logo-white {
    display: block;
}

body.home nav.scrolled .nav-center a {
    color: white;
}

nav {
    height: 150px;
    background: #070707;
    border-bottom: 1px solid #222;

    display: flex;
    align-items: center;
    padding: 0 40px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 100;

    transition:
        height .3s ease,
        background .3s ease,
        border-color .3s ease;
}


nav.scrolled {
    background: #070707;
    border-bottom-color: #222;
    height: 150px;
}

.logo h2 {
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 2;
}

.logo a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Default (internal pages) */
.internal .logo-dark {
    display: none;
}

.logo-white {
    display: block;
}

/* After scroll */
nav.scrolled .logo-dark {
    display: none;
}

nav.scrolled .logo-white {
    display: block;
}

/* logo sizing */
.logo img {
    height: 65px; 
    width: auto;
    display: block;
    transition: height .3s ease;
}

nav.scrolled .logo img {
    height: 65px;
}
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
}


body.internal .nav-center a {
    color: white;
}
.nav-center a {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

nav.scrolled .nav-center a {
    color: white;
}

.nav-center a:hover {
    color: var(--red-hover);
}

/* =========================
   HOME SCROLL - FULL NAV THEME SWITCH
========================= */

body.home .nav-center a:hover {
    color: #c8102e;
}

body.home nav.scrolled .nav-center a:hover {
    color: #c8102e;
}

/* MOBILE MENU (nav-center) theme switch */
body.home .nav-center {
    background: transparent;
}

body.home nav.scrolled .nav-center {
    background: #070707;
}

/* =========================
   INTERNAL PAGE DEFAULT STATE
   (same as home scrolled state)
========================= */

body.internal nav {
    height: 150px;
    background: #070707;
    border-bottom-color: #222;
}

body.internal .logo-dark {
    display: none;
}

body.internal .logo-white {
    display: block;
}

body.internal .logo img {
    height: 65px;
}

body.internal .nav-center a {
    color: white;
}

body.internal .nav-center a:hover {
    color: var(--red);
}
body.internal .nav-phone a {
    color: white;
}

/* =========================
   SERVICES DROPDOWN
========================= */

.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}
/* Arrow */
.dropdown-toggle::after {
    content: "";

    width: 8px;
    height: 8px;

    margin-left: 10px;

    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;

    /* Starts as a down arrow */
    transform: rotate(45deg);

    transition: transform .25s ease;
}

/* Hover rotates to up arrow */
.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);

    min-width: 220px;

    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 10px;

    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);

    transition: opacity .25s ease,
                transform .25s ease,
                visibility .25s;

    overflow: hidden;
    z-index: 500;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    padding: 14px 18px;
    color: white !important;
    text-decoration: none;
    font-size: 1rem;
    transition: background .2s, color .2s;
}

.dropdown-menu a:hover {
    background: var(--red);
    color: white !important;
}

/* =========================
   PHONE CTA
========================= */

.nav-phone {
    margin-left: auto;
    margin-right: 15px;
    z-index: 2;
}

.nav-phone a {
    display: flex;
    align-items: center;
    gap: 15px;

    text-decoration: none;
    color: var(--red);

    font-size: 1.5rem;
    font-weight: 600;
}

.phone-circle {
    width: 45px;
    height: 45px;

    background: var(--red);
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: phonePulse 1.8s infinite;
}

.phone-circle svg {
    width: 22px;
    height: 22px;
}

.phone-dropdown {
    position: relative;
}

.phone-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;

    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 10px;

    min-width: 180px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: opacity .25s ease,
                transform .25s ease,
                visibility .25s;

    overflow: hidden;
    z-index: 500;
}

.phone-dropdown:hover .phone-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-menu a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease;
}

.phone-menu a:hover {
    background: var(--red);
    color: white !important;
}


/* Flashing pulse */
@keyframes phonePulse {

    0% {
        box-shadow: 0 0 0 0 rgba(200,16,46,.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(200,16,46,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(200,16,46,0);
    }
}


/* Hover */
.nav-phone a:hover {
    color: var(--red-hover);
}


/* Scroll state */
nav.scrolled .nav-phone a {
    color: white;
}

nav.scrolled .phone-circle {
    background: var(--red);
}
/* =========================
   HERO
========================= */
.hero {
    margin-top: 0;
    
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1;
}

.home-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 20px;

    transform: translateY(0);
    transition: transform .20s ease;
}

/* Move hero text down once the nav is visible */
body.home nav.scrolled ~ .hero .home-hero-content {
    transform: translateY(50px);
}

.hero h1 {
    font-family: "Onest", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    background: #c8102e;
    color: white;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    transition: .25s;

    border: 2px solid transparent;
    box-sizing: border-box;
}

.hero-btn:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}

/* =========================
   REVIEW CAROUSEL
========================= */
.review-carousel {
    background: #000;
    margin: 80px auto;
    padding: 0 20px;
}


.carousel {
    width: 100%;
    overflow: hidden;
}


.carousel-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: scroll 22s linear infinite;
}


.carousel:hover .carousel-track {
    animation-play-state: paused;
}


.carousel-card {
    width: 350px;
    min-height: 240px;

    background: #fff;
    color: #222;

    padding: 25px;

    border-radius: 12px;

    display: flex;
    flex-direction: column;

    flex-shrink: 0;

    box-shadow: 0 5px 20px rgba(0,0,0,.25);
}


.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
}


.review-avatar {
    width: 45px;
    height: 45px;

    background: #4285f4;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 700;
}


.review-header h3 {
    margin: 0;
    font-size: 1rem;
}


.review-header span {
    color: #777;
    font-size: .85rem;
}


.stars {
    color: #fbbc04;
    font-size: 22px;
    margin: 15px 0;
}


.carousel-card p {
    font-size: .95rem;
    line-height: 1.5;

    margin: 0;
    flex-grow: 1;
}


.carousel-card small {
    margin-top: 15px;
    color: #777;
}


/* Infinite movement */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-33.333%);
    }
}

/* =========================
   CATEGORIES
========================= */
.categories {
    background: #000000;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 320px 320px;
    gap: 25px;
}
.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
/* GRID LAYOUT (CLASS BASED)*/

.category-link {
    display: block;
}

/* Large featured card */
.battery-card {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.battery-card .card-info h3 {
    font-size: 2.2rem;
}

.battery-card .card-info p {
    font-size: 1rem;
}

.battery-card .card-info {
    left: 35px;
    bottom: -10px;
}

/* Top right cards */
.residential-card {
    grid-column: 2;
    grid-row: 1;
}

.commercial-card {
    grid-column: 3;
    grid-row: 1;
}

/* Bottom row */
.civil-card {
    grid-column: 2;
    grid-row: 2;
}

.security-card {
    grid-column: 3;
    grid-row: 2;
}

/* IMAGE POSITIONING (CLASS BASED) */

/* Battery */
.battery-card img {
    transform: scale(1.3);
    object-position: 330% 50%;
}

/* Residential */
.residential-card img {
    transform: scale(1);
    object-position: 300% 50%;
}

/* Commercial */
.commercial-card img {
    transform: scale(1);
    object-position: 50% 100%;
}

/* Civil */
.civil-card img {
    transform: scale(1.4);
    object-position: 100% 100%;
}

/* Security */
.security-card img {
    transform: scale(1.4);
    object-position: 50% 0%;
}


.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #181818;
    border: 1px solid #2a2a2a;
}



.image-wrapper {
    height: 100%;
}

.category-card {
    height: 100%;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

/* Battery */
.battery-card:hover img {
    transform: scale(1.3) scale(1.08);
}

/* Residential */
.residential-card:hover img {
    transform: scale(1) scale(1.08);
}

/* Commercial */
.commercial-card:hover img {
    transform: scale(1) scale(1.08);
}

/* Civil */
.civil-card:hover img {
    transform: scale(1.4) scale(1.08);
}

/* Security */
.security-card:hover img {
    transform: scale(1.4) scale(1.08);
}

.card-info {
    position: absolute;
    left: 20px;
    bottom: -10px;
    color: white;
    z-index: 2;

    transition: transform .35s ease;
}

/* Move text upwards on hover */
.category-card:hover .card-info {
    transform: translateY(-20px);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.7),
        rgba(0,0,0,.1)
    );
}

.arrow-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid white;
    color: white;
    font-weight: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    z-index: 2;
    transition: .3s;
}

.arrow-btn span {
    display: inline-block;
    transform: scaleY(1.6);
}
.category-card:hover .arrow-btn {
    background: #ffffff;
    transform: translateX(5px);
    color: #0a0a0a;
}

/* CATEGORY HOVER OVERLAY ANIMATION */

.category-card {
    overflow: hidden;
    transition: transform .4s ease;
}

.category-card:hover {
    transform: translateY(-6px);
}

/* always visible title */
.card-info h3 {
    opacity: 1;
    transform: none;
    margin: 0;
}

/* description hidden by default */
.card-info p {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity .35s ease,
        transform .35s ease;

    margin-top: 8px;
}

/* show description on hover */
.category-card:hover .card-info p {
    opacity: 1;
    transform: translateY(0);
}

/* overlay effect */
.card-overlay {
    transition: background .4s ease;
}

.category-card:hover .card-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.25)
    );
}

/* =========================
   WHY US SECTION
========================= */

.why-us {
    background: #000;
    padding: 120px 20px;
}

.why-us-inner {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: "Space Grotesk", sans-serif;
}

.why-text p {
    color: #b3b3b3;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 500px;
}

.why-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.point h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.point p {
    color: #888;
    margin: 0;
    font-size: 0.95rem;
}
/* =========================
   WHY VIDEO
========================= */

.why-video {
    height:600px;
    width: 370px;

    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
    aspect-ratio: 16 / 10;
    background: #111;
}

.why-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.1);
    object-position: center;
}


/* Modern black glass controls */

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;

    display: flex;
    align-items: center;
    gap: 12px;

    background: rgba(0,0,0,.65);
    backdrop-filter: blur(12px);

    padding: 10px 14px;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,.1);

    opacity: 0;
    transform: translateY(10px);
    transition: .3s ease;
}


.why-video:hover .video-controls {
    opacity: 1;
    transform: translateY(0);
}


.video-controls button {
    background: transparent;
    border: none;

    color: white;
    font-size: 1.1rem;

    cursor: pointer;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Volume */

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}


#volumeSlider {

    width: 0;

    opacity: 0;

    transition:
        width .3s ease,
        opacity .3s ease;

    accent-color: var(--red);

}


.volume-container:hover #volumeSlider {

    width: 90px;
    opacity: 1;

}

/* responsive */
@media (max-width: 900px) {
    .why-us-inner {
        grid-template-columns: 1fr;
    }

    .why-text h2 {
        font-size: 2.2rem;
    }
}

/* =========================
   RECENT PROJECTS CAROUSEL
========================= */

.projects-carousel {
    max-width: 1400px;
    margin: 100px auto;
    padding: 0 20px;
}

.project-card {
    position: relative;
    min-width: 320px;
    height: 420px;
    flex: 0 0 auto;

    border-radius: 18px;
    overflow: hidden;

    border: 1px solid #2a2a2a;
    background: #111;
    scroll-snap-align: start;
}

/* image */
.project-card .image-wrapper {
    height: 100%;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.project-card:hover img {
    transform: scale(1.08);
}

/* overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.85),
        rgba(0,0,0,.15)
    );
    z-index: 1;
}

/* text */
.project-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;

    color: white;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.project-info p {
    font-size: 0.9rem;
    color: #b3b3b3;
}

/* reuse your existing carousel styles */
.projects-carousel .carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.projects-carousel .carousel::-webkit-scrollbar {
    display: none;
}


/* =========================
   CAROUSEL CONTROLS
========================= */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;

    margin-top: 20px;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;

    background: transparent;
    border: 1.5px solid white;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 18px;
    font-weight: 100;

    cursor: pointer;
    transition: 0.3s;
}
.carousel-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    color: #0a0a0a;
}


/* =========================
   FOOTER
========================= */
footer {
    background: #111111;
    color: white;
    border-top: 1px solid #222;
    padding: 60px 20px;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 40px;
}

.footer-column h3 {
    margin-bottom: 15px;
}

.footer-column a {
    display: block;
    color: #b3b3b3;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-column a:hover {
    color: #c8102e;
}

.copyright {
    text-align: center;
    margin-top: 40px;
    color: #777;
    border-top: 1px solid #222;
    padding-top: 25px;
}

/* Footer subheading (not clickable) */
.footer-heading {
    display: block;
    color: #ffffff;
    font-weight: 500;
    margin: 10px 0 8px;
}

/* Nested service links */
.footer-sub-links {
    margin-left: 18px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-sub-links a {
    color: #9e9e9e;
    font-size: 0.95rem;
    margin: 0;
    transition: color .2s ease, transform .2s ease;
}

.footer-sub-links a:hover {
    color: var(--red);
    transform: translateX(4px);
}

/* Social heading */
.footer-heading {
    display: block;
    color: #fff;
    font-weight: 500;
    margin: 15px 0 10px;
}

/* Social icon row */
.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

/* Icon styling */
.social-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    transition: transform .2s ease, stroke .2s ease;
}

/* Hover effect */
.social-icon:hover svg {
    transform: translateY(-2px) scale(1.1);
    stroke: var(--red);
}

/* =========================
   MOBILE NAVIGATION
========================= */

.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ========================
   SERVICES PAGES
========================= */
.solar-hero {
    background: url("assets/solar-hero.jpg") center 35%/cover no-repeat;
    opacity: 0.8;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.residential-hero{
    background:url("assets/residential-hero.jpg") center/cover no-repeat;
    min-height:70vh;
    display:flex;
    align-items:center;
}

.commercial-hero {
    background: url("assets/commercial-hero.jpg") center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.civil-hero {
    background: url("assets/civil-hero.jpg") center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.security-hero {
    background: url("assets/security-hero.jpg") center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-btn.secondary {
    background: transparent;
    border-color: white;
}

/* Trust Section */
.trust-icon svg {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto 15px;
    stroke: white;
}

.trust-section {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    background: #111111;
    border-radius: 18px;
    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.trust-item {
    padding: 35px;
    text-align: center;
    border: 1px solid #111111;
}

.trust-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.trust-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.trust-item p {
    color: #666;
    line-height: 1.6;
}

.services-section,
.why-section,
.process-section,
.cta-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: auto;
}

.services-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    background: #111;
    padding: 20px;
    border-radius: 10px;
}

/* Overview Section */
.solar-overview {
    max-width: 1200px;
    margin: auto;
    padding: 100px 20px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

/* Image */
.overview-image img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

/* Content spacing */
.overview-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.overview-content .section-tag {
    margin-bottom: 5px;
}

.overview-content h2 {
    margin: 0;
    line-height: 1.2;
}

.overview-content p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-muted);
}

.overview-content ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;

    display: grid;
    gap: 14px;
}

.overview-content li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    overflow: hidden;
    border-radius: 18px;

    background: var(--surface);
    border: 1px solid var(--border);

    color: var(--text);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;

    position: relative;
}

/* Orange accent line */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    opacity: .85;
    z-index: 2;
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;

    transition: transform .4s ease;
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Hover */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

.service-card:hover img {
    transform: scale(1.08);
}

.service-card:hover::before {
    background: linear-gradient(
        90deg,
        var(--red),
        var(--red-hover)
    );
}

/* Why Us Section */

.why-section {
    background: #0b0b0b;
    padding: 100px 20px;
    border-radius: 20px;
    color: white;
}

.why-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.why-header {
    text-align: center;
    margin-bottom: 60px;
}

.why-header h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.why-header p {
    font-size: 1.05rem;
    color: #b8b8b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Cards */
.why-card {
    background: linear-gradient(145deg, #121212, #0e0e0e);
    border: 1px solid #1f1f1f;
    border-radius: 16px;
    padding: 30px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.why-card:hover {
    transform: translateY(-6px);
    border-color: #2a2a2a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.why-card p {
    color: #bdbdbd;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Optional accent line */
.why-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c8102e, transparent);
    opacity: 0.6;
}

/* Process Section*/

.process-section {
    background: var(--bg);
    padding: 100px 20px;
    color: var(--text);
}

.process-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.process-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-header h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.process-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Steps layout */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Each step card */
.process-step {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;

    /* NEW: taller cards */
    min-height: 200px;
}


/* Hover effect */
.process-step:hover {
    transform: translateY(-4px);
    border-color: #333;
}

/* Image */
.process-image {
    flex: 1;
    min-width: 50%;
    height: auto;
    position: relative;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.process-step:hover .process-image img {
    transform: scale(1.05);
}

/* Content */
.process-content {
    flex: 1;
    min-width: 50%;
    padding: 40px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.step-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red);
    color: black;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.process-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.process-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.process-step:hover {
    transform: translateY(-6px);
    border-color: #333;
}
.process-step:hover .process-image img {
    transform: scale(1.06);
}

/* 
   CTA Section
 */

.cta-section {
    padding: 120px 20px;
    

    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-container {
    max-width: 850px;
    text-align: center;

    background: linear-gradient(145deg, #121212, #0d0d0d);
    border: 1px solid var(--border);
    border-radius: 22px;

    padding: 70px 40px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

/* subtle top glow line */
.cta-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--red), transparent);
    opacity: 0.8;
}

/* Heading */
.cta-container h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* Paragraph */
.cta-container p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* Button */
.cta-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 999px;

    background: var(--red);
    color: #000;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.25s ease;
}

/* hover */
.cta-btn:hover {
    background: var(--red-hover);
    transform: translateY(-3px);
}

/* Contact Page */
.contact-section {
    margin-top: 100px;
    padding: 100px 20px;
    background: var(--bg);
    color: var(--text);
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* FORM GRID */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* full width items */
.form-group.full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

/* LABELS */
.form-group label {
    margin-left: 0px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* INPUTS */
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: 0.25s ease;
}

/* textarea resize */
textarea {
    resize: vertical;
    min-height: 140px;
}

/* Agreement Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input {
    margin-top: 4px;
}

.checkbox-label a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* CAPTCHA Placeholder */
.captcha-placeholder {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    min-height: 78px;
}

.captcha-brand {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-muted);
    user-select: none;
}

.captcha-brand strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
}

/* BUTTON */
.contact-btn {
    grid-column: 1 / -1;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--red);
    color: black;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 10px 25px rgba(200,16,46,.2);
}

.contact-btn:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(200,16,46,.3);
}


.service-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

/* Service checkbox cards */
.service-options label {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 16px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;

    color: var(--text);
    cursor: pointer;

    transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* Checkbox */
.service-options input {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text);
}

/* Hover */
.service-options label:hover {
    border-color: var(--red);
}

/* When Service is selected */
.service-options input:checked + span {
    color: var(--red);
}

#service-messages .form-group {
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TOS and Privacy Policy
========================= */

.legal-section {
    margin-top: 100px;
    padding: 100px 20px;
    background: var(--bg);
    color: var(--text);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.legal-container h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--text);
}

.legal-container p,
.legal-container li {
    color: var(--text-muted);
    line-height: 1.7;
}

.legal-container ul {
    padding-left: 25px;
}

.legal-container a {
    color: var(--red);
}


/* Mobile */
@media (max-width: 700px) {

    .service-options {
        grid-template-columns: 1fr;
    }

}

/* MOBILE */
@media (max-width: 700px) {
    .contact-form {
        grid-template-columns: 1fr;
    }
}

/* responsive */
@media (max-width: 600px) {
    .cta-container {
        padding: 50px 25px;
    }

    .cta-container h2 {
        font-size: 2rem;
    }
}

/* Tablet + Mobile */
@media (max-width: 900px) {

    .card-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-grid .category-card {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 300px;
    }


    nav {
        justify-content: space-between;
        padding: 0 20px;
    }


    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-center {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

       

        display: flex;
        flex-direction: column;

        gap: 0; 

        background: #111;

        transform: translateY(-100%);
        opacity: 0;

        overflow-y: auto;

        transition: transform .3s ease, opacity .3s ease;

        z-index: 1000;
    }
    

    .nav-center.active {
        transform: translateY(0);
        opacity: 1;
    }

    .dropdown {
        margin: 0;
        padding: 0;
        width: 100%;
        border-bottom: 1px solid #222;
    }

    .nav-center a{
        width: 100%;
        padding: 20px;

        margin: 0;
        box-sizing: border-box;

        display: flex;
        justify-content: space-between;
        align-items: center;

        background: none;
        border: none;

        color: white;
        font-size: 16px;
        font-weight: 600;
    }
        .dropdown-content {
        position: static;
        display: none;
        border: none;
        border-radius: 0;
        background: #181818;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding-left: 35px;
    }

    /* Hero */

    .hero {
        height: 500px;
        padding: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Categories */

    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }

    /* IMPORTANT: reset the grid positioning properly */
    .battery-card,
    .residential-card,
    .commercial-card,
    .civil-card,
    .security-card {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Make sure links + cards stretch full width */
    .category-link {
        width: 100%;
    }

    .category-card {
        width: 100%;
        min-height: 220px; /* prevents squashing */
    }

    /* Let images behave naturally */
    .image-wrapper {
        height: 100%;
        min-height: 220px;
    }

    .image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none !important; /* prevents weird scaling issues on mobile */
    }
    

    .image-wrapper {
        height: 250px;
    }

    .section-title {
        font-size: 1.7rem;
    }

    /* Footer */

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* =========================
        Solar Battery Page 
    =========================*/
    /* Why Us */
    .why-grid {
        grid-template-columns: 1fr;
    }

    .why-header h2 {
        font-size: 2rem;
    }

    /* Process Section */
    .process-step {
        flex-direction: column;
    }

    .process-image {
        width: 100%;
        flex: unset;
        height: 220px;
    }
}

/* Small phones */
@media (max-width: 480px) {

    nav {
        height: 70px;
    }

    .nav-center {
        top: 70px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-btn {
        width: 100%;
        max-width: 250px;
    }

    .card-grid {
        gap: 15px;
    }

    .image-wrapper {
        height: 220px;
    }
}

/* Overview section */
@media (max-width: 768px) {

    .solar-overview {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 20px;
    }

    .overview-image {
        order: 1;
    }

    .overview-content {
        order: 2;
    }

    .overview-image img {
        height: 240px;
        object-fit: cover;
        border-radius: 16px;
    }

    .overview-content h2 {
        font-size: 2rem;
    }

    .overview-content ul {
        margin-top: 20px;
    }
}