@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Bebas+Neue&display=swap');

/* --- CUSTOM PROPERTIES (Design Tokens) --- */
:root {
    /* Colors */
    --color-bg-main: #0a0a0a;
    --color-bg-secondary: #0f0f0f;
    --color-bg-glass: rgba(0, 0, 0, 0.85);
    --color-primary: #e52e2e;
    --color-primary-hover: #ffffff;
    --color-text-main: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.65);
    --color-border: rgba(255, 255, 255, 0.08);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #e52e2e 0%, #a00000 100%);
    --gradient-text: linear-gradient(to right, #e52e2e, #ffffff);

    /* Fonts */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Barlow', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(229, 46, 46, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}



ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* --- REUSABLE COMPONENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    border-radius: 0;
    box-shadow: none;
}

.btn--primary::before {
    display: none;
}

.btn--primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(0);
    box-shadow: none;
}

.btn--secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 0;
}

.btn--secondary:hover {
    background: rgba(229, 46, 46, 0.1);
    transform: translateY(-2px);
}

/* --- HEADER / NAVBAR --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--color-bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-primary);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.navbar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.navbar__list {
    display: flex;
    gap: 3rem;
}

.navbar__link {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.navbar__link:hover,
.navbar__link--active {
    color: var(--color-primary);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-normal);
}

.navbar__link:hover::after,
.navbar__link--active::after {
    width: 100%;
}

/* --- MAIN CONTENT --- */
.main {
    margin-top: 0;
    min-height: 100vh;
}

/* --- HERO SECTION --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 6rem 5% 0;
    position: relative;
    background: #0a0a0a;
    overflow: hidden;
}

.hero::after {
    content: 'MOTORU';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 30vw;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 5px;
}

.hero__text {
    flex: 0 0 50%;
    max-width: 600px;
    padding-right: 40px;
    z-index: 2;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero__title .highlight {
    color: #e52e2e;
    font-weight: 800;
}

.hero__description {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero__text .btn--primary {
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 0;
    border: 2px solid var(--color-primary);
    box-shadow: none;
    transition: background 0.3s, color 0.3s;
}

.hero__text .btn--primary::before {
    display: none;
}

.hero__text .btn--primary:hover {
    background: transparent;
    color: var(--color-primary);
    transform: translateY(0);
    box-shadow: none;
}

.hero__image {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 2;
    position: relative;
}



.hero__image img {
    width: 90%;
    max-width: none;
    height: auto;
    transition: var(--transition-slow);
    filter: brightness(1.1) drop-shadow(-15px 20px 25px rgba(0, 0, 0, 0.8));
    transform: translateX(5%) scale(0.9);
}

.hero__image img:hover {
    transform: translateX(5%) translateY(-10px) scale(0.95);
    filter: brightness(1.15) drop-shadow(-20px 30px 40px rgba(0, 0, 0, 0.9));
}


/* --- SERVICES APERÇU (Home Page) --- */
.services-apercu {
    padding: 5rem 5%;
    background: var(--color-bg-secondary);
    text-align: center;
    position: relative;
}

.services-apercu__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.services-apercu__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.services-apercu__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.services-apercu__item {
    background: var(--color-bg-main);
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    text-align: center;
    padding-bottom: 2rem;
}

.services-apercu__item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: rgba(230, 0, 0, 0.3);
}

.services-apercu__image-container {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.services-apercu__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.services-apercu__item:hover .services-apercu__img {
    transform: scale(1.1);
}

.services-apercu__name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.services-apercu__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- FOOTER --- */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 2rem 5%;
    text-align: center;
}

.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__copy {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- ANIMATIONS / JS CLASSES --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero__text {
        padding-right: 0;
        margin-bottom: 4rem;
        max-width: 100%;
    }

    .hero__title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 1rem;
    }

    .navbar__list {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .main {
        margin-top: 120px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .services-apercu__title {
        font-size: 2rem;
    }
}