/* =====================
    BALAJI ELECTRONICS - PREMIUM DESIGN SYSTEM
   ===================== */
:root {
    --primary: #4f46e5;
    /* Indigo */
    --primary-light: #818cf8;
    --primary-dark: #3730a3;
    --secondary: #fbbf24;
    /* Amber */
    --accent: #10b981;
    /* Emerald */
    --bg-main: #fdfeff;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass: rgba(255, 255, 255, 0.75);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-width: 150px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

/* =====================
    NAVIGATION
   ===================== */
.header {
    position: sticky;
    top: 0;
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.logo-img {
    width: 52px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* =====================
    BUTTONS
   ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -8px rgba(79, 70, 229, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--text-main);
    color: white;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* =====================
    HERO SECTION
   ===================== */
.hero {
    background: radial-gradient(circle at 70% 20%, #eff6ff 0%, #ffffff 100%);
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge.premium {
    background: #e0e7ff;
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 28px;
    font-weight: 800;
    color: #1e293b;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
}

.hero-image-wrapper {
    background: white;
    padding: 16px;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-image {
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
}

/* =====================
    ABOUT SECTION
   ===================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-title span {
    color: var(--primary);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 28px;
    font-weight: 500;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-item i {
    width: 56px;
    height: 56px;
    background: #f0f4ff;
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: var(--transition);
}

.about-item:hover i {
    background: var(--primary);
    color: white;
    transform: rotate(5deg);
}

.about-item span {
    font-weight: 700;
    font-size: 1.1rem;
}

/* =====================
    PRODUCT CARDS
   ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.1);
}

.product-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 24px;
    background: #f8fafc;
    position: relative;
}

.product-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

.product-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.product-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* =====================
    WHATSAPP FLOAT
   ===================== */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 68px;
    height: 68px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
}

/* =====================
    FOOTER
   ===================== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 100px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-brand p {
    margin: 24px 0;
    max-width: 320px;
}

.footer h3 {
    color: white;
    margin-bottom: 32px;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 16px;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* =====================
    RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.25rem;
    }

    .hero-container,
    .about-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .header-container {
        height: 75px;
    }

    /* Mobile Menu Logic */
    .menu-toggle {
        display: flex;
        font-size: 2rem;
        cursor: pointer;
        color: var(--primary-dark);
    }

    .navbar {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: white;
        transition: var(--transition);
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px;
    }

    .navbar.active {
        left: 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .header-actions .call-btn {
        display: none;
        /* Hide in header on mobile */
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .about-item {
        align-items: center;
        text-align: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: 24px auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .btn {
        width: 100%;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

/* Ultra small devices */
@media (max-width: 150px) {
    .container {
        padding: 0 10px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .logo-text {
        display: none;
    }
}

/* Animation utilities */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s, transform 1s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}