/* ===== XENAUD SOLAR - FIXED PREMIUM CSS ===== */

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0a0a0a;
    --secondary: #1a1a1a;
    --accent: #ff6b35;
    --gold: #d4af37;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-small: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.2);
    --shadow-large: 0 25px 50px rgba(0, 0, 0, 0.3);
    --border-radius: 20px;
    --container-max-width: 1400px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== FIXED CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    will-change: transform;
    transition: transform var(--transition-fast);
    /* FIXED: Center the cursor properly */
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    transition: transform 0.15s ease-out;
    /* FIXED: Center the cursor follower properly */
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

.cursor-follower.hover {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Hide cursor on mobile devices */
@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    body {
        cursor: auto !important;
    }
}

/* ===== LOADING ANIMATION ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader-text {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    /* FIXED: Prevent text overflow */
    word-break: keep-all;
    white-space: nowrap;
}

.loader-bar {
    width: min(300px, 80vw);
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    width: 0%;
    animation: loadProgress 3s ease-in-out forwards;
}

.loaded .loader {
    opacity: 0;
    visibility: hidden;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-slow);
    will-change: transform, background-color;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* FIXED: Prevent overflow on mobile */
    min-height: 60px;
}

.logo {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform var(--transition-normal);
    will-change: transform;
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    /* FIXED: Handle overflow on smaller screens */
    flex-wrap: wrap;
    align-items: center;
}

.nav-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    position: relative;
    transition: color var(--transition-normal);
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
}

.nav-item a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.nav-item a:hover::before,
.nav-item a.active::before {
    width: 100%;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--accent);
}

.cta-nav {
    background: linear-gradient(45deg, var(--accent), var(--gold));
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all var(--transition-normal);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    will-change: transform;
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: all var(--transition-normal);
    border-radius: 1px;
}

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

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

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    padding-top: 80px; /* Account for header */
}

.hero-bg {
    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 1000 1000"><defs><radialGradient id="grad1" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:%23ff6b35;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23ff6b35;stop-opacity:0" /></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23grad1)" /></svg>');
    animation: heroFloat 10s ease-in-out infinite;
    will-change: transform;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* FIXED: Prevent text overflow */
    word-wrap: break-word;
    hyphens: auto;
}

.hero-text .highlight {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    /* FIXED: Better text handling */
    word-break: keep-all;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    /* FIXED: Better text readability */
    max-width: 100%;
    word-wrap: break-word;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(45deg, var(--accent), var(--gold));
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all var(--transition-normal);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    will-change: transform;
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
    display: inline-block;
}

.btn-primary::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: left var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all var(--transition-normal);
    will-change: transform;
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
}

/* ===== SOLAR ANIMATION ===== */
.solar-showcase {
    position: relative;
    animation: slideInRight 1s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-container {
    width: min(600px, 90vw);
    height: min(500px, 70vh);
    position: relative;
    margin: 0 auto;
    /* FIXED: Ensure container doesn't overflow */
    max-width: 100%;
}

.sun-element {
    position: absolute;
    top: -40px;
    right: -40px;
    width: clamp(80px, 15vw, 160px);
    height: clamp(80px, 15vw, 160px);
    background: radial-gradient(circle, var(--gold) 0%, var(--accent) 100%);
    border-radius: 50%;
    animation: sunRotate 20s linear infinite;
    box-shadow: 0 0 100px rgba(212, 175, 55, 0.6);
    will-change: transform;
}

.sun-element::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: sunPulse 4s ease-in-out infinite;
}

.solar-rays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* FIXED: Prevent rays from overflowing */
    overflow: hidden;
}

.ray {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.8), transparent);
    transform-origin: right center;
    animation: rayPulse 3s ease-in-out infinite;
    will-change: opacity, transform;
}

.ray:nth-child(1) {
    width: min(300px, 60vw);
    height: 3px;
    top: 20%;
    right: 15%;
    transform: rotate(30deg);
    animation-delay: 0s;
}

.ray:nth-child(2) {
    width: min(320px, 65vw);
    height: 2px;
    top: 30%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 0.5s;
}

.ray:nth-child(3) {
    width: min(280px, 55vw);
    height: 4px;
    top: 40%;
    right: 20%;
    transform: rotate(60deg);
    animation-delay: 1s;
}

.ray:nth-child(4) {
    width: min(310px, 62vw);
    height: 2px;
    top: 50%;
    right: 12%;
    transform: rotate(75deg);
    animation-delay: 1.5s;
}

.solar-panels {
    position: absolute;
    bottom: clamp(40px, 10vw, 80px);
    left: clamp(25px, 8vw, 50px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(10px, 3vw, 20px);
    /* FIXED: Ensure panels don't overflow */
    max-width: 80%;
}

.panel {
    width: clamp(60px, 12vw, 120px);
    height: clamp(40px, 8vw, 80px);
    background: linear-gradient(135deg, #0f3460, #1e5799, #2989d8);
    border-radius: 8px;
    position: relative;
    transform: perspective(400px) rotateX(25deg) rotateY(-10deg);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-large);
    will-change: transform;
}

.panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    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%),
        linear-gradient(135deg, #0a2463, #1e3a8a, #1d4ed8);
    border-radius: 4px;
}

.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    border-radius: 8px;
    opacity: 0;
    animation: panelCharge 2s ease-in-out infinite;
    will-change: opacity, transform;
}

.energy-flow {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(0deg, transparent, var(--gold));
    border-radius: 2px;
    animation: energyRise 1.5s ease-in-out infinite;
    will-change: opacity, transform;
}

/* ===== SECTIONS ===== */
section {
    padding: clamp(4rem, 10vw, 8rem) 5%;
    position: relative;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    animation: sectionFloat 15s ease-in-out infinite;
    will-change: transform;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 6rem);
}

.section-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 1s ease-out;
    /* FIXED: Prevent text overflow */
    word-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
    /* FIXED: Better text handling */
    word-wrap: break-word;
}

/* ===== FEATURES SECTION ===== */
.features {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 3rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    will-change: transform;
    /* FIXED: Ensure proper height */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.8s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent);
}

.feature-icon {
    width: clamp(60px, 15vw, 100px);
    height: clamp(60px, 15vw, 100px);
    background: linear-gradient(45deg, var(--accent), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    animation: iconFloat 6s ease-in-out infinite;
    will-change: transform;
}

.feature-card h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: var(--text-light);
    /* FIXED: Prevent text overflow */
    word-wrap: break-word;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    /* FIXED: Better text handling */
    word-wrap: break-word;
}

/* ===== STATS SECTION ===== */
.stats {
    background: radial-gradient(ellipse at center, var(--accent) 0%, var(--primary) 70%);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 3rem;
}

.stat-item {
    padding: 2rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    will-change: transform;
}

.stat-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    background: linear-gradient(45deg, var(--gold), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: countUp 2s ease-out;
    /* FIXED: Prevent number overflow */
    word-break: keep-all;
}

.stat-label {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    /* FIXED: Better text handling */
    word-wrap: break-word;
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background: var(--secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 3rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
    position: relative;
    will-change: transform;
    /* FIXED: Ensure consistent height */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent);
}

.product-image {
    height: clamp(200px, 30vw, 300px);
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3rem, 8vw, 5rem);
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.product-card:hover .product-image::before {
    transform: translateX(100%);
}

.product-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    /* FIXED: Prevent text overflow */
    word-wrap: break-word;
}

.product-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    /* FIXED: Better text handling */
    word-wrap: break-word;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-features span {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    border: 1px solid rgba(255, 107, 53, 0.3);
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
}

.product-price {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    /* FIXED: Prevent price overflow */
    word-break: keep-all;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(212, 175, 55, 0.05));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 3rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: all var(--transition-slow);
    will-change: transform;
    /* FIXED: Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent);
}

.testimonial-content {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    /* FIXED: Better text handling */
    word-wrap: break-word;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    vertical-align: top;
}

.testimonial-content p::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    vertical-align: bottom;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    /* FIXED: Prevent text overflow */
    word-wrap: break-word;
}

.author-info span {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    /* FIXED: Better text handling */
    word-wrap: break-word;
}

/* ===== BLOG PREVIEW SECTION (INDEX PAGE) ===== */
.blog-preview {
    padding: clamp(4rem, 10vw, 8rem) 5%;
    background: var(--secondary);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.blog-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
    will-change: transform;
}

.blog-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: var(--accent);
}

.blog-preview-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.blog-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-preview-card:hover .blog-preview-image img {
    transform: scale(1.05);
}

.blog-preview-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.blog-preview-content {
    padding: 2rem;
}

.blog-preview-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.4;
}

.blog-preview-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.blog-preview-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.blog-preview-meta .date,
.blog-preview-meta .read-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.blog-preview-cta {
    text-align: center;
}

/* ===== BLOG PAGE SPECIFIC STYLES ===== */

/* Blog Hero Section */
.blog-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
    padding-top: 100px;
    overflow: hidden;
}

.blog-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.blog-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 1s ease-out;
}

.blog-hero-content p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-search {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.blog-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    font-size: 1rem;
    border-radius: 50px;
}

.blog-search input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: linear-gradient(45deg, var(--accent), var(--gold));
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    min-width: 60px;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

/* Featured Post */
.featured-post {
    padding: 5rem 5% 3rem;
    background: var(--secondary);
}

.featured-post-card {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    box-shadow: var(--shadow-large);
    transition: all var(--transition-slow);
}

.featured-post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.featured-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.featured-post-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
}

.featured-content {
    padding: 3rem;
}

.post-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.category {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.date,
.read-time {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.featured-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.3;
}

.featured-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.read-more-btn {
    background: linear-gradient(45deg, var(--accent), var(--gold));
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-block;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

/* Blog Categories */
.blog-categories {
    padding: 4rem 5%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(212, 175, 55, 0.05));
}

.categories-header {
    text-align: center;
    margin-bottom: 3rem;
}

.categories-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover,
.category-card.active {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-medium);
}

.category-card.active {
    background: rgba(255, 107, 53, 0.1);
}

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

.category-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.post-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Blog Posts Section */
.blog-posts {
    padding: 4rem 5%;
    background: var(--primary);
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.posts-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--text-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sort-options {
    display: flex;
    gap: 1rem;
}

.sort-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.sort-btn:hover,
.sort-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-slow);
    backdrop-filter: blur(20px);
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
    border-color: rgba(255, 107, 53, 0.3);
}

.blog-image {
    position: relative;
    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.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta .date,
.blog-meta .read-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.blog-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.4;
    flex-grow: 1;
}

.blog-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author span {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-stats {
    display: flex;
    gap: 1rem;
}

.blog-stats span {
    color: var(--text-muted);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-btn {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.load-more-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: left var(--transition-slow);
}

.load-more-btn:hover::before {
    left: 100%;
}

/* Blog Newsletter */
.blog-newsletter {
    padding: 5rem 5%;
    background: radial-gradient(ellipse at center, var(--accent) 0%, var(--primary) 70%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-newsletter::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="newsletter-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.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23newsletter-grid)" /></svg>');
    animation: gridMove 30s linear infinite;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: iconFloat 6s ease-in-out infinite;
}

.blog-newsletter h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.blog-newsletter p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.newsletter-form-blog {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form-blog input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    font-size: 1rem;
    outline: none;
}

.newsletter-form-blog input::placeholder {
    color: #666;
}

.newsletter-form-blog button {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    white-space: nowrap;
    background: linear-gradient(45deg, var(--primary), #333);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.newsletter-form-blog button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.newsletter-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Search and Filter Animations */
.blog-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.blog-card.show {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* ===== CONTACT FORM SECTION - FULL PAGE DESIGN ===== */
.contact-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(212, 175, 55, 0.05));
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem 5%;
}

.contact-section::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="contact-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,107,53,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-grid)" /></svg>');
    animation: gridMove 30s linear infinite;
}

.contact-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.contact-header .section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-large);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.form-group.half-width {
    flex: 1;
}

.form-group label {
    color: var(--text-light);
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-family: inherit;
    outline: none;
    transition: all var(--transition-normal);
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--primary);
    color: var(--text-light);
    padding: 0.5rem;
}

.form-group textarea {
    min-height: 100px;
    max-height: 150px;
}

.form-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    line-height: 1.5;
    color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.form-error {
    color: #ff4757;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.form-error.visible {
    opacity: 1;
}

.form-submit {
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    flex-shrink: 0;
}

.form-submit.loading .button-text {
    opacity: 0;
}

.form-submit.loading .button-loader {
    opacity: 1;
}

.button-loader {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.contact-direct {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-direct-item a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-light);
    transition: all var(--transition-normal);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-direct-item a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-text {
    font-weight: 500;
}

/* Form validation states */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff4757;
    box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #2ed573;
    box-shadow: 0 0 0 3px rgba(46, 213, 115, 0.1);
}

/* Success message */
.form-success {
    background: linear-gradient(45deg, #2ed573, #20bf6b);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease-out;
}

.form-success h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.form-success p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--accent), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* FIXED: Prevent text overflow */
    word-wrap: break-word;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section p,
.footer-section a,
.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.8;
    transition: color var(--transition-normal);
    font-size: clamp(0.9rem, 2vw, 1rem);
    /* FIXED: Better text handling */
    word-wrap: break-word;
}

.footer-section a:hover,
.footer-section ul li a:hover {
    color: var(--accent);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    /* FIXED: Prevent overflow on mobile */
    flex-wrap: wrap;
}

.contact-info .icon {
    font-size: 1.2rem;
    /* FIXED: Prevent icon from shrinking */
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-normal);
    will-change: transform;
    /* FIXED: Prevent shrinking */
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ===== UPDATED NEWSLETTER SECTION (NOW INTEGRATED IN FOOTER) ===== */
.newsletter {
    /* Remove background and border since it's now part of footer */
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.newsletter h3 {
    margin-bottom: 1.5rem;
    text-align: left;
}

.newsletter p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    text-align: left;
    color: var(--text-muted);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
    flex-direction: column;
}

.newsletter-form input {
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: clamp(0.9rem, 2vw, 1rem);
    outline: none;
    transition: border-color var(--transition-normal);
    width: 100%;
    margin-bottom: 0.5rem;
}

.newsletter-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
}

.newsletter-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-benefits span {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-normal);
}

.newsletter-benefits span:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    /* FIXED: Better mobile layout */
    font-size: clamp(0.8rem, 2vw, 1rem);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
    /* FIXED: Prevent text wrapping */
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== SCROLL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes loadProgress {
    to { width: 100%; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

@keyframes sunRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes sunPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes rayPulse {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes panelCharge {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes energyRise {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.5); }
    50% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.5); }
}

@keyframes sectionFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .featured-post-card {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .featured-content {
        padding: 2.5rem;
    }
    
    .posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
    
    .form-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .form-submit {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0 0 20px 20px;
    }
    
    .nav-menu.mobile-open {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    section {
        padding: clamp(3rem, 8vw, 5rem) 5%;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .newsletter-form button {
        align-self: stretch;
    }
    
    .newsletter-benefits {
        margin-top: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }
    
    .blog-hero {
        min-height: 60vh;
        padding-top: 80px;
    }
    
    .blog-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .blog-search {
        flex-direction: column;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .blog-search input {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .search-btn {
        border-radius: 15px;
        align-self: stretch;
    }
    
    .featured-post {
        padding: 3rem 3%;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .newsletter-form-blog {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-benefits {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .contact-section {
        min-height: auto;
        padding: 2rem 3%;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-direct {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact-direct-item a {
        justify-content: center;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem 3%;
    }
    
    .nav-container {
        min-height: 50px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .features-grid,
    .products-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 2rem;
    }
    
    .product-content {
        padding: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .footer-content {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    /* FIXED: Better mobile solar animation */
    .solar-container {
        width: min(280px, 90vw);
        height: min(200px, 50vh);
    }
    
    .sun-element {
        width: 60px;
        height: 60px;
        top: -30px;
        right: -30px;
    }
    
    .solar-panels {
        bottom: 20px;
        left: 20px;
        gap: 8px;
    }
    
    .panel {
        width: 40px;
        height: 30px;
    }
    
    .newsletter-form input {
        padding: 0.8rem 1rem;
    }
    
    .newsletter-form button {
        padding: 0.8rem 1.2rem;
    }
    
    .newsletter-benefits span {
        font-size: 0.8rem;
    }
    
    .blog-hero {
        padding-top: 70px;
        min-height: 50vh;
    }
    
    .blog-hero-content {
        padding: 0 1rem;
    }
    
    .blog-hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .blog-hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .featured-post {
        padding: 2rem 3%;
    }
    
    .featured-content {
        padding: 1.5rem;
    }
    
    .featured-content h2 {
        font-size: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .category-card {
        padding: 1rem 0.5rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-icon {
        font-size: 1.5rem;
    }
    
    .sort-options {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .sort-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .blog-stats {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .newsletter-content {
        padding: 0 1rem;
    }
    
    .newsletter-icon {
        font-size: 3rem;
    }
    
    .blog-newsletter h2 {
        font-size: 1.8rem;
    }
    
    .blog-newsletter p {
        font-size: 1rem;
    }
    
    .contact-section {
        padding: 1.5rem 3%;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-header {
        margin-bottom: 2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .checkbox-label {
        font-size: 0.8rem;
    }
    
    .checkmark {
        width: 16px;
        height: 16px;
    }
    
    .form-submit {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

/* Focus styles for keyboard navigation */
.keyboard-navigation *:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-muted: #cccccc;
        --border-color: #ffffff;
    }
}

/* Print styles */
@media print {
    .cursor,
    .cursor-follower,
    .loader,
    header,
    .mobile-menu-toggle,
    .social-links,
    .blog-search,
    .sort-options,
    .load-more-section,
    .blog-newsletter {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section-title,
    .hero-text h1 {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    .blog-card {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .blog-hero {
        min-height: auto;
        padding: 2rem 0;
    }
}