/* Custom CSS for HBK Electric V2 */
:root {
    --color-navy: #0F172A;
    --color-charcoal: #1E293B;
    --color-white: #FFFFFF;
    --color-offwhite: #F8FAFC;
    --color-accent-blue: #3B82F6;
    --color-tesla-red: #E82127;
    --color-text: #334155;
    --color-light-text: #94A3B8;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-navy);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1.5px; /* Matches "Powering the Future of" */
    font-family: var(--font-heading);
    /* Dynamic Animated Gradient (Yellow/Gold) */
    background: linear-gradient(
        to right,
        #ffffff 0%,
        #FACC15 25%,
        #ffffff 50%,
        #FACC15 75%,
        #ffffff 100%
    );
    background-size: 200% auto;
    color: var(--color-white);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
    /* Drop shadow for readability on any background */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.8)) drop-shadow(0px 0px 10px rgba(250, 204, 21, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.9)) drop-shadow(0px 0px 20px rgba(250, 204, 21, 0.8));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

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

.nav-links a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-accent-blue);
}

.btn-nav {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s !important;
}

.btn-nav:hover {
    background: var(--color-white);
    color: var(--color-navy) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-title {
    color: var(--color-white);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    color: var(--color-light-text);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-navy);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: var(--color-accent-blue);
}

/* Section Common */
section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--color-text);
    font-size: 1.2rem;
}

.section-header.dark h2 {
    color: var(--color-white);
}

.section-header.dark p {
    color: var(--color-light-text);
}

/* The Edge Section */
.edge-section {
    background-color: var(--color-offwhite);
}

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

.edge-card {
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
}

.edge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.edge-img-wrapper {
    height: 320px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.edge-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.edge-card:hover .edge-img-wrapper img {
    transform: scale(1.05);
}

.edge-info {
    padding: 2.5rem 2rem;
    text-align: center;
}

.edge-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.edge-info p {
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.edge-info span {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-blue);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* Services Section */
.services-section {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.service-row:last-child {
    border-bottom: none;
}

.service-row:hover .s-number {
    color: var(--color-white);
}

.s-number {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(255,255,255,0.1);
    margin-right: 3rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.s-content h3 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.s-content p {
    color: var(--color-light-text);
    font-size: 1.15rem;
    max-width: 600px;
}

/* Why Us Section */
.whyus-section {
    background-color: var(--color-white);
}

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

.why-item {
    text-align: center;
}

.why-item .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--color-offwhite);
    border-radius: 50%;
    color: var(--color-navy);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.why-item p {
    color: var(--color-text);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #0F172A 0%, #0B101E 100%);
    color: var(--color-white);
    padding: 8rem 0;
}

.contact-box {
    display: flex;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.c-info {
    flex: 1;
    padding: 5rem 4rem;
}

.c-info h2 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.c-info > p {
    color: var(--color-light-text);
    margin-bottom: 3rem;
}

.c-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.c-form {
    flex: 1;
    background: var(--color-white);
    padding: 5rem 4rem;
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: #F8FAFC;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    padding: 1.3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--color-accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

/* Footer */
footer {
    background-color: #05080F;
    color: var(--color-light-text);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-content .slogan {
    font-style: italic;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none; /* simple mobile handling */
    }
    .edge-grid, .whyus-grid {
        grid-template-columns: 1fr;
    }
    .contact-box {
        flex-direction: column;
    }
    .hero-title {
        font-size: 3rem;
    }
    .service-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .s-number {
        margin-bottom: 1rem;
    }
    .c-info, .c-form {
        padding: 3rem 2rem;
    }
}
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    section {
        padding: 5rem 0;
    }
}
