/* =========================================================
   ALAM SOLAR INDUSTRIES
   MASTER STYLER V5
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: "Segoe UI", Arial, sans-serif;

    background: #f4f8f4;

    overflow-x: hidden;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-header {
    min-height: 350px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 25px;

    text-align: center;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.3),
            rgba(0, 0, 0, 0.4)
        ),
        url("../images/header_banner.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.hero-title {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    margin: 0;

    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 3px;

    text-transform: uppercase;

    color: #fff;

    text-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.9);

    user-select: none;
    cursor: default;
}

.hero-title span {
    display: inline-block;

    color: #fff;

    user-select: none;
    cursor: default;

    animation:
        solarSweep 3.2s infinite;

    will-change: transform, color;
}


/* =========================================================
   SOLAR LETTER ANIMATION
   ========================================================= */

@keyframes solarSweep {

    0%,
    75%,
    100% {
        color: #fff;

        transform:
            translateY(0)
            rotate(0deg);

        text-shadow:
            3px 3px 8px rgba(0, 0, 0, 0.9);
    }

    25% {
        color: #ffd700;

        transform:
            translateY(-8px)
            rotate(-8deg);

        text-shadow:
            0 0 8px #ffd700,
            0 0 20px #ffa000,
            0 0 35px #ff6f00;
    }
}


/* =========================================================
   LETTER ANIMATION TIMING
   ========================================================= */

.hero-title span:nth-child(1) {
    animation-delay: 0s;
}

.hero-title span:nth-child(2) {
    animation-delay: .12s;
}

.hero-title span:nth-child(3) {
    animation-delay: .24s;
}

.hero-title span:nth-child(4) {
    animation-delay: .36s;
}

.hero-title span:nth-child(5) {
    animation-delay: .48s;
}

.hero-title span:nth-child(6) {
    animation-delay: .60s;
}

.hero-title span:nth-child(7) {
    animation-delay: .72s;
}

.hero-title span:nth-child(8) {
    animation-delay: .84s;
}

.hero-title span:nth-child(9) {
    animation-delay: .96s;
}

.hero-title span:nth-child(10) {
    animation-delay: 1.08s;
}

.hero-title span:nth-child(11) {
    animation-delay: 1.20s;
}

.hero-title span:nth-child(12) {
    animation-delay: 1.32s;
}

.hero-title span:nth-child(13) {
    animation-delay: 1.44s;
}

.hero-title span:nth-child(14) {
    animation-delay: 1.56s;
}

.hero-title span:nth-child(15) {
    animation-delay: 1.68s;
}

.hero-title span:nth-child(16) {
    animation-delay: 1.80s;
}

.hero-title span:nth-child(17) {
    animation-delay: 1.92s;
}

.hero-title span:nth-child(18) {
    animation-delay: 2.04s;
}

.hero-title span:nth-child(19) {
    animation-delay: 2.16s;
}

.hero-title span:nth-child(20) {
    animation-delay: 2.28s;
}

.hero-title span:nth-child(21) {
    animation-delay: 2.40s;
}

.hero-title span:nth-child(22) {
    animation-delay: 2.52s;
}

.hero-title span:nth-child(23) {
    animation-delay: 2.64s;
}

.hero-title span:nth-child(24) {
    animation-delay: 2.76s;
}


/* =========================================================
   HERO SUBTITLE
   ========================================================= */

.hero-subtitle {
    margin: 15px 0 35px;

    color: #fff;

    font-size: 1.25rem;
    font-weight: 500;

    letter-spacing: 1px;

    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.9);
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.menu {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 15px;
}

.menu-link {
    display: inline-block;

    padding: 12px 24px;

    border: 0;
    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #198754,
            #0d6efd
        );

    color: #fff;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.35);

    transition:
        transform .35s ease,
        background .35s ease,
        box-shadow .35s ease;
}

.menu-link:hover {
    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ff9800
        );

    transform: translateY(-5px);

    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.45);
}

.menu-link:active {
    transform: scale(.95);
}


/* =========================================================
   SOLAR DAY / NIGHT BACKGROUND
   ========================================================= */

.sky-background {
    position: fixed;

    inset: 0;

    z-index: -10;

    overflow: hidden;

    pointer-events: none;
}

.time {
    position: absolute;

    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;

    transition:
        opacity 3s ease;

    pointer-events: none;

    will-change: opacity;
}


/* =========================================================
   INITIAL BACKGROUND
   ========================================================= */

.dawn {
    opacity: 1;

    background-image:
        url("../images/solar_dawn_background.webp");
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

/*
   IMPORTANT:
   Do NOT use min-height: 300vh here.

   The old 300vh value was creating a large empty
   area between the CTA section and the footer.

   The page height is now determined naturally by
   the actual content.
*/

main {
    position: relative;

    z-index: 1;

    padding: 70px 30px;
}


/* =========================================================
   AERO GLASS PANELS
   ========================================================= */

.welcome-section,
.stat-card,
.service-card {
    position: relative;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.2);

    border:
        1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}


/* =========================================================
   GLASS REFLECTION
   ========================================================= */

.welcome-section::before,
.stat-card::before,
.service-card::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: inherit;

    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.25),
            transparent 45%
        );

    pointer-events: none;
}


/* =========================================================
   WELCOME SECTION
   ========================================================= */

.welcome-section {
    max-width: 1000px;

    margin: 0 auto;

    padding: 50px;

    text-align: center;

    border-radius: 30px;

    animation:
        fadeUp 1s ease;
}

.welcome-section h2 {
    margin: 0 0 20px;

    color: #087f23;

    font-size: 2.5rem;

    text-shadow:
        0 0 10px rgba(255, 193, 7, 0.5);
}

.welcome-section p {
    margin: 0;

    color: #333;

    font-size: 1.15rem;

    line-height: 1.8;
}


/* =========================================================
   PRIMARY BUTTON
   ========================================================= */

.primary-btn {
    display: inline-block;

    margin-top: 25px;

    padding: 14px 35px;

    border: 0;
    border-radius: 50px;

    background:
        linear-gradient(
            135deg,
            #198754,
            #0d6efd
        );

    color: #fff;

    font-size: 17px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.3);

    transition:
        transform .35s ease,
        background .35s ease;
}

.primary-btn:hover {
    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ff9800
        );

    transform: translateY(-5px);
}


/* =========================================================
   STATS SECTION
   ========================================================= */

.stats-section {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px, 1fr)
        );

    gap: 25px;

    max-width: 1100px;

    margin: 60px auto;
}

.stat-card {
    padding: 35px 20px;

    border-radius: 25px;

    border-top:
        5px solid #ffc107;

    text-align: center;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.stat-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 20px 35px rgba(0, 0, 0, 0.25);
}

.stat-card span {
    font-size: 45px;
}

.stat-card h3 {
    margin: 10px;

    color: #087f23;

    font-size: 2rem;
}

.stat-card p {
    margin: 0;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-section {
    max-width: 1200px;

    margin: 80px auto;

    text-align: center;
}

.services-section h2,
.why-section h2 {
    margin: 0 0 35px;

    color: #056608;

    font-size: 2.4rem;
}

.service-container {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 30px;
}

.service-card {
    padding: 35px;

    border-radius: 30px;

    transition:
        transform .4s ease;
}

.service-card:hover {
    transform: scale(1.05);
}

.service-card .icon {
    margin-bottom: 15px;

    font-size: 50px;
}

.service-card h3 {
    margin: 0 0 15px;

    color: #0d6efd;
}

.service-card p {
    margin: 0;

    color: #333;

    line-height: 1.6;
}


/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why-section {
    max-width: 900px;

    margin: 70px auto;

    padding: 45px;

    text-align: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #198754,
            #0d6efd
        );

    border-radius: 35px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.3);
}

.why-section h2 {
    color: #fff;
}

.why-list p {
    margin: 15px;

    font-size: 1.1rem;
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.cta-section {
    max-width: 1000px;

    margin: 70px auto 20px;

    padding: 55px;

    text-align: center;

    color: #fff;

    border-radius: 35px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.45)
        ),
        url("../images/solar_panel_field.webp");

    background-size: cover;
    background-position: center;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.35);
}

.cta-section h2 {
    margin: 0;

    font-size: 2.5rem;

    text-shadow:
        2px 2px 8px #000;
}

.cta-section p {
    margin: 15px 0 0;

    font-size: 1.2rem;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 50px 30px 15px;

    color: #fff;

    background-image:
        url("../images/footer_banner.webp");

    background-size: cover;
    background-position: center;

    box-shadow:
        0 -5px 20px rgba(0, 0, 0, 0.35);
}

.footer-container {
    display: flex;

    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;

    gap: 35px;

    max-width: 1200px;

    margin: 0 auto;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand h2 {
    margin: 0 0 15px;

    color: #ffd700;

    font-size: 1.8rem;

    text-shadow:
        0 0 10px #ffa000;
}

.footer-brand p {
    margin: 0;

    color: #f5f5f5;

    line-height: 1.6;
}


/* =========================================================
   FOOTER HEADINGS
   ========================================================= */

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    margin: 0 0 15px;

    color: #ffd700;

    font-size: 1.2rem;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-links {
    display: flex;

    flex-direction: column;
}

.footer-links a {
    margin: 6px 0;

    color: #fff;

    text-decoration: none;

    transition:
        color .3s ease,
        transform .3s ease;
}

.footer-links a:hover {
    color: #ffd700;

    transform: translateX(5px);
}


/* =========================================================
   FOOTER CONTACT
   ========================================================= */

.footer-contact p {
    margin: 8px 0;
}


/* =========================================================
   FOOTER SOCIAL
   ========================================================= */

.footer-social button {
    width: 45px;
    height: 45px;

    margin: 5px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #198754,
            #0d6efd
        );

    color: #fff;

    font-size: 20px;

    cursor: pointer;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.4);

    transition:
        transform .35s ease,
        background .35s ease;
}

.footer-social button:hover {
    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ff9800
        );

    transform:
        translateY(-5px)
        rotate(10deg);
}


/* =========================================================
   FOOTER BOTTOM
   ========================================================= */

.footer-bottom {
    margin-top: 35px;

    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.3);

    text-align: center;

    color: #ddd;

    font-size: .95rem;
}

.footer-bottom p {
    margin: 0;
}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;

        transform:
            translateY(40px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .hero-title span {
        animation: none;
    }

    .welcome-section {
        animation: none;
    }

    .time {
        transition: none;
    }

    .menu-link,
    .primary-btn,
    .stat-card,
    .service-card,
    .footer-links a,
    .footer-social button {
        transition: none;
    }
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 800px) {

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}


/* =========================================================
   RESPONSIVE - SMALL TABLET / LARGE MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .footer-container {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .footer-links {
        align-items: center;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 600px) {

    main {
        padding: 40px 15px;
    }

    .welcome-section {
        padding: 30px 20px;
    }

    .welcome-section h2,
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 40px 25px;
    }
}


/* =========================================================
   RESPONSIVE - SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    .hero-header {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 1.8rem;

        letter-spacing: 1px;
    }

    .menu {
        width: 100%;
    }

    .menu-link {
        width: 90%;

        text-align: center;
    }

    .hero-subtitle {
        margin-bottom: 25px;
    }
}