/* 
 * CHANGJO MEDIALL - Luxury & Flashy Design System 
 * Cafe24 optimized (Vanilla CSS)
 */

/* ==========================================================================
   Variables (Design System)
   ========================================================================== */
:root {
    /* Colors - Luxury theme based on sophisticated grayscale and silver */
    --color-primary: #1A1A1A;
    /* Deep Dark Grey */
    --color-primary-light: #333333;
    --color-accent: #A0A0A0;
    /* Elegant Silver / Grey */
    --color-accent-hover: #D0D0D0;

    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-text-light: #F8F9FA;

    --color-bg-main: #FFFFFF;
    --color-bg-light: #F4F7F6;
    --color-bg-dark: #0A0A0A;

    /* Typography */
    --font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    --font-en: 'Outfit', sans-serif;
    --font-serif: 'Noto Serif KR', serif;

    /* Layout */
    --container-max-width: 1300px;
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(160, 160, 160, 0.3);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-kr);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1,
h2 {
    letter-spacing: -1px;
}

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

ul,
ol {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: 100px 0;
    position: relative;
}

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

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

/* Typography Utils */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

/* Decorative line under titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-weight: 300;
    margin-top: 25px;
}

.bg-dark .section-title {
    color: var(--color-text-light);
}

.bg-dark .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    height: 54px;
    /* Fixed height */
    min-height: 54px;
    /* Anchor the height */
    flex-shrink: 0;
    /* Prevent shrinking in flex containers */
    min-width: 160px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-kr);
    letter-spacing: -0.5px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #fff;
    color: #D35400;
    border: 4px solid #FFE8CC;
    box-shadow: 0 10px 25px rgba(211, 84, 0, 0.05);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FFE8CC 0%, #FFF9F0 100%);
    border-color: #FFB347;
    box-shadow: 0 20px 40px rgba(211, 84, 0, 0.2);
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #1E8449;
    border: 4px solid #DBF3E0;
    box-shadow: 0 10px 25px rgba(30, 132, 73, 0.05);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #DBF3E0 0%, #F3FFF2 100%);
    border-color: #82E0AA;
    box-shadow: 0 20px 40px rgba(30, 132, 73, 0.2);
}

.btn-tertiary {
    background: #fff;
    color: #2E86C1;
    border: 4px solid #D4EDF9;
    box-shadow: 0 10px 25px rgba(46, 134, 193, 0.05);
}

.btn-tertiary:hover {
    background: linear-gradient(135deg, #D4EDF9 0%, #F0F8FF 100%);
    border-color: #85C1E9;
    box-shadow: 0 20px 40px rgba(46, 134, 193, 0.2);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-smooth);
    --logo-slogan-color: #ffffff;
}

@media (max-width: 768px) {
    .header {
        height: 80px !important;
        /* Forced height for mobile */
        padding-top: 0;
    }
}

/* Scrolled state (Glassmorphism) */
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: 70px;
    --logo-slogan-color: var(--color-primary);
}

@media (max-width: 768px) {
    .header.scrolled {
        height: 80px;
    }
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
}

.header-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.header-center-slogan-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 1200px) {
    .header-container {
        grid-template-columns: 1fr auto 1fr !important;
        padding: 0 20px;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    transition: var(--transition-smooth);
}

.logo span {
    color: var(--color-accent);
    font-weight: 300;
}

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

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    padding: 10px 0;
}

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

/* Underline effect removed as per user request */
.nav-link::after {
    display: none !important;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
/* Support for native smooth scroll and back button */
[id] {
    scroll-margin-top: 80px;
    /* Accounts for fixed header + padding */
}

/* Fine-tuned scroll offsets for contact sections */
#demo {
    scroll-margin-top: 30px;
    /* Reduced further to scroll deeper into section */
}

#estimate {
    scroll-margin-top: 130px;
    /* Increased to stop the scroll even earlier */
}

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: var(--color-primary);
    padding-top: var(--header-height);
    overflow: hidden;
    scroll-margin-top: 0;
    /* Hero should stay at top */
}

.hero-bg-overlay {
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    /* Strictly occupy only the right half */
    height: 100%;
    overflow: hidden;
}

.hero-image-1,
.hero-image-2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.0);
}

.hero-image-1 {
    background-image: url('../images/hero_bg_v3.png?v=3');
    z-index: 1;
    animation: hero-1 10s infinite linear;
}

.hero-image-2 {
    z-index: 2;
    opacity: 0;
    animation: hero-2 10s infinite linear;
}

/* Dynamic continuous zoom perfectly synced with crossfade */
@keyframes hero-1 {
    0% {
        transform: scale(1.025);
    }

    40% {
        transform: scale(1.125);
    }

    50% {
        transform: scale(1.15);
    }

    51% {
        transform: scale(1.0);
    }

    /* Invisible jump while covered */
    90% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.025);
    }
}

@keyframes hero-2 {
    0% {
        opacity: 0;
        transform: scale(1.0);
    }

    39% {
        opacity: 0;
        transform: scale(1.0);
    }

    40% {
        opacity: 0;
        transform: scale(1.0);
    }

    50% {
        opacity: 1;
        transform: scale(1.025);
    }

    90% {
        opacity: 1;
        transform: scale(1.125);
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}

/* Animated gradient background as fallback for flashy feel */


.hero-content {
    position: relative;
    z-index: 20;
    /* Ensure content is on top of background images (z-index 1, 2) */
    width: 50%;
    box-sizing: border-box;
    padding-top: 40px;
    margin-left: 0;
}

/* Big Hero Brand Name */
.hero-brand {
    margin-bottom: 2.5rem;
    /* Slightly reduced gap with text below globally */
    margin-top: -55px;
    /* Moderate pull up for mobile */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 1024px) {
    .hero {
        align-items: flex-start;
        padding-top: 100px;
        /* Restore to previous tight top padding */
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-brand {
        margin-top: 0;
        margin-bottom: 5rem;
        /* Slightly reduced gap for desktop */
    }
}

.hero-brand .brand-group {
    font-family: var(--font-kr);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    display: block;
    opacity: 1;
}

.hero-brand .brand-en {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: clamp(2.5rem, 6.25vw, 5rem);
    /* Proportional at 768px (48px) */
    letter-spacing: -2px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: inline-block;
    color: var(--color-primary);
    /* Fallback for background-clip */
    background: linear-gradient(135deg, var(--color-primary) 0%, #555 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.0;
}

.hero-brand .brand-kr {
    font-family: var(--font-kr);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4.5rem);
    /* Harmonized factor */
    letter-spacing: -1px;
    color: var(--color-accent);
    opacity: 0.9;
    line-height: 1.0;
    margin-top: 5px;
    position: relative;
    z-index: 21;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 3.1vw, 2.8rem);
    /* Fluid scaling consistent with mobile */
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: visible;
}

.hero-title .highlight {
    font-weight: 900;
    /* Make highlight even bolder */
    color: #000;
    /* Shimmer effect for luxury */
    background: linear-gradient(to right, #000 20%, #FFF 50%, #000 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.hero-subtitle {
    font-family: var(--font-serif);
    /* More premium serif font */
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
    color: var(--color-primary);
    line-height: 1.8;
}


.hero-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    width: fit-content;
    max-width: 100%;
    justify-content: flex-start;
}

.hero-cta .btn {
    flex: 0 0 auto;
    width: 240px;
    padding: 0 20px;
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: fixed;
    /* Fixed to viewport to stay visible on any height */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    /* Reduced gap from 12px to bring text closer to arrow */
    opacity: 0.8;
    z-index: 100;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    pointer-events: none;
}

/* Hide when scrolled past a certain point (handled via JS) */
.scroll-indicator.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-family: var(--font-en);
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    animation: scroll-float 2s ease-in-out infinite;
}

@keyframes scroll-float {

    0%,
    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: rotate(45deg) translate(8px, 8px);
        opacity: 1;
    }
}

/* ==========================================================================
   Animations (Reveal on Scroll)
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 180px;
        /* Aligned with new design */
        height: 100vh;
        background-color: rgba(30, 30, 30, 0.6);
        /* High transparency dark box */
        backdrop-filter: blur(4px);
        /* Reduced blur for visibility */
        -webkit-backdrop-filter: blur(4px);
        padding: 90px 10px 40px 10px;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
        text-align: center;
    }


    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
    }

    .nav-link {
        font-size: 1.5rem;
        color: #fff !important;
        /* Force white text on the dark mobile menu background for all pages */
    }

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

    .section {
        padding: 60px 0;
    }
}

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

.about-content {
    padding-right: 20px;
}

.about-content .section-title {
    margin-bottom: 20px;
}

.about-content .section-title::after {
    left: 0;
    transform: none;
}

.about-heading {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 300;
}

.about-heading .highlight-text {
    font-weight: 700;
    color: var(--color-primary);
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.stats-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
}

.img-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(10, 25, 47, 0.2) 0%, transparent 100%);
}

.img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Products Section (Luxury Cards)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Desktop: Restore to preferred width (~4 columns) */
    gap: 30px;
    margin-top: 60px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
}

.product-img-wrap {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Specific placeholder gradients based on product feel */
.product-card:nth-child(1) .product-img-wrap {
    background: linear-gradient(135deg, #1A2980 0%, #26D0CE 100%);
}

/* ONDA: Cool */
.product-card:nth-child(2) .product-img-wrap {
    background: linear-gradient(135deg, #a80000 0%, #ff4b2b 100%);
}

/* again pro: Red */
.product-card:nth-child(3) .product-img-wrap {
    background: linear-gradient(135deg, #a80000 0%, #ff4b2b 100%);
}

/* redtouch: Red */
.product-card:nth-child(4) .product-img-wrap {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* smart pico: Dark/Tech */
.product-card:nth-child(5) .product-img-wrap {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* geneo x: Dark/Tech */

.product-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.trademark {
    font-size: 0.8rem;
    vertical-align: super;
}

.product-summary {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 1.05rem;
    flex-grow: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.product-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: #fff;
}

.product-link:hover i {
    transform: translateX(5px);
}

/* Keep the 5th product centered if it's alone on the last row */
/* Removed empty product grid child rule */

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding-right: 0;
        text-align: center;
    }

    .about-content .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .stats-container {
        justify-content: center;
    }
}

/* ==========================================================================
   Contact / Forms Section
   ========================================================================== */
.contact {
    background-color: var(--color-bg-main);
    background-image: radial-gradient(circle at 100% 100%, rgba(160, 160, 160, 0.05) 0%, transparent 50%);
}

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

.contact-form-container {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--color-accent);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-header i {
    color: var(--color-accent);
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--color-bg-light);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    background-color: #fff;
}

textarea.form-control {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 40px 20px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding-top: 80px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 2rem;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

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

.footer-info h4,
.footer-links h4 {
    font-family: var(--font-en);
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-info h4::after,
.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-accent);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-list i {
    color: var(--color-accent);
    margin-top: 5px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    background-color: #050c17;
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ==========================================================================
   Mobile Optimization (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Global Adjustments */
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 1.5rem;
    }

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

    .section-desc {
        font-size: 1rem;
        margin-top: 15px;
    }

    /* Header */
    .header {
        height: 70px;
    }

    .header.scrolled {
        height: 70px;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        min-height: 100svh;
        padding-top: 100px !important;
        /* Slightly reduced padding */
        display: flex;
        align-items: flex-start;
        /* Start content from top */
    }

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

    /* Brand name: scale to fit full viewport width, never wraps */
    .hero-brand {
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        position: relative;
        z-index: 21;
        margin-top: 0;
        margin-bottom: 4rem;
        /* Reduced gap for mobile */
    }

    .hero-brand .brand-group {
        font-size: 0.82rem;
        font-weight: 700;
        margin-bottom: 8px;
        opacity: 1;
    }

    .hero-brand .brand-en {
        font-size: clamp(1.8rem, 8.5vw, 4.5rem);
        /* Increased size and factor */
        letter-spacing: -1px;
        white-space: nowrap;
        display: block;
        width: fit-content;
        max-width: none;
        z-index: 22;
        position: relative;
    }

    .hero-brand .brand-kr {
        font-size: clamp(1.4rem, 7.5vw, 3.8rem);
        /* Increased size and factor */
        white-space: nowrap;
        display: block;
        width: fit-content;
        max-width: none;
        z-index: 22;
        position: relative;
    }

    /* Title and CTA: strictly limited to left half, no overlap with image */
    .hero-title {
        font-size: clamp(0.85rem, 3.5vw, 2.2rem);
        /* Significantly increased factor and cap */
        margin-bottom: 20px;
        white-space: nowrap !important;
        width: fit-content;
        max-width: 48%;
        /* Strictly constrained to the left half */
        display: block;
        overflow: visible;
        letter-spacing: -0.01em;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
        width: 48%;
        line-height: 1.5;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 240px !important;
        /* Force fixed width */
        max-width: 48% !important;
        /* Cap only by photo area */
    }

    .hero-cta .btn {
        width: 100% !important;
        height: 48px;
        min-height: 48px;
        font-size: 0.85rem;
        padding: 0 15px;
        min-width: auto;
    }

    /* About Section */
    .about-heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        margin-top: 30px;
        padding-top: 30px;
    }

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

    /* Products Section */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .product-img-wrap {
        height: 250px;
        /* Adjusted for image proportions */
    }

    .product-name {
        font-size: 1.5rem;
    }

    .product-info {
        padding: 25px;
    }

    /* Contact Forms */
    .contact-form-container {
        padding: 30px 20px;
    }

    .form-header h3 {
        font-size: 1.5rem;
    }

    .form-control {
        padding: 12px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding-top: 50px;
    }

    .footer-container {
        gap: 30px;
        margin-bottom: 40px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-desc {
        font-size: 0.95rem;
    }

    .footer-info h4,
    .footer-links h4 {
        margin-bottom: 15px;
        font-size: 1.1rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Very small devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(0.7rem, 3.3vw, 1.25rem);
        /* Consistent with mobile factor */
    }

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

/* ==========================================================================
   Logo Image Styling
   ========================================================================== */
.logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    /* Reduced from 65px */
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
    height: 42px;
    /* Slightly smaller when scrolled */
}

.footer-logo .logo-img {
    height: 75px;
    /* Slightly larger in footer */
}

/* For flawless transparent background emulation: 
   - Light logo (black text, white bg) over light backgrounds using multiply
   - Dark logo (gold/white text, black bg) over dark backgrounds using screen
*/
.header .logo-img {
    mix-blend-mode: multiply;
}

.footer-logo .logo-img {
    mix-blend-mode: screen;
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }

    .header.scrolled .logo-img {
        height: 45px;
    }

    .footer-logo .logo-img {
        height: 60px;
    }
}

/* Fix for Products margin since About was removed */
.products {
    margin-top: 0;
}

/* Privacy Checkbox Styling */
.privacy-consent {
    margin-top: 15px;
    margin-bottom: 20px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    user-select: none;
    font-weight: 400 !important;
    /* Override bold label */
}

/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input~.checkmark {
    border-color: var(--color-accent);
}

/* When the checkbox is checked, add a gold background */
.checkbox-container input:checked~.checkmark {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ==========================================================================
   Privacy Policy Modal
   ========================================================================== */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: flex;
}

.modal-content {
    background-color: var(--color-bg-main);
    border-radius: 12px;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--color-accent);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 28px;
    font-weight: 300;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

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

.modal-content h2 {
    font-family: var(--font-kr);
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-body {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body strong {
    color: var(--color-primary);
}

.privacy-link {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: underline;
    margin-left: 5px;
}

.privacy-link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Product Thumbnails & Detail Modals
   ========================================================================== */
.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keep the whole device visible */
    background-color: #fff;
    /* Ensure clean background for device cutouts */
    transition: transform 0.5s ease;
}

.product-card:hover .product-thumb {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

.product-modal-content {
    padding: 20px;
    max-width: 900px;
    /* Larger max width for spec sheets */
    width: 95%;
    background-color: transparent;
    /* No background to let the image shine */
    box-shadow: none;
    border: none;
    display: flex;
    justify-content: center;
}

.product-modal-content .modal-close {
    color: #fff;
    right: 0px;
    top: -30px;
    font-size: 35px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.detail-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.detail-img-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Products Section Mobile Optimization (2 columns) */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile/tablet */
        gap: 15px;
        /* Narrower gap for mobile */
    }

    .product-info {
        padding: 15px;
        /* Reduced padding for mobile */
    }

    .product-name {
        font-size: 1.1rem;
        /* Smaller font for mobile */
        margin-bottom: 8px;
    }

    .product-summary {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }

    .product-link {
        font-size: 0.85rem;
    }

    .product-img-wrap {
        height: 150px;
        /* Shorter image height for mobile */
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding-top: 80px !important;
        padding-bottom: 80px;
        display: flex;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        padding-top: 0;
    }

    .hero-brand {
        margin-top: 0;
        margin-bottom: 20px;
    }

    .hero-brand .brand-group {
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 6px;
        opacity: 1;
    }

    .hero-brand .brand-en {
        font-size: clamp(1.6rem, 8vw, 3.5rem);
    }

    .hero-brand .brand-kr {
        font-size: clamp(1.4rem, 7vw, 3rem);
    }

    .hero-title {
        font-size: clamp(0.9rem, 3.5vw, 1.8rem);
        width: 48%;
        max-width: 48%;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 25px;
        width: 48%;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        width: 240px !important;
        max-width: 48% !important;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100% !important;
        height: 44px;
        min-height: 44px;
        font-size: 0.8rem;
    }
}