/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Inspired by professional paper brands */
    --primary: #2C3E50;
    --secondary: #82C277;
    --accent: #E74C3C;
    --accent-light: #FFD3C9;
    --white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-gray: #ECEFF1;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --text-light: #95A5A6;
    --border: #E0E4E8;

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-base: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --line-height-base: 1.7;
    --line-height-heading: 1.3;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.03);

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-dark);
    background: var(--white);
    line-height: var(--line-height-base);
    font-size: 16px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: var(--line-height-heading);
    font-weight: 600;
    color: var(--text-dark);
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    line-height: var(--line-height-base);
    color: var(--text-gray);
    font-size: 1rem;
}

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

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

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.75rem;
    color: var(--text-dark);
    margin-top: var(--space-xs);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #99ACE7, #FFD3C9, #82C277);
    border-radius: 2px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
}

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

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: var(--space-xs) 0;
    border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus {
    color: var(--accent);
    border-bottom-color: var(--accent);
    outline: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-light);
    padding: 3px;
    border-radius: 6px;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn:focus {
    background: var(--white);
    color: var(--text-dark);
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    z-index: 101;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-image {
    width: 100%;
    height: 50vh;
    background: url('Frame 97.png') center/contain no-repeat;
    position: relative;
    background-color: var(--bg-light);
}

.hero-content {
    background: var(--white);
    padding: 0;
    text-align: center;
    margin-top: 0;
    position: relative;
}

.hero-content .container {
    max-width: 900px;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    position: relative;
    z-index: 2;
}

.hero-decoration {
    position: relative;
    left: 0;
    width: 40%;
    max-width: 400px;
    height: auto;
    opacity: 0.8;
    animation: slideInFromLeft 1s ease-out;
    margin-top: 0;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .hero-decoration {
        margin-top: var(--space-md);
        width: 80%;
    }
}

@media (max-width: 480px) {
    .hero-decoration {
        margin-top: var(--space-sm);
        width: 100%;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.35rem;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 400;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.65rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: #82c377;
    color: var(--white);
    box-shadow: 0 4px 14px rgba(130, 195, 119, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: #6fb066;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(130, 195, 119, 0.4);
    outline: none;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.about-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 3rem;
    border-radius: 20px;
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #E74C3C;
    transition: height 0.4s ease;
}

.about-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(130, 195, 119, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.about-card:hover::before {
    height: 100%;
    opacity: 0.1;
}

.about-card:hover::after {
    opacity: 1;
}

.about-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #99ACE7, #FFD3C9, #82C277);
    border-radius: 2px;
}

.about-card p {
    color: var(--text-gray);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

/* ==========================================
   PRODUCTS SECTION
   ========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(130, 194, 119, 0.1), transparent);
    transition: height 0.4s ease;
}

.product-card:hover {
    border-color: var(--secondary);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.product-card:hover::after {
    height: 100%;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.product-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-md);
}

.btn-product {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.btn-product:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
}

/* ==========================================
   VALUES SECTION
   ========================================== */
.values-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
}

.values-grid::-webkit-scrollbar {
    height: 8px;
}

.values-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.values-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    transition: var(--transition);
}

.values-grid::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

.value-card {
    background: var(--white);
    padding: 2rem 1.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .value-card {
        width: 85vw;
    }
}

@media (max-width: 480px) {
    .value-card {
        width: 90vw;
    }
}

.value-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.value-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 600;
}

.value-card p {
    color: var(--text-gray);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-text {
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
    color: var(--text-gray);
    line-height: 1.8;
}

.contact .btn-primary {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: var(--space-sm);
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-copyright,
.footer-powered {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-powered a:hover {
    color: var(--accent);
}

/* ==========================================
   RESPONSIVE - MOBILE FIRST
   ========================================== */
@media (max-width: 768px) {
    .hero-image {
        height: 40vh;
        background-size: cover;
    }

    .hero-content {
        padding: var(--space-lg) 0;
    }

    .hero-content .container {
        padding-top: var(--space-md);
        padding-bottom: var(--space-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hamburger {
        display: block !important;
    }

    .nav {
        display: none;
        position: fixed;
        top: calc(var(--space-sm) * 2 + 50px);
        left: 0;
        right: 0;
        width: 100vw;
        background: var(--white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        z-index: 100;
        margin: 0;
    }

    .nav.active {
        display: flex !important;
    }

    .header-content {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        order: 1;
        flex: 1;
    }

    .language-switcher {
        order: 2;
    }

    .hamburger {
        order: 3;
        margin-left: auto;
    }

    .nav {
        order: 4;
        width: 100%;
    }

    .about-content,
    .products-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .hero {
        min-height: 400px;
        padding: var(--space-lg) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto var(--space-sm);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .hero-image {
        height: 35vh;
        background-size: cover;
    }

    .hero-content {
        padding: var(--space-md) 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.section-header {
    animation: fadeInUp 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to main content for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    text-decoration: none;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 0;
}
