/* ==========================================================================
   Design Variables & Global Setup
   ========================================================================== */
:root {
  --bg-color: #050505;
  --bg-alt-color: #0a0a0c;
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-color: #8B5CF6;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --font-family: 'Poppins', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Reusable UI Components & Utilities
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: 100px 0;
  overflow: hidden; /* Prevents overflow during animations */
}

.bg-alt {
  background-color: var(--bg-alt-color);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-header h2 span {
  background: linear-gradient(
    90deg,
    #8B5CF6,
    #A855F7,
    #38BDF8
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Glassmorphism Base Card */
.glass-card {
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
}

/* ALL BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;

  background: linear-gradient(
    135deg,
    #8B5CF6 0%,
    #A855F7 50%,
    #6D28D9 100%
  );

  color: #ffffff;

  box-shadow:
    0 0 15px rgba(139, 92, 246, 0.4),
    0 0 30px rgba(139, 92, 246, 0.2);

  transition: all 0.35s ease;
  animation: buttonGlow 3s ease-in-out infinite;
}

/* HOVER EFFECT */
.btn:hover {
  background: linear-gradient(
    135deg,
    #A855F7 0%,
    #C084FC 50%,
    #8B5CF6 100%
  );

  transform: translateY(-3px);

  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.8),
    0 0 40px rgba(168, 85, 247, 0.6),
    0 0 60px rgba(168, 85, 247, 0.4);
}

/* CLICK EFFECT */
.btn:active {
  transform: scale(0.97);
}


@keyframes buttonGlow {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(139, 92, 246, 0.4),
      0 0 30px rgba(139, 92, 246, 0.2);
  }

  50% {
    box-shadow:
      0 0 25px rgba(139, 92, 246, 0.7),
      0 0 50px rgba(139, 92, 246, 0.4);
  }
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--card-border);
  padding: 18px 0;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links .nav-btn {
  padding: 10px 22px;
  border-radius: 30px;

  box-shadow:
    0 0 15px rgba(139, 92, 246, 0.4),
    0 0 30px rgba(139, 92, 246, 0.2);

  transition: all 0.35s ease;
}


.nav-links .nav-btn:hover {
  background: linear-gradient(
    135deg,
    #C084FC 0%,
    #A855F7 50%,
    #8B5CF6 100%
  );

  color: #fff;

  transform: translateY(-3px);

  box-shadow:
    0 0 20px rgba(168, 85, 247, 0.8),
    0 0 40px rgba(168, 85, 247, 0.6),
    0 0 60px rgba(168, 85, 247, 0.4);
}

/* Animated underline */
.nav-links a.nav-link:not(.nav-btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 10px var(--accent-color);
}

/* Hover Animation */
.nav-links a.nav-link:not(.nav-btn):hover::after {
  width: 100%;
}

/* 1. Hero Section & Typing Gradient  */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.greeting {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.name {
  font-size: 3.75rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 5px 0 10px;
  background: linear-gradient(180deg, #FFFFFF 0%, #1e225e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role {
  font-size: 1.4rem;
  font-weight: 600;
  min-height: 2.2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* Animated Gradient for Typing Text */
.gradient-type {
  background: linear-gradient(90deg, #8B5CF6, #C084FC, #38BDF8, #8B5CF6);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Typing Cursor */
.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--accent-color);
  margin-left: 4px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.bio-short {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 35px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   PROFILE FLOATING CARDS & IMAGE CONTAINER FIX
   ========================================================================== */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 100%;
  padding: 30px; /* Space allowance for floating badges */
}

/* Floating Animation on Image Wrapper */
.floating-hero {
  animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.glow-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--accent-color);
  opacity: 0.35;
  filter: blur(90px);
  border-radius: 50%;
  z-index: 1;
}

.image-frame {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  background-color: #111;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(110%);
  transition: var(--transition);
}

.image-frame:hover .portrait-img {
  filter: grayscale(0%) contrast(100%);
  transform: scale(1.03);
}

/* Glassmorphism Floating Badges */
.glass-float {
  position: absolute;
  z-index: 10;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.2);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
}

/* 1. Top Card: TOP RIGHT of Profile Image */
.float-top {
  top: 20px;
  right: -20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  animation: floatTopAnim 4s ease-in-out infinite;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 8px #10B981;
}

/* 2. Bottom Card: BOTTOM LEFT of Profile Image */
.float-bottom,
.bottom-badge {
  bottom: 20px;
  left: -20px;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  animation: floatBottomAnim 4.5s ease-in-out infinite;
}

.float-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.float-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes floatTopAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes floatBottomAnim {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

/* ==========================================================================
   2. About Me Section
   ========================================================================== */
.about-card {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-card strong {
  color: var(--text-main);
}

/* ==========================================================================
   3. Education Section
   ========================================================================== */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--card-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 35px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-color);
}

.timeline-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 10px;
}

.timeline-content .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-content .meta strong {
  color: var(--text-main);
}

/* ==========================================================================
   4. Technical Skills & Universal Card Animations
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  cursor: pointer;
}

.skill-card {
  text-align: center;
  padding: 25px 20px;
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto 15px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.skill-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skill-card:hover,
.project-card:hover,
.cert-card:hover,
.achievement-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 12px 35px -10px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   5. Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-header {
  margin-bottom: 15px;
}

.project-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
}

.project-card h3 {
  font-size: 1.25rem;
  line-height: 1.4;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-stack span {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

/* ==========================================================================
   6. Certifications Section
   ========================================================================== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.cert-card {
  position: relative;
}

.cert-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.cert-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.cert-provider {
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 15px;
}

.cert-grade {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
}

.cert-grade strong {
  color: var(--accent-color);
}

.cert-grade .score {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   7. Achievements Section
   ========================================================================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.achievement-card {
  text-align: center;
  padding: 25px 20px;
}

.medal-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.achievement-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.achievement-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.achievement-card.gold:hover {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 12px 35px -10px rgba(234, 179, 8, 0.25);
}

.achievement-card.silver:hover {
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 12px 35px -10px rgba(203, 213, 225, 0.25);
}

/* Achievement Cards */
.achievement-card {
  text-align: center;
  padding: 25px 20px;
  cursor: pointer;
}

.achievement-card h3 {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.achievement-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.medal-icon {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

/* Gold */
.achievement-card.gold:hover {
  border-color: rgba(234, 179, 8, 0.5);
  box-shadow: 0 12px 35px -10px rgba(234, 179, 8, 0.3);
}

/* Silver */
.achievement-card.silver:hover {
  border-color: rgba(203, 213, 225, 0.5);
  box-shadow: 0 12px 35px -10px rgba(203, 213, 225, 0.3);
}

/* Bronze */
.achievement-card.bronze:hover {
  border-color: rgba(180, 83, 9, 0.5);
  box-shadow: 0 12px 35px -10px rgba(180, 83, 9, 0.35);
}

/* Additional Achievements */
.additional-achievements {
  margin-top: 30px;
  text-align: center;
}

.additional-achievements p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.additional-achievements strong {
  color: var(--text-main);
}

/* ==========================================================================
   8. Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 25px;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.contact-text .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-text .value {
  font-size: 0.95rem;
  font-weight: 500;
  word-break: break-all;
}

/* Contact Form */
.contact-form-card {
  padding: 35px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

.form-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1), transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-content p {
  margin: 4px 0;
}

.footer .credit span {
  color: var(--accent-color);
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVENESS FIXES & BREAKPOINTS
   ========================================================================== */

/* 1024px Breakpoint (Small Laptops & Large Tablets) */
@media (max-width: 1024px) {
  .container {
    width: 92%;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .name {
    font-size: 3.2rem;
  }

  .role {
    font-size: 1.25rem;
  }

  /* Proportional image scaling */
  .image-frame {
    width: 280px;
    height: 350px;
  }

  .glow-bg {
    width: 280px;
    height: 280px;
  }

  /* Reposition badges to prevent clipping and overflow */
  .float-top {
    top: 20px;
    right: 0px;
  }

  .float-bottom {
    bottom: 20px;
    left: 0px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* 786px Breakpoint (Tablets & Medium Devices) */
@media (max-width: 786px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  /* Column Layout: Text first, Image below */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .role {
    justify-content: center;
  }

  .bio-short {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  /* Profile Image Scaling */
  .image-frame {
    width: 270px;
    height: 340px;
  }

  .glow-bg {
    width: 260px;
    height: 260px;
  }

  /* Badge positioning as specified for 786px */
  .float-top {
    top: 15px;
    right: 10px;
  }

  .float-bottom {
    bottom: 15px;
    left: 10px;
  }

  .section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2 {
    font-size: 1.85rem;
  }

  .projects-grid,
  .certifications-grid,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* 480px Breakpoint (Mobile Devices) */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .name {
    font-size: 2.25rem;
  }

  .role {
    font-size: 1.05rem;
    min-height: 2rem;
  }

  .bio-short {
    font-size: 0.9rem;
  }

  /* Responsive image scaling */
  .hero-image-wrapper {
    padding: 15px 5px;
  }

  .image-frame {
    width: 100%;
    max-width: 250px;
    height: 310px;
  }

  .glow-bg {
    width: 220px;
    height: 220px;
  }

  /* Compact badges for mobile */
  .glass-float {
    padding: 6px 12px;
  }

  .float-top {
    top: 10px;
    right: 5px;
    font-size: 0.75rem;
  }

  .float-bottom {
    bottom: 10px;
    left: 5px;
  }

  .float-title {
    font-size: 0.75rem;
  }

  .float-sub {
    font-size: 0.65rem;
  }

  /* Stacking buttons */
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .glass-card {
    padding: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }

  .skill-card {
    padding: 18px 10px;
  }

  .contact-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }

  .contact-text .value {
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Hero Section Page-Load Entrance Animations
   ========================================================================== */

/* Left Content Slide from Left (-100px -> 0) */
.hero-content {
  opacity: 0;
  animation: heroSlideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  will-change: opacity, transform;
}

@keyframes heroSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* Right Profile Image Container Slide from Right (100px -> 0) */
.hero-image-wrapper {
  opacity: 0;
  animation: heroSlideRight 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
  will-change: opacity, transform;
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Floating Cards Pop & Scale Animation */
.float-top {
  opacity: 0;
  animation: 
    badgePopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1s,
    floatTopAnim 4s ease-in-out infinite 1.8s; /* Seamlessly transitions to continuous floating after entrance */
  will-change: opacity, transform;
}

.float-bottom {
  opacity: 0;
  animation: 
    badgePopIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 1.2s,
    floatBottomAnim 4.5s ease-in-out infinite 2s; /* Seamlessly transitions to continuous floating after entrance */
  will-change: opacity, transform;
}

@keyframes badgePopIn {
  0% {
    opacity: 0;
    transform: scale(3) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

