/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Preloader Stil */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3b3f5c;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Three.js Container */
#three-container {
    width: 200px;
    height: 200px;
}


/* Header */
header {
    background: linear-gradient(135deg, #3b3f5c, #1e2235);
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 500;
}

header .logo img {
    max-height: 50px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffd700;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #3b3f5c;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #555;
    }

    .nav-links.show {
        display: flex;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-20px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Hero Section */
.hero {
    background: url('../gorseller/hero.jpg') no-repeat center center/cover;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.feature-box {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    width: 100%;           /* Konteynerin genişliğini kaplar */
    height: 300px;         /* Sabit bir yükseklik belirler */
    object-fit: cover;     /* Resmi orantılı şekilde kırpar ve konteynere sığdırır */
    border-radius: 10px;   /* Köşeleri yuvarlatır (isteğe bağlı) */
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    background: #1e2235;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin-top: auto; /* Footer'覺 en alta itmek i癟in */
}

/* Scroll-to-Top Button */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: calc(50% - 32px);
    background: #ffd700;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    display: none;
}

.scroll-top img {
    width: 24px;
    height: 24px;
}

.scroll-top.show {
    display: block;
}

.scroll-top:hover {
    background: #ffca28;
    transform: translateY(-5px);
}
