/*
 * S4 Energy - Main Stylesheet
 * Ultra Modern Solar Energy Website
 */

/* =====================================================
   CSS VARIABLES (Customizable via Admin)
   ===================================================== */
:root {
    /* Colors - Vibrant Electric Theme */
    --color-primary: #00D4FF;
    --color-secondary: #0A1628;
    --color-accent: #FF6B35;
    --color-gradient-start: #00D4FF;
    --color-gradient-end: #7B2FFF;
    --color-text-dark: #1A1A2E;
    --color-text-light: #FFFFFF;
    --color-background: #F8FAFC;
    --color-card-bg: #FFFFFF;

    /* Extended Palette */
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Spacing */
    --container-max: 1320px;
    --section-padding: 100px;
}

/* =====================================================
   BASE STYLES & RESET
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.section-title {
    margin-bottom: 20px;
}

.section-description {
    color: var(--color-gray-600);
    font-size: 1.1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-white {
    color: white;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.bg-dark {
    background: var(--color-secondary);
}

.bg-light {
    background: var(--color-background);
}

.bg-white {
    background: white;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--color-secondary);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
.top-bar {
    background: var(--color-secondary);
    padding: 12px 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
    fill: var(--color-primary);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.social-links svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Main Header */
.main-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Centered Logo Navigation */
.nav-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 40px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 40px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--color-secondary);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: var(--color-gray-600);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-link:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
    padding-left: 30px;
}

/* Get Quote Button */
.nav-cta {
    margin-left: 20px;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    padding: 30px;
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-base);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 15px;
    font-weight: 500;
    color: var(--color-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.hero-slider .swiper {
    height: 100%;
}

.swiper-slide {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: relative;
    height: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    padding: 40px 0 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.7) 50%, rgba(10, 22, 40, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    color: white;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 50px;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 2px;
    background: var(--color-primary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: white;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Slider Navigation */
.hero-slider .swiper-pagination {
    bottom: 40px !important;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: all var(--transition-base);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--color-primary);
    width: 35px;
    border-radius: 10px;
}

/* =====================================================
   CARDS & COMPONENTS
   ===================================================== */
.card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Service Card */
.service-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 255, 0.1));
    transition: all var(--transition-base);
}

.service-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--color-primary);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
}

.service-card:hover .service-icon svg {
    fill: white;
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--color-gray-600);
    margin-bottom: 25px;
}

.service-link {
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

.service-link:hover svg {
    transform: translateX(5px);
}

/* Blog Card */
.blog-card {
    position: relative;
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 30px;
}

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.1);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    margin-bottom: 15px;
}

.blog-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-gray-600);
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Blog Article - Single Post Content */
.blog-article {
    font-size: 1.125rem;
    line-height: 2;
    color: var(--color-gray-700);
}

.blog-article p {
    margin-bottom: .75em;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: var(--color-secondary);
}

.blog-article ul,
.blog-article ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.blog-article li {
    margin-bottom: 0.75em;
}

.blog-article blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5em;
    margin: 2em 0;
    font-style: italic;
    color: var(--color-gray-600);
}

.blog-article img {
    border-radius: var(--radius-lg);
    margin: 2em 0;
}

.blog-article a {
    color: var(--color-primary);
    text-decoration: underline;
}

.blog-meta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    margin-right: 5px;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */
.faq-item {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-gray-100);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.faq-icon svg {
    width: 14px;
    height: 14px;
    fill: var(--color-gray-600);
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
}

.faq-item.active .faq-icon svg {
    fill: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer-inner {
    padding: 0 30px 25px;
    color: var(--color-gray-600);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    height: 50px;
}

.footer-logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
}

.footer-description {
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gradient-start), var(--color-gradient-end));
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.footer-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--color-primary);
}

.footer-contact-text strong {
    display: block;
    color: white;
    margin-bottom: 3px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Footer Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-legal-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* =====================================================
   PAGE HERO BANNER
   ===================================================== */
.page-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #162447 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 255, 0.1));
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    color: white;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--color-primary);
}

.breadcrumb-current {
    color: var(--color-primary);
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 255, 0.1));
}

.contact-card-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-primary);
}

.contact-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.contact-card-text {
    color: var(--color-gray-600);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-lg);
}

.contact-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-map iframe,
.contact-map #map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

/* =====================================================
   SOLAR CALCULATOR
   ===================================================== */
.calculator-wrapper {
    background: white;
    border-radius: var(--radius-xl);
    padding: 50px;
    box-shadow: var(--shadow-xl);
}

.calculator-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.calc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    border-radius: var(--radius-full);
    background: var(--color-gray-100);
    color: var(--color-gray-600);
    font-weight: 600;
    transition: all var(--transition-base);
}

.calc-step.active {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    color: white;
}

.calc-step-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    font-size: 0.875rem;
}

.calc-step.active .calc-step-number {
    background: rgba(255, 255, 255, 0.3);
}

.calculator-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.calc-option {
    padding: 30px;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.calc-option:hover,
.calc-option.selected {
    border-color: var(--color-primary);
    background: rgba(0, 212, 255, 0.05);
}

.calc-option.selected {
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.1);
}

.calc-option-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-gray-100);
    transition: all var(--transition-base);
}

.calc-option-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-gray-600);
    transition: all var(--transition-base);
}

.calc-option:hover .calc-option-icon,
.calc-option.selected .calc-option-icon {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
}

.calc-option:hover .calc-option-icon svg,
.calc-option.selected .calc-option-icon svg {
    fill: white;
}

.calculator-results {
    background: var(--color-secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    color: white;
}

.calc-result-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.calc-result-label {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* =====================================================
   STATISTICS COUNTER
   ===================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #162447 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,212,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(25deg);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 20px;
}

.cta-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 35px;
}

/* =====================================================
   GRID LAYOUTS
   ===================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* =====================================================
   QUOTE MODAL
   ===================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid var(--color-gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-gray-100);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-error);
    color: white;
}

.modal-body {
    padding: 30px;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease infinite;
}

.animate-float {
    animation: float 3s ease infinite;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1200px) {
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {

    .nav-left,
    .nav-right {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .logo {
        margin: 0 auto;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: white;
        z-index: 10000;
        padding: 30px;
        transition: left var(--transition-base);
        overflow-y: auto;
        box-shadow: var(--shadow-2xl);
    }

    .mobile-menu.active {
        left: 0;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-nav-link {
        display: block;
        padding: 15px;
        font-weight: 500;
        color: var(--color-secondary);
        border-radius: var(--radius-md);
        transition: all var(--transition-fast);
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: var(--color-gray-100);
        color: var(--color-primary);
    }

    .mobile-dropdown {
        padding-left: 20px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-section {
        grid-template-columns: 1fr;
    }

    .calculator-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .top-bar {
        display: none;
    }

    .hero-slider {
        height: 80vh;
        min-height: 500px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .calculator-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .calculator-options {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .calculator-wrapper,
    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .service-card {
        padding: 30px 20px;
    }
}

/* =====================================================
   MOBILE RESPONSIVENESS FIXES
   ===================================================== */

/* Fix: Mobile Menu Display - Must be block for JS to toggle */
@media (max-width: 992px) {

    .mobile-menu,
    .mobile-menu-overlay {
        display: block;
    }

    /* Mobile header layout fix */
    .main-header .container {
        position: relative;
    }

    .mobile-toggle {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}

/* Fix: About S4 Energy Section (Home) + Our Story Section (About) + Service Details */
@media (max-width: 768px) {

    /* Home page - About S4 Energy section */
    .section.bg-white>.container>div[style*="grid-template-columns: 1fr 1fr"],
    /* About page - Our Story section */
    .section>.container>div[style*="grid-template-columns: 1fr 1fr"],
    /* Services page - Service details */
    .section>.container>div[style*="grid-template-columns: 1fr 1fr; gap: 60px"] {
        display: block !important;
    }

    /* Fix image and content spacing when stacked */
    .about-image,
    .animate-on-scroll>img {
        margin-bottom: 30px;
    }

    /* Fix the experience badge positioning on mobile */
    .about-image>div[style*="position: relative"]>div[style*="position: absolute"] {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        margin-top: 20px;
    }

    /* Fix feature grids inside about section */
    div[style*="grid-template-columns: repeat(2, 1fr); gap: 20px"],
    div[style*="grid-template-columns: repeat(2, 1fr); gap: 15px"] {
        display: block !important;
    }

    div[style*="grid-template-columns: repeat(2, 1fr)"]>div[style*="display: flex; align-items: center; gap"] {
        margin-bottom: 15px;
    }

    /* Section title alignment fix */
    .section-title[style*="text-align: left"] {
        text-align: center !important;
    }

    .section-subtitle {
        text-align: center;
        display: block;
    }

    /* Button alignment on mobile */
    .about-content .btn,
    .animate-on-scroll .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Fix: Solar Calculator Results */
@media (max-width: 768px) {
    .calculator-results>div[style*="grid-template-columns: repeat(2, 1fr)"] {
        display: block !important;
    }

    .calculator-results>div>div {
        margin-bottom: 25px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-lg);
    }

    .calc-result-value {
        font-size: 2.5rem;
    }

    .calculator-results .btn {
        width: 100%;
    }
}

/* Fix: Calculator steps on mobile */
@media (max-width: 768px) {
    .calc-step {
        justify-content: center;
        padding: 12px 20px;
    }

    .calc-step span:not(.calc-step-number) {
        display: inline;
    }
}

/* Additional mobile fixes for Services page feature grid */
@media (max-width: 576px) {

    /* Service detail features list */
    .section>.container>div>div>div[style*="display: grid; grid-template-columns: repeat(2, 1fr)"] {
        display: block !important;
    }

    .section>.container>div>div>div>div[style*="display: flex; align-items: center; gap: 10px"] {
        margin-bottom: 12px;
    }

    /* Hero content padding */
    .hero-content {
        padding: 0 15px;
    }

    /* Page hero spacing */
    .page-hero {
        padding: 80px 0 60px;
    }

    .page-hero-title {
        font-size: 1.75rem;
    }
}

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row-reverse;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
    background: white;
    color: var(--color-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 55px;
        height: 55px;
    }

    .whatsapp-icon svg {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

/* =====================================================
   BRANDS SCROLLER
   ===================================================== */
.brands-section {
    padding: 80px 0;
    background: var(--color-background);
    overflow: hidden;
}

.brands-scroller {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: scroll-brands 25s linear infinite;
    width: max-content;
    padding: 20px 0;
}

.brands-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-brands {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 90px;
    padding: 15px 20px;
    background: var(--color-card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    flex-shrink: 0;
}

.brand-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px) scale(1.05);
}

.brand-item img {
    max-height: 60px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-base);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .brands-section {
        padding: 50px 0;
    }

    .brands-track {
        gap: 25px;
        animation-duration: 18s;
    }

    .brand-item {
        width: 140px;
        height: 70px;
        padding: 10px 15px;
    }

    .brand-item img {
        max-height: 45px;
        max-width: 110px;
    }
}