/* ===================================
   Global Styles & Variables
   =================================== */
:root {
    --ice-blue: #0066CC;
    --dark-blue: #004080;
    --light-blue: #E6F2FF;
    --ice-cyan: #00BFFF;
    --white: #FFFFFF;
    --light-gray: #F5F9FC;
    --gray: #6B7280;
    --dark-gray: #374151;
    --black: #111827;
    --shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 102, 204, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

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

/* Logo with Ice Crystal */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ice-crystal-logo {
    width: 50px;
    height: 50px;
    animation: crystalRotate 20s linear infinite, crystalPulse 3s ease-in-out infinite;
}

.ice-crystal-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 102, 204, 0.4));
}

@keyframes crystalRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes crystalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

.ice-text {
    color: var(--ice-blue);
}

.bank-text {
    color: var(--dark-gray);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--ice-blue);
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #E6F2FF 0%, #FFFFFF 50%, #F0F9FF 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ice-crystal-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.02) 0%, transparent 60%);
    animation: crystalFloat 20s ease-in-out infinite;
}

@keyframes crystalFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
    50% { transform: translate(-50%, -50%) rotate(5deg) scale(1.05); }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--ice-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-cyan));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--ice-blue);
    border: 2px solid var(--ice-blue);
}

.btn-secondary:hover {
    background: var(--ice-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--ice-blue);
    border: 2px solid var(--ice-blue);
    padding: 0.75rem 2rem;
}

.btn-outline:hover {
    background: var(--ice-blue);
    color: var(--white);
}

.hero-image {
    position: relative;
    text-align: center;
}

.floating-ice {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 60px rgba(0, 102, 204, 0.3));
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: 5rem 0;
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--light-gray);
    border-radius: 20px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--ice-blue);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-cyan));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
}

/* ===================================
   Products Section
   =================================== */
.products {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

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

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

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

.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #E6F2FF, #F0F9FF);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 20px;
}

.product-image img[src*="placeholder"],
.product-image img:not([src]),
.product-image img[src=""] {
    display: none;
}

.product-image::before {
    content: '🧊';
    font-size: 5rem;
    position: absolute;
    opacity: 0.3;
    z-index: 0;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.product-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 1rem;
}

.product-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-specs {
    margin-bottom: 1.5rem;
}

.product-specs li {
    padding: 0.5rem 0;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-specs i {
    color: var(--ice-blue);
}

/* ===================================
   Quality Section
   =================================== */
.quality {
    padding: 6rem 0;
    background: var(--white);
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quality-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.quality-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quality-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.quality-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-cyan));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.quality-item h4 {
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.quality-item p {
    color: var(--gray);
}

.quality-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

/* ===================================
   Cold Chain Section
   =================================== */
.coldchain {
    padding: 6rem 0;
    background: linear-gradient(135deg, #E6F2FF 0%, #F0F9FF 100%);
}

.coldchain-process {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-cyan));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.step-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--ice-blue);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.process-step h3 {
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--gray);
    font-size: 0.95rem;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--ice-blue);
    flex-shrink: 0;
}

.coldchain-guarantee {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guarantee-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.guarantee-card i {
    font-size: 3rem;
    color: var(--ice-blue);
    margin-bottom: 1rem;
}

.guarantee-card h4 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0.75rem;
}

.guarantee-card p {
    color: var(--gray);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: 6rem 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.about-description {
    font-size: 1.125rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 15px;
}

.stat-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ice-blue);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--white) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-cyan));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
}

.text-small {
    font-size: 0.875rem;
    color: var(--gray);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ice-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.contact-form .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
}

/* Footer Logo with Crystal */
.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-crystal {
    width: 40px;
    height: 40px;
}

.footer-crystal svg {
    filter: drop-shadow(0 2px 6px rgba(0, 102, 204, 0.4));
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.footer-section p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background: var(--ice-blue);
    transform: translateY(-3px);
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--gray);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--ice-blue);
    padding-left: 5px;
}

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

.footer-bottom p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.footer-info {
    font-size: 0.875rem;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--ice-blue), var(--ice-cyan));
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 999;
}

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

.scroll-top.active {
    display: flex;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content,
    .quality-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .coldchain-process {
        flex-direction: column;
    }

    .process-arrow {
        transform: rotate(90deg);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        gap: 1rem;
    }

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

    .hamburger {
        display: flex;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .ice-crystal-logo {
        width: 40px;
        height: 40px;
    }

    .footer-crystal {
        width: 35px;
        height: 35px;
    }

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

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

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

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

    .contact-form {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

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

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

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .logo h1 {
        font-size: 1.75rem;
    }

    .ice-crystal-logo {
        width: 35px;
        height: 35px;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .footer-crystal {
        width: 30px;
        height: 30px;
    }

    .footer-logo-container {
        gap: 0.5rem;
    }

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

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

/* ===================================
   Animation Classes
   =================================== */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
