:root {
  --bg-dark: #0b132b;
  --glow-blue: #6fbaff;
  --glow-violet: #9b7bff;
  --glow-pink: #ff6b8a;
  --text-soft: rgba(235, 245, 255, 0.9);
}

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Inter,sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  overflow-y: scroll;
  scroll-snap-type: y proximity;
}

body {
  min-height: 100vh;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}
/* ===============================
   VIDEO BACKGROUND
================================ */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* SOLID OVERLAY (NO GRADIENT) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(49, 49, 51, 0.299);
  z-index: -1;
}

.navbar {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 36px;
  border-radius: 999px;

  background: rgba(10, 18, 40, 0.65);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(111,186,255,0.25);
  box-shadow:
    0 0 20px rgba(111,186,255,0.25),
    inset 0 0 18px rgba(111,186,255,0.12);

  display: flex;
  align-items: center;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  gap: 26px;
  list-style: none;
}

/* ===== NAV ITEMS ===== */
.navbar a {
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  transition: color 0.3s ease;
}

/* glowing bubble */
.navbar a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at center,
    rgba(0,255,255,0.45),
    rgba(0,255,255,0.15),
    transparent 70%
  );
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* hover bubble */
.navbar a:hover::before {
  opacity: 1;
}

.navbar a:hover {
  color: #ffffff;
}
/* ===== ACTIVE NAV ITEM ===== */
.navbar a.active {
  color: #ffffff;
}

.navbar a.active::before {
  opacity: 1;
  background: radial-gradient(
    circle at center,
    rgba(0,255,255,0.75),
    rgba(0,255,255,0.35),
    transparent 75%
  );
}
/* ===============================
   ACTIVE UNDERLINE (FINAL FIX)
================================ */


/* ===============================
   MORPHING NAV INDICATOR
================================ */

.nav-indicator {
  position: absolute;
  bottom: 7px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgb(61,159,250),
    rgb(0,255,255)
  );
  border-radius: 999px;

  box-shadow:
    0 0 10px rgba(61,159,250,0.8),
    0 0 18px rgba(0,255,255,0.6);

  transition:
    transform 0.45s cubic-bezier(.22,.61,.36,1),
    width 0.45s cubic-bezier(.22,.61,.36,1),
    opacity 0.2s ease;

  pointer-events: none;
  opacity: 0;
}
.section {
  position: relative;
  will-change: transform;
}

/* =====================================================
   MOBILE NAVBAR
===================================================== */
@media (max-width: 768px) {

  .navbar {
    left: 50%;
    transform: translateX(-50%);
    
    padding: 10px 16px;
    border-radius: 999px;

    background: rgba(10, 18, 40, 0.85);
    backdrop-filter: blur(18px);
  }

  .navbar ul {
    gap: 12px;
  }

  .navbar a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Hide indicator on mobile */
  .nav-indicator {
    position: absolute;
    margin-left: 25px;
  }
}
@media (max-width: 420px) {
  .navbar {
    padding: 8px 12px;
  }

  .navbar ul {
    gap: 8px;
  }

  .navbar a {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

/* METEORS */
.meteors .meteor {
  position:fixed;
  width:12px;
  height:12px;
  border-radius:50%;
  background: #eaf3ff;
  box-shadow:
    0 0 8px rgba(111,186,255,0.8),
    0 0 18px rgba(111,186,255,0.6);
  pointer-events:none;
  z-index:9999;
}

/* HOME */
/* ===============================
   HERO / HOME SECTION
================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

/* ===============================
   LEFT TEXT
================================ */

.hero-text h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero-text h1 .name-text {
  background: linear-gradient(
    90deg,
    #319bff 0%,     /* soft blue */
    #42ffcd 35%,    /* near-white */
    #336dff 65%,    /* muted violet */
    #29ff50 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.location {
  margin: 14px 0 6px;
  font-size: 0.98rem;
  color: rgba(235,245,255,0.75);
}

.location i {
  color: #6fbaff;
  margin-right: 6px;
}

.hero-text h2 {
  margin-top: 18px;
  font-size: 1.9rem;
  font-weight: 700;
  color: rgba(235,245,255,0.9);
}

#typing {
  color: #6be1ff;
  text-shadow: 0 0 10px rgb(0, 204, 255);
}

.actions {
  margin-top: 32px;
  display: flex;
  align-items: center;   /* 🔑 vertical alignment */
  gap: 24px;
}

/* Social icons container */
.socials {
  display: flex;
  align-items: center;   /* 🔑 same baseline */
  gap: 18px;
}
/* ===============================
   ACTION ICONS (NO UNDERLINE)
================================ */

/* remove underline globally for these */
.actions a {
  text-decoration: none;
}

/* social icon buttons */
.socials a {
  width: 48px;
  height: 48px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid white;
  color: #ffffff;
  font-size: 1.1rem;

  text-decoration: none;   /* 🔑 kills underline */
}

/* prevent underline on hover/focus as well */
.socials a:hover,
.socials a:focus,
.socials a:active {
  text-decoration: none;
}

/* resume button is also an icon-style button, not link */
.resume-btn {
  height: 48px;
  padding: 0 28px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  text-decoration: none;   /* 🔑 no underline */

  background: linear-gradient(
    135deg,
    rgba(27, 7, 247, 0.895),
    rgba(13, 1, 111, 0.948)
  );

  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-weight: 600;
}


/* ===============================
   HERO GIF (RIGHT SIDE)
================================ */

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gif-wrapper {
  max-width: 420px;
  height: 260px;
  overflow: hidden;
  border-radius: 20px;

  /* 🔥 animated gradient border */
  border: 2px solid transparent;
  background:
    linear-gradient(#050b1a, #050b1a) padding-box,
    linear-gradient(
      120deg,
      #5fb3ff,
      #9b8cff,
      #5fb3ff
    ) border-box;

  background-size: 100% 100%, 300% 300%;
  animation: borderShift 5s linear infinite;

  box-shadow:
    0 0 25px rgba(111, 185, 255, 0.8);

  display: flex;
  align-items: center;
  justify-content: center;
}
@keyframes borderShift {
  0%   { background-position: 0% 0%, 0% 50%; }
  100% { background-position: 0% 0%, 300% 50%; }
}

.gif-wrapper img {
  width: 100%;            /* trims left/right empty space */
  height: auto;
  object-fit: cover;
  object-position: 50% 55%; /* 🎯 centers laptop perfectly */
}



/* subtle hover (optional) */
.gif-wrapper:hover {
  box-shadow:
    0 0 35px rgba(111,186,255,0.45);
}

/* GitHub + LinkedIn in same line */
.socials {
  display: flex;
  flex-direction: row;   /* force same line */
  gap: 18px;
  align-items: center;
}

.cursor {
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.btn-apple {
  padding:14px 28px;
  border-radius:999px;
  background:linear-gradient(135deg,rgba(255,255,255,.25),rgba(255,255,255,.05));
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.2);
  color:white;
}
.emoji {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: initial !important;
  margin-left: -10px;
}

.wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: wave 2.5s infinite ease-in-out;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}
/* =====================================================
   HERO / HOME — MOBILE
===================================================== */
@media (max-width: 768px) {

  .hero {
    min-height: auto;
    padding: 110px 6% 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  /* Move GIF on top */
  .hero-media {
    order: -1;
  }

  .gif-wrapper {
    max-width: 300px;
    margin: 0 auto;
  }

  /* TEXT */
  .hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.15;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .location {
    font-size: 0.9rem;
  }

  /* ACTIONS */
  .actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .socials {
    justify-content: center;
  }

  .socials a {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }

  .resume-btn {
    height: 44px;
    padding: 0 22px;
    font-size: 0.95rem;
  }
}
@media (max-width: 420px) {

  .hero {
    padding: 100px 5% 70px;
  }

  .hero-text h1 {
    font-size: 2.1rem;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 1.05rem;
  }

  .gif-wrapper {
    max-width: 260px;
  }

  .socials a {
    width: 42px;
    height: 42px;
  }

  .resume-btn {
    height: 42px;
    padding: 0 20px;
    font-size: 0.9rem;
  }
}

/* Update .section for Projects */
.section {
  min-height: 100vh;
  scroll-snap-align: start;
  padding: 120px 8%;
  scroll-margin-top: 15px; /* Increased from 20px */
}


.section h2 {
  font-size: 4rem;
  margin-bottom: 50px;
  text-align: center;

  background: linear-gradient(
    120deg,
    #00f5ff 20%,
    #ffffff 40%,
    #a855f7 60%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shine 3s linear infinite;
}
/* underline */
.section h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 8px auto 0; /* VERY close to text */

  background: linear-gradient(90deg, #00f5ff, #a855f7);
  border-radius: 10px;

  box-shadow:
    0 0 10px rgba(0, 245, 255, 0.6),
    0 0 20px rgba(168, 85, 247, 0.5);
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}


/* ===============================
   ABOUT ME (CLEAN & MINIMAL)
================================ */

.about-section {
  max-width: 1200px;
  margin: auto;
}

.about-text {
  margin-bottom: 36px;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.7;
  color: rgb(235, 245, 255);
}
/* ===============================
   EDUCATION RECTANGLE BOXES
================================ */

.education-boxes {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* common box style */
.edu-box {
  padding: 20px 22px;
  border-radius: 14px;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);

  border: 2px solid transparent;
  box-shadow: 0 0 20px rgba(0,0,0,0.25);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-box h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
  color: #ffffff;
}

.edu-box span {
  font-size: 0.85rem;
  color: rgba(235,245,255,0.65);
}

.edu-box p {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(235,245,255,0.9);
}

/* GREEN – B.Tech */
.edu-box.green {
  border-color: rgba(79, 248, 12, 0.8);
  box-shadow: 0 0 18px rgba(79, 248, 12, 0.35);
}

/* BLUE – 12th */
.edu-box.blue {
  border-color: rgba(111,186,255,0.9);
  box-shadow: 0 0 18px rgba(111,186,255,0.35);
}

/* PURPLE – SSC */
.edu-box.purple {
  border-color: rgba(168, 85, 247, 0.9);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.35);
}

/* hover */
.edu-box:hover {
  transform: translateY(-4px);
}

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 30px;

}
/* FORCE WHITE FOR DARK-BRAND LOGOS */
.skill-card .devicon-github-original,
.skill-card .devicon-vercel-original {
  color: #ffffff !important;
}

/* SKILL CARD */
.skill-card {
  height: 120px;
  width: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(234, 243, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* ICON */
.skill-card i {
  font-size: 2.6rem;
}

/* TEXT */
.skill-card span {
  font-size: 0.9rem;
  color: rgba(235, 245, 255, 0.85);
}

/* HOVER POLISH (SUBTLE & PROFESSIONAL) */
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

.skill-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ===============================
   PROJECTS STRIP (FIGMA STYLE)
================================ */
/* Remove negative margin from projects-strip */
.projects-strip {
  display: flex;
  gap: 20px;
  padding: 40px; /* Keep this */
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  perspective: 1600px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-top: -40px; /* Changed from -40px to 0 */
  scroll-behavior: auto;
}

.projects-strip::-webkit-scrollbar {
  display: none;
}

/* PROJECT PANEL - matches original card size */
.project-panel {
  flex: 0 0 320px;
  height: 500px;
  border-radius: 20px;
  background: rgb(11, 10, 10);
  border: 2px solid rgb(143, 143, 143);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  pointer-events: auto;

}

.project-panel:hover {
  /* Keep only box-shadow transition */
  transition: box-shadow 0.35s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
}



/* Hover effect */
.project-panel:hover {
  box-shadow: 0px 10px 28px rgba(21, 0, 255, 0.6);
  opacity: 1 !important;
  background: rgb(0, 0, 0);
  border: 1.5px solid rgb(80, 255, 249);
}

/* PROJECT IMAGE */
.project-panel .project-image {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-panel .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-panel:hover .project-image img {
  transform: scale(1.02);
}

/* PROJECT CONTENT */
.project-panel .project-content {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.project-panel .project-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.project-panel .project-content p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(235, 245, 255, 0.8);
  margin-bottom: 14px;
  flex-grow: 1;
}

/* TECH STACK */
.project-panel .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  max-height: 60px; /* Limit height */
  overflow: hidden; /* Hide overflow tags */
}

.project-panel .project-tech span {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.205);
  color: rgba(255, 255, 255, 0.9);
}

/* PROJECT LINKS */
.project-panel .project-links {
  display: flex;
  flex-direction: row; /* Force horizontal layout */
  align-items: center;
  gap: 12px;
  margin-top: auto; /* Push to bottom */
  flex-wrap: nowrap;
}

.project-panel .project-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(0, 0, 0);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(0, 4, 255);
  color: #ffffff;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.project-panel .project-icon:hover {
  transform: translateY(-2px) scale(1.12);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.263),
    0 0 22px rgb(255, 255, 255);
}

/* SVG icons */
.project-panel .project-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #ffffff;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.project-panel .project-image {
  height: 200px;
  overflow: visible;  /* Changed from hidden to show rounded corners */
  flex-shrink: 0;
  position: relative;
  padding: 10px;  /* Added padding */
}

.project-panel .project-image img {
  border-radius: 10px;  /* Rounded corners for image */
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.9);
}

.project-panel .project-icon.live::before {
  mask-image: url("assets/link.svg");
  -webkit-mask-image: url("assets/link.svg");
}

.project-panel .project-icon.github::before {
  mask-image: url("assets/github.png");
  -webkit-mask-image: url("assets/github.png");
}

/* =====================================================
   PROJECTS — MOBILE AUTO SCROLL MODE
===================================================== */
@media (max-width: 768px) {

  .projects-strip {
    perspective: none !important;
  }

  .project-panel {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto !important;
  }

  /* Kill all nth-child 3D rules */
  .project-panel:nth-child(n) {
    transform: none !important;
    opacity: 1 !important;
  }
}



/* ===============================
   CONTACT SECTION LAYOUT
================================ */

.contact-section {
  max-width: 1100px;
  margin: auto;
}

.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* ===============================
   CONTACT LEFT CONTENT
================================ */

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* main text */
.contact-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgb(202, 207, 212);
  max-width: 420px;
}

/* RIGHT SIDE FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: 18px;
color: #010101;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid #b7b7ffe8;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;

  /* glass background */
  background: rgba(159, 182, 255, 0.65);
  backdrop-filter: blur(12px);

  /* subtle border */
  border: 1px solid rgba(15, 17, 19, 0.25);
  font-family: inherit;
  font-size: 0.95rem;

  outline: none;
  transition: 
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* placeholder */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(235, 245, 255, 0.55);
  color: #010101;
}

/* focus state */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(18, 20, 21, 0.75);
  box-shadow:
    0 0 0 2px rgba(111, 186, 255, 0.25),
    0 0 12px rgba(111, 186, 255, 0.35);
  background: rgba(222, 230, 254, 0.8);
}

/* textarea tweaks */
.contact-form textarea {
  resize: none;
  min-height: 120px;
}


/* button */
.contact-form button {
  margin-top: 10px;
  background: rgb(43, 69, 155);
}
.contact-form button:hover {
  transform: translateY(-3px);
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form button {
    align-self: stretch;
  }
}

/* ===============================
   EXPANDABLE MUSIC PLAYER
================================ */

.audio-player {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  height: 68px;
  width: 68px;
  padding: 4px;

  border-radius: 999px;
  background: linear-gradient(
    120deg,
    #00f5ff 20%,
    #006aff 40%,
    #3700ff 60%
  );

  backdrop-filter: blur(18px);
  box-shadow:
    0 10px 30px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(120,180,255,0.15);

  overflow: hidden;
  cursor: pointer;

  transition: width 0.45s cubic-bezier(.22,.61,.36,1);
}

.audio-player.expanded,
.audio-player:hover {
  width: 237px;
  height: 70px;
}
.audio-player.expanded .music-info,
.audio-player:hover .music-info {
  opacity: 1;
  transform: translateX(0);
}
.fav-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.834);
}
/* ===============================
   COMPACT WHEN PLAYING (DEFAULT)
================================ */

.audio-player.playing {
  width: 68px;
}

/* Expand on hover EVEN when playing */
.audio-player.playing:hover {
  width: 237px;
}

/* SHOW INFO WHEN EXPANDED OR HOVER */
.audio-player.expanded .music-info,
.audio-player:hover .music-info {
  opacity: 1;
  transform: translateX(0);
}

/* FORCE COMPACT WHEN PLAYING OR PAUSED (NO HOVER) */
.audio-player.playing:not(:hover),
.audio-player.paused:not(:hover) {
  width: 68px;
}


/* ===============================
   DISC (PERFECT CIRCLE)
================================ */

.disc {
  position: relative;
  width: 59px;
  height: 59px;
  border-radius: 50%;

  overflow: hidden;
  flex-shrink: 0;

  transform: translateZ(0);
  will-change: transform;

  box-shadow:
    0 0 20px rgba(130,193,252,0.9),
    0 0 40px rgba(130,193,252,0.6);
}

.disc img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}



/* ===============================
   MUSIC INFO
================================ */

.music-info {
  display: flex;
  flex-direction: column;
  gap: 6px;

  opacity: 0;
  transform: translateX(-10px);
  white-space: nowrap;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.audio-player:hover .music-info {
  opacity: 1;
  transform: translateX(0);
}

/* TEXT */
.track .song {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.track .artist {
  font-size: 0.75rem;
  color: rgb(255, 255, 255);
}

/* ===============================
   BEATS ANIMATION
================================ */

.beats {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 14px;
}

.beats span {
  width: 3px;
  height: 6px;
  background: #0d0000;
  border-radius: 2px;
  opacity: 0.9;
  animation: beat 1s infinite ease-in-out;
}

.beats span:nth-child(2) { animation-delay: .15s }
.beats span:nth-child(3) { animation-delay: .3s }
.beats span:nth-child(4) { animation-delay: .45s }

@keyframes beat {
  0%,100% { height: 4px }
  50% { height: 14px }
}
@keyframes discSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* STOP BEATS WHEN PAUSED */
.audio-player:not(.playing) .beats span {
  animation: none;
  height: 4px;
  opacity: 0.4;
}
/* ===============================
   MOBILE – DISC ONLY MODE
================================ */
/* FORCE CONSISTENT RENDERING (NO PADDING SHIFT) */
.disc {
  transform: translateZ(0); /* 🔑 fixes visual jump */
}
.audio-player:not(.playing) .disc {
  animation: none;
  transform: rotate(0deg) translateZ(0);
}
.audio-player.playing .disc {
  animation: discSpin 4s linear infinite;
}


@media (hover: none) and (pointer: coarse) {
  .audio-player {
    width: 68px !important;
  }

  .music-info,
  .beats {
    display: none !important;
  }
}


/* =====================================================
   RESUME BUTTON (PRIMARY CTA)
===================================================== */

.resume-btn:hover {
  transform: translateY(-4px) scale(1.3);
  box-shadow:
    0 0 18px rgba(111, 185, 255, 0.751),
    0 10px 24px rgba(0, 0, 0, 0.305);
}
.resume-btn:active {
  transform: scale(1.95);
}

/* =====================================================
   SOCIAL ICON BUTTONS
===================================================== */

.socials a:hover {
  transform: translateY(-4px) scale(1);
  box-shadow:
    0 0 18px rgba(130, 193, 252, 0.923),
    0 10px 24px rgba(36, 35, 35, 0.45);
}

/* =====================================================
   SKILL CARDS
===================================================== */

.skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.263),
    0 0 22px rgb(255, 255, 255);
}

/* =====================================================
   EDUCATION BOXES
===================================================== */

.edu-box:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 22px rgba(255,255,255,0.18),
    0 12px 28px rgba(0,0,0,0.45);
}

/* =====================================================
   PROJECT CARDS
===================================================== */

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.263),
    0 0 22px rgb(255, 255, 255);
}

/* =====================================================
   PROJECT ICON BUTTONS
===================================================== */

.project-icon:hover {
  transform: translateY(-4px) scale(1.12);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.263),
    0 0 22px rgb(255, 255, 255);
}

/* =====================================================
   CONTACT FORM BUTTON
===================================================== */

.contact-form button:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 0 20px rgba(111,186,255,0.6),
    0 12px 28px rgba(0,0,0,0.45);
}


/* =====================================================
   ACCESSIBILITY – REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.footer {
  width: 100%;
  padding: 18px 12px;
  text-align: center;
  font-size: 14px;
  color: #9ca3af;
  background: transparent;
}

.footer .name {
  color: #ffffff;
  font-weight: 500;
}

/* Optional subtle hover */
.footer .name:hover {
  opacity: 0.85;
}

/* ===============================
   CONTACT ICONS — MOBILE CENTER
================================ */
@media (max-width: 768px) {

  .contact-left {
    align-items: center;
    text-align: center;
  }

  .contact-left .actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .contact-left .socials {
    justify-content: center;
  }
}

/* ===============================
   LOCATION SECTION
================================ */

.location-section {
  max-width: 1100px;
  margin: auto;
}

.location-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.location-info {
  text-align: center;
}

.location-info p {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.location-info p i {
  color: #00f5ff;
  margin-right: 10px;
}

.location-info .address {
  font-size: 1rem;
  color: rgba(235, 245, 255, 0.75);
  max-width: 600px;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(111, 186, 255, 0.4);
  box-shadow: 
    0 0 30px rgba(111, 186, 255, 0.2),
    0 20px 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.map-container:hover {
  border-color: rgba(0, 245, 255, 0.6);
  box-shadow: 
    0 0 40px rgba(0, 245, 255, 0.25),
    0 25px 50px rgba(0, 0, 0, 0.35);
}

.map-container iframe {
  display: block;
}

/* LOCATION — MOBILE */
@media (max-width: 768px) {
  .location-info p {
    font-size: 1.2rem;
  }
  
  .location-info .address {
    font-size: 0.9rem;
    padding: 0 20px;
  }
  
  .map-container {
    border-radius: 16px;
  }
  
  .map-container iframe {
    height: 280px;
  }
}