/* Yonca Kalıp - Green Manufacturing Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-primary: #2E8B57;
    /* Sea Green */
    --color-secondary: #87CEEB;
    /* Sky Blue */
    --color-cta: #FFD700;
    /* Gold */
    --color-cta-hover: #FDB813;
    --color-background: #F0FFF4;
    /* Mint */
    --color-surface: #FFFFFF;
    --color-text: #1A3320;
    /* Dark Green/Black */
    --color-text-muted: #4A6350;
    --color-border: #C6F6D5;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(46, 139, 87, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(46, 139, 87, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(46, 139, 87, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(46, 139, 87, 0.15);
    /* Slightly stronger for hero */
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section-padding {
    padding: var(--space-3xl) 0;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-cta);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-cta);
    color: #1A3320;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header */
.navbar {
    padding: var(--space-md) 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, #F0FFF4 0%, #FFFFFF 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

/* Feature Grid (Services) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-xl);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--color-primary);
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

/* Showcase / About */
.showcase-section {
    background: var(--color-primary);
    color: white;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.showcase-text h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.showcase-text p {
    color: #E6FFFA;
    margin-bottom: var(--space-lg);
}

.stat-row {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.stat h4 {
    color: var(--color-cta);
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #1A3320;
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer a:hover {
    color: var(--color-cta);
}

/* Animations (Generic) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blow Molding Animation */
.mold-animation-container {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 0 auto;
    background: #E2E8F0;
    /* Mold Color */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid #CBD5E0;
}

/* The Mold Halves (Visual overlap) */
.mold-animation-container::before,
.mold-animation-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mold-animation-container::before {
    left: 0;
    border-right: 1px solid #A0AEC0;
}

.mold-animation-container::after {
    right: 0;
}

/* The Plastic Parison (Preform) */
.parison {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, #FFD700 0%, #FDB813 100%);
    /* Gold/Plastic Color */
    border-radius: 0 0 20px 20px;
    animation: blowMold 4s infinite ease-in-out;
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Animation Keyframes */
@keyframes blowMold {
    0% {
        width: 30px;
        height: 150px;
        border-radius: 0 0 15px 15px;
        top: 0;
    }

    20% {
        width: 30px;
        height: 300px;
        /* Extrusion */
        top: 20px;
    }

    40% {
        width: 30px;
        height: 300px;
        transform: translateX(-50%) scale(1);
    }

    60% {
        /* Bottle Shape: Wider with clear shoulders */
        width: 220px;
        height: 300px;
        border-radius: 50px 50px 20px 20px;
        background: rgba(255, 215, 0, 0.8);
    }

    80% {
        /* Cooling */
        width: 220px;
        height: 300px;
        border-radius: 50px 50px 20px 20px;
        background: rgba(255, 215, 0, 1);
    }

    100% {
        /* Reset */
        width: 30px;
        height: 150px;
        border-radius: 0 0 15px 15px;
        background: linear-gradient(90deg, #FFD700 0%, #FDB813 100%);
        top: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .hero-content,
    .showcase-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stat-row {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }
}