* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Ana sayfa için bulanık okyanus arka planı */
body.home-page {
    background-image: url('https://images.unsplash.com/photo-1505142468610-359e7d316be0?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body.home-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 138, 0.3);
    backdrop-filter: blur(5px);
    z-index: -1;
}

body.home-page main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(30, 58, 138, 0.95);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: opacity 0.3s, border-bottom 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    opacity: 0.9;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

.home-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.home-link:hover {
    opacity: 0.8;
}

main {
    padding: 40px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e40af;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination button {
    padding: 12px 20px;
    background: rgba(30, 58, 138, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.pagination button:hover {
    background: rgba(30, 58, 138, 1);
    transform: scale(1.05);
}

.pagination button.active {
    background: rgba(59, 130, 246, 1);
    font-weight: bold;
}

.pagination button:disabled {
    background: rgba(100, 100, 100, 0.5);
    cursor: not-allowed;
    transform: none;
}

.product-detail {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
}

.product-detail-info h2 {
    font-size: 2rem;
    color: #1e3a8a;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1e40af;
    margin-bottom: 20px;
}

.product-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(30, 58, 138, 0.9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    margin-top: 20px;
}

.back-button:hover {
    background: rgba(30, 58, 138, 1);
    transform: scale(1.05);
}

.page-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 30px;
    text-align: center;
}

.page-content h2 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-box {
    line-height: 1.8;
    color: #555;
}

.content-box ul {
    margin-left: 20px;
    margin-top: 15px;
}

.content-box li {
    margin-bottom: 10px;
}

.newsletter-form,
.contact-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.submit-button {
    padding: 12px 30px;
    background: rgba(30, 58, 138, 0.9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.submit-button:hover {
    background: rgba(30, 58, 138, 1);
    transform: scale(1.05);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    background: #e0e7ff;
    border-radius: 8px;
    display: none;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-item {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.contact-item h3 {
    color: #1e3a8a;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item p {
    color: #555;
    font-size: 1rem;
}

footer {
    background: rgba(30, 58, 138, 0.9);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .product-detail-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }

    .logo a {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .nav-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        gap: 10px;
        font-size: 0.85rem;
    }

    .logo a {
        font-size: 1.3rem;
    }
}
