/* ============================================
   Aussie Charger – Custom styles
   ============================================ */

:root {
    --bg-dark: #0d0f12;
    --bg-card: #16181d;
    --bg-elevated: #1c1f26;
    --text-primary: #e8ecf1;
    --text-muted: #d4d8e0;
    --accent: #22c55e;
    --accent-hover: #4ade80;
    --accent-soft: rgba(34, 197, 94, 0.15);
    --border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-logo: 'Syne', sans-serif;

    /* Override Bootstrap so secondary/muted text is light on dark theme */
    --bs-secondary-color: #d4d8e0;
    --bs-secondary-color-rgb: 212, 216, 224;
    --bs-body-color: #e8ecf1;
    --bs-body-color-rgb: 232, 236, 241;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Navbar */
.navbar {
    background: rgba(13, 15, 18, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.navbar-brand {
    color: var(--text-primary) !important;
}

.brand-logo-text {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    font-weight: 700;
    line-height: 1;
    color: inherit;
}

.brand-logo-text-footer {
    font-size: 1.2rem;
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 8px var(--accent-soft));
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent) !important;
}

/* Hero */
.hero {
    background: var(--bg-dark);
    position: relative;
}

.hero-video-section .hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(13, 15, 18, 0.75) 0%, rgba(13, 15, 18, 0.88) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-video-section .hero-bg {
    z-index: 2;
}

.hero-content-wrap {
    z-index: 3;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 70% 40%, var(--accent-soft) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.hero-badge {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    font-family: var(--font-mono);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
}

.hero-rotating-text {
    min-height: 3.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-rotating-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
    white-space: nowrap;
}

.hero-rotating-line.hero-rotating-active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Buttons */
.btn-accent {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
    transform: translateY(-1px);
}

.btn-accent:active {
    transform: translateY(0);
}

/* Hero visual blocks */
.hero-visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    border-radius: 16px;
    overflow: visible;
}

.hero-card-image {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
}

.hero-card-img {
    max-width: 280px;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    border-color: var(--accent);
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(6px); }
}

/* Section common */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-lead {
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About / features */
.section-about {
    background: var(--bg-dark);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(34, 197, 94, 0.35);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.75rem;
    display: inline-block;
}

.about-image-block {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.about-image-block img {
    display: block;
}

/* How it works */
.section-how {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.how-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.how-step:hover {
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-2px);
}

.how-step-num {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
}

/* CTA block */
.section-cta {
    background: var(--bg-dark);
}

.cta-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.cta-block-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

/* Contact section */
.section-contact {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.form-control {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    background: var(--bg-dark);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-label {
    color: var(--text-primary);
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

.brand-icon-small {
    font-size: 1.25rem;
}

/* Navbar scroll state */
.navbar.scrolled {
    background: rgba(13, 15, 18, 0.95);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero {
        padding-top: 5rem;
    }

    .hero-visual {
        display: none;
    }

    .hero-rotating-text {
        min-height: 2.75rem;
    }
}
