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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #fef3e2 0%, #fefaf5 50%, #f0f9ff 100%);
    background-attachment: fixed;
    color: #334155;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Animated Wave Background */
.wave-animation {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.wave1 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,60 Q300,20 600,60 T1200,60 L1200,120 L0,120 Z" fill="%230891b2" fill-opacity="0.08"/></svg>');
    background-size: 50% 100%;
    animation: wave-animation 25s linear infinite;
    opacity: 0.8;
}

.wave2 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,80 Q250,40 500,80 T1000,80 T1500,80 L1500,120 L0,120 Z" fill="%2306b6d4" fill-opacity="0.06"/></svg>');
    background-size: 50% 100%;
    animation: wave-animation 20s linear infinite reverse;
    opacity: 0.6;
}

.wave3 {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,90 Q200,60 400,90 T800,90 T1200,90 L1200,120 L0,120 Z" fill="%23f59e0b" fill-opacity="0.04"/></svg>');
    background-size: 50% 100%;
    animation: wave-animation 30s linear infinite;
    opacity: 0.5;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #0891b2 0%, #ffb25a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(203, 213, 225, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(8, 145, 178, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(8, 145, 178, 0.15);
}

.glass-card-static {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(203, 213, 225, 0.3);
}

.profile-image {
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #0891b2, #0e7490, #f59e0b);
    border-radius: 0.75rem;
    z-index: -1;
    opacity: 0.6;
    animation: rotate 3s linear infinite;
}

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

.btn-modern {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-modern span {
    position: relative;
    z-index: 1;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.3), transparent);
    margin: 3rem 0;
}

.link-hover {
    position: relative;
    transition: color 0.3s ease;
}

.link-hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0891b2, #0e7490);
    transition: width 0.3s ease;
}

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

.project-icon-wrapper {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 213, 225, 0.3);
    transition: all 0.3s ease;
}

.project-icon-wrapper:hover {
    border-color: rgba(8, 145, 178, 0.5);
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.2);
}

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

::-webkit-scrollbar-track {
    background: rgba(254, 243, 226, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0891b2, #f3c068);
    border-radius: 5px;
}

/* Publication description hover effect */
.description-collapse {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.4s ease;
    opacity: 0;
    overflow: hidden;
}

.group:hover .description-collapse {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.75rem;
}

.description-content {
    min-height: 0;
}
