/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1565C0;
    --secondary-color: #42A5F5;
    --accent-color: #0D47A1;
    --text-dark: #1A237E;
    --text-light: #5C6BC0;
    --bg-light: #E3F2FD;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(21, 101, 192, 0.2);
    --shadow-hover: 0 4px 20px rgba(21, 101, 192, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* 헤더 & 네비게이션 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

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

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* 기념품 링크 - 크고 눈에 띄게! */
.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.gift-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: 3px solid #FFD93D;
    animation: pulse 2s infinite;
}

.gift-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #FF8E53, #FF6B6B);
}

.gift-link .material-icons {
    font-size: 2rem;
    animation: bounce 1s infinite;
}

.gift-text {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

/* 펄스 애니메이션 - 주목도 향상 */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.7), 0 0 20px rgba(255, 107, 107, 0.5);
    }
}

/* 아이콘 바운스 애니메이션 */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

/* 히어로 섹션 */
.hero {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* 기념품 배너 섹션 */
.gift-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFD93D 100%);
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    animation: bannerPulse 3s infinite;
}

.gift-banner-link {
    text-decoration: none;
    display: block;
}

.gift-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 4px solid #FFD93D;
}

.gift-banner-content:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.gift-banner-icon {
    font-size: 5rem;
    color: #FF6B6B;
    animation: rotate 3s infinite linear;
}

.gift-banner-text h2 {
    font-size: 2rem;
    color: #FF6B6B;
    margin: 0;
    font-weight: 800;
}

.gift-banner-text p {
    font-size: 1.3rem;
    color: #FF8E53;
    margin: 0.5rem 0 0 0;
    font-weight: 600;
}

/* 배너 펄스 애니메이션 */
@keyframes bannerPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    }

    50% {
        box-shadow: 0 4px 40px rgba(255, 107, 107, 0.7), 0 0 30px rgba(255, 217, 61, 0.6);
    }
}

/* 아이콘 회전 애니메이션 */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: #c9a532;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.btn-secondary:hover {
    background-color: #234d67;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 섹션 공통 스타일 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 소개 섹션 */
.intro {
    background-color: var(--bg-light);
}

/* 제품 섹션 */
.products {
    background-color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    display: none;
}

/* 제품 일러스트 - 비누 */
.product-card:nth-child(1) .product-image::before {
    content: '';
    width: 120px;
    height: 80px;
    background: linear-gradient(135deg, #E3F2FD 0%, #90CAF9 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 -5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.product-card:nth-child(1) .product-image::after {
    content: '🧼';
    font-size: 4rem;
    position: absolute;
    opacity: 0.3;
}

/* 제품 일러스트 - 스프레이 */
.product-card:nth-child(2) .product-image::before {
    content: '';
    width: 70px;
    height: 140px;
    background: linear-gradient(180deg, #BBDEFB 0%, #64B5F6 70%, #42A5F5 100%);
    border-radius: 15px 15px 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 -10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: float 3s ease-in-out infinite 0.5s;
}

.product-card:nth-child(2) .product-image::after {
    content: '';
    width: 40px;
    height: 30px;
    background: linear-gradient(135deg, #90CAF9 0%, #42A5F5 100%);
    border-radius: 5px 5px 0 0;
    position: absolute;
    top: 50px;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2);
}

/* 제품 일러스트 - 소금 */
.product-card:nth-child(3) .product-image {
    background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
}

.product-card:nth-child(3) .product-image::before {
    content: '';
    width: 100px;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(224, 247, 250, 0.95) 100%);
    border-radius: 50% 50% 45% 45%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 -10px 20px rgba(21, 101, 192, 0.2);
    position: relative;
    animation: float 3s ease-in-out infinite 1s;
}

.product-card:nth-child(3) .product-image::after {
    content: '✨';
    font-size: 3rem;
    position: absolute;
    animation: sparkle 2s ease-in-out infinite;
}

/* 부유 애니메이션 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 반짝임 애니메이션 */
@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.product-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.3rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 갤러리 섹션 */
.gallery {
    background-color: var(--bg-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.video-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 비율 */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.video-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 회사 소개 섹션 */
.about {
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.about-card dt {
    font-weight: 600;
    color: var(--text-dark);
}

.about-card dd {
    color: var(--text-light);
}

.about-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 사업의 종류 */
.business-types {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-types li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.business-types li:last-child {
    border-bottom: none;
}

.business-types li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.about-card .mt-2 {
    margin-top: 1rem;
}

.about-card .highlight {
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 1rem;
}

/* 연락처 섹션 */
.contact {
    background-color: var(--bg-light);
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-color: var(--primary-color);
    color: var(--white);
}

/* 푸터 */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .nav-actions {
        position: fixed;
        right: 70px;
        top: 12px;
    }

    .gift-link .gift-text {
        display: none;
    }

    .gift-link {
        padding: 0.8rem;
        border-radius: 50%;
        width: 55px;
        height: 55px;
        justify-content: center;
        border: 3px solid #FFD93D;
    }

    .gift-link .material-icons {
        font-size: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

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

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

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

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

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

    /* 기념품 배너 반응형 */
    .gift-banner-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .gift-banner-icon {
        font-size: 4rem;
    }

    .gift-banner-text h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .gift-banner-text p {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

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

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

    section {
        padding: 60px 0;
    }

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

/* 오달동이 스토리 섹션 */
.story {
    background-color: var(--white);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.story-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

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

.story-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.story-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Music Player */
.music-player {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
}

.music-player:hover {
    /* 기존 호버 효과 제거 또는 수정 */
}

.control-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    background: rgba(21, 101, 192, 0.1);
}

.control-btn:hover {
    background: rgba(21, 101, 192, 0.2);
    transform: scale(1.05);
}

.control-btn .material-icons {
    font-size: 20px;
}

.control-btn.playing .material-icons {
    animation: spin 3s linear infinite;
}

.volume-container {
    width: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    opacity: 0;
    margin-left: 0;
}

.music-player:hover .volume-container {
    width: 80px;
    opacity: 1;
    margin-left: 10px;
}

.control-btn:hover {
    background: rgba(21, 101, 192, 0.1);
    transform: scale(1.1);
}

.control-btn .material-icons {
    font-size: 28px;
    transition: all 0.3s ease;
}

.control-btn.playing .material-icons {
    animation: spin 3s linear infinite;
}

.volume-container {
    width: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    opacity: 0;
    margin-left: 0;
}

.music-player:hover .volume-container {
    width: 100px;
    opacity: 1;
    margin-left: 15px;
}

#volume-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--primary-color);
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .music-player {
        bottom: 20px;
        right: 20px;
        padding: 8px 12px;
    }

    /* 모바일에서는 항상 볼륨 컨트롤 보이기 (선택사항, 공간 부족시 조정) */
    .music-player .volume-container {
        width: 80px;
        opacity: 1;
        margin-left: 10px;
    }
}