/* ==========================================
   공공이벤트 - 공공기관 행사대행 전문
   세련된 그린 계열 원페이지 웹사이트
   ========================================== */

/* 변수 정의 */
:root {
    --primary: #2D7D46;
    --primary-dark: #1E5C33;
    --primary-light: #4A9B61;
    --secondary: #8BC34A;
    --accent: #C8E6C9;
    --accent-light: #E8F5E9;
    --gold: #D4AF37;
    --dark: #1A1A1A;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;
    --gray-lighter: #E0E0E0;
    --white: #FFFFFF;
    --bg-light: #F8FAF8;
    --shadow: 0 10px 40px rgba(45, 125, 70, 0.1);
    --shadow-hover: 0 20px 60px rgba(45, 125, 70, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Noto Sans KR', sans-serif;
}

/* 리셋 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.7;
    color: var(--gray-dark);
    background: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(45, 125, 70, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 125, 70, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* 섹션 헤더 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--white);
}

.section-header.light .section-tag {
    color: var(--secondary);
}

.section-header.light .section-title {
    color: var(--white);
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   헤더
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.header.scrolled .container {
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--primary);
}

.logo i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.nav ul {
    display: flex;
    gap: 35px;
}

.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.header.scrolled .nav a {
    color: var(--gray-dark);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

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

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.header.scrolled .mobile-toggle span {
    background: var(--dark);
}

/* ==========================================
   히어로 섹션
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=1920&h=1080&fit=crop') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 92, 51, 0.55), rgba(45, 125, 70, 0.45));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line1 {
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0.9;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.badge i {
    color: var(--secondary);
}

/* 스크롤 인디케이터 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* 히어로 애니메이션 */
.animate-text .line {
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.8s forwards;
}

.animate-text .line1 {
    animation-delay: 0.3s;
}

.animate-text .line2 {
    animation-delay: 0.5s;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s 0.7s forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 0.9s forwards;
}

.animate-bounce-in {
    opacity: 0;
    transform: scale(0.8);
    animation: bounceIn 0.6s 1.1s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==========================================
   회사소개 섹션
   ========================================== */
.about {
    padding: 120px 0;
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ==========================================
   서비스 섹션
   ========================================== */
.services {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1505373877841-8d25f7d46678?w=1920&h=1080&fit=crop') center/cover no-repeat;
    opacity: 0.1;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.timeline-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    opacity: 0.5;
    line-height: 1;
    margin-bottom: 15px;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.timeline-content ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-content li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 15px;
    position: relative;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--secondary);
    border-radius: 50%;
}

/* ==========================================
   이미지 배너
   ========================================== */
.image-banner {
    position: relative;
    height: 400px;
    background: url('https://images.unsplash.com/photo-1511578314322-379afb476865?w=1920&h=600&fit=crop') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(45, 125, 70, 0.6));
}

.banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.banner-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   친환경 행사 섹션 (갤러리 형태)
   ========================================== */
.eco {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--white) 100%);
}

.eco-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.eco-product {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.eco-product:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.eco-product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.eco-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.eco-product:hover .eco-product-image img {
    transform: scale(1.1);
}

.eco-product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 125, 70, 0.9), rgba(139, 195, 74, 0.8));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.eco-product:hover .eco-product-overlay {
    opacity: 1;
}

.eco-product-overlay i {
    font-size: 2.5rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.eco-product:hover .eco-product-overlay i {
    transform: translateY(0);
}

.eco-product-overlay span {
    font-size: 1rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.eco-product:hover .eco-product-overlay span {
    transform: translateY(0);
}

.eco-product-info {
    padding: 25px;
    text-align: center;
}

.eco-product-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.eco-product-info p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 제품 구매문의 모달 */
.product-modal .modal-content {
    max-width: 500px;
}

.product-modal-content {
    padding: 0;
}

.product-modal-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 40px 30px;
    text-align: center;
    color: var(--white);
}

.product-modal-badge {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.product-modal-badge i {
    font-size: 2rem;
    color: var(--white);
}

.product-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-modal-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.product-inquiry-form {
    padding: 30px;
}

.product-inquiry-form .form-group {
    margin-bottom: 15px;
}

.product-inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.product-inquiry-form input,
.product-inquiry-form textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    border: 2px solid var(--gray-lighter);
    border-radius: 10px;
    background: var(--white);
    transition: var(--transition);
}

.product-inquiry-form input:focus,
.product-inquiry-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 125, 70, 0.1);
}

.product-inquiry-form textarea {
    resize: vertical;
    min-height: 80px;
}

.product-inquiry-form .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.product-inquiry-form .checkbox input {
    width: auto;
    accent-color: var(--primary);
}

.product-inquiry-form .checkbox label {
    font-size: 0.85rem;
    color: var(--gray);
    cursor: pointer;
}

/* ==========================================
   주요실적 섹션 (갤러리 형태)
   ========================================== */
.history {
    padding: 120px 0;
    background: var(--bg-light);
}

.history-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.history-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.history-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.history-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.history-card:hover img {
    transform: scale(1.1);
}

.history-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    transition: var(--transition);
}

.history-card:hover .history-card-overlay {
    background: linear-gradient(180deg, rgba(45, 125, 70, 0.3) 0%, rgba(30, 92, 51, 0.85) 100%);
}

.history-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: var(--white);
    z-index: 1;
}

.history-card-year {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.history-card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.history-card-content p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* ==========================================
   갤러리 섹션
   ========================================== */
.gallery {
    padding: 120px 0;
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(45, 125, 70, 0.8), rgba(139, 195, 74, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2rem;
    color: var(--white);
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ==========================================
   통계 섹션
   ========================================== */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==========================================
   문의하기 섹션
   ========================================== */
.contact {
    padding: 120px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info .section-tag,
.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 3px;
}

.contact-item span {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
}

/* 문의 폼 */
.contact-form {
    background: var(--white);
    padding: 45px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-main);
    font-size: 1rem;
    border: 2px solid var(--gray-lighter);
    border-radius: 12px;
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(45, 125, 70, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group select {
    cursor: pointer;
    color: var(--gray-light);
}

.form-group select:valid {
    color: var(--gray-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    accent-color: var(--primary);
}

.form-group.checkbox label {
    font-size: 0.9rem;
    color: var(--gray);
    cursor: pointer;
}

/* ==========================================
   푸터
   ========================================== */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
    color: var(--white);
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--secondary);
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==========================================
   모달
   ========================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 900px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
}

.modal-content img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.modal-info {
    padding: 30px;
}

.modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.modal-info p {
    font-size: 1rem;
    color: var(--gray);
}

/* ==========================================
   우측 퀵메뉴 (데스크탑 전용)
   ========================================== */
.quick-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.quick-menu.active {
    opacity: 1;
    visibility: visible;
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--white);
    border: none;
    border-radius: 15px;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    transition: var(--transition);
}

.quick-menu-item i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.quick-menu-item span {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.quick-menu-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    transform: scale(1.1);
}

.quick-contact {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.quick-contact:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.quick-top {
    background: var(--white);
    color: var(--primary);
}

/* ==========================================
   성공 메시지
   ========================================== */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--white);
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.success-message.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.success-message i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: block;
}

.success-message span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

/* ==========================================
   스크롤 애니메이션
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   반응형 디자인
   ========================================== */

/* 태블릿 */
@media (max-width: 1024px) {
    .about-grid,
    .services-timeline,
    .history-gallery,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .eco-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .history-card-content {
        padding: 20px;
    }

    .history-card-content h3 {
        font-size: 1rem;
    }

    .history-card-content p {
        font-size: 0.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info .section-tag,
    .contact-info .section-title {
        text-align: center;
    }

    .contact-desc {
        text-align: center;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title br {
        display: none;
    }

    /* 헤더 */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .nav a {
        font-size: 1.3rem;
        color: var(--dark) !important;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background: var(--dark);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background: var(--dark);
    }

    /* 히어로 */
    .hero {
        min-height: 100svh;
    }

    .hero-title .line1,
    .hero-title .line2 {
        white-space: nowrap;
    }

    .hero-badges {
        gap: 10px;
    }

    .badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* 섹션들 */
    .about,
    .services,
    .eco,
    .history,
    .gallery,
    .contact {
        padding: 80px 0;
    }

    .about-grid,
    .services-timeline,
    .history-gallery,
    .stats-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-card,
    .timeline-item {
        padding: 30px 25px;
    }

    .history-card {
        aspect-ratio: 16/9;
    }

    .history-card-content {
        padding: 20px;
    }

    .history-card-content h3 {
        font-size: 1.1rem;
    }

    .timeline-number {
        font-size: 2.5rem;
    }

    /* 이미지 배너 */
    .image-banner {
        height: 300px;
        background-attachment: scroll;
    }

    /* 친환경 갤러리 */
    .eco-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .eco-product-info {
        padding: 15px;
    }

    .eco-product-info h3 {
        font-size: 1rem;
    }

    .eco-product-info p {
        font-size: 0.8rem;
    }

    /* 퀵메뉴 숨김 */
    .quick-menu {
        display: none !important;
    }

    /* 제품 모달 */
    .product-inquiry-form .form-row {
        grid-template-columns: 1fr;
    }

    .product-modal-header {
        padding: 30px 20px;
    }

    .product-inquiry-form {
        padding: 20px;
    }

    /* 통계 */
    .stats {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    /* 문의하기 */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .contact-item {
        padding: 15px;
    }

    .contact-item i {
        width: 45px;
        height: 45px;
    }

    /* 모달 */
    .modal-content img {
        max-height: 50vh;
    }

    .modal-info {
        padding: 20px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

}

/* 작은 모바일 */
@media (max-width: 400px) {
    html {
        font-size: 14px;
    }

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

    .hero-title .line1 {
        font-size: 1.2rem;
    }

    .badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}
