/* 
   Echo Power LED - Modern Design System 
   Author: Texmith Infotech
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --primary-color: #7c3aed;
    /* Deep purple from logo */
    --secondary-color: #db2777;
    /* Magenta from logo */
    --accent-color: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: 'Outfit', sans-serif;
}

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

ul {
    list-style: none;
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* Section padding */
section {
    padding: 100px 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98); /* Solid white background for visibility */
    backdrop-filter: blur(10px);
    padding: 1.5rem 0; /* Balanced padding for 80px logo */
    transition: var(--transition);
    border-bottom: 1px solid var(--glass-border);
}

nav.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hamburger to X Animation */
.nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero Section */
.hero {
    height: calc(100vh - 130px);
    margin-top: 130px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.subpage-hero {
    height: 40vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 130px;
    background-image: url('../images/header_bg.png');
    background-size: cover;
    background-position: center;
}

.subpage-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.3);
}

/* Product Cards in Light Theme */
.product-item {
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.product-item:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

/* Core Expertise Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

.feature-card .feature-icon {
    font-size: 3rem;
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Featured Products Section */
.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.horizontal-product-card {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    gap: 2rem;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.horizontal-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.product-image-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

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

.product-content {
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.product-link:hover {
    gap: 0.8rem;
}

/* Footer */
footer {
    padding: 6rem 0 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('../images/footer_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-info h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-info p,
.footer-info li,
.footer-info a {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--secondary-color) !important;
    padding-left: 5px;
}

.contact-item .text {
    color: rgba(255, 255, 255, 0.8);
}

.footer-info img {
    filter: brightness(0) invert(1); /* Makes the logo white for the dark background */
}

.footer-info p,
.footer-info li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-info a:hover {
    color: var(--secondary-color);
}

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

.contact-item .icon {
    min-width: 24px;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
}

.contact-item .text {
    flex: 1;
    font-size: 1rem;
    white-space: nowrap;
}

/* Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

@media (max-width: 1200px) {
    .featured-products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .footer-grid,
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

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

    .logo img {
        height: 55px; /* Smaller logo for mobile */
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-extra {
        display: none; /* Hide inquiry button on mobile nav, add to links instead */
    }

    .hero {
        height: auto;
        min-height: 100vh;
        margin-top: 80px;
        padding: 100px 0;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid,
    .footer-grid,
    .cert-grid,
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    .subpage-hero {
        margin-top: 80px;
        height: 30vh;
    }

    .subpage-hero h1 {
        font-size: 2.5rem !important;
    }
}