/* =========================================
   BAS FELGENTECHNIK - Matte Black Stealth
   ========================================= */

:root {
    /* Matte Black Palette */
    --bg-color: #0f0f0f;
    /* Deep Matte Black */
    --bg-card: #1a1a1a;
    /* Slightly lighter for contrast */
    --text-color: #f5f5f5;
    --text-muted: #b0b0b0;

    --accent: #E71D36;
    /* Race Red */
    --accent-hover: #ff4d61;

    --border-light: #333;

    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

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

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* New Highlight: Brushed Steel Text */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;

    /* Elegant Steel Gradient */
    background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 50%, #b0b0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 10px;
}

h2::after {
    content: none;
}

p {
    color: var(--text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 2rem;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Header - Pure Black */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000000;
    /* Pure Black */
    z-index: 1000;
    border-bottom: 1px solid #222;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ddd;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
    overflow: hidden;
    perspective: 1000px;
}

/* Background Image - Brighter Presence */
#hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/matte_hero.png') center/cover no-repeat;
    opacity: 1;
    /* Full brightness of image */
    z-index: 0;
    transform: scale(1.05);
    transition: transform 0.1s ease-out;
}

/* Minimal Overlay for Maximum Brightness */
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Only subtle edge darkening, center is fully transparent */
    background: radial-gradient(circle at center, transparent 40%, rgba(51, 51, 51, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above canvas and bg */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 3rem;
    animation: fadeIn 1.5s ease;
}

/* Subtitle - Clean Red Accent - High Visibility */
.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #ff4d61;
    /* Brighter Red */
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    font-weight: 800;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 1);
    /* Heavy shadow */
}

/* Description Text - High Visibility */
.hero-content p {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.8;
}

/* --- MAIN CTA BUTTONS (Harmonized) --- */
.cta-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-mega {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    /* Reduced padding */
    font-size: 1rem;
    /* Reduced font size */
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    /* Sharper, more industrial */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 200px;
    /* Reduced width */
}

/* eBay Button - Primary Action -> THEME RED */
.ebay-btn {
    background: var(--accent);
    /* Race Red */
    color: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 10px 30px rgba(231, 29, 54, 0.3);
    /* Red Glow */
}

.ebay-btn:hover {
    background: #fff;
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(231, 29, 54, 0.5);
}

/* Phone Button - Secondary Action -> Ghost White */
.phone-btn {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

.phone-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

@keyframes pulseMega {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 100, 210, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(0, 100, 210, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 100, 210, 0);
    }
}

/* --- QUICK CONNECT PILLS (Always Colorful) --- */
.quick-connect {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.connect-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #fff;
    /* Always white text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.connect-pill ion-icon {
    font-size: 1.2rem;
    color: #fff;
}

/* Phone Pill - Clean White */
.connect-pill.phone {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.connect-pill.phone:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.connect-pill.phone ion-icon {
    color: #000;
}

/* PayPal / WhatsApp Green */
.connect-pill.whatsapp {
    background: #25D366;
    border: 1px solid #25D366;
}

.connect-pill.whatsapp:hover {
    background: #1EBE57;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Instagram Gradient */
.connect-pill.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border: 1px solid transparent;
    /* Keeps sizing consistent */
}

.connect-pill.instagram:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Mail / Contact - White Glass */
.connect-pill.mail {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.connect-pill.mail:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

.connect-pill.mail:hover ion-icon {
    color: #000;
}

/* Hero Spacer */
.hero-spacer {
    height: 15vh;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin: 10px;
}

.btn:hover {
    background: var(--gold);
    color: #000;
}

/* Pulsing Button Highlight */
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 29, 54, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(231, 29, 54, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 29, 54, 0);
    }
}

/* Icons Bar */
.social-bar {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Phone Blue */
.social-icon.phone {
    border-color: #4A90D9;
    color: #4A90D9;
}

.social-icon.phone:hover {
    background: #4A90D9;
    color: #fff;
    border-color: #4A90D9;
}

/* WhatsApp Green */
.social-icon.whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

/* Instagram Gradient */
.social-icon.instagram {
    border-color: #E1306C;
    color: #E1306C;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    border-color: transparent;
}

/* Services */
#services {
    padding: 100px 50px;
    background: #0a0a0a;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: #111;
    padding: 40px;
    transition: transform 0.3s;
    border-top: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

/* Gallery */
#gallery {
    padding: 100px 50px;
    background: #050505;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    filter: grayscale(80%);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, #000, transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* Footer */
footer {
    padding: 50px;
    background: #111;
    text-align: center;
    border-top: 1px solid #222;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
    display: block;
}

.footer-links a {
    color: #888;
    margin: 0 15px;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

/* Hamburger Animation when open */
.mobile-menu-btn.active .hamburger {
    background: transparent;
}

.mobile-menu-btn.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--gold);
}

.mobile-menu-btn.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--gold);
}

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    header {
        padding: 20px 30px;
    }

    nav {
        gap: 20px;
    }

    #services,
    #gallery {
        padding: 80px 30px;
    }

    .service-grid,
    .gallery-grid {
        gap: 25px;
    }
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Body scroll lock when menu open */
body.menu-open {
    overflow: hidden;
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 60px 20px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.active {
        right: 0;
    }

    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Hero Section - Compact */
    #hero {
        min-height: 100svh;
        height: auto;
        padding: 70px 15px 20px;
        align-items: flex-start;
    }

    .hero-content {
        padding: 1rem;
        display: flex;
        flex-direction: column;
        min-height: calc(100svh - 90px);
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 0;
        line-height: 1.5;
    }

    /* Spacer pushes buttons down - reveals rim */
    .hero-spacer {
        flex-grow: 1;
        min-height: 10vh;
    }

    /* Quick Connect Pills - Horizontal row */
    .quick-connect {
        gap: 6px;
        flex-wrap: nowrap;
        margin-bottom: 0.8rem;
    }

    .connect-pill {
        padding: 8px 10px;
        font-size: 0.65rem;
        gap: 4px;
        white-space: nowrap;
    }

    .connect-pill ion-icon {
        font-size: 0.9rem;
    }

    /* CTA Container - Below pills */
    .cta-container {
        margin-top: 0;
        margin-bottom: 0;
        gap: 10px;
    }

    .btn-mega {
        padding: 12px 20px;
        font-size: 0.8rem;
        min-width: auto;
        width: 100%;
        max-width: 220px;
    }

    /* Services & Gallery */
    h2 {
        font-size: 1.4rem;
    }

    #services,
    #gallery {
        padding: 50px 15px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-item .overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    }

    .gallery-item img {
        filter: grayscale(0%);
    }

    /* Footer */
    footer {
        padding: 30px 15px;
    }

    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Disable hover effects */
    .service-card:hover,
    .gallery-item:hover img {
        transform: none;
    }
}

/* Small phones */
@media (max-width: 380px) {
    h1 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .hero-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .hero-content p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    #hero {
        padding: 60px 10px 20px;
    }

    .hero-spacer {
        height: 1vh;
    }

    .cta-container {
        margin-top: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .btn-mega {
        padding: 10px 16px;
        font-size: 0.75rem;
        max-width: 200px;
    }

    .connect-pill {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .connect-pill ion-icon {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 20px 15px;
    }

    .gallery-item {
        height: 180px;
    }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    h1 {
        animation: none;
        background: none;
        color: #fff;
    }

    .btn-primary {
        animation: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}