/* =========================================================================
   BRIGHTWAVE - Premium Vanilla CSS
   ========================================================================= */

:root {
    /* Color Palette */
    --clr-bg: #030712;
    --clr-bg-alt: #111827;
    --clr-primary: #3b82f6;
    --clr-primary-glow: rgba(59, 130, 246, 0.4);
    --clr-accent: #60a5fa;
    --clr-text: #f3f4f6;
    --clr-text-muted: #9ca3af;
    --clr-border: rgba(255, 255, 255, 0.1);
    --clr-nav-bg: rgba(3, 7, 18, 0.7);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', system-ui, sans-serif;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

.section {
    padding: 8rem 0;
}

/* =========================================================================
   Typography
   ========================================================================= */
.section-badge {
    display: inline-block;
    color: var(--clr-accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.section-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 2px;
    background-color: var(--clr-accent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 60ch;
}

.centered-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4rem;
}

.centered-header .section-badge::before {
    display: none;
}
.centered-header .section-badge {
    padding-left: 0;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    box-shadow: 0 0 20px var(--clr-primary-glow);
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 25px var(--clr-primary-glow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
}

.btn-outline:hover {
    border-color: var(--clr-accent);
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--clr-nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:not(.nav-cta) {
    color: var(--clr-text-muted);
}

.nav-links a:not(.nav-cta):hover {
    color: white;
}

.nav-cta {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid var(--clr-border);
}

.nav-cta:hover {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background-image: url('img/hero_electronic_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================================
   About Section
   ========================================================================= */
.about-section {
    background-color: var(--clr-bg);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--clr-border);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--clr-accent);
}

.stat-label {
    color: var(--clr-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    z-index: 1;
}

.image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 50%, var(--clr-primary-glow), transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--clr-border);
}

/* =========================================================================
   Services Section
   ========================================================================= */
.services-section {
    background-color: var(--clr-bg-alt);
    border-top: 1px solid var(--clr-border);
    border-bottom: 1px solid var(--clr-border);
}

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

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

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

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.service-text {
    color: var(--clr-text-muted);
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: var(--clr-bg);
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 32px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--clr-text-muted);
    max-width: 400px;
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info, .contact-links {
    font-style: normal;
    color: var(--clr-text-muted);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    color: var(--clr-text-muted);
}

.contact-link:hover {
    color: var(--clr-accent);
}

.director-name {
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
}

.director-title {
    color: var(--clr-accent);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid var(--clr-border);
    padding-top: 2rem;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.875rem;
}

/* =========================================================================
   Responsive & Animations
   ========================================================================= */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image-wrapper {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .hero-actions {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}

/* Base Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Scroll Reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
