/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    transition: background-color 0.4s ease, color 0.4s ease;
    color: #0F172A;
    line-height: 1.6;
}

body.light-mode {
    background-color: #fdfdfd;
}

body.dark-mode {
    background-color: #0c1427;
    color: #e2e8f0;
}

/* === Header === */
header {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body.dark-mode header {
    background: linear-gradient(135deg, #0a1120, #151e2e);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FBBF24; /* Solar Yellow */
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 12px;
}

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.25s ease;
    font-weight: 500;
}

nav ul li a:hover {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    transform: translateY(-2px);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(6px);
    min-width: 170px;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
    overflow: hidden;
}

.dropdown-content a {
    padding: 12px 18px;
    display: block;
    color: #e2e8f0;
    transition: background 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

#darkModeToggle,
#langSwitch {
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#darkModeToggle {
    background: linear-gradient(135deg, #1E293B, #0F172A);
    color: #FBBF24;
}

body.dark-mode #darkModeToggle {
    background: linear-gradient(135deg, #1a2435, #0c1427);
    color: #FCD34D;
}

#langSwitch {
    background: linear-gradient(135deg, #334155, #1E293B);
    color: #e2e8f0;
}

#darkModeToggle:hover,
#langSwitch:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* === Hero Section with Video === */
.hero {
    position: relative;
    height: 65vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.6;
}

.hero-content {
    padding: 0 24px;
    max-width: 850px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    color: #FBBF24; /* Solar Yellow */
}

.hero-content p {
    font-size: 1.3rem;
    margin: 12px auto;
    max-width: 700px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
    opacity: 0.95;
}

/* === Products Carousel === */
.products-carousel {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f0f9ff, #e0f2fe);
    text-align: center;
    transition: background 0.4s ease;
    animation: fadeInUp 1s ease-out;
}

body.dark-mode .products-carousel {
    background: linear-gradient(to bottom, #0c1427, #111c33);
}

.products-carousel h2 {
    font-size: 2.6rem;
    margin-bottom: 45px;
    color: #0F172A;
    font-weight: 700;
    transition: color 0.3s ease;
}

body.dark-mode .products-carousel h2 {
    color: #F1F5F9;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
}

body.dark-mode .carousel-container {
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.3);
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.carousel-slide:hover img {
    transform: scale(1.04);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: white;
    padding: 20px 10px 10px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(251, 191, 36, 0.6);
    color: #0F172A;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.carousel-btn:hover {
    background: rgba(251, 191, 36, 0.9);
    transform: translateY(-50%) scale(1.15);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* === Contact Form === */
.contact-form {
    padding: 80px 20px;
    background: linear-gradient(to bottom, #f8fafc, #e2e8f0);
    transition: background 0.4s ease;
    animation: fadeInUp 1s ease-out;
}

body.dark-mode .contact-form {
    background: linear-gradient(to bottom, #0c1427, #0a1120);
}

.contact-form h2 {
    font-size: 2.6rem;
    margin-bottom: 45px;
    color: #0F172A;
    font-weight: 700;
}

body.dark-mode .contact-form h2 {
    color: #F1F5F9;
}

#contactUsForm {
    max-width: 550px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
    transition: all 0.4s ease;
}

body.dark-mode #contactUsForm {
    background: #1E293B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0F172A;
}

body.dark-mode .form-group label {
    color: #cbd5e1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8fafc;
    transition: all 0.3s ease;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #334155;
    color: #f1f5f9;
    border-color: #475569;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FBBF24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}

#submitBtn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #0F172A;
    border: none;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

#submitBtn:hover {
    background: linear-gradient(135deg, #FCD34D, #FBBF24);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.45);
}

/* === Newsletter Section === */
.newsletter {
    padding: 80px 20px;
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    text-align: center;
    color: #0F172A;
    animation: fadeInUp 1s ease-out;
}

.newsletter h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input-group {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #0F172A;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.newsletter-input-group button {
    padding: 14px 24px;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.newsletter-input-group button:hover {
    background: linear-gradient(135deg, #10B981, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* === Social & Map Section === */
.social-map {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 70px 20px;
    gap: 50px;
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
    transition: background 0.4s ease;
}

body.dark-mode .social-map {
    background: linear-gradient(to bottom, #0c1427, #111c33);
}

.social-links {
    text-align: center;
    max-width: 320px;
    animation: fadeInUp 1s ease-out;
}

.social-links h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #0F172A;
    font-weight: 700;
}

body.dark-mode .social-links h3 {
    color: #F1F5F9;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 2.2rem;
}

.social-icons a {
    color: #38BDF8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

body.dark-mode .social-icons a {
    color: #93c5fd;
}

.social-icons a:hover {
    transform: translateY(-6px) scale(1.15);
    color: #FBBF24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.map-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 300px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.2);
    animation: fadeInUp 1s ease-out;
}

body.dark-mode .map-container {
    background: #1E293B;
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.3);
}

/* === Footer === */
footer {
    background: linear-gradient(135deg, #0F172A, #1E293B);
    color: #cbd5e1;
    text-align: center;
    padding: 24px;
    margin-top: 60px;
    transition: background 0.4s ease;
    font-size: 0.95rem;
}

body.dark-mode footer {
    background: linear-gradient(135deg, #0a1120, #151e2e);
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 14px;
        gap: 12px;
    }

    nav ul {
        margin-top: 0;
        justify-content: center;
    }

    .hero {
        height: auto;
        padding: 50px 15px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .carousel-container {
        border-radius: 12px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group input,
    .newsletter-input-group button {
        width: 100%;
    }

    .social-map {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .map-container {
        width: 100%;
        max-width: 100%;
    }

    .products-carousel,
    .contact-form,
    .social-map {
        padding: 50px 15px;
    }

    .controls {
        justify-content: center;
    }
}