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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    background-color: #e2e2e2;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    padding-top: 15px;
}

.logo img {
    max-height: 80px;
    margin-bottom: 12px;
    vertical-align: middle;
    width: auto;
    height: auto;
    max-width: 300px;
    object-fit: contain;
}

.logo h1 {
    color: #ff6b00;
    font-size: 1.4rem;
    line-height: 1;
    padding-bottom: 4px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-top: 6px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    padding: 0.4rem 1rem;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: #ff6b00;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.slide:nth-child(2) img,
.slide:nth-child(3) img {
    object-position: 30% center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Karartma efekti */
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: #ff6b00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid #ff6b00;
}

.cta-button:hover {
    background-color: transparent;
    border-color: #fff;
    transform: scale(1.05);
}

/* Brands Section */
.brands {
    padding: 5rem 5%;
    text-align: center;
}

.brand-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 2rem;
}

.brand-card {
    width: 350px;
    height: 400px;
    padding: 2rem;
    margin: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden; /* Taşan içeriği gizle */
}

/* KTM ve SYM için özel boyutlandırma */
.brand-card:first-child img,
.brand-card:last-child img {
    width: 220px; /* KTM ve SYM için daha küçük boyut */
    height: 220px;
}

.brand-card img {
    width: 280px; /* Husqvarna için orijinal boyut */
    height: 280px;
    object-fit: contain;
    margin-bottom: 1rem; /* Margin'i azalttık */
    padding: 10px; /* İç boşluk ekledik */
}

.brand-card h3 {
    font-size: 1.6rem; /* Başlık boyutunu küçülttük */
    margin: 0.5rem 0; /* Margin'i azalttık */
    font-weight: 600;
}

.brand-button {
    display: inline-block;
    padding: 0.8rem 1.8rem; /* Buton padding'ini azalttık */
    background-color: #ff6b00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 0.5rem; /* Margin'i azalttık */
    transition: background-color 0.3s ease;
    font-size: 1rem; /* Buton yazı boyutunu küçülttük */
}

.brand-button:hover {
    background-color: #e65100;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background-color: #f5f5f5;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    position: relative;
    overflow: hidden;
}

.contact-form button.loading {
    background-color: #ccc;
    pointer-events: none;
}

.contact-form button.loading::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    color: #fff;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* About Page Styles */
.about-page {
    padding-top: 120px; /* Navbar'ın altında başlaması için */
    padding-bottom: 5rem;
    background-color: #f9f9f9;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h2 {
    color: #ff6b00;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-text h3 {
    color: #333;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-text ul li:before {
    content: "•";
    color: #ff6b00;
    position: absolute;
    left: 0;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Active nav link style */
.nav-links li a.active {
    color: #ff6b00;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        padding: 0 1.5rem;
    }
    
    .about-container h1 {
        font-size: 2rem;
    }
    
    .about-text h2 {
        font-size: 1.8rem;
    }
}

/* About Hero Slider Styles */
.about-hero {
    height: 60vh;
    position: relative;
    overflow: hidden;
    margin-top: 100px;
}

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

/* İkinci slide için merkezi pozisyonlama */
.about-slide:nth-child(2) img {
    object-position: center center; /* Resmi tam merkeze aldık */
    object-fit: contain; /* Resmin tamamının görünmesini sağlar */
    background-color: #000; /* Arka plan rengi */
    padding: 20px; /* Resim etrafında boşluk */
}

/* Diğer resimler için varsayılan pozisyon */
.about-slide:nth-child(1) img,
.about-slide:nth-child(3) img {
    object-position: center center;
}

.about-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.about-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.about-dot.active {
    background-color: #fff;
}

/* Mobil görünüm için normal pozisyon */
@media (max-width: 768px) {
    .about-slide img {
        object-position: center center;
    }
}

/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: 0.4}
    to {opacity: 1}
}

/* Header link hover efekti */
.nav-links a {
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FF6B00 !important; /* Turuncu renk */
}

/* Pop-up Form Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.popup-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    display: none;
}

.popup-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.popup-form input,
.popup-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.popup-form textarea {
    height: 100px;
    resize: vertical;
}

.popup-form button {
    width: 100%;
    padding: 12px;
    background-color: #FF6B00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.popup-form button:hover {
    background-color: #E65100;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #FF6B00;
}