/* Base Reset & Variables */
:root {
    --primary-color: #1A365D; /* Deep Navy Blue */
    --secondary-color: #3182CE; /* Bright Blue */
    --accent-color: #63B3ED; /* Light Blue */
    --text-main: #2D3748;
    --text-light: #718096;
    --bg-main: #FFFFFF;
    --bg-light: #F7FAFC;
    --bg-gradient: linear-gradient(135deg, #1A365D 0%, #3182CE 100%);
    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition-smooth: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.bg-light {
    background-color: var(--bg-light);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--secondary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
}

.w-100 {
    width: 100%;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
    padding: 20px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    transition: var(--transition-smooth);
    letter-spacing: 1px;
}

.logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 50%;
    background-color: white; /* Make it pop against blue nav */
    padding: 2px;
}

.logo span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--accent-color);
}

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: white;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition-smooth);
}

header.scrolled .nav-links a {
    color: var(--text-main);
}

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

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

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

header.scrolled .mobile-menu-btn {
    color: var(--primary-color);
}

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

/* Adding a subtle overlay effect for the hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('벨루스톤마크.png') no-repeat center center;
    background-size: 50%;
    opacity: 0.1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 300;
    opacity: 0.9;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.features-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E0 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.about-image-placeholder:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(26,54,93,0.1);
}

.img-box {
    text-align: center;
    color: var(--text-light);
}

.img-box i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
    opacity: 0.5;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(49,130,206,0.15);
}

.product-img-placeholder {
    width: 100%;
    height: 250px;
    background: #EDF2F7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.product-img-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

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

.product-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-info p {
    color: var(--text-light);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.contact-info {
    padding-right: 30px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.contact-info i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(49,130,206,0.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

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

.footer-logo-img {
    height: 35px;
    width: 35px;
    object-fit: contain;
    border-radius: 50%;
    background-color: white;
    padding: 2px;
}

.footer-logo span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-color);
}

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

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-main);
        padding: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    header.scrolled .mobile-menu-btn {
        color: var(--primary-color);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        padding: 30px;
    }
}

.btn-naver-map:hover {
    background-color: #02b350;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(3, 199, 90, 0.4);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .location-section {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 250px;
    }
}

/* --- Page Specific Styles --- */
.page-products header.scrolled-always {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}
.page-products header.scrolled-always .logo {
    color: var(--primary-color);
}
.page-products header.scrolled-always .nav-links a {
    color: var(--text-main);
}
.page-products header.scrolled-always .nav-links a:hover,
.page-products header.scrolled-always .nav-links a.active {
    color: var(--primary-color);
}
.page-products header.scrolled-always .mobile-menu-btn {
    color: var(--primary-color);
}

.page-header {
    padding: 150px 0 80px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
}
.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Gallery Grid System */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Force perfect square (1:1 ratio) */
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop gracefully to fill the square */
    object-position: center;
    transition: transform 0.5s ease;
}

/* Premium Hover Effect */
.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(49, 130, 206, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08); /* Slight zoom in on hover */
}

/* Fallback for broken images (if needed before upload) */
.gallery-item::before {
    content: '\f03e'; /* FontAwesome image icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #CBD5E0;
    z-index: -1;
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- About Section Store Gallery & Map --- */
.mt-50 {
    margin-top: 50px;
}

.store-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item-small {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.location-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #F8FAFC;
    padding: 40px;
    border-radius: 20px;
    align-items: center;
}

.location-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-info p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.btn-naver-map {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #03C75A; /* Naver Green */
    color: white;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(3, 199, 90, 0.3);
}

.btn-naver-map:hover {
    background-color: #02b350;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(3, 199, 90, 0.4);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .location-section {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 250px;
    }
}

/* --- Page Specific Styles --- */
.page-products header.scrolled-always {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}
.page-products header.scrolled-always .logo {
    color: var(--primary-color);
}
.page-products header.scrolled-always .nav-links a {
    color: var(--text-main);
}
.page-products header.scrolled-always .nav-links a:hover,
.page-products header.scrolled-always .nav-links a.active {
    color: var(--primary-color);
}
.page-products header.scrolled-always .mobile-menu-btn {
    color: var(--primary-color);
}

.page-header {
    padding: 150px 0 80px;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
}
.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Gallery Grid System */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Force perfect square (1:1 ratio) */
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crop gracefully to fill the square */
    object-position: center;
    transition: transform 0.5s ease;
}

/* Premium Hover Effect */
.gallery-item:hover {
    box-shadow: 0 20px 40px rgba(49, 130, 206, 0.15);
}

.gallery-item:hover img {
    transform: scale(1.08); /* Slight zoom in on hover */
}

/* Fallback for broken images (if needed before upload) */
.gallery-item::before {
    content: '\f03e'; /* FontAwesome image icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #CBD5E0;
    z-index: -1;
}

/* Responsive adjustments for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* --- About Section Store Gallery & Map --- */
.mt-50 {
    margin-top: 50px;
}

.store-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item-small {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.location-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #F8FAFC;
    padding: 40px;
    border-radius: 20px;
    align-items: center;
}

.location-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.location-info p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.btn-naver-map {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #03C75A; /* Naver Green */
    color: white;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(3, 199, 90, 0.3);
}

.btn-naver-map:hover {
    background-color: #02b350;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(3, 199, 90, 0.4);
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .location-section {
        grid-template-columns: 1fr;
    }
    .map-container {
        height: 250px;
    }
}

/* --- Floating Button & Modal --- */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(26, 54, 93, 0.4);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-btn i {
    font-size: 1.2rem;
}
.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.6);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 20px;
    top: 100px;
    width: auto;
    height: auto;
    background-color: transparent;
    backdrop-filter: none;
    pointer-events: none;
}
.modal.show {
    display: block;
}
.modal-content {
    background-color: transparent;
    padding: 0;
    border-radius: 15px;
    width: 300px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s;
    pointer-events: auto;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.close-btn {
    position: absolute;
    top: -35px;
    right: 0px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    transition: var(--transition-smooth);
    background: white;
    width: 30px;
    height: 30px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.close-btn:hover {
    color: red;
}
.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}
@media (max-width: 768px) {
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 1rem;
    }
    .floating-btn i {
        font-size: 1.1rem;
    }
}

/* --- Kakao Floating Button --- */
.floating-btn-kakao {
    position: fixed;
    bottom: 85px;
    right: 30px;
    background-color: #FEE500;
    color: #3C1E1E;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(254, 229, 0, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-btn-kakao i {
    font-size: 1.2rem;
}
.floating-btn-kakao:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.5);
}
@media (max-width: 768px) {
    .floating-btn-kakao {
        bottom: 70px;
        right: 20px;
        padding: 10px 18px;
        font-size: 1rem;
    }
    .floating-btn-kakao i {
        font-size: 1.1rem;
    }
}


