/* ============================================
   NION ELECTRIC — Styles
   ============================================ */

:root {
    --green: #BFFF00;
    --green-dim: rgba(191, 255, 0, 0.15);
    --green-glow: rgba(191, 255, 0, 0.4);
    --dark: #0a0a0a;
    --dark-card: #111111;
    --dark-border: #1a1a1a;
    --slate: #94a3b8;
    --white: #f0f0f0;
    --white-dim: rgba(240, 240, 240, 0.6);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--dark);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.4) 0%,
            rgba(10, 10, 10, 0.2) 40%,
            rgba(10, 10, 10, 0.6) 80%,
            rgba(10, 10, 10, 1) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: clamp(200px, 35vw, 400px);
    height: auto;
    -webkit-filter: drop-shadow(0 0 30px var(--green-glow)) brightness(1.3);
    filter: drop-shadow(0 0 30px var(--green-glow)) brightness(1.3);
    animation: logoFadeIn 1.5s ease-out;
}

.hero-logo-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(ellipse at center, rgba(191, 255, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--white-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: taglineFadeIn 2s ease-out 0.5s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: -8rem;
    animation: taglineFadeIn 2s ease-out 1.5s both;
}

.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--green), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 8rem 0;
    position: relative;
}

.section-dark {
    background: var(--dark-card);
}

.section-label {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 1px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
}

.section-text {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--white-dim);
    max-width: 700px;
}

/* Reveal animation */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    padding: 2.5rem 2rem;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

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

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.7;
}

/* ============================================
   WHY NION
   ============================================ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.why-item {
    position: relative;
}

.why-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-dim);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.why-item p {
    font-size: 0.9375rem;
    color: var(--slate);
    line-height: 1.7;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--white-dim);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--green);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-email:hover {
    border-bottom-color: var(--green);
}

.contact-location {
    font-size: 0.875rem;
    color: var(--slate);
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Form */
.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input::placeholder {
    color: var(--slate);
}

.form-input:focus {
    border-color: rgba(191, 255, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(191, 255, 0, 0.08);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-button {
    width: 100%;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 1px solid var(--green);
    border-radius: 6px;
    color: var(--green);
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.form-button:hover {
    background: var(--green);
    color: var(--dark);
    box-shadow: 0 0 25px rgba(191, 255, 0, 0.2);
}

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

.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--dark-border);
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.5;
    filter: grayscale(0.5);
}

.footer p {
    font-size: 0.8125rem;
    color: var(--slate);
}

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

@media (max-width: 768px) {
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section {
        padding: 5rem 0;
    }

    .hero-scroll-indicator {
        bottom: -5rem;
    }
}
