:root {
    --primary-green: #2d5016;
    --secondary-green: #4a7c2a;
    --light-green: #6b9e3e;
    --accent-green: #8bc34a;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-light: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --content-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    font-weight: 400;
    font-size: 16px;
    font-variation-settings: 'wdth' 100;
}

html[lang="en"] body {
    font-family: 'Roboto', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo a {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--light-bg);
    padding: 0.25rem;
    border-radius: 50px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-green);
}

.lang-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-green);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: #000;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    padding: 0 80px;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Slide-specific backgrounds */
.hero-slide:nth-child(1)::before {
    background-image: url('img/hero-melon.jpg');
}

.hero-slide:nth-child(2)::before {
    background-image: url('img/hero-slide2.jpg');
}

.hero-slide:nth-child(3)::before {
    background-image: url('img/hero-slide2-bg.jpg');
}

.hero-slide:nth-child(4)::before {
    background-image: url('img/hero-slide4.jpg');
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Slide-specific overlays */
.hero-slide:nth-child(1)::after {
    background: linear-gradient(244deg, rgba(26, 45, 0, 0) 40%, rgba(46, 82, 37, 0.4) 65%);
}

.hero-slide:nth-child(2)::after {
    background: linear-gradient(244deg, rgba(26, 45, 0, 0) 40%, rgba(26, 45, 0, 0.4) 65%);
}

.hero-slide:nth-child(3)::after {
    background: rgba(76, 128, 7, 0.4);
}

.hero-slide:nth-child(4)::after {
    background: linear-gradient(-63deg, rgba(26, 45, 0, 0) 64%, rgba(48, 81, 5, 0.2) 99%),
                linear-gradient(186deg, rgba(26, 45, 0, 0) 58%, rgba(61, 87, 25, 0.4) 80%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
}

.hero-content-wide {
    max-width: 1200px;
}

.hero-text-content {
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-variation-settings: 'wdth' 100;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--white);
    max-width: 960px;
    font-variation-settings: 'wdth' 100;
}

/* F X 3 Cards */
.hero-3xf-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.xf-card {
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(253, 253, 253, 1);
    border-radius: 24px;
    width: 360px;
}

.xf-card-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 8px rgba(43, 83, 72, 0.2);
    background: var(--white);
}

.xf-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xf-card-content h3 {
    font-size: 2rem;
    font-weight: 400;
    color: #0b0b0b;
    margin-bottom: 10px;
    line-height: 1;
}

.xf-card-content p {
    font-size: 1rem;
    line-height: 1.4;
    color: #0b0b0b;
}

/* Hero Content with Compact Cards */
.hero-content-with-cards {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
}

.hero-text-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-cards-compact {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card-small {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(253, 253, 253, 1);
    border-radius: 12px;
    width: 230px;
}

.hero-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 0 4px rgba(43, 83, 72, 0.2);
    background: var(--white);
}

.hero-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-text {
    flex: 1;
}

.hero-card-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0b0b0b;
    margin-bottom: 4px;
    line-height: 1.2;
    font-variation-settings: 'wdth' 100;
}

.hero-card-text p {
    font-size: 0.7rem;
    line-height: 1.3;
    color: #0b0b0b;
    font-variation-settings: 'wdth' 100;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 80px;
    left: 80px;
    display: flex;
    gap: 12px;
    z-index: 100;
    pointer-events: auto;
}

.hero-indicators .indicator {
    width: 60px;
    height: 8px;
    background: rgba(244, 244, 244, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-indicators .indicator.active {
    background: var(--white);
}

.hero-indicators .indicator:hover {
    background: rgba(244, 244, 244, 0.4);
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-primary:hover {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-variation-settings: 'wdth' 100;
}

.section-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 1.5rem;
    font-variation-settings: 'wdth' 100;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 4rem;
    text-align: center;
    letter-spacing: -0.02em;
    font-variation-settings: 'wdth' 100;
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    font-variation-settings: 'wdth' 100;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c4f15;
    font-variation-settings: 'wdth' 100;
    margin-bottom: 8px;
}

.about-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #2c4f15;
    font-variation-settings: 'wdth' 100;
    line-height: 1.3;
    margin-bottom: 16px;
}

.about-intro {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.about-image-box {
    position: relative;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
}

.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 17.057%, 
        rgba(0, 0, 0, 0.69) 88.642%, 
        rgba(0, 0, 0, 0.8) 100%);
}

.about-image-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    font-variation-settings: 'wdth' 100;
    margin: 0;
    z-index: 1;
}

.about-text-box {
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.about-text-box p {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
    line-height: 1.7;
    margin: 0;
}

/* Old about-grid styles (kept for backward compatibility) */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 6rem;
}

.about-grid-item {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.about-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.9) 0%, rgba(45, 80, 22, 0.7) 50%, transparent 100%);
    padding: 2rem 1.5rem;
    display: flex;
    align-items: flex-end;
}

.about-grid-overlay h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* History Section */
/* History Section - New Design */
.history-section-new {
    position: relative;
    padding: 80px 40px;
    overflow: hidden;
}

.history-background {
    position: absolute;
    inset: 0;
    background: url('img/cb6603ca2f78d998414fc4d5cfb99dc0c92392c8.png') center/cover no-repeat;
    z-index: 0;
}

.history-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(237.63deg, rgba(255, 255, 255, 0) 33.2%, rgba(255, 255, 255, 0.2) 100%);
    z-index: 1;
}

.history-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 640px;
    gap: 24px;
    align-items: start;
}

.history-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: flex-end;
}

.history-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c4f15;
    font-variation-settings: 'wdth' 100;
}

.history-main-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c4f15;
    font-variation-settings: 'wdth' 100;
}

.history-description {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
}

.history-right {
    width: 640px;
}

.history-timeline-new {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0px 32px 64px -12px rgba(16, 24, 40, 0.14);
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-card-expandable {
    cursor: pointer;
}

.timeline-card-expandable:hover {
    background: rgba(255, 255, 255, 0.9);
}

.timeline-card-expandable.active {
    background: #2c4f15;
    color: white;
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.timeline-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    color: #2c4f15;
    font-variation-settings: 'wdth' 100;
    flex: 1;
    margin: 0;
}

.timeline-card-expandable.active .timeline-card-title {
    color: white;
}

.timeline-card-year-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c4f15;
    font-variation-settings: 'wdth' 100;
    flex-shrink: 0;
}

.timeline-card-expandable.active .timeline-card-year-badge {
    color: white;
    font-weight: 700;
}

.timeline-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.timeline-card-expandable.active .timeline-card-body {
    max-height: 500px;
    padding: 0 20px 20px 20px;
}

.timeline-card-body p {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
    margin: 0;
}

.timeline-card-expandable.active .timeline-card-body p {
    color: white;
}

/* Old history section styles (kept for backward compatibility) */
.history-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 6rem;
    position: relative;
    padding: 4rem 0;
}

.history-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('img/cb6603ca2f78d998414fc4d5cfb99dc0c92392c8.png') center/cover no-repeat;
    border-radius: 12px;
    opacity: 0.3;
    z-index: 0;
}

.history-content {
    padding-right: 2rem;
    position: relative;
    z-index: 1;
}

.history-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 2rem;
    line-height: 1.3;
    font-variation-settings: 'wdth' 100;
}

.history-intro {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

.timeline-item {
    display: grid;
    grid-template-columns: 80px 4px 1fr;
    gap: 1.5rem;
    min-height: 80px;
    align-items: start;
}

.timeline-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    padding-top: 0.2rem;
    font-variation-settings: 'wdth' 100;
}

.timeline-bar {
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-green) 0%, var(--light-green) 100%);
    border-radius: 2px;
    min-height: 80px;
}

.timeline-content {
    padding-top: 0.2rem;
}

.timeline-content p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
}

/* Products Section */
.products-section {
    background: var(--light-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-icon-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 5rem;
}

.product-name-kr {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    padding: 1.5rem 1rem 0.5rem;
    font-variation-settings: 'wdth' 100;
}

.product-name-en {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-light);
    padding: 0 1rem 1.5rem;
    font-variation-settings: 'wdth' 100;
}

/* Vision Section */
.visions-section {
    background: var(--primary-green);
}

.visions-section .section-title,
.visions-section .section-subtitle,
.visions-section .section-main-title,
.visions-section .section-intro {
    color: var(--white);
}

.visions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.vision-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.vision-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.vision-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vision-icon-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 5rem;
}

.vision-content {
    padding: 2rem;
}

.vision-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-variation-settings: 'wdth' 100;
}

.vision-content p {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    font-variation-settings: 'wdth' 100;
}

/* Contact Section */
.contact {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.contact-map {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow);
}

.map-embed {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--white);
    height: 450px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-variation-settings: 'wdth' 100;
}

.contact-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
    font-variation-settings: 'wdth' 100;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--white);
    color: var(--text-dark);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

.footer p {
    opacity: 0.8;
    font-size: 0.9rem;
    font-weight: 400;
    font-variation-settings: 'wdth' 100;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content-wrapper {
        padding: 0 30px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-subtitle {
        font-size: 36px;
    }

    .about-intro {
        font-size: 20px;
    }

    .about-row {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    /* Mobile: Always show image first, then text */
    .about-image-box {
        order: 1;
    }

    .about-text-box {
        order: 2;
    }

    .about-text-box p {
        font-size: 20px;
    }

    .about-image-title {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visions-grid {
        grid-template-columns: 1fr;
    }

    .history-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .history-content {
        padding-right: 0;
    }

    .history-section-new {
        padding: 60px 30px;
    }

    .history-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .history-right {
        width: 100%;
    }

    .history-subtitle {
        font-size: 20px;
    }

    .history-main-title {
        font-size: 36px;
    }

    .history-description {
        font-size: 20px;
    }

    .timeline-card-title {
        font-size: 18px;
    }

    .timeline-card-year-badge {
        font-size: 28px;
    }

    .timeline-card-body p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-slide {
        padding: 0 20px;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-indicators {
        bottom: 40px;
        left: 20px;
    }

    .hero-indicators .indicator {
        width: 40px;
        height: 6px;
    }

    .hero-3xf-cards {
        flex-direction: column;
    }

    .xf-card {
        width: 100%;
    }

    .hero-cards-compact {
        flex-direction: column;
    }

    .hero-card-small {
        width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section-main-title {
        font-size: 1.75rem;
    }
    
    .about-subtitle {
        font-size: 1.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-grid-item {
        height: 200px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-embed {
        height: 300px;
    }

    .timeline-item {
        grid-template-columns: 60px 4px 1fr;
        gap: 1rem;
        min-height: 60px;
    }

    .timeline-year {
        font-size: 1.1rem;
    }

    .timeline-bar {
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .xf-card {
        flex-direction: column;
        text-align: center;
    }

    .xf-card-content h3 {
        font-size: 1.5rem;
    }

    .xf-card-content p {
        font-size: 0.95rem;
    }

    .hero-card-small {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .hero-card-text h3 {
        font-size: 1.25rem;
    }

    .hero-card-text p {
        font-size: 0.85rem;
    }

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

    .section-main-title {
        font-size: 1.5rem;
    }
    
    .about-subtitle {
        font-size: 1.5rem;
    }
    
    .about-image-title {
        font-size: 1.1rem;
    }
}
