/* TMT Grup Ambalaj - Custom Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #d32f2f; /* Logo Red */
    --primary-hover: #b71c1c;
    --primary-light: #ffebee;
    --secondary: #1b3f8b; /* Logo Blue */
    --secondary-hover: #15306b;
    --secondary-light: #e8eaf6;
    --dark: #0f172a; /* Slate 900 */
    --light: #f8fafc; /* Slate 50 */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', sans-serif;
    --max-width: 1200px;
}


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

body {
    font-family: var(--font);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 0.5em;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-600);
    padding: 8px 0;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

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

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

.cta-btn {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.cta-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #fef3c7 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Hero Products Stack */
.hero-products-stack {
    position: relative;
    width: 100%;
    height: 520px;
    margin-top: 20px;
}

/* 1. KATMAN: Konumlandırma ve İtme Efekti */
.stack-item {
    position: absolute;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.item-bag { width: 260px; bottom: 270px; left: 2%; z-index: 1; }
.item-cargo { width: 280px; bottom: 240px; right: 1%; z-index: 1; }
.item-pizza { width: 320px; bottom: 90px; left: 10%; z-index: 2; }
.item-burger { width: 240px; bottom: 80px; right: 8%; z-index: 3; }

/* 2. KATMAN: Bağımsız Süzülme Animasyonları */
.float-wrapper {
    width: 100%;
    height: 100%;
}
.float-bag { animation: floatBag 6s ease-in-out infinite; }
.float-cargo { animation: floatCargo 7s ease-in-out infinite; }
.float-pizza { animation: floatPizza 5s ease-in-out infinite; }
.float-burger { animation: floatBurger 5.5s ease-in-out infinite; }

/* Süzülme Keyframeleri */
@keyframes floatBag {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-10px) rotate(-4deg); }
}
@keyframes floatCargo {
    0%, 100% { transform: translateY(0) rotate(6deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}
@keyframes floatPizza {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-12px) rotate(-8deg); }
}
@keyframes floatBurger {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-9px) rotate(6deg); }
}

/* 3. KATMAN: Hover Zoom ve Öne Çıkma */
.stack-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
    filter: drop-shadow(0 15px 20px rgba(15, 23, 42, 0.08));
}

.stack-item:hover {
    z-index: 10 !important;
}

.stack-item:hover img {
    transform: scale(1.18);
    filter: drop-shadow(0 25px 35px rgba(15, 23, 42, 0.22));
}

/* Hover Sırasında Salınımı Duraklatma */
.stack-item:hover .float-wrapper {
    animation-play-state: paused;
}

/* KOMŞU İTME EFEKTİ (PURE CSS :HAS) */
.hero-products-stack:has(.item-bag:hover) .item-cargo { transform: translate(35px, -15px) rotate(8deg) scale(0.92); }
.hero-products-stack:has(.item-bag:hover) .item-pizza { transform: translate(-25px, 15px) rotate(-12deg) scale(0.92); }
.hero-products-stack:has(.item-bag:hover) .item-burger { transform: translate(15px, 20px) rotate(10deg) scale(0.92); }

.hero-products-stack:has(.item-cargo:hover) .item-bag { transform: translate(-35px, -15px) rotate(-8deg) scale(0.92); }
.hero-products-stack:has(.item-cargo:hover) .item-pizza { transform: translate(-15px, 15px) rotate(-12deg) scale(0.92); }
.hero-products-stack:has(.item-cargo:hover) .item-burger { transform: translate(25px, 20px) rotate(10deg) scale(0.92); }

.hero-products-stack:has(.item-pizza:hover) .item-bag { transform: translate(-25px, -20px) rotate(-8deg) scale(0.92); }
.hero-products-stack:has(.item-pizza:hover) .item-cargo { transform: translate(25px, -15px) rotate(8deg) scale(0.92); }
.hero-products-stack:has(.item-pizza:hover) .item-burger { transform: translate(15px, 25px) rotate(10deg) scale(0.92); }

.hero-products-stack:has(.item-burger:hover) .item-bag { transform: translate(-15px, -25px) rotate(-8deg) scale(0.92); }
.hero-products-stack:has(.item-burger:hover) .item-cargo { transform: translate(30px, -15px) rotate(8deg) scale(0.92); }
.hero-products-stack:has(.item-burger:hover) .item-pizza { transform: translate(-25px, 15px) rotate(-12deg) scale(0.92); }

/* Categories Section */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--gray-600);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: scaleY(1);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    aspect-ratio: 4/3;
    background-color: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.product-name {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-100);
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
    border-top: 1px solid var(--gray-800);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin-top: 40px;
        min-height: 300px;
    }
    .hero-products-stack {
        height: 380px;
    }
    .item-bag { width: 160px; bottom: 200px; left: 5%; }
    .item-cargo { width: 180px; bottom: 180px; right: 4%; }
    .item-pizza { width: 200px; bottom: 80px; left: 12%; }
    .item-burger { width: 150px; bottom: 70px; right: 10%; }
}

@media (max-width: 768px) {
    .hero {
        padding: 35px 0 15px 0 !important;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-btns {
        justify-content: center;
    }
    .hero-image-wrapper {
        margin-top: 15px !important;
        min-height: auto !important;
    }
    .hero-products-stack {
        margin-top: 0 !important;
    }
    #main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 25px 0 10px 0 !important;
    }
    .hero-image-wrapper {
        margin-top: 10px !important;
    }
    .hero-products-stack {
        height: 290px;
    }
    .item-bag { width: 145px; bottom: 110px; left: 8%; }
    .item-cargo { width: 160px; bottom: 90px; right: 6%; }
    .item-pizza { width: 175px; bottom: 20px; left: 14%; }
    .item-burger { width: 125px; bottom: 15px; right: 12%; }
}

/* Brand Marquee (CSS-based smooth infinite loop) */
.brand-marquee {
    overflow: hidden;
    width: 100%;
    display: flex;
    pointer-events: none; /* Prevents any mouse click/drag/touch from freezing or affecting the animation */
}

.brand-marquee-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    will-change: transform; /* Hint to browser to use GPU acceleration */
}

.brand-logo-item {
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-sizing: border-box;
    flex-shrink: 0;
}

.brand-logo-item img {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

@keyframes marquee-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Loop seamlessly back to start */
    }
}

/* Products Page Responsive Layout */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

/* Product Detail & Info Page Responsive Grids */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 60px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .products-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .sidebar-sticky {
        position: static !important;
        margin-bottom: 20px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Contact Page Responsive Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Navigation classes */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--gray-200);
    width: 45px;
    height: 45px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--dark);
    font-size: 1.25rem;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background-color: var(--gray-50);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px; /* Right below the header */
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: 20px;
    box-sizing: border-box;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.mobile-menu ul li a {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu ul li a.active,
.mobile-menu ul li a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .cta-btn span {
        display: none;
    }
    .cta-btn {
        padding: 10px 12px !important;
        font-size: 1.25rem !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    .mobile-menu-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }
}

/* Page Header banner styles */
.page-header {
    padding: 65px 0;
}

.products-section {
    padding-top: 80px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 35px 0;
    }
    
    .products-section {
        padding-top: 20px !important;
    }
}

/* Stretched Link Utility */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}
