/* ============================================
   CINEMATIC HERO SECTION - SOLAR ENERGY DESIGN
   ============================================ */

/* Hero Container */
.cinematic-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* Starry Space Background */
.hero-space-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0e27 0%, #1a1f3a 50%, #2a2f4a 100%);
    z-index: 0;
}

[data-theme="light"] .hero-space-bg {
    background: linear-gradient(180deg, #1e293b 0%, #334155 50%, #475569 100%);
}

/* Animated Stars */
.hero-space-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 85%, white, transparent),
        radial-gradient(1px 1px at 75% 25%, white, transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: twinkle 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Hero Layout */
.hero-layout {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

/* Hero Content (Left Side) */
.hero-content {
    z-index: 15;
    animation: fadeInLeft 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(248, 142, 2, 0.15);
    border: 1px solid rgba(248, 142, 2, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.03em;
}

.golden-gradient {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-energy {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-energy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-energy:hover::before {
    width: 300px;
    height: 300px;
}

.btn-energy:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

/* Energy Outline Button */
.btn-energy-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-energy-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-energy-outline:hover::before {
    width: 300px;
    height: 300px;
}

.btn-energy-outline:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .btn-energy-outline {
    color: var(--secondary-color);
    border-color: rgba(35, 36, 72, 0.3);
}

[data-theme="light"] .btn-energy-outline:hover {
    border-color: rgba(35, 36, 72, 0.6);
    box-shadow: 0 10px 30px rgba(35, 36, 72, 0.2);
}

[data-theme="light"] .btn-energy-outline::before {
    background: rgba(35, 36, 72, 0.05);
}

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    height: 600px;
    z-index: 10;
    animation: fadeInRight 1s ease-out;
}

/* Glowing Sun */
.solar-sun {
    position: absolute;
    top: 15%;
    right: 20%;
    width: 250px;
    height: 250px;
    z-index: 5;
}

.sun-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 165, 0, 0.3) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: sunPulse 4s ease-in-out infinite;
    filter: blur(20px);
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 60px rgba(255, 215, 0, 0.8),
        0 0 100px rgba(255, 165, 0, 0.6),
        inset 0 0 30px rgba(255, 140, 0, 0.5);
    animation: sunRotate 20s linear infinite;
}

.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: raysRotate 15s linear infinite;
}

.sun-rays::before,
.sun-rays::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.6) 50%, transparent 100%);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.sun-rays::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

@keyframes sunPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes sunRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes raysRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Solar Panels Group */
.solar-panels-group {
    position: absolute;
    bottom: 15%;
    right: 5%;
    display: flex;
    gap: 1.5rem;
    z-index: 8;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.solar-panel {
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
    border-radius: 8px;
    position: relative;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    animation: panelFloat 3s ease-in-out infinite;
    border: 2px solid rgba(100, 150, 200, 0.3);
}

.solar-panel.panel-2 {
    animation-delay: 0.3s;
    transform: translateY(-10px);
}

.solar-panel.panel-3 {
    animation-delay: 0.6s;
    transform: translateY(-20px);
}

.solar-panel.panel-4 {
    animation-delay: 0.9s;
    transform: translateY(-5px);
}

.panel-cells {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(100, 150, 200, 0.3) 18px, rgba(100, 150, 200, 0.3) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(100, 150, 200, 0.3) 18px, rgba(100, 150, 200, 0.3) 20px);
    border-radius: 4px;
}

.panel-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    border-radius: 8px;
    animation: panelShine 4s ease-in-out infinite;
}

@keyframes panelFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes panelShine {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Energy Beams */
.energy-beams {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6;
    pointer-events: none;
}

.beam {
    fill: none;
    stroke: rgba(255, 215, 0, 0.6);
    stroke-width: 3;
    stroke-linecap: round;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: beamFlow 3s ease-in-out infinite;
}

.beam-1 {
    animation-delay: 0s;
}

.beam-2 {
    animation-delay: 0.3s;
}

.beam-3 {
    animation-delay: 0.6s;
}

.beam-4 {
    animation-delay: 0.9s;
}

@keyframes beamFlow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 60%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 80%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    top: 70%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 1;
    }
}

/* Energy Particles System */
.energy-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9;
}

/* Hero Divider */
.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 20;
}

.hero-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.divider-fill {
    fill: var(--background-color);
}

/* Fade In Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 500px;
        margin: 0 auto;
        max-width: 600px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .solar-sun {
        right: 50%;
        transform: translateX(50%);
    }

    .solar-panels-group {
        right: 50%;
        transform: translateX(50%) perspective(1000px) rotateY(0deg) rotateX(5deg);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .cinematic-hero {
        min-height: 0;
        padding-top: 5rem;
        padding-bottom: 3rem;
    }

    .hero-layout {
        gap: 2rem;
        min-height: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-energy {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .btn-energy-outline {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .solar-sun {
        width: 180px;
        height: 180px;
        top: 10%;
    }

    .sun-core {
        width: 100px;
        height: 100px;
    }

    .solar-panels-group {
        gap: 1rem;
        bottom: 10%;
    }

    .solar-panel {
        width: 80px;
        height: 120px;
    }

    .hero-divider svg {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .solar-panels-group {
        gap: 0.75rem;
    }

    .solar-panel {
        width: 60px;
        height: 100px;
    }

    .solar-sun {
        width: 150px;
        height: 150px;
    }

    .sun-core {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   NAVBAR INTEGRATION
   ============================================ */
header {
    background: transparent !important;
}

.nav-wrapper {
    background-color: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .nav-wrapper {
    background-color: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Mobile Menu Button - Hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

/* Mobile Menu */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        z-index: 1001;
    }

    [data-theme="light"] .mobile-menu-btn {
        color: var(--text-color);
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 39, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        z-index: 1000;
        animation: slideDown 0.3s ease-out;
    }

    [data-theme="light"] .nav-links.active {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links a {
        color: white;
        font-size: 1.5rem;
    }

    [data-theme="light"] .nav-links a {
        color: var(--text-color);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}