/* ========================================
   يسر اليمان - Yusur Al-Yaman
   Solar Energy Website Styles - Enhanced
   ======================================== */

/* ===== Variables ===== */
:root {
    --primary-color: #1a7a5c;
    --primary-dark: #145e47;
    --primary-light: #2a9d75;
    --secondary-color: #c4a35a;
    --secondary-dark: #a68940;
    --accent-color: #f4a024;
    --dark-color: #1a1a2e;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(26, 122, 92, 0.3);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 120px;
    height: 120px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-text {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 600;
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 122, 92, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 122, 92, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(196, 163, 90, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(196, 163, 90, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline-dark {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-dark:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 55px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo-icon {
    height: 45px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text-ar {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.logo-text-en {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.header.scrolled .logo-text-ar {
    color: var(--primary-color);
}

.header.scrolled .logo-text-en {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    color: var(--white);
    font-weight: 500;
    border-radius: 30px;
    transition: var(--transition);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 30px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--primary-color);
}

.header.scrolled .nav-link:hover::after,
.header.scrolled .nav-link.active::after {
    background: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    background: none;
    font-size: 26px;
    color: var(--white);
    padding: 8px;
}

.header.scrolled .menu-toggle {
    color: var(--text-color);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Animated Solar System */
.solar-system {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sun-main {
    position: absolute;
    top: 15%;
    left: 10%;
    width: 150px;
    height: 150px;
}

.sun-core {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #fff6e0 0%, var(--accent-color) 50%, var(--secondary-color) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 60px var(--accent-color),
        0 0 100px rgba(244, 160, 36, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.5);
    animation: sunPulse 4s ease-in-out infinite;
}

.sun-rays-container {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateSlow 30s linear infinite;
}

.sun-ray {
    position: absolute;
    background: linear-gradient(to bottom, var(--accent-color), transparent);
    width: 4px;
    height: 50px;
    top: 50%;
    left: 50%;
    transform-origin: center top;
    border-radius: 2px;
}

.sun-ray:nth-child(1) { transform: translate(-50%, -100%) rotate(0deg); }
.sun-ray:nth-child(2) { transform: translate(-50%, -100%) rotate(30deg); }
.sun-ray:nth-child(3) { transform: translate(-50%, -100%) rotate(60deg); }
.sun-ray:nth-child(4) { transform: translate(-50%, -100%) rotate(90deg); }
.sun-ray:nth-child(5) { transform: translate(-50%, -100%) rotate(120deg); }
.sun-ray:nth-child(6) { transform: translate(-50%, -100%) rotate(150deg); }
.sun-ray:nth-child(7) { transform: translate(-50%, -100%) rotate(180deg); }
.sun-ray:nth-child(8) { transform: translate(-50%, -100%) rotate(210deg); }
.sun-ray:nth-child(9) { transform: translate(-50%, -100%) rotate(240deg); }
.sun-ray:nth-child(10) { transform: translate(-50%, -100%) rotate(270deg); }
.sun-ray:nth-child(11) { transform: translate(-50%, -100%) rotate(300deg); }
.sun-ray:nth-child(12) { transform: translate(-50%, -100%) rotate(330deg); }

@keyframes sunPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Solar Panels */
.floating-panels {
    position: absolute;
    bottom: 10%;
    right: 5%;
    perspective: 1000px;
}

.solar-panel {
    width: 120px;
    height: 80px;
    background: linear-gradient(145deg, #1e3a5f 0%, #2c5282 100%);
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    position: relative;
    transform: rotateX(20deg) rotateY(-15deg);
    animation: floatPanel 6s ease-in-out infinite;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.solar-panel::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: 
        linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(255,255,255,0.1) 50%, transparent 52%);
    background-size: 33.33% 50%;
}

.solar-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: 5px;
}

@keyframes floatPanel {
    0%, 100% { transform: rotateX(20deg) rotateY(-15deg) translateY(0); }
    50% { transform: rotateX(25deg) rotateY(-10deg) translateY(-20px); }
}

/* Energy Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 15%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1s; }
.particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 3s; }
.particle:nth-child(5) { left: 45%; top: 80%; animation-delay: 4s; }
.particle:nth-child(6) { left: 90%; top: 40%; animation-delay: 5s; }

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    10% { opacity: 1; transform: translateY(-20px) scale(1); }
    90% { opacity: 1; transform: translateY(-100px) scale(1); }
    100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding-top: 100px;
    padding-bottom: 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-badge i {
    color: var(--secondary-color);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 750px;
    margin: 0 auto 45px;
    opacity: 0.9;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:first-child::after {
    display: none;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: var(--secondary-color);
}

.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 8px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 12px;
    margin-bottom: 10px;
}

.scroll-indicator i {
    font-size: 24px;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===== Sections ===== */
.section {
    padding: 70px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-header.light .section-title,
.section-header.light .section-tag {
    color: var(--white);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, rgba(26, 122, 92, 0.1), rgba(42, 157, 117, 0.1));
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(26, 122, 92, 0.2);
}

.section-tag i {
    font-size: 16px;
}

.section-header.light .section-tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

.section-subtitle {
    max-width: 600px;
    margin: 20px auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== About Section ===== */
.about {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--white) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-content > p {
    color: var(--text-light);
    margin-bottom: 35px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-item {
    display: flex;
    gap: 18px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--dark-color);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    z-index: 1;
}

.image-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    mix-blend-mode: overlay;
    opacity: 0.7;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 25px 35px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.experience-badge .years {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.95rem;
    opacity: 0.9;
}

.about-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border: 3px solid var(--secondary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* ===== Services Section ===== */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-card.featured::before {
    background: var(--secondary-color);
    transform: scaleX(1);
}

.service-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin-bottom: 30px;
    transition: var(--transition);
}

.service-card.featured .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.service-card.featured h3 {
    color: var(--white);
}

.service-card > p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-card.featured > p {
    color: rgba(255, 255, 255, 0.85);
}

.service-features {
    margin-bottom: 25px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.service-features li i {
    width: 22px;
    height: 22px;
    background: rgba(26, 122, 92, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--primary-color);
}

.service-card.featured .service-features li i {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.service-card.featured .service-link {
    color: var(--white);
    border-top-color: rgba(255, 255, 255, 0.2);
}

.service-link:hover {
    gap: 15px;
}

/* ===== Products Section ===== */
.products {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--white) 100%);
}

.products-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 35px;
    background: var(--white);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: 0 5px 25px rgba(26, 122, 92, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info > p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-specs {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Why Solar Section ===== */
.why-solar {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-solar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 200px 200px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    position: relative;
    z-index: 1;
}

.benefit-card {
    text-align: center;
    padding: 30px 25px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--secondary-color);
    margin: 0 auto 18px;
    transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.benefit-card p {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Projects Section ===== */
.projects {
    background: var(--white);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 5px 25px rgba(26, 122, 92, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.project-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    background: var(--white);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-card.hidden {
    display: none;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-capacity {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.project-info {
    padding: 30px;
}

.project-type {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(26, 122, 92, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.project-info h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Calculator Section ===== */
.calculator {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--white) 100%);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.calculator-form h3,
.calculator-result h3 {
    font-size: 1.6rem;
    margin-bottom: 35px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-form h3 i,
.calculator-result h3 i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 22px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 122, 92, 0.1);
}

.input-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.calculator-result {
    background: linear-gradient(135deg, rgba(26, 122, 92, 0.05), rgba(42, 157, 117, 0.05));
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(26, 122, 92, 0.1);
}

.result-items {
    margin-bottom: 35px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-label i {
    color: var(--primary-color);
}

.result-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background: var(--white);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: rgba(26, 122, 92, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 30px;
}

.stars {
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 18px;
}

.testimonial-content p {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.author-info h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--dark-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== Partners Section ===== */
.partners {
    background: var(--bg-color);
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}

.partner-logo {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.partner-logo img {
    max-height: 55px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-placeholder {
    font-size: 2rem;
    color: rgba(0, 0, 0, 0.15);
}

/* ===== Contact Section ===== */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 35px;
    color: var(--dark-color);
}

.info-items {
    margin-bottom: 35px;
}

.info-item {
    display: flex;
    gap: 22px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.info-item:hover {
    box-shadow: var(--shadow);
}

.info-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.info-text p,
.info-text a {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.info-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 35px;
    color: var(--dark-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ===== Map Section ===== */
.map-section {
    line-height: 0;
    position: relative;
}

.map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), transparent);
    z-index: 1;
    pointer-events: none;
}

.map-section iframe {
    filter: grayscale(20%) contrast(1.1);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 70px;
    margin-bottom: 25px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a,
.footer ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer ul li a:hover {
    color: var(--primary-light);
    padding-right: 10px;
}

.footer ul li i {
    color: var(--primary-light);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-light);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 25px rgba(26, 122, 92, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(26, 122, 92, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-stats {
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid,
    .products-grid,
    .projects-grid,
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 120px 35px 35px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--text-color);
        width: 100%;
        padding: 18px;
        font-size: 1.1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .nav-actions .btn {
        display: none;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 35px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-grid,
    .calculator-wrapper,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .products-grid,
    .projects-grid,
    .benefits-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .products-tabs,
    .projects-filter {
        gap: 10px;
    }
    
    .tab-btn,
    .filter-btn {
        padding: 12px 22px;
        font-size: 14px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer ul li a,
    .footer ul li {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .calculator-wrapper {
        padding: 35px;
    }
    
    .contact-form-wrapper {
        padding: 35px;
    }
    
    .experience-badge {
        bottom: -20px;
        right: 20px;
        padding: 20px 25px;
    }
    
    .experience-badge .years {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 18px;
    }
    
    .btn-lg {
        padding: 15px 30px;
        font-size: 15px;
    }
    
    .service-card,
    .product-card,
    .project-card,
    .testimonial-card {
        padding: 30px 25px;
    }
    
    .calculator-wrapper {
        padding: 25px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
    
    .logo-text-ar {
        font-size: 1.2rem;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 2rem; }
