/* ========================================
   BATAM CO., LTD. - Modern Design System
   ======================================== */

/* Global Styles & CSS Variables */
:root {
    --primary: #C41E3A;
    --primary-dark: #8B0000;
    --primary-light: #FF2D55;
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --navy: #1E3A8A;
    --tropical: #10B981;
    --tropical-light: #34D399;
    
    --gradient-primary: linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    --gradient-success: linear-gradient(135deg, #34D399 0%, #10B981 100%);
    --gradient-blue: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.20);
    
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
}

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

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    overflow-x: hidden;
}

body[lang="ko"], 
body[lang="ko"] * {
    font-family: 'Noto Sans KR', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* Modern Glassmorphism Navigation */
nav {
    backdrop-filter: saturate(180%) blur(20px);
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow-md);
}

.nav-link {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Modern Language Buttons */
.lang-btn {
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem;
}

.lang-btn:hover {
    background-color: rgba(196, 30, 58, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Ultra Modern Hero Section */
.hero-section {
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 50%, #1E3A8A 100%);
    min-height: 700px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05)),
        linear-gradient(150deg, rgba(255, 255, 255, 0.05) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.05) 87.5%, rgba(255, 255, 255, 0.05));
    background-size: 80px 140px;
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { background-position: 0 0; }
    100% { background-position: 80px 140px; }
}

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

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

/* Modern Gradient Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Modern Glassmorphism Cards */
.card-hover {
    background: white;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(196, 30, 58, 0.2);
}

/* Stats Cards with Glow Effect */
.stat-card {
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: scale(1.05);
}

/* Modern Icon Boxes */
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.icon-box::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent 30%);
    animation: iconRotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.icon-box:hover::before {
    opacity: 0.3;
}

.icon-box:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Partner Logos with Modern Hover */
.partner-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0);
    opacity: 1;
}

.partner-logo:hover {
    transform: translateY(-5px) scale(1.05);
    filter: grayscale(0) drop-shadow(0 8px 20px rgba(196, 30, 58, 0.2));
}

/* Modern Badge Styles */
.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-bpom {
    background: var(--gradient-success);
    color: white;
}

.badge-halal {
    background: var(--gradient-blue);
    color: white;
}

.badge-ftz {
    background: var(--gradient-gold);
    color: white;
}

/* Modern Tab Styles */
.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #6b7280;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(196, 30, 58, 0.05);
    border-radius: 12px 12px 0 0;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: linear-gradient(180deg, rgba(196, 30, 58, 0.05) 0%, transparent 100%);
}

.tab-content {
    display: none;
    animation: fadeInScale 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-content.active {
    display: block;
}

/* Form Styles - Modern & Clean */
input, textarea, select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.1);
    transform: translateY(-2px);
}

/* Scroll to Top Button */
#scroll-to-top {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Text Gradient Effect */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Modern Background Pattern */
.bg-pattern {
    background-color: #f9fafb;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(196, 30, 58, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 20%);
}

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    border-left: 3px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    padding-bottom: 2rem;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(196, 30, 58, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid #f1f5f9;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8B0000 0%, #C41E3A 100%);
}

/* Loading Animation */
.loading {
    opacity: 0.6;
    pointer-events: none;
    filter: blur(2px);
}

/* Selection Color */
::selection {
    background: rgba(196, 30, 58, 0.2);
    color: var(--primary);
}

/* Page Transitions */
.page-enter {
    opacity: 0;
    transform: translateY(30px);
}

.page-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Elements Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Print Styles */
@media print {
    nav, footer, .btn-primary, .btn-secondary, #scroll-to-top {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
}
