/* Font Definitions */
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* Variables & Theming */
:root {
    --primary: #f8c849;
    --primary-hover: #e0b441;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: #333;
    --transition: all 0.3s ease;

    /* Legacy variable compatibility */
    --primary-color: var(--primary);
    --text-color: var(--text-main);
    --bg-color: var(--bg-dark);
    --bg-secondary: var(--bg-light);
    --header-bg: rgba(10, 10, 10, 0.8);
    --border-color: var(--border);
    --card-bg: var(--bg-light);
    --hero-overlay: rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: light) {
    /* Keep it dark as the primary style of taser.life is dark */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-content {
    margin-top: 80px;
    padding-bottom: 50px;
}

#hero-bg-fix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.highlight {
    color: var(--primary-color);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo,
.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

header nav {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    gap: 30px;
}

header nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

header nav a:hover {
    color: var(--primary);
}


.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

#lang-toggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    transition: var(--transition);
}

#lang-toggle:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
}

#theme-toggle svg {
    display: none;
}

/* Show correct icon based on functionality (handled by JS/CSS combination usually, but here default) */
/* Ideally we check class on body, for now assume auto */
/* We will handle icon switching in JS, simplified CSS here */
.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Actually let's just make JS toggle a class on the button or body */

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Background handled by #hero-slideshow now */
}

#hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    /* Always white text on hero image */
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(248, 200, 73, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
    border-radius: 50%;
    top: 10%;
    right: -10%;
    filter: blur(40px);
    animation: pulse 4s infinite alternate;
}

.glow-circle.small {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: 10%;
    background: radial-gradient(circle, rgba(248, 200, 73, 0.08) 0%, rgba(10, 10, 10, 0) 70%);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 120px 0;
}

/* CEO Message */
#ceo-message {
    background-color: var(--bg-color);
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ceo-image {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.ceo-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.ceo-text p {
    margin-bottom: 20px;
    color: var(--text-color);
    /* slightly lighter than headers if needed, using custom opacity usually */
    opacity: 0.9;
}

.signature {
    margin-top: 30px;
    font-weight: 700;
    font-family: 'Cursive', serif;
    /* Fallback */
    font-style: italic;
    color: var(--primary-color);
}

/* History */
#history {
    background-color: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    /* Mobile first logic often puts line on left, centered for desktop */
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
    z-index: 1;
    transform: translateX(-50%);
}

.timeline-item .year {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline-item .desc {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Business Areas */
#business {
    background-color: var(--bg-color);
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.btn-text {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    padding: 80px 0 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-logo img {
    height: 40px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info a {
    color: inherit;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-info .disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
}

/* Footer Family Site */
.family-site {
    position: relative;
    margin-top: 20px;
}

#family-site-toggle {
    background: none;
    border: 1px solid #777;
    color: #aaa;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

#family-site-toggle:hover {
    border-color: #fff;
    color: #fff;
}

#family-site-list {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 10px 0;
    margin-bottom: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

#family-site-list.active {
    display: block;
}

#family-site-list li {
    padding: 5px 10px;
}

#family-site-list a {
    color: #aaa;
    font-size: 0.8rem;
    display: block;
    white-space: nowrap;
}

#family-site-list a:hover {
    color: #fff;
}

/* Responsive */
/* Mobile Menu Button */
#menu-toggle {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    /* Above mobile menu */
    margin-right: 20px;
}

#menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Responsive */
@media (min-width: 769px) {
    .timeline::before {
        left: 50%;
        margin-left: -1px;
    }

    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 50px;
        text-align: right;
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-right: 0;
        padding-left: 50px;
        text-align: left;
    }

    .timeline-item::before {
        right: 0;
        left: auto;
        transform: translateX(50%);
    }

    .timeline-item:nth-child(even)::before {
        left: 0;
        right: auto;
        transform: translateX(-50%);
    }

    h1.hero-title {
        font-size: 5rem;
    }
}

@media (max-width: 768px) {
    #menu-toggle {
        display: flex;
    }

    header nav {
        flex-direction: row-reverse;
        /* Put controls on right, menu button left of them, or adjust layout */
    }

    header nav ul {
        position: fixed;
        top: 70px;
        /* Below header */
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    header nav ul.active {
        transform: translateY(0);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    header nav ul li {
        margin: 15px 0;
    }

    header nav a {
        font-size: 1.2rem;
    }

    /* Adjust layout for mobile */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .message-content {
        grid-template-columns: 1fr;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.visible {
    opacity: 1 !important;
    transform: none !important;
}

.fade-up {
    transform: translateY(30px);
}

.fade-in {
    transform: scale(0.95);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}