/* ========== Base ========== */
html {
    scroll-behavior: smooth;
}

a {
    transition: color 0.2s ease-in-out;
}

/* ========== Navigation ========== */
.nav-transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
}

.nav-transparent .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.nav-transparent .nav-link:hover {
    color: white;
}

.nav-transparent #nav-name {
    color: white;
}

.nav-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-glass #nav-name {
    color: #0f2b46;
}

.nav-glass .nav-link {
    color: #4b5563;
}

.nav-glass .nav-link:hover {
    color: #0f2b46;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #0f2b46;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #1e5a8a);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== Hero ========== */
.hero-gradient {
    background: linear-gradient(135deg, #0c1f33 0%, #122e4f 25%, #1a4a7a 55%, #2563eb 100%);
    min-height: 380px;
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(255,255,255,0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(255,255,255,0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(59,130,246,0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 40%, rgba(99,102,241,0.08) 0%, transparent 35%);
}

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

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.animate-float-slow-reverse {
    animation: float-slow-reverse 10s ease-in-out infinite;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.25rem 0.85rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* ========== Section Headers ========== */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    color: #1e5a8a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.section-icon-light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #3b82f6, #93c5fd, transparent);
    border-radius: 3px;
    margin-top: 0.75rem;
}

.section-line-light {
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2), transparent);
}

/* ========== Content Cards ========== */
.timeline-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6, #1e5a8a);
    border-radius: 4px 0 0 4px;
}

.timeline-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 25px -5px rgba(59, 130, 246, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 8px 25px -5px rgba(139, 92, 246, 0.1), 0 4px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.project-card:hover::after {
    opacity: 1;
}

/* ========== Lists ========== */
.details-list {
    list-style-type: none;
    padding-left: 1.25rem;
    position: relative;
}

.details-list li {
    position: relative;
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.details-list li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b82f6;
}

.pub-list {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.pub-list li {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.details-list a, .pub-list a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.details-list a:hover, .pub-list a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* ========== Date Badge ========== */
.date-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e5a8a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    white-space: nowrap;
}

/* ========== Awards ========== */
.award-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.award-row:last-child {
    border-bottom: none;
}

.award-row:hover {
    background: #f8fafc;
    border-radius: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ========== Skills section ========== */
.skills-gradient {
    background: linear-gradient(135deg, #0f2b46 0%, #1e3a5f 50%, #1e5a8a 100%);
}

.skill-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ========== Footer social icons ========== */
.footer-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* ========== Scroll Animation ========== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
