/* Custom CSS for BNI FESTIVAL Chapter - Global Medi & Beauty */

/* Color Variables */
:root {
    --medical-blue: #0066CC;
    --beauty-pink: #E91E63;
    --global-gold: #FFB800;
    --premium-navy: #1A365D;
    --luxury-gray: #2D3748;
    --light-gray: #F7FAFC;
    --soft-blue: #EBF8FF;
    --soft-pink: #FDF2F8;
    --soft-gold: #FFFBEB;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--luxury-gray);
}

/* Custom Animations */
@keyframes fadeInUp {
    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 pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
.hero-bg {
    background: linear-gradient(135deg, var(--medical-blue) 0%, #8B5CF6 50%, var(--beauty-pink) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--medical-blue), var(--beauty-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--medical-blue), var(--beauty-pink));
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--medical-blue);
    border: 2px solid var(--medical-blue);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--medical-blue);
    color: white;
    transform: translateY(-2px);
}

/* Form Enhancements */
.form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-input:focus {
    outline: none;
    border-color: var(--medical-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    background: white;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--luxury-gray);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--medical-blue), var(--beauty-pink), transparent);
    margin: 40px 0;
}

/* Network Cards */
.network-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-blue), var(--beauty-pink));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.network-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Icon Styles */
.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 16px;
}

.icon-container i {
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 1;
}

/* Stats Counter Animation */
.stats-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--medical-blue), var(--beauty-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #48BB78, #38A169);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    color: var(--luxury-gray);
    text-decoration: none;
    border-bottom: 1px solid #E2E8F0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--medical-blue);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-blue), var(--beauty-pink));
    z-index: 100;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s ease;
}

/* Ambassador Card */
.ambassador-card {
    background: linear-gradient(135deg, var(--soft-blue), var(--soft-pink));
    border-radius: 24px;
    padding: 40px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.ambassador-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.ambassador-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--medical-blue), var(--beauty-pink));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
}

.ambassador-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
}

.ambassador-avatar i {
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 1;
}

/* Value Chain Grid */
.value-chain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-chain-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-chain-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--medical-blue), var(--beauty-pink));
}

.value-chain-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, var(--premium-navy), #2D3748);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .value-chain-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .network-card {
        padding: 20px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .ambassador-card {
        padding: 20px;
    }
    
    .ambassador-avatar {
        width: 80px;
        height: 80px;
    }
    
    .ambassador-avatar i {
        font-size: 32px;
    }
}

/* Toggle More Functionality */
.toggle-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.toggle-content.hidden {
    max-height: 0;
    opacity: 0;
}

.toggle-content:not(.hidden) {
    max-height: 1000px;
    opacity: 1;
}

/* Priority Tab Styles */
.priority-tab-container {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px;
    border-radius: 50px;
    display: inline-flex;
    gap: 2px;
}

.priority-tab-button {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
}

.priority-tab-button.active {
    background: linear-gradient(135deg, var(--medical-blue), var(--beauty-pink));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.priority-tab-button:not(.active) {
    color: var(--luxury-gray);
}

.priority-tab-button:not(.active):hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--medical-blue);
}

/* Priority Cards Animation */
.priority-card {
    transition: all 0.3s ease;
}

.priority-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Social Media Enhanced Styles */
.social-media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.social-media-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    transform-origin: center;
}

.social-media-link:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-media-link i {
    transition: all 0.3s ease;
}

.social-media-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Footer Styles */
.footer-gradient {
    background: linear-gradient(135deg, var(--premium-navy) 0%, #2D3748 50%, #1A202C 100%);
    position: relative;
}

.footer-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 184, 0, 0.1) 0%, transparent 50%);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F7FAFC;
        --text-secondary: #CBD5E0;
        --bg-primary: #1A202C;
        --bg-secondary: #2D3748;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .gradient-text {
        color: black;
    }
}