/* ============================================
   SOLAR ENERGY SOLUTIONS — STYLESHEET
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: #2c3e50;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- UTILITY ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Replace with your own hero image */
    background: url('../images/hero-bg.jpg') center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 32, 55, 0.75) 0%,
        rgba(10, 25, 45, 0.65) 50%,
        rgba(20, 50, 80, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 1100px;
    width: 100%;
}

/* Company Title */
.company-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.3rem;
}

.company-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* ---------- Bilingual Intro ---------- */
.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
}

.intro-block {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
}

.intro-block h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: #f5c842;
    margin-bottom: 1rem;
}

.intro-block p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.8;
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

.scroll-down svg {
    width: 32px;
    height: 32px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    background: linear-gradient(180deg, #0f2037 0%, #1a3a5c 100%);
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    background: linear-gradient(180deg, #1a3a5c 0%, #0f2037 100%);
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5c842, #e6a817);
    border-radius: 50%;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: #0f2037;
}

.contact-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #f5c842;
    margin-bottom: 0.6rem;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.contact-detail-small {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    margin-top: 0.3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0a1929;
    padding: 1.8rem 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
    .intro-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .intro-block {
        padding: 1.5rem;
    }

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

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

    .hero-content {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   RESPONSIVE — SMALL PHONES
   ============================================ */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .company-title {
        letter-spacing: 0.01em;
    }
}