﻿/* === DEĞİŞKENLER === */
:root {
    --primary-color: #007BFF;
    --secondary-color: #495057;
    --accent-color: #FF9900;
    --background-color: #F7F7F7;
    --text-color: #333333;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* === TEMEL STİLLER === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Navbar + top-info-bar yüksekliği */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ÜST BİLGİ ÇUBUĞU === */
.top-info-bar {
    background-color: #2c3e50;
    color: white;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #34495e;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001; /* Navbar'dan daha yüksek */
}

.top-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

    .top-info-content .company-name {
        font-weight: 600;
    }

    .top-info-content .phone-number {
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .top-info-content .phone-number i {
            font-size: 12px;
        }

/* === NAVBAR === */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 40px; /* top-info-bar yüksekliği kadar aşağıda */
    z-index: 1000;
    transition: var(--transition);
}

    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* MOBİL MENÜ BUTONU */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

    .mobile-menu-btn span {
        width: 25px;
        height: 3px;
        background: var(--text-color);
        margin: 3px 0;
        transition: var(--transition);
        border-radius: 2px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

    .nav-link:hover {
        color: var(--primary-color);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: var(--transition);
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* === DROPDOWN MENÜ === */
.nav-dropdown {
    position: relative;
}

    .nav-dropdown .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        border-radius: 8px;
        min-width: 230px;
        padding: 10px 0;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(5px);
    }

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

    .dropdown-item:hover {
        background: #f8f9fa;
        border-left-color: var(--primary-color);
        padding-left: 25px;
    }

/* === HERO SECTION === */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--background-color) 100%);
    margin-top: -80px; /* Body padding'i compensate etmek için */
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    animation: parallax 20s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes parallax {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* === BUTONLAR === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    transform: translateY(0);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

/* === ÜRÜN KARTLARI === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

    .product-card:hover {
        top: -3px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-description {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
    color: var(--white);
    padding: 4rem 0 0;
    margin-top: auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.footer-description {
    line-height: 1.6;
    opacity: 0.9;
    font-size: 1rem;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-icon {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-item span {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.contact-item:hover span {
    opacity: 1;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

    .link-group h4::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 0;
        width: 30px;
        height: 2px;
        background: var(--accent-color);
    }

.link-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-group li {
    margin-bottom: 0.8rem;
}

.link-group a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

    .link-group a::before {
        content: '›';
        position: absolute;
        left: -1rem;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .link-group a:hover {
        color: var(--white);
        padding-left: 1rem;
    }

        .link-group a:hover::before {
            opacity: 1;
            left: 0;
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .badge:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }


/* ============================================
   RESPONSIVE PACK
   Navbar – Hero – Products – Footer
   ============================================ */


/* ===================== TABLET (max 991px) ===================== */
@media (max-width: 991px) {

    /* Top info bar */
    .top-info-content {
        justify-content: center;
        gap: 0.7rem;
        text-align: center;
    }

    /* NAVBAR */
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Menü açılınca görünür olacak (JS ile active class eklenecek) */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1.5rem 0;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    /* Dropdown menü içe gömülü görünsün */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding-left: 1.5rem;
    }

    /* HERO */
    .hero {
        height: auto;
        padding: 6rem 0 4rem;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* ÜRÜNLER GRID */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .product-image {
        height: 170px;
    }

    /* FOOTER */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}


/* ===================== MOBİL (max 576px) ===================== */
@media (max-width: 576px) {

    /* Top Info */
    .top-info-content {
        flex-direction: column;
        line-height: 1.4;
    }

    /* NAVBAR */
    .navbar-container {
        padding: 0.7rem 0;
        margin-top:20px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-menu.active {
        padding: 1rem 0;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    /* HERO */
    .hero {
        padding: 5rem 0 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    /* ÜRÜNLER */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .product-image {
        height: 160px;
    }

    .product-title {
        font-size: 1.05rem;
    }

    .product-description {
        font-size: 0.9rem;
    }

    /* FOOTER */
    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .link-group a::before {
        display: none;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-badges {
        justify-content: center;
    }
}


/* ============== EXTRA SMALL (max 400px) ============== */
@media (max-width: 400px) {

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .product-image {
        height: 140px;
    }

    .footer-description {
        font-size: 0.9rem;
    }
}
