:root{
  /* Dark Mode Colors (Default) */
  --bg1: #0F172A;
  --bg2: #1E3A5F;
  --bg3: #164E63;
  --card: #1E293B;
  --card-rgb: 30, 41, 59;
  --accent: #3B82F6;
  --accent2: #06B6D4;
  --muted: #94A3B8;
  --text-primary: #F1F5F9;
  --text-secondary: #E2E8F0;
  --text-muted: #94A3B8;
  --glass: rgba(30,41,59,0.85);
  --shadow: 0 15px 40px rgba(0,0,0,0.4);
}

/* Light Mode Colors */
[data-theme="light"]{
  --bg1: #FFE5EC;
  --bg2: #B5F5EC;
  --bg3: #FFD6E8;
  --card: #ffffff;
  --card-rgb: 255, 255, 255;
  --accent: #FF6B9D;
  --accent2: #FFA07A;
  --muted: #666666;
  --text-primary: #111827;
  --text-secondary: #333333;
  --text-muted: #666666;
  --glass: rgba(255,255,255,0.65);
  --shadow: 0 15px 40px rgba(16,24,40,0.15);
}

/* Light Mode Specific Styles */
[data-theme="light"] .card {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.75));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.3);
}

[data-theme="light"] .card:hover {
  box-shadow: 0 20px 50px rgba(16,24,40,0.2), 0 0 0 1px rgba(255,255,255,0.6);
}

[data-theme="light"] .avatar {
  background: radial-gradient(circle at 30% 20%, #fff, rgba(255,255,255,0.3)), linear-gradient(135deg,#FFD58E,#FF9FCC, #FFB6D9);
  box-shadow: 0 12px 28px rgba(255,107,157,0.3);
  border: 5px solid rgba(255,255,255,0.8);
}

[data-theme="light"] .name {
  background: linear-gradient(135deg, #FF6B9D, #C44569, #FF6B9D);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .badge {
  background: linear-gradient(135deg,#FFF0F5,#FFE4F0);
  color: #C44569;
  box-shadow: 0 4px 12px rgba(196,69,105,0.15);
  border: 2px solid rgba(255,182,217,0.3);
}

[data-theme="light"] .badge:hover {
  box-shadow: 0 8px 20px rgba(196,69,105,0.25);
  background: linear-gradient(135deg,#FFE4F0,#FFDAE8);
}

[data-theme="light"] .about {
  color: #333;
  background: linear-gradient(135deg, rgba(255,240,245,0.5), rgba(255,228,240,0.5));
  border: 2px dashed rgba(255,107,157,0.2);
}

[data-theme="light"] .stat {
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,240,245,0.4));
}

[data-theme="light"] .stat:hover {
  background: linear-gradient(135deg, rgba(255,240,245,0.8), rgba(255,228,240,0.6));
}

[data-theme="light"] .stat .num {
  background: linear-gradient(135deg, #FF6B9D, #FFA07A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .section-title {
  color: #C44569;
}

[data-theme="light"] .section-title svg path {
  fill: #C44569;
}

[data-theme="light"] .socials a {
  background: linear-gradient(135deg,#fff,#FFF5F8);
  box-shadow: 0 8px 18px rgba(2,6,23,0.08);
  color: #111;
  border: 2px solid rgba(255,107,157,0.1);
}

[data-theme="light"] .socials a::before {
  background: linear-gradient(90deg, transparent, rgba(255,107,157,0.2), transparent);
}

[data-theme="light"] .socials a:hover {
  box-shadow: 0 12px 24px rgba(255,107,157,0.2);
  border-color: rgba(255,107,157,0.3);
}

[data-theme="light"] .skill {
  background: linear-gradient(135deg,#E8F5FF,#FFF0F8);
  color: #2C5F7C;
  box-shadow: 0 4px 12px rgba(44,95,124,0.1);
  border: 2px solid rgba(181,245,236,0.3);
}

[data-theme="light"] .skill:hover {
  box-shadow: 0 8px 20px rgba(44,95,124,0.2);
  background: linear-gradient(135deg,#D4EDFF,#FFE4F0);
}

[data-theme="light"] .bio-container {
  background: linear-gradient(145deg,#fafbfc,#f8f9fa);
  border: 1px solid rgba(200,200,200,0.2);
}

[data-theme="light"] .bio-item {
  color: #495057;
}

[data-theme="light"] .bio {
  background: linear-gradient(145deg,#FFFAF0,#FFF5F8);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  color: #333;
  border: 2px solid rgba(255,228,240,0.4);
}

[data-theme="light"] .bio::before {
  color: rgba(255,107,157,0.2);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg,#FF6B9D,#FFA07A);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 12px 30px rgba(255,107,157,0.4);
}

[data-theme="light"] .btn-ghost {
  border: 2px solid rgba(255,107,157,0.3);
  color: #C44569;
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(255,107,157,0.1);
}

[data-theme="light"] .btn-celebrate {
  background: linear-gradient(135deg,#FFD58E,#FFB6D9);
  color: #5b2a2a;
  border: 2px solid rgba(255,255,255,0.5);
}

[data-theme="light"] .modal-content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .modal-close {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 160, 122, 0.1));
  color: #FF6B9D;
}

[data-theme="light"] .modal-close:hover {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 160, 122, 0.2));
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}

[data-theme="light"] .modal-title {
  background: linear-gradient(135deg, #FF6B9D, #FFA07A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .modal-subtitle {
  color: #666;
}

[data-theme="light"] .contact-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 240, 245, 0.6));
  border: 2px solid rgba(255, 107, 157, 0.15);
  color: inherit;
}

[data-theme="light"] .contact-item::before {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 157, 0.1), transparent);
}

[data-theme="light"] .contact-item:hover {
  border-color: rgba(255, 107, 157, 0.4);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.2);
  background: linear-gradient(135deg, rgba(255, 240, 245, 0.9), rgba(255, 228, 240, 0.7));
}

[data-theme="light"] .contact-icon {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(255, 160, 122, 0.1));
}

[data-theme="light"] .contact-label {
  color: #999;
}

[data-theme="light"] .contact-value {
  color: #333;
}

[data-theme="light"] .contact-arrow {
  color: #FF6B9D;
}

[data-theme="light"] .modal-footer {
  border-top: 2px solid rgba(255, 107, 157, 0.1);
}

[data-theme="light"] .modal-message {
  color: #666;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(135deg,var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
  background-attachment: fixed;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  color:var(--text-primary);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  position: relative;
  transition: background 0.5s ease, color 0.3s ease;
}

/* Utility Classes */
.flex{display:flex}
.flex-between{display:flex;justify-content:space-between;align-items:center}
.flex-center{display:flex;align-items:center}
.flex-wrap{flex-wrap:wrap}
.gap-10{gap:10px}
.gap-12{gap:12px}
.mb-10{margin-bottom:10px}
.mb-12{margin-bottom:12px}
.mt-auto{margin-top:auto}
.relative{position:relative}
.z-1{z-index:1}

/* Avatar */
.avatar-img{
  border-radius:50%;
  object-fit:cover;
}

/* Bio Section */
.bio-container{
  background: linear-gradient(145deg,#1E3A5F,#164E63);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 20px;
}

.bio-item{
  margin-bottom: 10px;
  color: #CBD5E1;
}
.bio-item:last-child{
  margin-bottom: 0;
}

/* Button Styles */
.btn-primary{
  background: linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;
  border:2px solid rgba(59,130,246,0.5);
}

.btn-celebrate{
  background:linear-gradient(135deg,#F59E0B,#10B981);
  color:#ffffff;
  border:2px solid rgba(59,130,246,0.5);
}

/* Floating bubbles background */
.bubble {
  position: fixed;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0.2));
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
  z-index: 0;
}

.bubble:nth-child(1) { width: 80px; height: 80px; left: 10%; top: 20%; animation-delay: 0s; }
.bubble:nth-child(2) { width: 60px; height: 60px; left: 80%; top: 40%; animation-delay: 2s; }
.bubble:nth-child(3) { width: 100px; height: 100px; left: 50%; top: 60%; animation-delay: 4s; }
.bubble:nth-child(4) { width: 70px; height: 70px; left: 20%; top: 80%; animation-delay: 1s; }
.bubble:nth-child(5) { width: 90px; height: 90px; left: 70%; top: 10%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  25% { transform: translateY(-30px) translateX(20px) scale(1.1); }
  50% { transform: translateY(0) translateX(-20px) scale(0.9); }
  75% { transform: translateY(30px) translateX(10px) scale(1.05); }
}

/* Container */
.profile-wrap{
  width:100%;
  max-width:1000px;
  display:grid;
  grid-template-columns: 380px 1fr;
  gap:32px;
  align-items:stretch;
  position: relative;
  z-index: 1;
}

/* Card styling with enhanced glassmorphism */
.card{
  background: linear-gradient(145deg, rgba(var(--card-rgb),0.95), rgba(var(--card-rgb),0.85));
  border-radius:24px;
  padding:32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent);
  border-opacity: 0.2;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
  display:flex;
  flex-direction:column;
}

.card:hover {
  box-shadow: var(--shadow);
  filter: brightness(1.05);
}

/* Avatar with bounce animation */
.avatar{
  width:140px;
  height:140px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 16px;
  background: radial-gradient(circle at 30% 20%, #1E3A5F, rgba(30,58,95,0.5)), linear-gradient(135deg,#3B82F6,#06B6D4, #0EA5E9);
  box-shadow: 0 12px 28px rgba(59,130,246,0.5);
  border:5px solid rgba(59,130,246,0.3);
  position: relative;
  animation: bounce 3s infinite ease-in-out;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05) rotate(5deg);
}

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

/* Sparkle effect on avatar */
.avatar::after {
  content: '✨';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 1.5rem;
  animation: sparkle 2s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.5; transform: scale(1.2) rotate(180deg); }
}

.name{
  text-align:center;
  font-size:1.6rem;
  font-weight:800;
  margin-bottom:6px;
  letter-spacing:-0.5px;
  background: linear-gradient(135deg, #3B82F6, #06B6D4, #3B82F6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.role{
  text-align:center;
  color:var(--muted);
  font-size:1rem;
  margin-bottom:18px;
  font-style: italic;
}

.badges{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.badge{
  background: var(--accent2);
  background-opacity: 0.2;
  padding:8px 14px;
  border-radius:999px;
  font-weight:600;
  font-size:0.85rem;
  color:var(--accent);
  box-shadow: 0 4px 12px var(--accent2);
  border: 2px solid var(--accent2);
  border-opacity: 0.3;
  transition: all 0.3s ease;
  cursor: pointer;
}

.badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(6,182,212,0.5);
  background: linear-gradient(135deg,#164E63,#0E7490);
}

.about{
  font-size:0.98rem;
  line-height:1.6;
  color:var(--text-secondary);
  text-align:center;
  margin-bottom:20px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(var(--card-rgb),0.5), rgba(var(--card-rgb),0.3));
  border-radius: 16px;
  border: 2px dashed var(--accent);
  border-opacity: 0.3;
  transition: all 0.3s ease;
}

.stats{
  display:flex;
  gap:16px;
  justify-content:space-around;
  margin-top:12px;
}

.stat{
  text-align:center;
  padding: 12px;
  background: linear-gradient(135deg, rgba(30,58,95,0.6), rgba(22,78,99,0.4));
  border-radius: 12px;
  flex: 1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.stat:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(6,182,212,0.3));
}

.stat .num{
  font-weight:800;
  font-size:1.4rem;
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat .lbl{
  font-size:0.75rem;
  color:var(--muted);
  margin-top:4px;
}

/* Right column */
.card-right{
  padding:28px 32px;
  gap:20px;
}

.section-title{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  font-size: 1.1rem;
  color: var(--accent);
  transition: color 0.3s ease;
}

.section-title svg path {
  fill: var(--accent);
  transition: fill 0.3s ease;
}

.socials {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.socials a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:12px;
  background:rgba(var(--card-rgb),0.6);
  box-shadow:var(--shadow);
  text-decoration:none;
  color:var(--text-secondary);
  font-weight:600;
  font-size:0.9rem;
  border: 2px solid var(--accent);
  border-opacity: 0.3;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
  transition: left 0.5s;
}

.socials a:hover::before {
  left: 100%;
}

.socials a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:0 12px 24px rgba(59,130,246,0.4);
  border-color: rgba(59,130,246,0.5);
}

.skills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.skill{
  padding:10px 16px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(14,116,144,0.25));
  font-weight:600;
  font-size:0.9rem;
  color: #67E8F9;
  box-shadow: 0 4px 12px rgba(6,182,212,0.3);
  border: 2px solid rgba(6,182,212,0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill:hover {
  transform: translateY(-3px) rotate(2deg);
  box-shadow: 0 8px 20px rgba(6,182,212,0.5);
  background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(14,116,144,0.35));
  color: #A5F3FC;
}

.bio{
  padding:18px;
  border-radius:16px;
  background:linear-gradient(145deg,#1E3A5F,#164E63);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  color:#E2E8F0;
  line-height:1.7;
  border: 2px solid rgba(6,182,212,0.3);
  position: relative;
}

.bio::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(59,130,246,0.2);
  font-family: Georgia, serif;
}

.actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap: wrap;
}

.btn{
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  border:0;
  cursor:pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary{
  background:linear-gradient(135deg,#FF6B9D,#FFA07A);
  color:#fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(59,130,246,0.6);
}

.btn-ghost{
  background:transparent;
  border:2px solid rgba(59,130,246,0.5);
  color:#3B82F6;
}

.btn-ghost:hover {
  background: rgba(59,130,246,0.2);
  transform: translateY(-3px);
}

/* Fun emoji animations */
.emoji-float {
  display: inline-block;
  animation: float-emoji 3s infinite ease-in-out;
}

@keyframes float-emoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

/* Confetti canvas */
#confetti-canvas{
  position:fixed;
  left:0;
  top:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:9999;
}

/* Wavy text animation */
.wavy{
  display:inline-block;
  transform-origin:50% 50%;
}

.wavy span{
  display:inline-block;
  animation:wave 1.6s infinite ease-in-out;
}

.wavy span:nth-child(2){animation-delay:0.05s}
.wavy span:nth-child(3){animation-delay:0.1s}
.wavy span:nth-child(4){animation-delay:0.15s}
.wavy span:nth-child(5){animation-delay:0.2s}
.wavy span:nth-child(6){animation-delay:0.25s}
.wavy span:nth-child(7){animation-delay:0.3s}
.wavy span:nth-child(8){animation-delay:0.35s}

@keyframes wave {
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-10px) rotate(5deg)}
}

/* Responsive */
@media (max-width:920px){
  body{
    padding:20px 16px;
    align-items:flex-start;
    min-height:100vh;
    height:auto;
  }
  
  .profile-wrap{
    grid-template-columns:1fr;
    padding:0;
    gap: 20px;
    margin:0;
  }
  .card-right{order:2}
  .card{order:1}
  
  .card{
    padding:24px;
    border-radius:20px;
  }
  
  .avatar{
    width:120px;
    height:120px;
  }
  
  .name{
    font-size:1.4rem;
  }
  
  .role{
    font-size:0.9rem;
  }
  
  .badges{
    gap:8px;
  }
  
  .badge{
    padding:6px 12px;
    font-size:0.8rem;
  }
  
  .stats{
    gap:12px;
  }
  
  .stat .num{
    font-size:1.2rem;
  }
  
  .stat .lbl{
    font-size:0.7rem;
  }
  
  .socials{
    gap:8px;
  }
  
  .socials a{
    padding:8px 12px;
    font-size:0.85rem;
  }
  
  .skills{
    gap:8px;
  }
  
  .skill{
    padding:8px 14px;
    font-size:0.85rem;
  }
  
  .section-title{
    font-size:1rem;
  }
  
  .actions{
    width:100%;
  }
  
  .btn{
    padding:10px 16px;
    font-size:0.9rem;
    flex:1;
  }
  
  .mt-auto{
    flex-direction:column;
    gap:12px;
  }
  
  .bio-container{
    padding:16px;
  }
  
  .bio-item{
    font-size:0.9rem;
  }
}

/* Loading animation */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59,130,246,0.4); }
  50% { box-shadow: 0 0 40px rgba(59,130,246,0.7); }
}

/* Tooltip */
[title]:hover::after {
  animation: tooltip-appear 0.3s ease;
}

@keyframes tooltip-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(var(--card-rgb), 0.95), rgba(var(--card-rgb), 0.85));
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 30px var(--accent);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 28px;
  position: absolute;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

@media (max-width: 920px) {
  .theme-toggle {
    top: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  
  .theme-icon {
    font-size: 24px;
  }
}

/* Modern Contact Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  animation: modalFadeIn 0.3s ease-out;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  animation: overlayFadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(30, 58, 95, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(59, 130, 246, 0.3);
  animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10001;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  color: #3B82F6;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10002;
}

.modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(6, 182, 212, 0.3));
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.5);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: modalIconBounce 0.6s ease-out;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-subtitle {
  font-size: 1rem;
  color: #94A3B8;
  margin: 0;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.6), rgba(22, 78, 99, 0.5));
  border-radius: 16px;
  border: 2px solid rgba(59, 130, 246, 0.3);
  text-decoration: none;
  color: #E2E8F0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

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

.contact-item:hover::before {
  left: 100%;
}

.contact-item:hover {
  transform: translateX(8px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(22, 78, 99, 0.7));
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
  border-radius: 14px;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: rotate(10deg) scale(1.1);
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 0.85rem;
  color: #94A3B8;
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #E2E8F0;
}

.contact-arrow {
  font-size: 1.5rem;
  color: #3B82F6;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.contact-item:hover .contact-arrow {
  transform: translateX(5px);
  opacity: 1;
}

.modal-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid rgba(59, 130, 246, 0.3);
}

.modal-message {
  margin: 0;
  color: #94A3B8;
  font-size: 1rem;
  font-style: italic;
}

/* Modal Animations */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

/* Mobile Modal Responsive */
@media (max-width: 600px) {
  .modal-content {
    padding: 30px 24px;
    border-radius: 24px;
    max-height: 85vh;
  }

  .modal-icon {
    font-size: 3rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .modal-subtitle {
    font-size: 0.9rem;
  }

  .contact-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.6rem;
  }

  .contact-label {
    font-size: 0.8rem;
  }

  .contact-value {
    font-size: 0.95rem;
  }

  .contact-arrow {
    font-size: 1.3rem;
  }
}