/* ============================================
   COSMIC DATA SCIENTIST — Portfolio Stylesheet
   ============================================ */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

/* ── Custom Properties (Dark Mode — MKBHD Black/White/Red) ── */
:root {
  /* Backgrounds */
  --bg-deep: #0a0a0a;
  --bg-surface: #141414;
  --bg-elevated: #1e1e1e;

  /* Accents */
  --accent-red: #e50914;
  --accent-red-light: #ff2d3b;
  --accent-red-dark: #b30710;

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  /* Glass */
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-blur: 12px;
  --glass-border: rgba(229, 9, 20, 0.08);

  /* Borders & shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --box-shadow-1: 0 4px 20px rgba(0, 0, 0, 0.5);

  /* Legacy compat */
  --color-primary: var(--bg-deep);
  --color-secondary: var(--accent-red);
  --color-white: var(--text-primary);
  --color-black: #000;
  --color-grey-1: var(--text-secondary);
  --color-grey-2: var(--text-secondary);
  --color-grey-3: var(--text-muted);
  --color-grey-4: var(--bg-elevated);
  --color-grey-5: var(--bg-surface);
  --color-grey-6: #0a0a0a;
  --br-sm-2: 14px;

  /* Cursor glow */
  --mouse-x: 50%;
  --mouse-y: 50%;
}

/* ── Base ── */
body {
  background-color: var(--bg-deep);
  font-family: "Inter", "Poppins", sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

/* ── Starfield Canvas ── */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ── Cursor Glow ── */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(229, 9, 20, 0.06),
    transparent 60%
  );
  transition: opacity 0.3s ease;
}

/* ── Floating Icons Layer ── */
#floating-icons {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ── Layout ── */
header {
  min-height: 100vh;
  color: var(--text-primary);
  overflow: hidden;
  padding: 0 !important;
}

section {
  min-height: 100vh;
  width: 100%;
  position: absolute;
  left: 0;
  top: 0;
  padding: 3rem 18rem;
}

.container {
  display: none;
  transform: translateY(-100%) scale(0);
  transition: all 0.4s ease-in-out;
  background-color: transparent;
}

/* ── Section Transitions (smooth fade instead of scaleY) ── */
.active {
  display: block;
  animation: fadeSlideIn 0.6s ease-out;
  transform: translateY(0) scaleY(1);
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Navigation Controls ── */
.controls {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.controls .control {
  padding: 1rem;
  cursor: pointer;
  background-color: var(--bg-elevated);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.7rem 0;
  box-shadow: var(--box-shadow-1);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.controls .control i {
  font-size: 1.2rem;
  color: var(--text-secondary);
  pointer-events: none;
}

.controls .active-btn {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
  border-color: transparent;
  transition: all 0.4s ease-in-out;
}

.controls .active-btn i {
  color: #fff;
}

/* Nav tooltips */
.controls .control .nav-tooltip {
  position: absolute;
  right: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: "Inter", "Poppins", sans-serif;
}

.controls .control:hover .nav-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero Section ── */
.header-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 100vh;
  align-items: center;
}

.header-content .left-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Hero image wrapper with orbital ring */
.hero-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper .image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(229, 9, 20, 0.3);
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.15);
  transition: all 0.4s ease;
}

.hero-image-wrapper .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease;
}

.hero-image-wrapper .image:hover {
  border-color: var(--accent-red-light);
  box-shadow: 0 0 60px rgba(229, 9, 20, 0.25);
}

/* Orbital ring */
.orbital-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
}

.orbital-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(229, 9, 20, 0.2);
  animation: orbit 20s linear infinite;
}

.orbital-ring::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent-red);
  animation: orbit 20s linear infinite;
}

@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.header-content .right-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 18rem;
}

.header-content .right-header .name {
  font-size: 3rem;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-content .right-header p {
  margin: 1.5rem 0;
  line-height: 2rem;
  color: var(--text-secondary);
}

/* Typing subtitle */
.typing-wrapper {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  min-height: 2rem;
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.typing-text {
  color: var(--accent-red-light);
}

.typing-cursor {
  color: var(--accent-red);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

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

/* ── About Section ── */
.about-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.about-container .right-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-container .right-about .about-item {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow-1);
  padding: 1.2rem 1.1rem;
}

.about-container .right-about .about-item:hover {
  cursor: default;
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.2);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
}

.about-container .right-about .about-item i {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  color: var(--accent-red-light);
  display: inline-block;
}

.about-container .right-about .about-item .abt-text {
  display: flex;
  flex-direction: column;
}

.about-container .right-about .about-item .abt-text .large-text {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  letter-spacing: 0.3px;
}

.about-container .right-about .about-item .abt-text .small-text {
  margin: 0.2rem 0 0 0;
  opacity: 0.8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.about-container .left-about {
  padding-right: 5rem;
}

.about-container .left-about p {
  line-height: 1.8;
  padding: 0;
  margin: 0 0 0.9rem 0;
  color: var(--text-secondary);
}

.about-container .left-about strong {
  font-weight: 700;
  color: var(--text-primary);
}

.about-container .left-about h4 {
  font-size: 2rem;
  text-transform: uppercase;
}

/* ── Skills Section ── */
.about-stats {
  padding-bottom: 4rem;
}

.skill-category {
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(229, 9, 20, 0.15);
}

.skill-category.open {
  border-color: rgba(229, 9, 20, 0.2);
}

.category-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-family: "Space Grotesk", "Poppins", sans-serif;
  padding: 14px 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  transition: background 0.3s ease, color 0.3s ease;
  user-select: none;
}

.category-title:hover {
  background: var(--bg-elevated);
}

.category-title .pill-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: auto;
  margin-right: 12px;
  font-family: "Inter", "Poppins", sans-serif;
}

.category-title .accordion-icon {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.skill-category.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-red);
}

/* Skill pills container — collapsed by default */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.skill-category.open .skill-pills {
  max-height: 800px;
  padding: 16px 20px;
}

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  cursor: default;
}

.pill:hover {
  border-color: var(--accent-red);
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.15);
  transform: translateY(-2px);
}

/* Progress bars (kept for compat) */
.about-stats .progress-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
}

.about-stats .progress-bars .progress-bar {
  display: flex;
  flex-direction: column;
}

.about-stats .progress-bars .progress-bar .prog-title {
  text-transform: uppercase;
  font-weight: 500;
}

.about-stats .progress-bars .progress-bar .progress-con {
  display: flex;
  align-items: center;
}

.about-stats .progress-bars .progress-bar .progress-con .prog-text {
  color: var(--text-secondary);
}

.about-stats .progress-bars .progress-bar .progress-con .progress {
  width: 100%;
  height: 0.45rem;
  background-color: var(--bg-elevated);
  margin-left: 1rem;
  position: relative;
  border-radius: 4px;
}

.about-stats .progress-bars .progress-bar .progress-con .progress span {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-red-light));
  border-radius: 4px;
  transition: all 0.4s ease-in-out;
  width: 60%;
}

.about-stats .progress-bars .progress-bar .progress-con .progress .python { width: 95%; }
.about-stats .progress-bars .progress-bar .progress-con .progress .sql { width: 85%; }
.about-stats .progress-bars .progress-bar .progress-con .progress .r { width: 75%; }
.about-stats .progress-bars .progress-bar .progress-con .progress .html { width: 80%; }
.about-stats .progress-bars .progress-bar .progress-con .progress .js { width: 75%; }
.about-stats .progress-bars .progress-bar .progress-con .progress .java { width: 70%; }

/* ── Stat & Section Titles ── */
.stat-title {
  text-transform: uppercase;
  font-size: 1.4rem;
  text-align: center;
  padding: 3.5rem 0;
  position: relative;
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.stat-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-red), var(--accent-red-light), transparent);
  transform: translateX(-50%);
}

/* ── Timeline ── */
.timeline-section h4 {
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2rem;
  padding-bottom: 3rem;
}

.timeline .timeline-item {
  position: relative;
  padding-left: 3rem;
  border-left: 2px solid;
  border-image: linear-gradient(to bottom, var(--accent-red), var(--accent-red-light)) 1;
}

.timeline .timeline-item .tl-icon {
  position: absolute;
  left: -27px;
  top: 0;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(229, 9, 20, 0.3); }
  50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.5); }
}

.timeline .timeline-item .tl-icon i {
  font-size: 1.3rem;
  color: #fff;
}

.timeline .timeline-item .tl-duration {
  padding: 0.2rem 0.6rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline .timeline-item h5 {
  padding: 1rem 0;
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: 600;
}

.timeline .timeline-item h5 span {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1.2rem;
}

.timeline .timeline-item p {
  color: var(--text-secondary);
}

/* ── Portfolio ── */
.port-text {
  padding: 2rem 0;
  text-align: center;
  color: var(--text-secondary);
}

.portfolios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  margin-top: 3rem;
}

.portfolios .portfolio-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.portfolios .portfolio-item:hover {
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.2);
}

.portfolios .portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.4s ease;
}

.portfolios .portfolio-item .hover-items {
  width: 100%;
  height: 100%;
  background: rgba(6, 11, 24, 0.75);
  backdrop-filter: blur(6px);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.portfolios .portfolio-item .hover-items h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.portfolios .portfolio-item .hover-items .icons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.portfolios .portfolio-item .hover-items .icons .icon {
  background-color: var(--bg-deep);
  border: 1px solid var(--accent-red);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
}

.portfolios .portfolio-item .hover-items .icons .icon i {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 1rem;
}

.portfolios .portfolio-item .hover-items .icons .icon:hover {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  border-color: transparent;
}

.portfolios .portfolio-item .hover-items .icons .icon:hover i {
  color: #fff;
}

.portfolio-item:hover .hover-items {
  opacity: 1;
}

/* ── Blogs / Research / Books / Sports ── */
.blogs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
  margin-top: 3rem;
}

.blogs .blog {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--box-shadow-1);
  transition: all 0.4s ease-in-out;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.blogs .blog:hover {
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.2);
}

.blogs .blog:hover img {
  transform: scale(1.05);
}

.blogs .blog img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: all 0.4s ease-in-out;
}

.blogs .blog .blog-text {
  margin-top: -7px;
  padding: 1.1rem;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--accent-red), var(--accent-red-light)) 1;
}

.blogs .blog .blog-text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.blogs .blog .blog-text h4:hover {
  color: var(--accent-red);
}

.blogs .blog .blog-text p {
  color: var(--text-secondary);
  line-height: 2rem;
  padding-bottom: 1rem;
}

/* Favourite sports */
#favourite-sports {
  margin-top: 3rem;
}

#favourite-sports .sports-content .main-title h2 {
  font-size: 2rem;
}

#favourite-sports .sports-content .main-title h2 span {
  font-size: 2.3rem;
}

#favourite-sports .sports-content .main-title h2 .bg-text {
  font-size: 2.3rem;
}

#favourite-sports .sports-content .sports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 2rem;
}

#favourite-sports .sports-content .sports .sport {
  position: relative;
  background-color: var(--bg-surface);
  border-radius: 16px;
  box-shadow: var(--box-shadow-1);
  transition: all 0.4s ease-in-out;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

#favourite-sports .sports-content .sports .sport:hover {
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
  transform: translateY(-4px);
}

#favourite-sports .sports-content .sports .sport:hover img {
  transform: scale(1.05);
}

#favourite-sports .sports-content .sports .sport img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transition: all 0.4s ease-in-out;
}

#favourite-sports .sports-content .sports .sport .sport-text {
  margin-top: -7px;
  padding: 1.1rem;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--accent-red), var(--accent-red-light)) 1;
}

#favourite-sports .sports-content .sports .sport .sport-text h4 {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

#favourite-sports .sports-content .sports .sport .sport-text h4:hover {
  color: var(--accent-red);
}

#favourite-sports .sports-content .sports .sport .sport-text p {
  color: var(--text-secondary);
  line-height: 2rem;
  padding-bottom: 1rem;
}

/* ── Contact ── */
.contact-content-con {
  display: flex;
  padding-top: 3.5rem;
}

.contact-info {
  margin-bottom: 20px;
}

.contact-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.contact-icons a {
  transition: transform 0.3s ease;
}

.contact-icons a:hover {
  transform: scale(1.1);
}

.contact-icons img {
  width: 30px;
  height: 30px;
}

.contact-content-con .left-contact {
  flex: 2;
}

.contact-content-con .left-contact h4 {
  margin-top: 1rem;
  font-size: 2rem;
  text-transform: uppercase;
}

.contact-content-con .left-contact p {
  margin: 1rem 0;
  line-height: 2rem;
  color: var(--text-secondary);
}

.contact-content-con .left-contact .contact-info .contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-content-con .left-contact .contact-info .contact-item p {
  margin: 0.3rem 0 !important;
  padding: 0 !important;
}

.contact-content-con .left-contact .contact-info .contact-item .icon {
  display: grid;
  grid-template-columns: 40px 1fr;
}

.contact-content-con .left-contact .contact-info .contact-item .icon i {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

.contact-content-con .left-contact .contact-icon {
  display: flex;
  margin-top: 2rem;
}

.contact-content-con .left-contact .contact-icon a {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  cursor: pointer;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 0.4rem;
  transition: all 0.4s ease-in-out;
  border: 1px solid var(--border-subtle);
}

.contact-content-con .left-contact .contact-icon a:hover {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  border-color: transparent;
}

.contact-content-con .left-contact .contact-icon a:hover i {
  color: #fff;
}

.contact-content-con .left-contact .contact-icon a i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-content-con .right-contact {
  flex: 3;
  margin-left: 3rem;
}

.contact-content-con .right-contact .input-control {
  margin: 1.5rem 0;
}

.contact-content-con .right-contact .input-control input,
.contact-content-con .right-contact .input-control textarea {
  border-radius: 12px;
  font-weight: inherit;
  font-size: inherit;
  font-family: inherit;
  padding: 0.8rem 1.1rem;
  outline: none;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  width: 100%;
  color: var(--text-primary);
  resize: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-content-con .right-contact .input-control input:focus,
.contact-content-con .right-contact .input-control textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}

.contact-content-con .right-contact .i-c-2 {
  display: flex;
}

.contact-content-con .right-contact .i-c-2 :last-child {
  margin-left: 1.5rem;
}

.contact-content-con .right-contact .submit-btn {
  display: flex;
  justify-content: flex-start;
}

/* Contact form (new inline form) */
.right-contact input,
.right-contact textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.right-contact input:focus,
.right-contact textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
  outline: none;
}

.right-contact label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

#submitBtn {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#submitBtn:hover:not(:disabled) {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.icon-link img {
  width: 38px;
  height: 38px;
  transition: transform 0.2s ease, filter 0.2s ease;
  border-radius: 6px;
}

.icon-link:hover img {
  transform: scale(1.2);
  filter: brightness(1.2);
}

#formStatus {
  font-size: 0.9em;
  margin-top: -6px;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Buttons ── */
.btn-con {
  display: flex;
  align-self: flex-start;
}

.main-btn {
  border-radius: 30px;
  color: inherit;
  font-weight: 600;
  position: relative;
  border: 1px solid var(--accent-red);
  display: flex;
  align-self: flex-start;
  align-items: center;
  overflow: hidden;
  transition: all 0.4s ease;
}

.main-btn .btn-text {
  padding: 0 2rem;
}

.main-btn .btn-icon {
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 1rem;
}

.main-btn .btn-icon i {
  color: #fff;
}

.main-btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  transform: translateX(100%);
  transition: all 0.4s ease-out;
  z-index: -1;
}

.main-btn:hover {
  color: #fff;
}

.main-btn:hover::before {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-red), var(--accent-red-light));
  transform: translateX(0);
}

/* ── Main Title ── */
.main-title {
  text-align: center;
}

.main-title h2 {
  position: relative;
  text-transform: uppercase;
  font-size: 4rem;
  font-weight: 700;
  font-family: "Space Grotesk", "Poppins", sans-serif;
}

.main-title h2 span {
  color: var(--accent-red);
}

.main-title h2 .bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  color: var(--bg-surface);
  transition: all 0.4s ease-in-out;
  z-index: -1;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 6.3rem;
}

.about-container .left-about p {
  padding-left: 0;
}

/* ── Glass Card ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.2);
}

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Modal ── */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 11, 24, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  margin: auto;
  padding: 2rem;
  width: 60%;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(229, 9, 20, 0.2);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal .close:hover {
  color: var(--accent-red);
}

.modal-content h2,
.modal-content p {
  color: var(--text-primary);
}

.modal-content p {
  line-height: 1.8;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .active {
    animation: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .orbital-ring::before,
  .orbital-ring::after {
    animation: none;
  }

  .typing-cursor {
    animation: none;
  }

  #cursor-glow {
    display: none;
  }
}

/* ── My Universe Section ── */

.universe-section {
  padding: 0 !important;
  margin: 0;
  width: 100%;
  height: 100vh;
  max-width: none;
}

.universe-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  max-height: none;
  border-radius: 0;
  border: none;
  background: rgba(5, 5, 10, 1);
  overflow: hidden;
}

#universe-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#universe-3d canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* Loading spinner */
.universe-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.universe-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary, #e50914);
  border-radius: 50%;
  animation: universe-spin 0.8s linear infinite;
}

@keyframes universe-spin {
  to { transform: rotate(360deg); }
}

/* Hover label */
.passion-label {
  position: absolute;
  pointer-events: none;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(15, 15, 20, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* Info card */
.passion-info-card {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) translateX(20px);
  width: 280px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(15, 15, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
  z-index: 20;
}

.passion-info-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.passion-info-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.passion-info-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

.passion-info-emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.passion-info-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px 0;
}

.passion-info-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px 0;
}

.passion-info-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary, #e50914);
  text-decoration: none;
  transition: color 0.2s ease;
}

.passion-info-link:hover {
  color: #ff3333;
}

/* Interaction hint */
.universe-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
  margin: 0;
}

/* Sound toggle */
.sound-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, border-color 0.2s ease;
  z-index: 15;
  padding: 0;
}

.sound-toggle:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Deep Dive Modal ── */

.passion-deep-dive {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.passion-deep-dive.visible {
  opacity: 1;
  visibility: visible;
}

.deep-dive-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.deep-dive-content {
  position: relative;
  width: min(580px, 90%);
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 44px;
  border-radius: 20px;
  background: rgba(12, 12, 18, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.passion-deep-dive.visible .deep-dive-content {
  transform: translateY(0) scale(1);
}

.deep-dive-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 2;
}

.deep-dive-close:hover {
  color: rgba(255, 255, 255, 0.9);
}

.deep-dive-header {
  text-align: center;
  margin-bottom: 28px;
}

.deep-dive-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
}

.deep-dive-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.deep-dive-accent {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin: 0 auto;
  opacity: 0.7;
}

.deep-dive-body {
  margin-bottom: 24px;
}

.deep-dive-body p {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 18px 0;
  text-align: left;
}

.deep-dive-body p:last-child {
  margin-bottom: 0;
}

.deep-dive-quote {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.deep-dive-dash {
  font-style: normal;
  margin-right: 4px;
}

/* Custom scrollbar for deep dive */
.deep-dive-content::-webkit-scrollbar {
  width: 4px;
}

.deep-dive-content::-webkit-scrollbar-track {
  background: transparent;
}

.deep-dive-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .passion-info-card {
    transition: none;
  }
  .passion-label {
    transition: none;
  }
  .universe-hint {
    transition: none;
  }
  .universe-spinner {
    animation: none;
  }
  .passion-deep-dive {
    transition: none;
  }
  .deep-dive-content {
    transition: none;
  }
}

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

@media screen and (max-width: 1432px) {
  .container {
    padding: 7rem 11rem;
  }
  .contact-content-con {
    flex-direction: column;
  }
  .contact-content-con .right-contact {
    margin-left: 0;
    margin-top: 2.5rem;
  }
  .contact-content-con .right-contact .i-c-2 {
    flex-direction: column;
  }
  .contact-content-con .right-contact .i-c-2 :last-child {
    margin-left: 0;
    margin-top: 1.5rem;
  }
  .contact-content-con .right-contact {
    margin-bottom: 6rem;
  }
  .main-title h2 .bg-text {
    font-size: 5.5rem;
  }
}

@media screen and (max-width: 1250px) {
  .blogs {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 6rem;
  }
  .portfolios {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-content .right-header {
    padding-right: 9rem;
  }
  #favourite-sports .blogs {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 6rem;
  }
}

@media screen and (max-width: 1070px) {
  .about-container {
    grid-template-columns: repeat(1, 1fr);
  }
  .about-container .right-about {
    padding-top: 2.5rem;
  }
  .main-title h2 {
    font-size: 4rem;
  }
  .main-title h2 span {
    font-size: 4rem;
  }
  .main-title h2 .bg-text {
    font-size: 4.5rem;
  }
}

@media screen and (max-width: 970px) {
  .container {
    padding: 7rem 6rem;
  }
  .universe-section {
    padding: 0 !important;
  }
  .about-container .left-about {
    padding-right: 0rem;
  }
  .header-content {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 6rem;
  }
  .left-header {
    margin-top: 2rem;
  }
  .right-header {
    grid-row: 1;
    padding-right: 0rem !important;
    width: 90%;
    margin: 0 auto;
  }
  .right-header .name {
    font-size: 2.5rem !important;
    text-align: center;
    padding-top: 3rem;
  }
  .hero-image-wrapper .image {
    width: 260px;
    height: 260px;
  }
  .orbital-ring {
    width: 310px;
    height: 310px;
  }
}

@media screen and (max-width: 700px) {
  .container {
    padding: 7rem 3rem;
  }
  .about-stats .progress-bars {
    grid-template-columns: repeat(1, 1fr);
  }
  .about-container .right-about {
    grid-template-columns: repeat(1, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(1, 1fr);
  }
  .main-title h2 {
    font-size: 3rem;
  }
  .main-title h2 span {
    font-size: 3rem;
  }
  .main-title h2 .bg-text {
    font-size: 4rem;
  }
}

@media screen and (max-width: 660px) {
  .blogs {
    grid-template-columns: repeat(1, 1fr);
  }
  .portfolios {
    grid-template-columns: repeat(1, 1fr);
  }
  #favourite-sports .blogs {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .universe-section {
    padding: 0 !important;
  }
  .deep-dive-content {
    padding: 28px 24px;
    width: 95%;
    max-height: 80vh;
  }
  .deep-dive-title {
    font-size: 1.5rem;
  }
  .deep-dive-emoji {
    font-size: 2.5rem;
  }
  .deep-dive-body p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
  .passion-info-card {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-height: 50%;
    transform: translateY(20px);
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
  }
  .passion-info-card.visible {
    transform: translateY(0);
  }
  .universe-hint {
    font-size: 0.7rem;
  }
  header {
    padding: 0 !important;
  }
  .header-content {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 6rem;
  }
  .right-header {
    grid-row: 1;
    padding-right: 0rem !important;
    width: 90%;
    margin: 0 auto;
  }
  .right-header .name {
    font-size: 2.5rem !important;
    text-align: center;
    padding-top: 3rem;
  }
  .hero-image-wrapper .image {
    width: 200px;
    height: 200px;
  }
  .orbital-ring {
    width: 250px;
    height: 250px;
  }
  .controls {
    top: auto;
    bottom: 0;
    flex-direction: row;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
  }
  .controls .control {
    margin: 1rem 0.3rem;
  }
  .controls .control .nav-tooltip {
    display: none;
  }
  .about-container {
    grid-template-columns: repeat(1, 1fr);
  }
  .about-container .right-about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 2.5rem;
  }
  .about-container .left-about {
    padding-right: 0;
  }
  .about-container .left-about p {
    padding-left: 0;
  }
  .timeline {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 6rem;
  }
  .container {
    padding: 2rem 2.5rem !important;
  }
  .about-stats .progress-bars {
    grid-template-columns: repeat(1, 1fr);
  }
  .portfolios {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 6rem;
    margin-top: 1rem;
  }
  .blogs {
    grid-template-columns: repeat(1, 1fr);
    padding-bottom: 6rem;
  }
  .contact-content-con {
    flex-direction: column;
  }
  .contact-content-con .right-contact {
    margin-left: 0;
    margin-top: 2.5rem;
  }
  .contact-content-con .right-contact .i-c-2 {
    flex-direction: column;
  }
  .contact-content-con .right-contact .i-c-2 :last-child {
    margin-left: 0;
    margin-top: 1.5rem;
  }
  .contact-content-con .right-contact {
    margin-bottom: 6rem;
  }
  .contact-item {
    flex-direction: column;
    margin: 1rem 0;
  }
  .contact-item p {
    font-size: 15px;
    color: var(--text-secondary);
  }
  .contact-item span {
    font-size: 15px;
  }
  .contact-item .icon {
    grid-template-columns: 25px 1fr;
  }
  .main-title h2 {
    font-size: 2rem;
  }
  .main-title h2 span {
    font-size: 2.3rem;
  }
  .main-title h2 .bg-text {
    font-size: 2.3rem;
  }
  /* Hide cursor glow on mobile */
  #cursor-glow {
    display: none;
  }
}

@media screen and (max-width: 520px) {
  .about-container .right-about {
    grid-template-columns: 1fr;
  }
}
