/* ============================================
   SAMET GALLERY - Premium Supercar Showcase
   ============================================ */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #C9A962;
    --gold-light: #E8D5A3;
    --gold-dark: #A68B4B;
    --black: #0A0A0A;
    --black-light: #1A1A1A;
    --white: #F5F5F5;
    --grey: #2A2A2A;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor - Desktop Only */
@media (min-width: 769px) {
    body {
        cursor: none;
    }
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.15s ease, background 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
}

.cursor.hover {
    transform: scale(2.5);
    background: var(--gold);
    mix-blend-mode: normal;
}

@media (max-width: 768px) {
    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* Grain Overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   Loading Screen
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 10vw, 10rem);
    letter-spacing: 1.5rem;
    color: var(--gold);
    display: flex;
}

.loader-text span {
    display: inline-block;
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(100%);
}

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

.loader-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-top: 2rem;
    animation: expandLine 2s ease forwards 0.8s;
}

@keyframes expandLine {
    to {
        width: 300px;
    }
}

.loader-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: rgba(201, 169, 98, 0.5);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ============================================
   Navigation
   ============================================ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: normal;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 98, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at center, var(--grey) 0%, var(--black) 70%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    opacity: 0.4;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh);
        opacity: 0;
    }
    5% {
        opacity: 0.4;
    }
    95% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 2rem;
}

.hero-subtitle {
    font-size: clamp(0.7rem, 1.5vw, 1rem);
    letter-spacing: 0.8rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.5s;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 0.95;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2.7s;
}

.hero-title .highlight {
    font-style: italic;
    color: var(--gold);
    display: block;
}

.hero-cta {
    margin-top: 4rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3s;
}

.cta-btn {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: 1.2rem 3.5rem;
    border: 1px solid var(--gold);
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    display: inline-block;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-btn:hover {
    color: var(--black);
}

.cta-btn:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 3.5s;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    color: var(--gold);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

/* ============================================
   Marquee Section
   ============================================ */
.marquee-section {
    padding: 3rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(201, 169, 98, 0.1);
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    flex-shrink: 0;
    padding: 0 3rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 7vw, 6rem);
    color: transparent;
    -webkit-text-stroke: 1px var(--gold);
    opacity: 0.25;
    white-space: nowrap;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery-section {
    padding: 8rem 0 12rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
    padding: 0 2rem;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 0 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
}

/* Car Card */
.car-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.6s var(--transition);
}

.car-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.car-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/11;
    background: linear-gradient(135deg, var(--grey) 0%, var(--black-light) 100%);
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--transition), filter 0.5s ease;
}

.car-card:hover .car-image {
    transform: scale(1.2);
    filter: brightness(0.6);
}

.car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 20%, rgba(10, 10, 10, 0.95) 100%);
    pointer-events: none;
}

.car-number {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.2;
    line-height: 1;
    transition: all 0.4s ease;
}

.car-card:hover .car-number {
    opacity: 0.6;
    transform: scale(1.1);
}

.car-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    font-size: 0.65rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    border-radius: 2px;
    font-weight: 600;
}

.car-status.available {
    background: var(--gold);
    color: var(--black);
}

.car-status.sold {
    background: #8B0000;
    color: var(--white);
}

.car-status.reserved {
    background: #4A4A4A;
    color: var(--white);
}

.car-info {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
}

.car-brand {
    font-size: 0.7rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.car-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    transition: transform 0.4s ease;
}

.car-card:hover .car-name {
    transform: translateX(10px);
}

.car-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.car-specs {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 0.1s;
}

.car-card:hover .car-specs {
    opacity: 1;
    transform: translateY(0);
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.6rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
}

.spec-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
}

/* View Button */
.view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--black);
    font-weight: 600;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

.car-card:hover .view-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* No Cars Message */
.no-cars-message {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.no-cars-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

/* ============================================
   Modal
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: fixed;
    top: 2rem;
    right: 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--gold);
    background: transparent;
    border: 1px solid var(--gold);
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease;
    z-index: 5001;
}

.modal-close:hover {
    background: var(--gold);
    color: var(--black);
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s ease 0.2s, opacity 0.6s ease 0.2s;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 900px) {
    .modal-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .modal-close {
        top: 1rem;
        right: 1.5rem;
    }
}

.modal-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;
}

.modal.active .modal-image {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.modal-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.modal-status {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.modal-status.available {
    background: var(--gold);
    color: var(--black);
}

.modal-status.sold {
    background: #8B0000;
    color: var(--white);
}

.modal-status.reserved {
    background: #4A4A4A;
    color: var(--white);
}

.modal-brand {
    font-size: 0.85rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.modal-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    border-bottom: 1px solid rgba(201, 169, 98, 0.2);
    margin-bottom: 2rem;
}

.modal-spec {
    display: flex;
    flex-direction: column;
}

.modal-spec-label {
    font-size: 0.65rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

.modal-spec-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
}

.modal-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    transition: all 0.3s ease;
}

.modal-contact a:hover {
    background: var(--gold);
    color: var(--black);
}

.modal-contact a.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.modal-contact a.whatsapp:hover {
    background: #128C7E;
    border-color: #128C7E;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-section{
    padding: 8rem 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6rem;

    width: fit-content;     /* 🔥 bu asıl fix */
    margin: 0 auto;         /* 🔥 komple ortalar */
}

@media (max-width: 900px){
    .stats-section{
        grid-template-columns: 1fr;
        width: 100%;
        padding: 5rem 2rem;
        gap: 2rem;
    }
}


/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    padding: 8rem 4rem;
    background: var(--black-light);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-section {
        padding: 5rem 2rem;
    }
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
}

.contact-item span {
    color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 5rem 4rem;
    border-top: 1px solid rgba(201, 169, 98, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.5rem;
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 169, 98, 0.1);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    footer {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Loading States
   ============================================ */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 2px solid rgba(201, 169, 98, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Gallery arrows */
.gallery-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,0.9);
    color:#000;
    border:none;
    width:44px;
    height:44px;
    border-radius:50%;
    font-size:24px;
    cursor:pointer;
    z-index:20;
}
.gallery-arrow.left{ left:16px; }
.gallery-arrow.right{ right:16px; }
.gallery-arrow:hover{ background:#fff; }
