:root {
    --sidebar-expanded: 260px;
    --sidebar-collapsed: 80px;
    
    /* Enhanced Blue Color Palette */
    --primary-dark: #0d1b2a;
    --primary-navy: #1b263b;
    --primary-blue: #415a77;
    --accent-blue: #778da9;
    --accent-light: #e0e1dd;
    
    /* Vibrant Accent Colors */
    --accent-cyan: #00b4d8;
    --accent-teal: #0096c7;
    --accent-sky: #48cae4;
    --accent-electric: #90e0ef;
    
    /* Highlight Colors */
    --highlight-orange: #ff8500;
    --highlight-amber: #ffb703;
    --highlight-gold: #ffd60a;
    
    /* Text Colors */
    --text-dark: #1b263b;
    --text-medium: #415a77;
    --text-light: #778da9;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f0f4f8;
    --bg-blue-light: #e8f1f5;
    --bg-gradient-1: linear-gradient(135deg, #0d1b2a 0%, #1b263b 50%, #415a77 100%);
    --bg-gradient-2: linear-gradient(135deg, #415a77 0%, #778da9 100%);
    --bg-gradient-3: linear-gradient(135deg, #00b4d8 0%, #0096c7 100%);
    --bg-gradient-accent: linear-gradient(135deg, #ff8500 0%, #ffb703 100%);
    --bg-gradient-hero: linear-gradient(180deg, rgba(13, 27, 42, 0.65) 0%, rgba(65, 90, 119, 0.55) 100%);
    
    /* Shadows with Blue Tints */
    --shadow-sm: 0 2px 4px rgba(13, 27, 42, 0.08);
    --shadow-md: 0 4px 12px rgba(27, 38, 59, 0.12);
    --shadow-lg: 0 10px 30px rgba(27, 38, 59, 0.18);
    --shadow-xl: 0 20px 50px rgba(13, 27, 42, 0.25);
    
    /* Glow Effects */
    --glow-cyan: 0 0 20px rgba(0, 180, 216, 0.4);
    --glow-sky: 0 0 25px rgba(72, 202, 228, 0.5);
    --glow-orange: 0 0 20px rgba(255, 133, 0, 0.4);
}

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

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Sidebar ===== */
.sidebar {
    background: var(--bg-gradient-1);
    height: 100vh;
    color: white;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    overflow: visible;
    z-index: 1000;
    box-shadow: 2px 0 20px rgba(0,0,0,0.2);
    top: 0;
    left: 0;
}

.sidebar.expanded {
    width: var(--sidebar-expanded);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.profile::after {
    content: '☰';
    position: absolute;
    bottom: 5px;
    font-size: 0.8em;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.profile:hover::after {
    opacity: 1;
}

.profile:hover {
    transform: scale(1.05);
}

.profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background-color: white;
    border: 3px solid var(--accent-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4), var(--glow-cyan);
}

.profile:hover img {
    border-color: var(--accent-sky);
    box-shadow: 0 6px 20px rgba(72, 202, 228, 0.6), var(--glow-sky);
}

.profile .name {
    margin-top: 10px;
    font-size: 0.9em;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.sidebar.collapsed .name {
    opacity: 0;
    pointer-events: none;
}

/* ===== Navigation ===== */
.sidebar nav {
    margin-top: 20px;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 150px);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-cyan) transparent;
}

.sidebar nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 4px 8px;
    border-radius: 10px;
    min-height: 48px;
}

.sidebar nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--bg-gradient-3);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.sidebar nav a:hover::before,
.sidebar nav a.active::before {
    height: 70%;
}

.sidebar nav a i {
    font-size: 1.3em;
    min-width: 40px;
    width: 40px;
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar nav a span {
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 8px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar.expanded nav a {
    padding: 14px 20px;
}

.sidebar.collapsed nav a {
    padding: 12px;
    justify-content: center;
    min-width: 60px;
}

.sidebar.collapsed nav a span {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    width: 0;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar.expanded nav a:hover {
    transform: translateX(5px);
}

.sidebar nav a:hover i,
.sidebar nav a.active i {
    color: var(--accent-cyan);
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.6));
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed nav a {
    position: relative;
}

.sidebar.collapsed nav a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, left 0.3s ease;
    font-size: 0.9em;
    z-index: 1001;
}

.sidebar.collapsed nav a:hover::after {
    opacity: 1;
    left: calc(100% + 15px);
}

/* ===== Main Content ===== */
.main {
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    overflow: visible;
}

.expanded ~ .main {
    margin-left: var(--sidebar-expanded);
    width: calc(100% - var(--sidebar-expanded));
}

.collapsed ~ .main {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
}

/* ===== Content Wrapper ===== */
.content {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

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

.content h1 {
    font-size: 2.5em;
    background: var(--bg-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--bg-gradient-3);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.content h2 {
    color: var(--primary-blue);
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 600;
}

.content h3 {
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
}

.content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.content ul {
    list-style: none;
    padding-left: 0;
}

.content ul li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: bold;
}

.content ul li:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.content a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.content a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* ===== Slideshow ===== */
.slideshow {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.slideshow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-gradient-hero);
    z-index: 1;
}

.slideshow-inner {
    width: 100%;
    max-width: 1100px;
    padding: 0 16px;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

/* ===== Quote ===== */
.quote {
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-navy);
    padding: 30px 40px;
    font-size: 1.4em;
    text-align: center;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    box-shadow: var(--shadow-xl);
    font-style: italic;
    font-weight: 500;
    border-left: 5px solid var(--accent-cyan);
    border-image: var(--bg-gradient-3) 1;
    animation: fadeIn 2s ease 0.5s both;
}

/* ===== About Section ===== */
.about-section {
    padding: 60px 30px;
    max-width: 1100px;
    margin: -80px auto 0;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-section h1 {
    margin-top: 0;
    font-size: 2.5em;
    background: var(--bg-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-section h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--bg-gradient-3);
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.about-section p {
    font-size: 1.15em;
    line-height: 1.8;
    color: var(--text-light);
}

.about-section .about-content {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.about-section .about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Name Banner ===== */
.name-banner {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--primary-navy);
    border-radius: 20px;
    box-shadow: var(--shadow-xl), var(--glow-cyan);
    margin-bottom: 30px;
    border: 2px solid var(--accent-cyan);
}

.name-banner h1 {
    font-size: 3em;
    margin: 0;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeIn 2s forwards;
    background: var(--bg-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#typing-text {
    margin-top: 15px;
    font-size: 1.2em;
    font-style: italic;
    opacity: 0.9;
    border-right: 2px solid var(--accent-cyan);
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-medium);
}

/* ===== Fade In Animation ===== */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ===== Publication Cards ===== */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.publication-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-cyan);
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
    border-left-color: var(--accent-sky);
}

.publication-card .pub-type {
    display: inline-block;
    background: var(--bg-gradient-3);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.publication-card .pub-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
    line-height: 1.4;
}

.publication-card .pub-venue {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 12px;
}

.publication-card .pub-authors {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.publication-card .pub-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gradient-2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(65, 90, 119, 0.3);
}

.publication-card .pub-link:hover {
    background: var(--bg-gradient-3);
    transform: translateX(5px);
    box-shadow: var(--glow-cyan);
}

/* ===== Research Cards ===== */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.research-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--bg-gradient-3);
}

.research-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
}

.research-card .icon {
    font-size: 3em;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 180, 216, 0.3));
}

.research-card h3 {
    color: var(--primary-blue);
    margin: 15px 0;
    font-size: 1.4em;
}

.research-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ===== Timeline (Teaching) ===== */
.timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bg-gradient-3);
    box-shadow: var(--glow-cyan);
}

.timeline-item {
    position: relative;
    padding-left: 70px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-cyan);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 4px var(--accent-cyan), var(--glow-cyan);
}

.timeline-item h2 {
    color: var(--primary-blue);
    font-size: 1.8em;
    margin-bottom: 10px;
}

.timeline-item h3 {
    color: var(--accent-blue);
    font-size: 1.3em;
    margin: 15px 0 10px;
}

.timeline-item ul {
    margin-top: 10px;
}

.timeline-item ul li {
    background: var(--bg-white);
    padding: 15px 15px 15px 30px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-item ul li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

/* ===== Contact Page ===== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
}

.contact-card i {
    font-size: 3em;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 180, 216, 0.3));
}

.contact-card h3 {
    color: var(--primary-blue);
    margin: 15px 0;
}

.contact-card a {
    color: var(--accent-blue);
    word-break: break-all;
    display: block;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--accent-cyan);
}

/* ===== Personal Info ===== */
.personal-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--accent-color);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 1100px;
}

.info-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl), var(--glow-cyan);
}

.info-section h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--primary-blue);
    border-bottom: 3px solid var(--accent-cyan);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-section h2 i {
    color: var(--accent-cyan);
    filter: drop-shadow(0 2px 4px rgba(0, 180, 216, 0.3));
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    margin-bottom: 12px;
    padding-left: 0;
}

.info-section ul li::before {
    content: none;
}

.info-section ul li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== Resume toolbar ===== */
.resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: var(--bg-light);
    overflow: hidden;
}

.resume-toolbar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: var(--shadow-md);
    width: 100%;
    flex-shrink: 0;
}

.resume-toolbar button,
.resume-toolbar .download-btn,
.resume-toolbar a.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gradient-2);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.resume-toolbar button:hover,
.resume-toolbar .download-btn:hover {
    transform: translateY(-2px);
    background: var(--bg-gradient-3);
    box-shadow: var(--shadow-md), var(--glow-cyan);
}

.resume-toolbar .icon-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
}

.resume-toolbar span {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 8px;
    font-weight: 500;
}

#resume-canvas {
    display: block;
    margin: 20px auto;
    max-width: calc(100% - 40px);
    width: auto;
    height: auto;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    background: white;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-collapsed) !important;
    }
    
    .sidebar.expanded,
    .sidebar.collapsed {
        width: var(--sidebar-collapsed) !important;
    }
    
    .main {
        margin-left: var(--sidebar-collapsed) !important;
        width: calc(100% - var(--sidebar-collapsed)) !important;
    }
    
    .content {
        padding: 20px;
    }
    
    .content h1 {
        font-size: 2em;
    }
    
    .name-banner h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }
    
    #typing-text {
        font-size: 1em;
    }
    
    .publications-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-item::before {
        left: 7px;
    }
    
    .resume-toolbar {
        padding: 10px;
        gap: 8px;
    }
    
    .resume-toolbar button,
    .resume-toolbar .download-btn {
        flex: 1 1 45%;
        min-width: 110px;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    #resume-canvas {
        max-width: 1100px;
    }
}

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

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

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

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-gradient-1);
    color: white;
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 3px solid var(--accent-cyan);
    box-shadow: 0 -4px 20px rgba(0, 180, 216, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 8px 0;
    font-size: 0.95em;
    opacity: 0.95;
}

.footer .social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer .social-links a {
    color: white;
    font-size: 1.5em;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.footer .social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: var(--accent-sky);
    filter: drop-shadow(0 4px 8px rgba(72, 202, 228, 0.6));
}

.footer .copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
    opacity: 0.8;
}

/* ===== Projects Section ===== */
.projects-section {
    padding: 50px 30px;
    max-width: 1100px;
    margin: 40px auto;
    background: var(--bg-white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.projects-section .section-header h2 {
    font-size: 1.6em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-blue);
    margin-bottom: 6px;
}

.projects-section .section-sub {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 0.98em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.project-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(65, 90, 119, 0.06);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.project-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.project-desc {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 12px;
    min-height: 44px;
}

.project-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.9em;
    color: var(--text-medium);
}

.project-meta .meta-item {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    background: rgba(0, 180, 216, 0.06);
    padding: 6px 8px;
    border-radius: 8px;
    color: var(--accent-cyan);
}

.projects-loading {
    padding: 30px;
    text-align: center;
    color: var(--text-medium);
    width: 100%;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Activities Page ===== */
.activity-section {
    margin-bottom: 50px;
}

.activity-section h2 {
    font-size: 2em;
    color: var(--primary-blue);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.activity-section .section-description {
    color: var(--text-light);
    font-size: 1.05em;
    margin-bottom: 25px;
}

/* Calendar Container */
.calendar-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    min-height: 700px;
}

.calendar-container iframe {
    width: 100%;
    min-height: 800px;
    height: 800px;
    border: none;
    border-radius: 8px;
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.album-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.album-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.album-card h3 {
    color: var(--primary-navy);
    margin: 15px 0 10px;
}

.album-card iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
}

.album-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-gradient-3);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    margin-bottom: 15px;
}

.album-link:hover {
    background: var(--bg-gradient-2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--glow-cyan);
}

.album-preview iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: var(--shadow-md);
}

/* Album Thumbnail Previews */
.album-thumbnail-link {
    display: block;
    text-decoration: none;
    margin-bottom: 15px;
}

.album-thumbnail {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.1) 0%, rgba(72, 202, 228, 0.15) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.album-thumbnail-placeholder i {
    font-size: 4em;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.album-thumbnail-placeholder span {
    font-size: 1.1em;
    color: var(--text-medium);
    font-weight: 500;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 180, 216, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.album-overlay i {
    font-size: 3em;
    color: white;
}

.album-overlay span {
    font-size: 1.2em;
    color: white;
    font-weight: 600;
}

.album-thumbnail:hover .album-overlay {
    opacity: 1;
}

.album-thumbnail:hover .album-thumbnail-placeholder i {
    transform: scale(1.1);
}

.album-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.album-info {
    text-align: center;
}

.album-info h3 {
    margin: 15px 0 10px;
    color: var(--primary-navy);
}

.album-info p {
    color: var(--text-light);
    font-size: 0.95em;
}

/* Embed Placeholders */
.embed-placeholder {
    background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, rgba(72, 202, 228, 0.05) 100%);
    border: 2px dashed var(--accent-cyan);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
}

.embed-placeholder h3 {
    color: var(--primary-blue);
    margin: 10px 0;
}

.embed-placeholder p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.embed-placeholder ol {
    color: var(--text-medium);
    line-height: 1.8;
}

.placeholder-instructions {
    margin-top: 15px;
    text-align: center;
}

.placeholder-instructions strong {
    color: var(--primary-blue);
    display: block;
    margin-bottom: 8px;
}

/* Activities Timeline */
.activities-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-entry {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;

