:root {
  /* Color Palette */
  --primary-color: #4a90e2;   
  --secondary-color: #6c63ff; 
  --accent-color: #00d2d3;    
  --bg-color: #0f1020;        
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-muted: #b0b0b0;
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Changed to top alignment for scrolling */
  overflow-x: hidden;
}

/* Background Animations */
.background-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  animation: float 10s infinite alternate;
}

.shape-1 { width: 300px; height: 300px; background: var(--primary-color); top: -10%; left: -10%; opacity: 0.3; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary-color); bottom: -10%; right: -10%; opacity: 0.25; animation-delay: 2s; }
.shape-3 { width: 200px; height: 200px; background: var(--accent-color); top: 40%; right: 20%; opacity: 0.2; animation-delay: 4s; }

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 50px); }
}

.container {
  max-width: 750px;
  width: 90%;
  margin: 60px auto;
  position: relative; /* Needed for absolute positioning of badge */
}

/* --- Birthday Widget --- */
.birthday-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  padding: 8px 15px;
  border-radius: 12px;
  border: var(--glass-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.birthday-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.birthday-badge i {
  font-size: 1.2rem;
  color: #ff7675; /* Cake color */
}

.birthday-badge div {
  display: flex;
  flex-direction: column;
}

.bday-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bday-count {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* --- Profile Header --- */
.profile-header {
  text-align: center;
  margin-bottom: 50px;
  margin-top: 50px; /* Added space so badge doesn't overlap on mobile */
  animation: fadeInDown 1s ease-out;
}

.img-wrapper {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  display: block;
}

h1 {
  font-size: 2.8rem;
  margin: 15px 0 5px;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #a5a5a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.divider { color: var(--accent-color); font-weight: bold; margin: 0 10px; }

/* --- Buttons --- */
.social-links { display: flex; justify-content: center; gap: 20px; }
.btn { text-decoration: none; padding: 12px 28px; border-radius: 50px; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; }
.btn-icon { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.btn-icon:hover { background: var(--primary-color); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3); border-color: var(--primary-color); }

/* --- Cards --- */
.content-grid { display: grid; gap: 25px; animation: fadeInUp 1s ease-out; }

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  border: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.25); }

h2 { font-size: 1.6rem; border-bottom: 2px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; margin-top: 0; }
h2 i { color: var(--accent-color); }

/* --- Timeline --- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding-left: 25px; margin-bottom: 30px; border-left: 2px solid rgba(255,255,255,0.1); }
.timeline li:last-child { margin-bottom: 0; border-left: 2px solid transparent; } /* Remove line for last item */
.timeline li::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; background: var(--accent-color); border-radius: 50%; box-shadow: 0 0 10px var(--accent-color); }

.timeline .date { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
.timeline strong { font-size: 1.1rem; color: #fff; }

.score-badge { display: inline-block; background: rgba(108, 99, 255, 0.2); color: #a29bfe; font-size: 0.85rem; padding: 4px 12px; border-radius: 6px; margin-top: 8px; font-weight: 600; border: 1px solid rgba(108, 99, 255, 0.3); }
.score-badge.secondary { margin-left: 5px; background: rgba(0, 210, 211, 0.15); color: #81ecec; border-color: rgba(0, 210, 211, 0.3); }

/* --- Skills --- */
.skill-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.skill-tags span { background: rgba(255, 255, 255, 0.05); padding: 8px 18px; border-radius: 25px; font-size: 0.95rem; color: #e0e0e0; border: 1px solid transparent; transition: all 0.3s ease; }
.skill-tags span:hover { border-color: var(--accent-color); background: rgba(0, 210, 211, 0.15); color: #fff; transform: scale(1.05); cursor: default; }

footer { text-align: center; margin-top: 50px; margin-bottom: 20px; color: var(--text-muted); font-size: 0.9rem; opacity: 0.7; }

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .birthday-badge { position: relative; width: fit-content; margin: 0 auto 20px; top: auto; right: auto; }
  h1 { font-size: 2.2rem; }
  .container { width: 95%; margin-top: 30px; }
  .social-links { flex-direction: column; }
}
