/* 
   FiberLoop - Modern Industrial Recycling Theme
   Fonts: Oswald (Headings), Inter (Body)
*/

:root {
    /* Color Variables */
    --color-dark-grey: #1a1a1a;
    --color-khaki-green: #66b032;
    /* Canlı Endüstriyel Fıstık Yeşili */
    --color-metallic-grey: #8c8c8c;
    --color-light-grey: #e0e0e0;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Overlay */
    --overlay-dark: rgba(0, 0, 0, 0.6);

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-light-grey);
    background-color: var(--color-dark-grey);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: 1px;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-khaki-green);
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    /* Köşeleri yumuşat */
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-khaki-green);
    border: 2px solid var(--color-khaki-green);
    color: var(--color-black);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #445925;
    border-color: #445925;
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-khaki-green);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #6b8c3e;
    /* Lighter shade */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(85, 107, 47, 0.4);
}

/* Header & Navbar (Glassmorphism) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--color-khaki-green);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    background-color: #2c2c2c;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: -1;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-content .text-highlight {
    display: inline-block;
    transform: translateY(10px);
    color: var(--color-white);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--color-light-grey);
}

/* Products Section (Bento Grid) */
.products {
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.products-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    background-color: #2c2c2c;
}

.products-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: -1;
}

.bento-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: 180px;
    gap: 1.5rem;
}

.card {
    background-color: #252525;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-fast);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--color-khaki-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: var(--transition-fast);
    z-index: 1;
}

.card:hover .card-img {
    transform: scale(1.05);
    opacity: 0.4;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.card-large {
    grid-column: 1 / 2;
    grid-row: span 2;
}

.card-small {
    grid-column: 2 / 3;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-khaki-green);
}

/* Process Section */
.process {
    position: relative;
    overflow: hidden;
    background-color: transparent;
}

.process-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.process-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: -1;
}

.process-steps {
    display: flex;
    justify-content: center;
    align-items: stretch;
    text-align: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    min-width: 300px;
    padding: 3rem 2rem;

    /* Glassmorphism Card Style */
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.step:hover {
    transform: translateY(-10px);
    border-color: var(--color-khaki-green);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.step-icon {
    margin-bottom: 2rem;
    color: var(--color-khaki-green);

    /* Circle & Glow Base */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(102, 176, 50, 0.1);
    border: 1px solid rgba(102, 176, 50, 0.3);
    box-shadow: 0 0 20px rgba(102, 176, 50, 0.2);
    transition: var(--transition-fast);
}

.step-icon i,
.step-icon svg {
    width: 40px !important;
    height: 40px !important;
}

.step:hover .step-icon {
    background: var(--color-khaki-green);
    color: var(--color-black);
    box-shadow: 0 0 30px rgba(102, 176, 50, 0.6);
    transform: scale(1.1);

}

.step h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Interactive Process Step */
#step-collection,
#step-processing,
#step-production {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

#step-collection:hover,
#step-processing:hover,
#step-production:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 176, 50, 0.2);
    border: 1px solid var(--color-khaki-green);
    background-color: rgba(255, 255, 255, 0.05);
    /* Slight highlight */
}

.step-arrow {
    font-size: 3rem;
    color: var(--color-metallic-grey);
    opacity: 0.5;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(26, 26, 26, 0.95);
    /* Darker theme bg */
    backdrop-filter: blur(8px);
    /* Blur effect */
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.nav-active {
    opacity: 1;
    /* We will toggle this class with JS or just use display + animation */
}

/* Modal Content Animation */
/* Modal Content Container */
.modal-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    /* Image wider than text */
    gap: 2rem;
    max-width: 1000px;
    width: 90%;
    margin: auto;
    align-items: center;
    position: relative;
    /* Optional: Container styling */
}

/* Modal Content Animation */
@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-image-col {
    animation: zoomIn 0.4s ease forwards;
}

.image-modal-content {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(102, 176, 50, 0.15);
    border: 1px solid rgba(102, 176, 50, 0.3);
}

.modal-info-col {
    color: var(--color-white);
    animation: zoomIn 0.5s ease forwards;
    /* Slight delay feel */
}

.modal-info-col h3 {
    font-size: 2.5rem;
    color: var(--color-khaki-green);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-family: 'Oswald', sans-serif;
}

.modal-info-col p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 2rem;
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--color-khaki-green);
    font-size: 50px;
    font-weight: 300;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2050;
    /* Above everything */
    line-height: 1;
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        overflow-y: auto;
        /* Scrollable on mobile if tall */
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .modal-image-col {
        width: 100%;
    }

    .image-modal-content {
        max-height: 60vh;
    }

    .modal-info-col {
        padding: 0 1rem 2rem;
    }
}

.modal-close:hover,
.modal-close:focus {
    color: var(--color-white);
    transform: rotate(90deg);
}

/* Footer */
.footer {
    background-color: #111;
    padding: 1rem 0 2rem;
    border-top: 3px solid var(--color-khaki-green);
    /* Visual Separator */
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    /* 4 Columns */
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-metallic-grey);
    /* Heading Color */
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* Brand Column */
.footer-brand h2 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.slogan {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.contact-item i {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: var(--color-khaki-green);
}

.contact-item a:hover {
    color: var(--color-khaki-green);
}

/* Social Media */
.social-media {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.social-media a i {
    width: 20px;
    height: 20px;
}

.social-media a:hover {
    background-color: var(--color-khaki-green);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 176, 50, 0.4);
}

/* Footer Links */
.footer-links-list li {
    margin-bottom: 0.8rem;
}

.footer-links-list a {
    color: #ccc;
    /* Off-white */
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--color-khaki-green);
    padding-left: 5px;
    /* Slight nudge effect */
}

/* Newsletter */
.newsletter-col p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border-radius: 4px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.newsletter-form input:focus {
    border-color: var(--color-khaki-green);
}

.newsletter-form button {
    background-color: var(--color-khaki-green);
    border: none;
    color: var(--color-black);
    padding: 0 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background-color: #7ccd4e;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 2rem;
    }

    .footer-brand h2 {
        font-size: 1.8rem;
    }
}

/* Mobil / Responsive */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 4rem;
    }

    /* Bento Grid Mobile Override */
    .bento-grid {
        display: flex;
        /* Stack vertically for safety */
        flex-direction: column;
        gap: 2rem;
    }

    .contact-btn {
        display: none;
    }

    .card-large {
        grid-column: 1;
        grid-row: auto;
        height: 280px;
    }

    .card-small {
        grid-column: 1;
        height: 180px;
    }

    .step-arrow {
        display: none;
    }

    /* Mobil Menu Adjustments */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: -100%;
        /* Hidden offscreen */
        background-color: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        letter-spacing: 1px;
    }

    .nav-links.active {
        right: 0;
    }

    /* Hamburger Animation */
    .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);
    }

    .page-header h1 {
        font-size: 1.8rem !important;
        /* Override inline styles if present, or better remove inline */
        margin-top: 4rem !important;
    }
}