/* === RESET & VARIABLES === */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-color: #f0f0f0;         /* Your Light Gray */
  --card-bg: #ffffff;          /* Your White */
  --primary: #5d74c7;          /* Your Blue */
  --primary-dark: #4a63a5;
  --text-main: #111111;
  --text-light: #555555;
  --font-display: 'Oswald', sans-serif; /* Sporty Header */
  --font-body: 'Inter', sans-serif;     /* Clean Body */
}

body {
  font-family: var(--font-body);
  background: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* === TOP BAR (Kept mostly same) === */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 30px; position: fixed; top: 0; width: 100%;
  background: rgba(240, 240, 240, 0.8); backdrop-filter: blur(10px);
  z-index: 1000;
}
.profile-pic { width: 40px; height: 40px; border-radius: 50%; border: 2px solid white; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }

/* Hamburger */
.menu-toggle { display: flex; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; cursor: pointer; }
.menu-toggle span { height: 3px; width: 100%; background: #111; border-radius: 4px; transition: 0.3s; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Menu Overlay */
.overlay-menu {
  position: fixed; top: 0; left: 0; width: 100%; height: 0;
  background: white; z-index: 999; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.overlay-menu.open { height: 100vh; }
.overlay-menu a {
  font-family: var(--font-display); font-size: 3rem; text-decoration: none;
  color: #111; margin: 10px; transition: 0.3s; text-transform: uppercase;
}
.overlay-menu a:hover { color: var(--primary); letter-spacing: 2px; }

/* === HERO SECTION === */
.hero-wrapper {
  padding-top: 100px; padding-bottom: 40px; padding-left: 20px; padding-right: 20px;
  display: flex; justify-content: center;
}

.hero {
  position: relative;
  background-color: var(--primary); /* YOUR BLUE */
  border-radius: 40px;
  padding: 80px 30px;
  width: 100%; max-width: 1200px;
  text-align: center; color: white;
  overflow: hidden;
}

/* Bubble (Kept from your original) */
.bubble-follow {
  position: absolute; width: 250px; height: 250px;
  background: radial-gradient(circle, #ffffff, transparent 70%);
  border-radius: 50%; filter: blur(50px); opacity: 0.4;
  pointer-events: none; transform: translate(-50%, -50%);
  transition: transform 2s ease, opacity 1s ease;
}

.pill-label {
  display: inline-block; background: rgba(255,255,255,0.2);
  padding: 8px 16px; border-radius: 30px; font-size: 0.8rem;
  font-weight: 600; letter-spacing: 1px; margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 8rem); /* Massive Text */
  line-height: 0.9; font-weight: 700;
  text-transform: uppercase; margin-bottom: 20px;
}

.tagline {
  font-size: 1.1rem; max-width: 500px; margin: 0 auto 40px; opacity: 0.9;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; }
.hero-btn {
  padding: 14px 32px; border-radius: 30px; font-weight: 600; text-decoration: none;
  transition: 0.3s;
}
.hero-btn.primary { background: white; color: var(--primary); }
.hero-btn.secondary { border: 2px solid white; color: white; }
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* === MARQUEE (SCROLLING TEXT) === */
.marquee-strip {
  background: white;
  padding: 15px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;
  overflow: hidden; white-space: nowrap; transform: rotate(-1deg); margin: 20px -10px;
}
.marquee-content { display: inline-block; animation: scroll 20s linear infinite; }
.marquee-content span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  color: var(--primary); margin-right: 40px; text-transform: uppercase;
}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === BENTO GRID PROJECTS === */
.section-container { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.section-header h2 {
  font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 30px;
  text-transform: uppercase; color: var(--primary);
}

.bento-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Special classes for Bento layout */
@media (min-width: 768px) {
  .large-card { grid-column: span 2; }
}

.bento-card {
  background: var(--card-bg);
  border-radius: 24px; overflow: hidden;
  position: relative; height: 350px;
  text-decoration: none; color: var(--text-main);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-image { height: 100%; width: 100%; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }

.card-details {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 25px; background: linear-gradient(to top, rgba(255,255,255,1) 60%, transparent);
  display: flex; justify-content: space-between; align-items: flex-end;
}

.card-details h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 5px; font-family: var(--font-display); text-transform: uppercase;}
.card-details p { font-size: 0.9rem; color: #666; }
.arrow-btn {
  background: var(--primary); color: white; width: 40px; height: 40px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: bold; transition: 0.3s;
}

.bento-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(93, 116, 199, 0.2); }
.bento-card:hover .card-image img { transform: scale(1.05); }
.bento-card:hover .arrow-btn { transform: rotate(-45deg); }

/* === ABOUT BENTO GRID === */
.about-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 20px; margin-top: 20px;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-card {
  background: white; padding: 30px; border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; justify-content: center;
}

.text-box { grid-column: span 1; }
.text-box h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary); font-family: var(--font-display); }
.tech-stack { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-stack span { font-size: 0.8rem; background: #eee; padding: 5px 10px; border-radius: 10px; font-weight: 600; }

.stat-box { text-align: center; align-items: center; }
.big-number { font-size: 3.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-display); line-height: 1; }
.label { font-size: 0.9rem; font-weight: 600; color: #666; margin-top: 5px; }

.highlight-blue { background: var(--primary); }
.highlight-blue .big-number, .highlight-blue .label { color: white; }

.social-box { align-items: center; text-decoration: none; color: #333; transition: 0.3s; }
.social-box i { font-size: 2.5rem; margin-bottom: 10px; color: var(--primary); }
.social-box:hover { background: #eee; }

/* === FOOTER === */
.site-footer {
  margin-top: 80px; padding: 40px 20px; background: white;
  text-align: center; border-top: 1px solid #eee;
}
.footer-socials a { font-size: 1.5rem; margin: 0 10px; color: var(--primary); }
/* === TIMELINE (NEW) === */
.timeline-box {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.timeline-row {
  display: flex;
  align-items: flex-start;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  transition: 0.3s;
}

.timeline-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-row:first-child {
  padding-top: 0;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 140px; /* Ensures years align perfectly */
  line-height: 1;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timeline-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* Mobile Timeline Adjustment */
@media (max-width: 600px) {
  .timeline-row {
    flex-direction: column;
  }
  .timeline-year {
    margin-bottom: 10px;
    font-size: 1.8rem;
  }
}
/* === SKILLS & LINKS RESTORATION === */
.skills-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #eee; /* Divider line */
  text-align: center;
}

.skills-title {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.chip {
  background: #eef2f9; /* Light Blue Background */
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px; /* Pill shape */
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
}

.chip:hover {
  transform: translateY(-2px);
  background: #dce5f7;
}

.about-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.link-pill {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.link-pill:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 20px rgba(93, 116, 199, 0.25);
  transform: translateY(-2px);
}

/* Grid Adjustment for the new layout */
@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 2fr 1fr !important; /* Wider Left Column */
  }
  .stats-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .stat-box {
    height: 100%; /* Fill height */
  }
}