/* EnergyEdge Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Section animations */
.animate-section {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-section.animate-in {
    opacity: 1;
    animation: fadeInUp 0.6s ease-out;
}

.animate-left {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-left.animate-in {
    opacity: 1;
    animation: fadeInLeft 0.6s ease-out;
}

.animate-right {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-right.animate-in {
    opacity: 1;
    animation: fadeInRight 0.6s ease-out;
}

:root {
    --dark-bg: #f0f8ff;
    --darker-bg: #e6f3ff;
    --light-text: #2c3e50;
    --accent-color: #27ae60;
    --secondary-accent: #3498db;
    --card-bg: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 50%, #d0f0c0 100%);
    background-attachment: fixed;
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.company-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-text);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 3px 0;
    transition: 0.3s;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Slider */
.hero-slider {
    margin-top: 90px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-logo {
    width: 317px;
    height: 119px;
    margin: 0 auto 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-logo img {
    width: 317px;
    height: 119px;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid #1e4d6b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
}

.slide p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: white;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    text-transform: uppercase;
}

.cta-button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: var(--accent-color);
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for cards */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.service-icon {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background-color: var(--darker-bg);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-accent);
}

.service-card p {
    color: #555;
    line-height: 1.8;
}

/* About Section */
.about {
    background-color: var(--darker-bg);
    padding: 5rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.about-content h3 {
    color: var(--accent-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.about-content p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Why Choose Solar Section */
.why-choose {
    padding: 5rem 2rem;
    background-color: var(--darker-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.benefit-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.6s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    opacity: 0;
    transform: translateY(20px);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for benefit cards */
.benefit-card:nth-child(1) { transition-delay: 0.1s; }
.benefit-card:nth-child(2) { transition-delay: 0.2s; }
.benefit-card:nth-child(3) { transition-delay: 0.3s; }
.benefit-card:nth-child(4) { transition-delay: 0.4s; }

.benefit-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #555;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 2rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 3rem;
}

.process-step {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for process steps */
.process-step:nth-child(1) { transition-delay: 0.1s; }
.process-step:nth-child(2) { transition-delay: 0.2s; }
.process-step:nth-child(3) { transition-delay: 0.3s; }
.process-step:nth-child(4) { transition-delay: 0.4s; }

.process-number {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-weight: bold;
}

.process-step h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.process-step p {
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer Social Media */
.social-media {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.social-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: var(--secondary-accent);
    transform: translateY(-2px);
}

.social-icon {
    font-size: 24px;
    margin-right: 0.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-accent);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item strong {
    color: var(--accent-color);
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--secondary-accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--darker-bg);
    border: 1px solid #444;
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.submit-btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        padding: 0 1rem;
    }

    .logo-container {
        flex: 1;
        justify-content: flex-start;
    }

    .logo {
        height: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 999;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: background-color 0.3s;
    }

    .nav-menu a:hover {
        background-color: var(--darker-bg);
    }

    .slide h1 {
        font-size: 2.5rem;
    }

    .slide p {
        font-size: 1.2rem;
    }

    .slide-logo {
        width: 238px;
        height: 89px;
        margin-bottom: 1.5rem;
    }

    .slide-logo img {
        width: 238px;
        height: 89px;
        border-radius: 15px;
    }

    .about-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .social-media {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Footer Navigation */
    .mobile-footer {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0d2436, #1a3a52);
        border-top: 2px solid var(--accent-green);
        padding: 0.75rem 0;
        z-index: 1000;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.5);
    }

    .footer-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .footer-nav-item:hover,
    .footer-nav-item:active {
        background: var(--accent-green);
        color: var(--primary-blue);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
    }

    /* Add padding to body to account for fixed footer */
    body {
        padding-bottom: 80px;
    }
}

/* Hide mobile footer on desktop */
.mobile-footer {
    display: none;
}

@media (max-width: 768px) {
    .mobile-footer {
        display: flex;
    }
}