/* 
 * Premium Özel Oto Servis - CSS Stylesheet
 * Theme: Dark German Sport & Luxury (Anthracite, Matte Black, Crimson Accents)
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #121418;
    --bg-card: rgba(22, 26, 33, 0.65);
    --accent-color: #e50914; /* VAG Racing Crimson Red */
    --accent-hover: #b80710;
    --accent-glow: rgba(229, 9, 20, 0.15);
    --text-main: #f5f6f8;
    --text-muted: #8e95a5;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(229, 9, 20, 0.4);
    --card-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(12px);
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--bg-secondary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--border-color);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-maps {
    background-color: #4285f4;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
}

.btn-maps:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(10, 11, 13, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition-smooth);
}

header.scrolled .nav-wrapper {
    height: 65px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-link img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

header.scrolled .logo-link img {
    height: 38px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 11, 13, 0.92) 30%, rgba(10, 11, 13, 0.6) 70%, rgba(10, 11, 13, 0.3) 100%),
                linear-gradient(to top, rgba(10, 11, 13, 1) 0%, rgba(10, 11, 13, 0) 20%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding-top: 80px;
}

.hero-tagline {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: var(--accent-color);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.brand-card {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.brand-logo-container {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.brand-logo-container img {
    max-height: 60px;
    width: auto;
    filter: brightness(0.9) grayscale(100%);
    transition: var(--transition-smooth);
}

.brand-card:hover .brand-logo-container img {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.08);
}

.brand-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.service-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: #121418;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 20, 24, 0.9) 0%, rgba(18, 20, 24, 0) 60%);
}

.service-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.service-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

/* Gallery Section */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 11, 13, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

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

.gallery-overlay h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.gallery-overlay p {
    font-size: 0.8rem;
    color: var(--text-muted);
    transform: translateY(15px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 13, 0.97);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    margin-top: 16px;
    text-align: center;
}

.lightbox-caption h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.lightbox-caption p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/* Appointment Section */
.appointment-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: start;
}

.appointment-info h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.appointment-info h2 span {
    color: var(--accent-color);
}

.appointment-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-item {
    display: flex;
    gap: 16px;
    padding: 20px;
}

.info-card-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: rgba(229, 9, 20, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-text h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Sleek Form */
.appointment-form-panel {
    padding: 40px;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-left: 4px solid var(--accent-color);
    padding-left: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-control {
    background-color: rgba(10, 11, 13, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238e95a5' d='M10.293,3.293,6,7.586,1.707,3.293A1,1,0,0,0,.293,4.707l5,5a1,1,0,0,0,1.414,0l5-5a1,1,0,1,0-1.414-1.414Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-feedback {
    display: none;
    padding: 16px;
    border-radius: 4px;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 550;
}

.form-feedback.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.15);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

.form-feedback.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.15);
    border: 1px solid #e74c3c;
    color: #e74c3c;
}

/* Contact & Info Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.map-container {
    height: 100%;
    min-height: 380px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: invert(90%) hue-rotate(180deg) grayscale(80%) contrast(90%);
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
}

.contact-icon {
    font-size: 1.3rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-text h5 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.contact-text p,
.contact-text a {
    font-size: 1.05rem;
    color: #ffffff;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--accent-color);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Footer Section */
footer {
    background-color: #050608;
    padding: 60px 0 120px 0; /* extra padding at bottom for mobile menu bar */
    border-top: 1px solid var(--border-color);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile Fixed Action Bar */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: none;
    grid-template-columns: repeat(3, 1fr);
}

.action-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    gap: 4px;
    transition: var(--transition-smooth);
}

.action-bar-btn i {
    font-size: 1.25rem;
}

.action-bar-btn.call {
    background-color: var(--accent-color);
}

.action-bar-btn.whatsapp {
    background-color: #25d366;
}

.action-bar-btn.maps {
    background-color: #121418;
}

.action-bar-btn:active {
    filter: brightness(0.9);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .appointment-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        min-height: 300px;
        order: 2;
    }
    
    .contact-details {
        order: 1;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        gap: 40px;
        transition: var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    
    header.scrolled .nav-links {
        top: 65px;
        height: calc(100vh - 65px);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
    
    .appointment-form-panel {
        padding: 24px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .mobile-action-bar {
        display: grid;
    }
}

@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}
