:root {
    --primary-color: #3F51B5; /* MDUI indigo */
    --secondary-color: #E91E63; /* MDUI pink */
    --accent-color: #FF4081; /* MDUI pink accent */
    --bg-color: #ffffff;
    --text-color: #333333;
    --hover-color: #f5f5f5;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --navbar-bg: #3F51B5;
    --navbar-text: #ffffff;
}

[data-theme="dark"] {
    --primary-color: #5C6BC0; /* MDUI indigo lighten */
    --secondary-color: #EC407A; /* MDUI pink lighten */
    --accent-color: #FF80AB; /* MDUI pink accent lighten */
    --bg-color: #121212;
    --text-color: #ffffff;
    --hover-color: #2c3034;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(255, 255, 255, 0.05);
    --navbar-bg: #303F9F; /* MDUI indigo darken */
    --navbar-text: #ffffff;
}

body {
    font-family: Roboto, sans-serif; /* MDUI uses Roboto */
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content takes up remaining space, pushing footer to bottom */
main {
    flex: 1;
}

/* ====================================
   HERO SECTION V2 - Complete Redesign
   Supports Light/Dark mode & Responsive
   ==================================== */

.hero-section-v2 {
    position: relative;
    margin: 16px 0 32px;
    padding: 80px 40px;
    border-radius: 28px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Light mode background */
.hero-section-v2 {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08),
                0 1px 3px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Dark mode background */
[data-theme="dark"] .hero-section-v2 {
    background: linear-gradient(160deg, #0c0c1d 0%, #1a1a2e 40%, #16213e 100%);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Background Layer */
.hero-bg-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Gradient Orbs */
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 12s ease-in-out infinite;
}

/* Light mode orbs - subtle */
.orb-1 {
    width: 350px;
    height: 350px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3), transparent 70%);
    animation-delay: 0s;
}

.orb-2 {
    width: 280px;
    height: 280px;
    bottom: -80px;
    left: -40px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25), transparent 70%);
    animation-delay: -4s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 40%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    animation-delay: -8s;
}

/* Dark mode orbs - more vibrant */
[data-theme="dark"] .orb-1 {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
    opacity: 0.6;
}

[data-theme="dark"] .orb-2 {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
    opacity: 0.6;
}

[data-theme="dark"] .orb-3 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
    opacity: 0.5;
}

@keyframes orbFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    25% { 
        transform: translate(20px, -30px) scale(1.05); 
    }
    50% { 
        transform: translate(-15px, 15px) scale(0.95); 
    }
    75% { 
        transform: translate(10px, 20px) scale(1.02); 
    }
}

/* Noise texture overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .hero-noise {
    opacity: 0.05;
}

/* Content Wrapper */
.hero-content-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Text Side */
.hero-text-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Badge Label */
.hero-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    transition: all 0.3s ease;
}

/* Light mode badge */
.hero-badge-label {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(236, 72, 153, 0.08));
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Dark mode badge */
[data-theme="dark"] .hero-badge-label {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

/* Hero Name */
.hero-name {
    font-family: 'Space Grotesk', 'Roboto', sans-serif;
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 8px 0 12px;
}

/* Light mode name - solid gradient */
.hero-name {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode name - brighter gradient */
[data-theme="dark"] .hero-name {
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 40%, #fb923c 80%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.3));
}

/* Description */
.hero-description {
    font-size: 17px;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 8px;
}

/* Light mode description */
.hero-description {
    color: #64748b;
}

/* Dark mode description */
[data-theme="dark"] .hero-description {
    color: #94a3b8;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

/* CTA Buttons */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-cta-btn i {
    font-size: 20px;
}

/* Primary CTA */
.cta-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 50%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Secondary CTA - Light mode */
.cta-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #1f2937;
}

/* Secondary CTA - Dark mode */
[data-theme="dark"] .cta-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cta-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Avatar Side */
.hero-avatar-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Avatar Container */
.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
}

/* Avatar Glow */
.avatar-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

/* Light mode glow */
.avatar-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.3), transparent 70%);
}

/* Dark mode glow */
[data-theme="dark"] .avatar-glow {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.6), rgba(236, 72, 153, 0.5), transparent 70%);
    opacity: 0.7;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Avatar Border Ring */
.avatar-border-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(
        from 0deg,
        #8b5cf6,
        #d946ef,
        #ec4899,
        #f97316,
        #eab308,
        #22c55e,
        #06b6d4,
        #3b82f6,
        #8b5cf6
    );
    animation: ringRotate 8s linear infinite;
}

.avatar-border-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--bg-color, #f8fafc);
}

[data-theme="dark"] .avatar-border-ring::before {
    background: #0f0f23;
}

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

/* Avatar Image */
.avatar-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 4px solid rgba(139, 92, 246, 0.3);
    background: var(--bg-color, #f8fafc);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .avatar-image {
    border-color: rgba(139, 92, 246, 0.4);
    background: #1a1a2e;
    box-shadow: 0 10px 50px rgba(139, 92, 246, 0.3),
                0 4px 20px rgba(0, 0, 0, 0.3);
}

.avatar-container:hover .avatar-image {
    transform: scale(1.05);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 15px 50px rgba(139, 92, 246, 0.35),
                0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ====================================
   Responsive Design
   ==================================== */

@media (max-width: 900px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text-side {
        align-items: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .hero-avatar-side {
        order: -1;
    }
    
    .avatar-container {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 600px) {
    .hero-section-v2 {
        padding: 50px 20px;
        margin: 12px 0 24px;
        border-radius: 20px;
    }
    
    .hero-content-wrapper {
        padding: 0;
    }
    
    .hero-text-side {
        align-items: center;
        width: 100%;
    }
    
    .hero-name {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 15px;
        text-align: center;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }
    
    .hero-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 14px;
        box-sizing: border-box;
        text-align: center;
    }
    
    .hero-cta-btn i {
        font-size: 18px;
    }
    
    .avatar-container {
        width: 130px;
        height: 130px;
    }
    
    .avatar-glow {
        inset: -20px;
    }
    
    .hero-gradient-orb {
        filter: blur(40px);
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 160px;
        height: 160px;
    }
    
    .orb-3 {
        width: 120px;
        height: 120px;
    }
}

/* MDUI Toolbar customization */
.mdui-toolbar {
    height: 64px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mdui-toolbar .mdui-btn-icon {
    /* width: 40px; */
    /* height: 40px; */
    margin-left: 8px;
    transition: all 0.3s ease;
}

.mdui-toolbar .mdui-btn-icon:hover {
    /* background-color: rgba(255, 255, 255, 0.1); */
    /* transform: translateY(-2px); */
}

/* Drawer customization */
.mdui-drawer {
    background-color: var(--card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
}

.mdui-drawer .mdui-list-item {
    border-radius: 0 28px 28px 0;
    margin-right: 10px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mdui-drawer .mdui-list-item.mdui-list-item-active {
    background-color: rgba(63, 81, 181, 0.15);
    color: var(--primary-color);
}

.mdui-drawer .mdui-list-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.mdui-list-item-icon {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mdui-drawer .mdui-list-item:hover .mdui-list-item-icon {
    transform: scale(1.2);
}

/* Page sections */
section {
    padding-top: 80px;
    margin-top: -56px; /* Offset for fixed header */
    scroll-margin-top: 70px; /* Modern browsers */
    transition: all 0.6s ease-out;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 3rem;
}

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

/* ==================== New Interests Section Styles ==================== */
.interests-card {
    padding: 40px;
    border-radius: 20px;
}

.interests-card h2 {
    margin-bottom: 35px;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 20px;
    background: var(--bg-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.interest-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.interest-icon-wrap {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.interest-icon-wrap i {
    font-size: 36px !important;
    color: white;
}

.interest-icon-wrap.indigo {
    background: linear-gradient(135deg, #5C6BC0, #3F51B5);
}

.interest-icon-wrap.green {
    background: linear-gradient(135deg, #66BB6A, #43A047);
}

.interest-icon-wrap.blue {
    background: linear-gradient(135deg, #42A5F5, #1E88E5);
}

.interest-icon-wrap.red {
    background: linear-gradient(135deg, #EF5350, #E53935);
}

.interest-item:hover .interest-icon-wrap {
    transform: scale(1.1);
}

.interest-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* Add these new styles for enhanced interest buttons */
.interest-card {
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff, #f7f7f7);
    position: relative;
    overflow: hidden;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 50%;
    height: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    /* transform: rotate(45deg); */
    pointer-events: none;
}

.interest-card:hover::before {
    /* top: 150%; */
    /* left: 150%; */
}

.interest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.interest-icon {
    font-size: 48px !important;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.interest-card:hover .interest-icon {
    transform: scale(1.2);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Avatar animation and styling */
.avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    transition: all 0.5s ease;
    box-shadow: 0 0 20px var(--shadow-color);
    object-fit: cover;
}

/* Card styling */
.mdui-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px var(--shadow-color);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 30px;
    background-color: var(--card-bg);
}

.mdui-card:hover {
    /* transform: translateY(-8px); */
    box-shadow: 0 12px 28px var(--shadow-color);
}

/* MDUI Typography enhancements */
.mdui-typo-display-2 {
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.mdui-typo-headline {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 16px;
}

/* Social links and buttons */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center; /* Thêm căn giữa theo chiều ngang */
  gap: 15px;
  margin-top: 20px;
  width: 100%; /* Đảm bảo chiếm toàn bộ chiều rộng của container */
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center; /* Căn giữa nội dung trong nút */
  padding: 8px 15px;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: #f5f5f5;
  min-width: 120px; /* Đặt chiều rộng tối thiểu để các nút đồng đều */
}

.social-links a:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.social-links i {
  margin-right: 8px; /* Khoảng cách giữa icon và text */
}

/* Footer social links - Redesigned */
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.footer-social-links .github {
  color: #fff;
  background-color: #24292e;
  border: 1px solid #24292e;
}

.footer-social-links .email {
  color: #fff;
  background-color: #ea4335;
  border: 1px solid #ea4335;
}

.footer-social-links a:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: width 0.3s ease;
}

.footer-social-links a:hover:before {
  width: 100%;
}

.footer-social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-social-links i {
  margin-right: 10px;
  font-size: 18px;
}

/* Animation on hover */
.footer-social-links a:hover i {
  animation: bounce 0.6s;
}

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

@keyframes animatedGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Updated theme switch button */
#theme-switch {
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

#theme-switch::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#theme-switch:hover::after {
    opacity: 1;
}

#theme-switch:hover {
    transform: rotate(180deg);
}

/* MDUI specific dark theme overrides */
.mdui-theme-layout-dark .interest-card {
    background-color: var(--card-bg);
    background: linear-gradient(145deg, #1e1e1e, #181818);
    transition: 0.2s;
}

.mdui-theme-layout-dark .mdui-card {
    background-color: var(--card-bg);
}

.mdui-theme-layout-dark .mdui-drawer {
    background-color: #1a1a1a;
}

.mdui-theme-layout-dark .mdui-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.mdui-theme-layout-dark .mdui-list-item.mdui-list-item-active {
    background-color: rgba(92, 107, 192, 0.15);
}

/* Scroll to top button with MDUI styles */
#back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    height: 52px;
    width: 52px;
    transform: scale(0);
    border-radius: 50%;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#back-to-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#back-to-top:hover::after {
    opacity: 1;
}

#back-to-top.visible {
    opacity: 1;
    transform: scale(1);
    animation: bounce 2s infinite;
}

#back-to-top i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    line-height: normal;
    font-size: 22px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.05);
    }
    60% {
        transform: translateY(-4px) scale(1.03);
    }
}

/* Hover effect for list items */
.hover-effect {
    transition: all 0.3s ease;
    transform: translateX(0);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

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

.hover-effect:hover {
    background-color: var(--hover-color) !important;
    transform: translateX(10px);
    box-shadow: 0 3px 12px var(--shadow-color);
}

.hover-effect:hover::after {
    left: 100%;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Account for fixed header */
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f1f1;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #666;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #1e1e1e;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #666;border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Typing animation for dynamic text */
.typing-text::after {
    content: '|';
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Card content fade in effect */
.mdui-card {
    position: relative;
}

.mdui-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mask-image: linear-gradient(transparent, black, transparent);
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateY(-100%);
    transition: all 0.7s ease;
}

.mdui-card:hover::before {
    transform: translateY(100%);
}

/* Dark mode transition */
.theme-transition {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.theme-transition * {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Section heading animations */
section h2,
.mdui-card h2 {
    position: relative;
    overflow: hidden;
    padding-bottom: 15px;
}

section h2::after,
.mdui-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

section h2:hover::after,
.mdui-card h2:hover::after {
    width: 100px;
}

/* Make sure Material-UI icons are properly sized */
.mdui-icon.material-icons {
    font-size: 24px;
    line-height: 1;
}

/* Add 3D text effect to main heading */
.mdui-typo-display-2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* MDUI appbar shadow enhancement */
.mdui-appbar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* MDUI FAB button pulse animation */
@keyframes mdui-fab-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 64, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 64, 129, 0);
    }
}

.mdui-fab:not(:active):hover {
    animation: mdui-fab-pulse 1.5s infinite;
}

/* Image link hover effects */
a img {
    transition: all 0.3s ease;
    filter: grayscale(0);
}

a:hover img {
    filter: grayscale(30%);
    transform: scale(1.05);
}

/* MDUI tooltip enhancement */
.mdui-tooltip {
    font-size: 14px;
    /* background-color: var(--primary-color); */
    border-radius: 4px;
    padding: 6px 12px;
}

/* Fix social icons alignment in footer across all screen sizes */
.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.social-icons a i {
    font-size: 20px;
}

#theme-menu.mdui-menu {
    margin-top: 6px;
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}
/* Mobile toolbar adjustments */
@media (max-width: 768px) {
    .mobile-menu {
        display: flex !important;
        order: -1;
        position: static;
        margin-right: 8px;
    }

    .mdui-appbar .mdui-toolbar {
        position: relative;
        gap: 4px;
        padding: 0 8px;
    }

    .mdui-toolbar .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }

    /* Bigger touch targets on mobile */
    .mdui-btn-icon {
        width: 48px !important;
        height: 48px !important;
    }
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    /* Fix social icons alignment in footer */
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 20px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.1);
        margin: 0;
    }
    
    /* Adjust avatar size on mobile */
    .avatar img {
        width: 120px;
        height: 120px;
    }
    
    /* Adjust typography for mobile */
    .mdui-typo-display-2 {
        font-size: 2rem;
    }
    
    .mdui-typo-headline {
        font-size: 1.3rem;
    }
    
    /* Make interest cards more compact on mobile */
    .interest-card {
        height: 120px;
    }
    
    .interest-icon {
        font-size: 36px !important;
    }
    
    /* Adjust padding for sections on mobile */
    section {
        padding-top: 70px;
    }
    
    /* Better button spacing on mobile */
    .social-links a {
        width: 50%;
        max-width: 200px;
        margin: 0 !important;
    }
}