:root {
    --primary: #059669; /* Zümrüt Yeşili */
    --primary-dark: #065f46;
    --accent: #34d399; /* Parlak Nane */
    --surface: #ffffff;
    --text-main: #111827;
    --text-muted: #4b5563;
    --gradient-bg: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 40px -10px rgba(5, 150, 105, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(5, 150, 105, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn {
    font-family: 'Outfit', sans-serif;
}

/* --- Animated Background Mesh --- */
.mesh-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #f0fdf4;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBlob 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #bbf7d0; animation-delay: 0s; }
.blob-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: #86efac; animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: #6ee7b7; animation-delay: -10s; }

@keyframes floatBlob {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 50px) rotate(20deg); }
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #34d399, #059669);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.3);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    color: var(--primary);
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.1);
}

.btn-outline:hover {
    background: rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Hero Visual: Morphing Blob */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.liquid-container {
    width: 450px;
    height: 450px;
    position: relative;
}

.liquid-blob {
    width: 100%;
    height: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(5, 150, 105, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.8);
    animation: morph 8s linear infinite;
    z-index: 10;
    background: #000;
}

.liquid-blob video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* Floating badges */
.float-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    animation: floatIcon 6s ease-in-out infinite;
}

.badge-top-right { top: 10%; right: -20px; animation-delay: 0s; }
.badge-bottom-left { bottom: 15%; left: -30px; animation-delay: 2s; }

.float-badge i { font-size: 1.5rem; }
.float-badge div strong { display: block; font-size: 0.9rem; color: var(--text-main); }
.float-badge div span { font-size: 0.8rem; color: var(--primary); font-weight: 600; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Features Section with Cards --- */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-hover);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    transition: transform 0.4s ease;
}

.glass-card:hover .icon-box {
    transform: rotate(15deg) scale(1.1);
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.glass-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Stats Section (Dark Mode Block) --- */
.stats-section {
    background: transparent;
    color: var(--text-main);
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stats-section::before {
    display: none;
}

.stats-section h2 {
    color: var(--primary-dark);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.stats-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Live Plastic Tracker --- */
.live-tracker-section {
    background: white;
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.live-tracker-container {
    max-width: 1200px;
    margin: 0 auto;
}

.live-tracker-header {
    text-align: center;
    margin-bottom: 3rem;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #dc2626;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.live-badge .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc2626;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.live-tracker-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.live-tracker-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.tracker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tracker-card {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 1px solid #d1fae5;
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tracker-card.danger {
    background: linear-gradient(135deg, #fef2f2, #fff5f5);
    border-color: #fecaca;
}

.tracker-card .tracker-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tracker-card .tracker-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tracker-card .tracker-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.tracker-card.danger .tracker-value {
    color: #dc2626;
}

.tracker-card:not(.danger) .tracker-value {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tracker-card .tracker-unit {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tracker-card .tracker-sub {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

.tracker-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tracker-mini-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.tracker-mini-card .mini-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.tracker-mini-card .mini-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tracker-source {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.tracker-source a {
    color: var(--primary);
    text-decoration: none;
}

.tracker-source a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tracker-grid {
        grid-template-columns: 1fr;
    }
    .tracker-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .tracker-card .tracker-value {
        font-size: 2.2rem;
    }
    .live-tracker-header h2 {
        font-size: 2rem;
    }
}

/* --- Stores Section --- */
.stores-section {
    background: white;
    position: relative;
    z-index: 1;
    padding: 0 !important;
}

.map-container {
    width: 100%;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.wave-over-map {
    position: relative;
    z-index: 2;
    height: 100px;
    overflow: hidden;
    margin-bottom: -100px;
}

.wave-under-map {
    position: relative;
    z-index: 2;
    height: 100px;
    overflow: hidden;
    margin-top: -100px;
}

#storeMap {
    width: 100%;
    height: 100%;
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.leaflet-popup-content {
    margin: 1.25rem 1.5rem;
    font-family: 'Inter', sans-serif;
    min-width: 260px;
}

.store-popup h3 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.store-popup .store-manager {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.store-popup .store-code {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    display: block;
}

.store-popup .store-address {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.store-popup .product-list {
    margin: 0.75rem 0 1rem;
    padding: 0;
    list-style: none;
}

.store-popup .product-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.88rem;
}

.store-popup .product-item:last-child {
    border-bottom: none;
}

.store-popup .product-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}

.store-popup .product-dot.green { background: #22C55E; }
.store-popup .product-dot.orange { background: #F97316; }
.store-popup .product-dot.red { background: #EF4444; }

.store-popup .product-name {
    flex: 1;
    color: #374151;
}

.store-popup .product-status {
    font-size: 0.75rem;
    font-weight: 500;
}

.store-popup .product-status.green { color: #166534; }
.store-popup .product-status.orange { color: #c2410c; }
.store-popup .product-status.red { color: #dc2626; }

.store-popup p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.store-popup strong {
    color: var(--text-main);
}

@media (max-width: 968px) {
    .map-container {
        height: 60vh;
        min-height: 400px;
    }
}

/* --- Footer --- */
.footer {
    padding: 4rem 0 3rem;
    background: white;
    border-top: none;
    margin-top: 0;
    position: relative;
}

.footer::before {
    display: none;
}

/* --- Responsive --- */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-visual { height: 400px; }
    .hero-text h1 { font-size: 3rem; }
    .liquid-container { width: 350px; height: 350px; margin: 0 auto; }
    .nav-container { padding: 0.75rem 1.5rem; flex-direction: column; gap: 1rem; }
    .nav-menu { display: none; }
    .logo img { height: 40px; }
    .logo-text { font-size: 1.1rem; }
    .nav-links { gap: 0.5rem; }
    .btn { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .footer { padding: 4rem 0 2rem; }
}

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
