/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue-dark: #111111;
    --blue-mid: #8b1a1a;
    --blue-light: #2a2a2a;
    --green-dark: #7a1a1a;
    --green-mid: #9b2226;
    --green-light: #c9a84c;
    --green-pale: #1a1a1a;
    --gray-900: #0a0a0a;
    --gray-800: #111111;
    --gray-700: #e0e0e0;
    --gray-600: #cccccc;
    --gray-500: #aaaaaa;
    --gray-400: #888888;
    --gray-300: #c9a84c;
    --gray-200: #2a2a2a;
    --gray-100: #1a1a1a;
    --gray-50: #141414;
    --white: #ffffff;
}

body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #e0e0e0;
    line-height: 1.6;
    background: #0a0a0a;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
}

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

img {
    max-width: 100%;
    display: block;
}

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

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--blue-dark) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.logo-svg {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.logo:hover .logo-svg {
    transform: scale(1.05) rotate(15deg);
}

.logo-text {
    font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: #c9a84c;
}

.logo .accent {
    color: #c9a84c;
    font-weight: 300;
}

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

nav a {
    color: var(--gray-300);
    font-weight: 500;
    transition: all 0.25s;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

nav a.active {
    color: var(--white);
    background: var(--green-dark);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1a1a 50%, #111111 100%);
    color: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(155, 34, 38, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
    animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 2%) scale(1.05); }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: #c9a84c;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* Circle collage */
.hero-circles {
    position: relative;
    flex-shrink: 0;
    width: 380px;
    height: 340px;
}

.circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(155, 34, 38, 0.5);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-1 {
    top: 0;
    left: 30px;
    z-index: 3;
}

.circle-2 {
    top: 50px;
    left: 160px;
    z-index: 2;
}

.circle-3 {
    top: 140px;
    left: 60px;
    z-index: 1;
}

.circles-fade {
    position: absolute;
    top: 0;
    right: -40px;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to left, #1a1a1a, transparent);
    z-index: 4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 22px;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
    -webkit-text-fill-color: unset;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.hero p {
    font-size: 1.15rem;
    color: #aaaaaa;
    margin-bottom: 35px;
    line-height: 1.7;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 15px 36px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(155, 34, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 34, 38, 0.45);
    filter: brightness(1.08);
}

/* ===== Features ===== */
.features {
    padding: 90px 24px;
    background: #111111;
    border-top: 1px solid #9b2226;
}

.features h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 15px;
    color: #c9a84c;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features > .container > p:first-of-type {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 55px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 28px;
    border-radius: 16px;
    background: #1a1a1a;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #2a2a2a;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    border-color: #9b2226;
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
    border-radius: 14px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 700;
}

.feature-card p {
    color: #aaaaaa;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== About ===== */
.about {
    padding: 80px 24px;
    background: #0e0e0e;
    text-align: center;
    border-top: 1px solid #c9a84c;
}

.about h2 {
    font-size: 2.1rem;
    margin-bottom: 20px;
    color: #c9a84c;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    color: #cccccc;
    font-size: 1.05rem;
    line-height: 1.85;
}

/* ===== Contact ===== */
.contact {
    padding: 90px 24px;
    background: #111111;
    border-top: 1px solid #9b2226;
}

.contact h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 55px;
    color: #c9a84c;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #2a2a2a;
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #cccccc;
}

.contact-form h3 {
    margin-bottom: 24px;
    color: #c9a84c;
    font-weight: 700;
    font-size: 1.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 14px;
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    transition: all 0.25s;
    background: #1a1a1a;
    color: #e0e0e0;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c9a84c;
    background: #1e1e1e;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

.contact-form .btn {
    width: 100%;
}

/* ===== Footer ===== */
footer {
    background: #0a0a0a;
    color: #888888;
    text-align: center;
    padding: 30px 24px;
    font-size: 0.85rem;
    border-top: 1px solid #c9a84c;
}

/* ===== Page Title (Podstrani) ===== */
.page-title {
    background: linear-gradient(160deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 70px 24px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #c9a84c;
}

.page-title h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.page-title p {
    color: #aaaaaa;
    font-size: 1.05rem;
}

/* ===== Cars Section ===== */
.cars-section {
    padding: 60px 24px 80px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.car-card {
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
    border: 1px solid #2a2a2a;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: #9b2226;
}

.car-card.sold {
    opacity: 0.82;
}

.car-image {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.car-card:hover .car-image img {
    transform: scale(1.06);
}

.badge-sold {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    padding: 7px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    z-index: 2;
}

.car-card.sold .car-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 100%);
}

.car-details {
    padding: 22px;
}

.car-details h3 {
    font-size: 1.15rem;
    color: #c9a84c;
    margin-bottom: 14px;
    font-weight: 700;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.car-specs span {
    font-size: 0.8rem;
    color: #cccccc;
    background: #222222;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid #333333;
}

.car-desc {
    font-size: 0.88rem;
    color: #aaaaaa;
    margin-bottom: 16px;
    line-height: 1.65;
}

.car-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #2a2a2a;
}

.price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.car-card.sold .price {
    text-decoration: line-through;
    color: var(--gray-400);
}

.sold-text {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ===== Cars Notice ===== */
.cars-notice {
    margin-top: 50px;
    text-align: center;
    padding: 44px;
    background: #1a1a1a;
    border-radius: 16px;
    border: 2px solid #9b2226;
}

.cars-notice p {
    font-size: 1.05rem;
    color: #cccccc;
    margin-bottom: 22px;
    font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 14px;
    }

    .logo-svg {
        width: 34px;
        height: 34px;
    }

    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }

    nav {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 80px 20px 100px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .features,
    .contact {
        padding: 60px 20px;
    }

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

    .cars-grid {
        grid-template-columns: 1fr;
    }

    .car-image {
        height: 200px;
    }

    .page-title {
        padding: 50px 20px;
    }

    .page-title h1 {
        font-size: 1.8rem;
    }
}
