/* Modern Design System */
:root {
    --primary-color: #FF4757;
    --primary-dark: #E84545;
    --secondary-color: #5F27CD;
    --accent-color: #00D2D3;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --gray-color: #95A5A6;
    --gradient-1: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    --gradient-2: linear-gradient(135deg, #F093FB 0%, #F5576C 100%);
    --gradient-3: linear-gradient(135deg, #4FACFE 0%, #00F2FE 100%);
    --gradient-4: linear-gradient(135deg, #43E97B 0%, #38F9D7 100%);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Font Weight Classes */
.fw-thin { font-weight: 100 !important; }
.fw-extralight { font-weight: 200 !important; }
.fw-light { font-weight: 300 !important; }
.fw-regular { font-weight: 400 !important; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }
.fw-extrabold { font-weight: 800 !important; }
.fw-black { font-weight: 900 !important; }

/* Modern Navigation */
.navbar {
    transform: translateY(0);
}


.navbar-brand {
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    transition: var(--transition);
}

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

.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    letter-spacing: -0.01em;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-nav .nav-link::after {
    display: none !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section Redesign */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.8) 0%, rgba(95, 39, 205, 0.8) 100%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.133 7-7s-3.134-7-7-7-7 3.133-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.133 7-7s-3.134-7-7-7-7 3.133-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
}

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

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-content .lead {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: none;
    position: relative;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

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

/* Business Cards Animation */
.business-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-1);
    transform: rotate(45deg) translateY(100%);
    transition: transform 0.6s ease;
    z-index: 0;
}

.business-card:hover::before {
    transform: rotate(45deg) translateY(0);
}

.business-card > * {
    position: relative;
    z-index: 1;
}

.business-card:hover {
    color: white;
    transform: translateY(-10px);
}

.business-card:hover .icon-box {
    background: rgba(255, 255, 255, 0.2);
}

.business-card:hover h4,
.business-card:hover p {
    color: white;
}

.business-card .btn-link {
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding-right: 25px;
}

.business-card .btn-link i {
    transition: transform 0.3s ease;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.business-card .btn-link:hover {
    color: var(--primary-dark);
}

.business-card .btn-link:hover i {
    transform: translateY(-50%) translateX(5px);
}

.business-card:hover .btn-link {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.business-card:hover .btn-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 25px;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.business-card:hover .btn-link:hover::after {
    transform: scaleX(1);
}

/* Icon Box */
.icon-box {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.icon-box i {
    color: white !important;
    font-size: 2rem;
}

/* Modern Buttons */
.btn-modern {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: -0.01em;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-modern:hover::before {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}

/* Page Header Modern */
.page-header {
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.page-header h1 {
    color: white;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: white;
}

/* Modern Footer */
footer {
    background: var(--dark-color);
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

footer h3, footer h5 {
    color: #ffffff !important;
}

footer p, footer small, footer a, footer li {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: #ffffff !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}


footer img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-1);
}

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

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

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

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate-on-scroll.slideInUp {
    animation-name: slideInUp;
}

.animate-on-scroll.slideInLeft {
    animation-name: slideInLeft;
}

.animate-on-scroll.slideInRight {
    animation-name: slideInRight;
}

.animate-on-scroll.scaleIn {
    animation-name: scaleIn;
}

/* Modern Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: slideInUp 0.3s ease;
}

.dropdown-item {
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateX(5px);
}

/* Modern Search Form */
.search-form {
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 60px;
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.search-form .form-control {
    border: none;
    padding: 20px 30px;
    font-size: 1.1rem;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    border: none;
    padding: 20px 40px;
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    transition: var(--transition);
}

.search-form .btn:hover {
    transform: translateX(5px);
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .page-header {
        padding-top: 100px !important;
    }
}