/* ============================================
   MODERN SOLAR POWER & CONTROLS WEBSITE
   Black & White Minimalist Design
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #f0f0f0;
    --text-light: #e0e0e0;
    --text-muted: #b0b0b0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --spacing-unit: 1rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

/* Accessibility helpers */
.sr-only {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.form-group input[type="file"] {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--primary-color);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
        "Ubuntu", "Cantarell", sans-serif;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(1) contrast(1);
}

.company-name {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-contact {
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
}

.nav-contact:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 0.2s;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: slideInUp 0.8s ease forwards 0.4s;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.6s;
}

.hero-graphic {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(255, 255, 255, 0.1));
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%,
    100% {
        stroke-width: 3;
        opacity: 1;
    }
    50% {
        stroke-width: 2;
        opacity: 0.6;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

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

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

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

section {
    padding: 6rem 2rem;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-align: center;
}

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

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.05);
}

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    height: 80px;
    align-items: center;
}

.service-icon svg {
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.1));
    transition: var(--transition);
}

.service-card:hover .service-icon svg {
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.2));
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products {
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        var(--secondary-color) 100%
    );
}

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

.product-card {
    position: relative;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    overflow: hidden;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.product-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.product-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.spec {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.product-card:hover .spec {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
    background: linear-gradient(
        135deg,
        #1a1a1a 0%,
        var(--secondary-color) 100%
    );
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.about-list {
    list-style: none;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-size: 1rem;
}

.checkmark {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    text-align: center;
}

.stat {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        var(--secondary-color) 100%
    );
}

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

.contact-form {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--primary-color);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group button {
    margin-top: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.02);
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section ul li {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
    margin-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-logo {
        gap: 0.5rem;
    }

    .nav-logo img {
        height: 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .product-card {
        padding: 1.5rem;
    }

    .company-name {
        display: inline;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .video-container {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero {
        margin-top: 70px;
        min-height: auto;
        padding: 2rem 1rem;
    }

    .nav-container {
        padding: 0.8rem 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .stat h3 {
        font-size: 2rem;
    }

    .footer-section {
        text-align: center;
    }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}
