/* Custom CSS for Neomax Website */

/* Color Variables */
:root {
    --primary-blue: #1e40af;
    --secondary-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
    --gradient-start: #1e40af;
    --gradient-end: #3b82f6;
}

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Header Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 64, 175, 0.95);
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #3b82f6, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.text-gradient-hero {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: #60a5fa;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(59, 130, 246, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

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

/* Logo Carousel */
.logo-carousel-container {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,1) 10%, 
        rgba(255,255,255,1) 90%, 
        rgba(255,255,255,0) 100%);
    padding: 20px 0;
}

.logo-carousel {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(200px * 12); /* 6 logos * 2 (duplicate) * width */
}

.logo-item {
    flex: 0 0 200px;
    height: 120px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-card {
    width: 180px;
    height: 100px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.logo-text {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    color: #1e40af;
    line-height: 1.2;
}

/* Individual Logo Styles */
.logo-text.khnp {
    color: #059669;
    font-size: 14px;
}

.logo-text.gyeongnam {
    color: #dc2626;
    font-size: 14px;
}

.logo-text.hyundai {
    color: #1e40af;
    font-size: 16px;
}

.logo-text.sejong {
    color: #1e40af;
    font-size: 12px;
}

.logo-text.hanla {
    color: #dc2626;
    font-size: 16px;
}

.logo-text .korean {
    color: #dc2626;
    font-size: 14px;
}

.logo-text .english {
    color: #1e40af;
    font-size: 12px;
}

.logo-text .ihl {
    color: #6b7280;
    font-size: 14px;
}

.logo-text .ims {
    color: #6b7280;
    font-size: 14px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6 - 240px)); /* 6 logos width + margins */
    }
}

/* Pause animation on hover */
.logo-carousel-container:hover .logo-carousel {
    animation-play-state: paused;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
}

/* Stats Animation */
.stats .stat-value {
    animation: pulse 2s ease-in-out infinite;
}

/* Form Styles */
.form-control {
    margin-bottom: 1rem;
}

.input:focus,
.textarea:focus {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .logo-carousel {
        animation-duration: 20s;
    }
    
    .logo-item {
        flex: 0 0 150px;
        margin: 0 10px;
    }
    
    .logo-card {
        width: 140px;
        height: 80px;
    }
    
    .logo-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .logo-item {
        flex: 0 0 120px;
        margin: 0 5px;
    }
    
    .logo-card {
        width: 110px;
        height: 70px;
    }
    
    .logo-text {
        font-size: 10px;
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

/* Gradient Backgrounds */
.gradient-bg-1 {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.gradient-bg-2 {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue);
}

/* Print Styles */
@media print {
    .navbar,
    .floating-element,
    .logo-carousel-container {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero {
        background: none !important;
        color: black !important;
    }
}

