/* Additional responsive styles and customizations */

/* Custom breakpoints */
@media (max-width: 640px) {
    .hero-gradient h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-gradient p {
        font-size: 1.1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .grid-cols-responsive {
        grid-template-columns: 1fr;
    }
    
    .research-card {
        flex-direction: column;
        text-align: center;
    }
    
    .member-card {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-gradient h1 {
        font-size: 3.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .grid-cols-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .hero-gradient h1 {
        font-size: 4rem;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
    
    .grid-cols-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Enhanced card animations */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, var(--yonsei-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--yonsei-blue) 0%, var(--accent-cyan) 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 168, 181, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--yonsei-blue);
    color: var(--yonsei-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Loading animations */
.loading-spinner {
    border: 3px solid rgba(0, 168, 181, 0.2);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Pulse animation for CTA buttons */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 168, 181, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 168, 181, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 168, 181, 0);
    }
}

/* Enhanced form styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.1);
}

.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Tag styles */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag-primary {
    background: linear-gradient(135deg, var(--yonsei-blue) 0%, var(--accent-cyan) 100%);
    color: white;
}

.tag-secondary {
    background: rgba(0, 168, 181, 0.1);
    color: var(--accent-cyan);
}

/* Navigation enhancements */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

/* Mobile menu enhancements */
.mobile-menu {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.mobile-menu.show {
    transform: translateY(0);
    opacity: 1;
}

/* Hero section enhancements */
.hero-content {
    animation: fadeInUp 1s ease-out;
}

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

.hero-bg {
    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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%2300A8B5" stop-opacity="0.1"/><stop offset="100%" stop-color="%23003876" stop-opacity="0.1"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="500" cy="700" r="120" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

/* Research highlight cards */
.research-card {
    position: relative;
    overflow: hidden;
}

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

.research-card:hover::before {
    left: 100%;
}

/* Publication list enhancements */
.publication-item {
    border-left: 4px solid var(--accent-cyan);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.publication-item:hover {
    border-left-color: var(--yonsei-blue);
    background: rgba(0, 168, 181, 0.02);
}

/* Member card hover effects */
.member-card {
    position: relative;
    overflow: hidden;
}

.member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--yonsei-blue) 0%, var(--accent-cyan) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.member-card:hover::after {
    opacity: 0.1;
}

/* News card date badge */
.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--yonsei-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Contact form enhancements */
.contact-form {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.contact-info {
    background: linear-gradient(135deg, var(--light-slate) 0%, white 100%);
    border-radius: 1rem;
    padding: 2rem;
}

/* Footer enhancements */
.footer-link {
    position: relative;
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-text-black {
        color: black !important;
    }
    
    .hero-gradient {
        background: white !important;
        color: black !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-slate: #1e293b;
        --deep-gray: #f1f5f9;
        --dark-blue: #f8fafc;
    }
    
    .bg-white {
        background: #1e293b !important;
    }
    
    .text-slate-900 {
        color: #f8fafc !important;
    }
    
    .text-slate-600 {
        color: #cbd5e1 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-gradient {
        background: #000080;
    }
    
    .text-slate-600 {
        color: #000;
    }
    
    .border-slate-100 {
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    .pulse-animation {
        animation: none;
    }
}