﻿/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: 'Poppins', sans-serif;
  background: #0a0a0a;
  color: #fff;
  scroll-behavior: smooth;
  line-height: 1.6;
  overflow-x: hidden;
}

:root {
  --primary-glow: #ff007f;
  /* PINK */
  --secondary-glow: #ff4da6;

  /* ═══ PROFILE CARD VARIABLES ═══ */
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-from-center: 0;
  --pointer-from-top: 0.5;
  --pointer-from-left: 0.5;
  --card-opacity: 0;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --background-x: 50%;
  --background-y: 50%;
  --grain: none;
  --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-opacity='0.1'%3E%3Cpath d='M10 10L30 10L30 30L10 30Z' fill='%23fff'/%3E%3Cpath d='M50 50L70 50L70 70L50 70Z' fill='%23fff'/%3E%3C/g%3E%3C/svg%3E");
  --behind-gradient: none;
  --behind-glow-color: rgba(125, 190, 255, 0.67);
  --behind-glow-size: 50%;
  --inner-gradient: transparent;
  --sunpillar-1: hsl(2, 100%, 73%);
  --sunpillar-2: hsl(53, 100%, 69%);
  --sunpillar-3: hsl(93, 100%, 69%);
  --sunpillar-4: hsl(176, 100%, 76%);
  --sunpillar-5: hsl(228, 100%, 74%);
  --sunpillar-6: hsl(283, 100%, 73%);
  --sunpillar-clr-1: var(--sunpillar-1);
  --sunpillar-clr-2: var(--sunpillar-2);
  --sunpillar-clr-3: var(--sunpillar-3);
  --sunpillar-clr-4: var(--sunpillar-4);
  --sunpillar-clr-5: var(--sunpillar-5);
  --sunpillar-clr-6: var(--sunpillar-6);
  --card-radius: 30px;
}

/* NAVBAR */
/* ═══ NAVBAR — Full-width Premium Bar ═══ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

/* Brand — left */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 34px;
  height: 34px;
  background: var(--primary-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 0, 127, 0.5);
  letter-spacing: -1px;
  flex-shrink: 0;
}

.nav-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.3px;
}

.nav-dot {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-glow);
  opacity: 0.8;
}

/* Links — right */
/* Desktop: hide hamburger toggle */
.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-academic {
  border: 1px solid rgba(255, 0, 127, 0.4) !important;
  color: #ff4da6 !important;
  border-radius: 20px !important;
  padding: 5px 14px !important;
}

.nav-academic:hover {
  background: rgba(255, 0, 127, 0.1) !important;
  border-color: rgba(255, 0, 127, 0.7) !important;
  color: #fff !important;
}



/* ═══ HERO — 3D Typography Layout ═══ */
.hero {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 200px 40px 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-container {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  z-index: 20;
}

/* Left Accent Line */
.hero-accent {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
  /* Aligns with the heading */
}

.hero-accent-dot {
  width: 20px;
  height: 20px;
  background: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-glow);
}

.hero-accent-line {
  width: 4px;
  height: 280px;
  background: linear-gradient(to bottom, var(--primary-glow), transparent);
  margin-top: -2px;
}

/* Text Content */
.hero-content {
  text-align: left;
}

.hero-name {
  font-size: 4.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  white-space: nowrap;
}

.hero-name-gradient {
  background: linear-gradient(90deg, #915eff, #ff4da6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  transform: translateZ(0);
}

.tagline {
  margin: 20px 0 35px;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-weight: 500;
}

/* CTA & Socials aligned left */
.cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  justify-content: flex-start;
  position: relative;
  z-index: 30;
}

.resume-btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255, 0, 127, 0.1);
  color: var(--primary-glow);
  border: 1px solid rgba(255, 0, 127, 0.4);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  letter-spacing: 0.5px;
}

.resume-btn:hover {
  background: var(--primary-glow);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
}

.hero-contact-icons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  position: relative;
  z-index: 30;
}

.hero-contact-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: 0.3s;
}

.hero-contact-icons img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: 0.3s;
}

.hero-contact-icons a:hover {
  border-color: var(--primary-glow);
  background: rgba(255, 0, 127, 0.05);
}

.hero-contact-icons a:hover img {
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* ═══ Custom CSS 3D Computer Desktop ═══ */
/* ═══ 3D Model Viewer ═══ */
.hero-3d-model {
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  margin: auto;
  width: 700px;
  height: 600px;
  z-index: 10;
}

model-viewer {
  width: 100%;
  height: 100%;
  background-color: transparent;
  --poster-color: transparent;
}

/* 3D Pinned Watermark on Table */
.table-watermark {
  color: rgba(255, 255, 255, 0.4);
  font-family: inherit;
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
  pointer-events: none;
  transform: rotateX(70deg) rotateZ(-20deg);
  /* 3D tilt effect */
}


.cube {
  width: 100px;
  height: 100px;
  margin: 0 auto 30px auto;
  background: linear-gradient(135deg, #ff4da6, #ff007f);
  animation: rotateCube 5s infinite linear;
  border-radius: 10px;
  box-shadow: 0 0 20px #ff007f, 0 0 40px #ff4da6;
}

@keyframes rotateCube {
  from {
    transform: rotateY(0deg) rotateX(0deg);
  }

  to {
    transform: rotateY(360deg) rotateX(360deg);
  }
}

/* SECTIONS */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-glow);
  text-align: center;
}

/* ABOUT — Kusum Magazine Layout */
.about-magazine {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
}

.about-photo-col {
  flex: 0 0 auto;
  width: 300px;
}

.photo-frame {
  position: relative;
}

.about-photo-tall {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  display: block;
}

.photo-accent-bar {
  position: absolute;
  top: 0;
  left: -10px;
  width: 6px;
  height: 100%;
  background: var(--primary-glow);
  border-radius: 6px;
  box-shadow: 0 0 14px var(--primary-glow);
}

.about-content-col {
  flex: 1;
  padding-top: 10px;
}

.about-label {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--primary-glow);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-name {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  text-align: left;
}

.about-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.about-bio {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 480px;
}

.about-contact-link {
  color: var(--primary-glow);
  text-decoration: none;
  font-weight: bold;
}

.about-links {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.about-social-btn {
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.05);
}

.about-social-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-glow);
}

.about-social-btn.linkedin {
  background: rgba(0, 119, 181, 0.15);
  border-color: rgba(0, 119, 181, 0.5);
}

.about-social-btn.linkedin:hover {
  background: rgba(0, 119, 181, 0.3);
}

/* SKILL CARDS */
.skills-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.skill-card {
  width: 100px;
  height: 100px;
  perspective: 1000px;
  cursor: pointer;
}

.skill-card div {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  transition: transform 0.6s;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}

.skill-front {
  background: var(--primary-glow);
  color: #fff;
}

.skill-back {
  background: #111;
  color: var(--secondary-glow);
  transform: rotateY(180deg);
}

.skill-card:hover .skill-front {
  transform: rotateY(180deg);
}

.skill-card:hover .skill-back {
  transform: rotateY(0deg);
}


/* PROJECTS - The Good 3D Cards with Pink Theme */
/* JS MASTERY STYLE PROJECTS SECTION */
.jsm-section {
  padding: 80px 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.jsm-section-subtext {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa6c3;
  margin-bottom: 10px;
}

.jsm-section-headtext {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 25px;
}

.jsm-section-desc {
  color: #aaa6c3;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 800px;
  margin-bottom: 50px;
}

.jsm-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.jsm-project-card {
  background: #151030;
  border-radius: 20px;
  padding: 16px;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.jsm-project-card:hover {
  transform: translateY(-8px);
}

.jsm-card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #100d25;
  z-index: 10;
  /* Keep above glare if needed, though glare is overlay */
}

.jsm-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.jsm-project-card:hover .jsm-card-img {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

/* -- NEW INTERACTIVE CARD EFFECTS -- */

/* 1. Mouse Tracking Spotlight */
.card-glare {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transition: opacity 0.3s;
  z-index: 5;
  mix-blend-mode: overlay;
}

.jsm-project-card:hover .card-glare {
  opacity: 1;
}

/* 2. Scroll Animation for Live Preview Screenshots */
.scroll-box {
  align-items: flex-start;
}

.scroll-anim {
  object-position: top;
  transition: object-position 4s ease-in-out, transform 0.4s ease;
}

.jsm-project-card:hover .scroll-anim {
  object-position: bottom;
  transform: none;
  /* Disables the slight zoom to favor the smooth scroll */
}

/* 2b. Project Video Support */
.jsm-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.jsm-project-card:hover .jsm-card-video {
  transform: scale(1.05);
}

/* 3. Parallax Under Construction Backgrounds */
.parallax-bg {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #0b0914;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-text {
  z-index: 15;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 1.2rem;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
  animation: pulseText 2s infinite;
}

@keyframes pulseText {

  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.95);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.parallax-layer {
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background-size: cover;
  opacity: 0.5;
}

/* Theme: Bus Tracking */
.parallax-bus .layer-1 {
  background: radial-gradient(circle at 20% 80%, rgba(54, 209, 220, 0.2), transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(54, 209, 220, 0.1) 45%, transparent 50%);
  background-size: 200% 200%;
  animation: bgPan 10s linear infinite;
}

.parallax-bus .layer-2 {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: bgScroll 15s linear infinite;
}

/* Theme: Hiresense / AI */
.parallax-hiresense .layer-ai-1 {
  background: radial-gradient(circle at 80% 20%, rgba(255, 77, 166, 0.2), transparent 50%),
    linear-gradient(-45deg, transparent 40%, rgba(255, 77, 166, 0.1) 45%, transparent 50%);
  background-size: 200% 200%;
  animation: bgPan 8s linear infinite reverse;
}

.parallax-hiresense .layer-ai-2 {
  background-image: linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
  background-size: 30px 30px;
  animation: bgScroll 10s linear infinite;
}

@keyframes bgPan {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

@keyframes bgScroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(20px);
  }
}

.jsm-card-img-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.jsm-github-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.jsm-github-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.jsm-github-icon:hover {
  transform: scale(1.1);
  background: #333;
}

.jsm-live-icon {
  background: var(--primary-glow);
}

.jsm-live-icon:hover {
  background: #ff4da6;
}

.jsm-live-icon span {
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
}

.jsm-card-content {
  padding-top: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.jsm-card-content h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jsm-card-content p {
  color: #aaa6c3;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.jsm-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.jsm-tag {
  font-size: 0.85rem;
  font-weight: 500;
}

.blue-text-gradient {
  background: linear-gradient(90deg, #5b86e5, #36d1dc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-text-gradient {
  background: linear-gradient(90deg, #11998e, #38ef7d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pink-text-gradient {
  background: linear-gradient(90deg, #f12711, #f5af19);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  background: rgba(255, 165, 0, 0.2);
  color: orange;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid orange;
  display: inline-block;
}


/* JS MASTERY STYLE CONTACT SECTION */
.jsm-contact-section {
  padding-bottom: 120px;
}

.jsm-contact-grid {
  display: flex;
  flex-direction: column-reverse;
  /* Stacks Earth on top of form on mobile */
  gap: 40px;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .jsm-contact-grid {
    flex-direction: row;
    /* Form left, Earth right on desktop */
  }
}

.jsm-form-card {
  flex: 0.75;
  background: #100d25;
  padding: 32px;
  border-radius: 20px;
}

@media (min-width: 768px) {
  .jsm-form-card {
    padding: 60px 48px;
  }
}

.jsm-contact-form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.jsm-form-label {
  display: flex;
  flex-direction: column;
}

.jsm-form-text {
  color: #fff;
  font-weight: 500;
  margin-bottom: 16px;
}

.jsm-form-input {
  background: #151030;
  padding: 16px 24px;
  color: #fff;
  border-radius: 12px;
  outline: none;
  border: none;
  font-family: inherit;
}

.jsm-form-input::placeholder {
  color: #aaa6c3;
}

.jsm-submit-btn {
  background: #151030;
  padding: 12px 32px;
  width: fit-content;
  color: #fff;
  font-weight: bold;
  border-radius: 12px;
  outline: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.jsm-submit-btn:hover {
  background: var(--primary-glow);
}

.jsm-earth-container {
  flex: 1;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .jsm-earth-container {
    min-height: auto;
  }
}

/* CSS Glowing Orb (Fallback for 3D model) */
.jsm-css-orb {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
}

.orb-core {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #915eff 0%, #151030 70%, transparent 100%);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(145, 94, 255, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.2);
  animation: orbPulse 4s ease-in-out infinite alternate;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(145, 94, 255, 0.3);
  box-shadow: 0 0 15px rgba(145, 94, 255, 0.2);
}

.ring-1 {
  width: 200px;
  height: 200px;
  animation: spinRing1 8s linear infinite;
  border-top: 2px solid #915eff;
}

.ring-2 {
  width: 230px;
  height: 230px;
  animation: spinRing2 12s linear infinite;
  border-right: 2px solid #ff4da6;
}

.ring-3 {
  width: 260px;
  height: 260px;
  animation: spinRing3 16s linear infinite;
  border-bottom: 2px solid #36d1dc;
}

@keyframes orbPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
    box-shadow: 0 0 30px rgba(145, 94, 255, 0.4);
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
    box-shadow: 0 0 70px rgba(145, 94, 255, 0.8), inset 0 0 40px rgba(255, 255, 255, 0.4);
  }
}

@keyframes spinRing1 {
  0% {
    transform: rotateX(70deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes spinRing2 {
  0% {
    transform: rotateY(70deg) rotateX(20deg) rotateZ(0deg);
  }

  100% {
    transform: rotateY(70deg) rotateX(20deg) rotateZ(-360deg);
  }
}

@keyframes spinRing3 {
  0% {
    transform: rotateX(20deg) rotateY(40deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(20deg) rotateY(40deg) rotateZ(360deg);
  }
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  margin-top: 50px;
}


/* CERTIFICATES & MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.cert-modal {
  background: #111;
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 20;
  transition: 0.3s;
}

.close-modal:hover {
  color: #ff007f;
  transform: rotate(90deg);
}

/* Companies Grid */
.cert-grid-view {
  padding: 40px;
  text-align: center;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  width: 100%;
  padding-bottom: 20px;
}

.company-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 3px;
  cursor: pointer;
  perspective: 1000px;
  position: relative;
}

.company-card:hover {
  transform: translateY(-5px);
}

.card-inner {
  background: #1a1a1a;
  border-radius: 17px;
  padding: 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.company-card:hover .card-inner {
  background: #202020;
}

.card-icon {
  font-size: 3rem;
}

/* Detail View */
.cert-detail-view {
  display: none;
  height: 100%;
  flex-direction: column;
}

.cert-detail-view.active {
  display: flex;
}

.cert-container {
  display: flex;
  flex: 1;
  border-top: 1px solid #333;
}

.cert-sidebar {
  width: 250px;
  background: #151515;
  border-right: 1px solid #333;
}

.cert-list {
  list-style: none;
  padding: 0;
}

.cert-list li {
  padding: 15px 20px;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
  color: #ccc;
}

.cert-list li:hover,
.cert-list li.active {
  background: #ff007f;
  color: #fff;
}

.cert-viewer {
  flex: 1;
  background: #000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

iframe.show {
  display: block;
}

#placeholderText {
  color: #555;
}

/* Resume Modal */
.resume-modal-content {
  background: #111;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #333;
}

.resume-options-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.resume-card-link {
  text-decoration: none;
  color: inherit;
}

/* ═══ PREMIUM ABOUT SECTION ═══ */
.about-section {
  position: relative;
  padding: 100px 60px;
  overflow: visible;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Parallax BG blobs */
.about-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.18;
  transition: transform 0.1s linear;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
  top: -100px;
  left: -150px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: #7b00ff;
  bottom: -80px;
  right: -80px;
}

.about-inner {
  display: flex;
  gap: 100px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ── Photo side ── */
.about-left-col {
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 400px;
}

.photo-depth-layer {
  position: absolute;
  border-radius: 20px;
  border: 1px solid rgba(255, 0, 127, 0.25);
}

.layer-2 {
  inset: -12px -12px;
  animation: layerPulse 4s ease-in-out infinite;
}

.layer-3 {
  inset: -24px -24px;
  animation: layerPulse 4s ease-in-out infinite;
  animation-delay: 0.5s;
  opacity: 0.5;
}

@keyframes layerPulse {

  0%,
  100% {
    border-color: rgba(255, 0, 127, 0.2);
  }

  50% {
    border-color: rgba(255, 0, 127, 0.55);
  }
}

.photo-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(255, 0, 127, 0.25), inset 0 0 30px rgba(255, 0, 127, 0.08);
  pointer-events: none;
  z-index: 3;
}

.about-main-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  z-index: 2;
  transition: transform 0.4s ease;
}

.photo-frame:hover .about-main-photo {
  transform: scale(1.03);
}

.photo-tag {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid rgba(255, 0, 127, 0.4);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.72rem;
  color: #fff;
  white-space: nowrap;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-tag-dot {
  width: 8px;
  height: 8px;
  background: #39ff14;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px #39ff14;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* ── Content side ── */
.about-content {
  flex: 1;
}

.about-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 4px;
  color: var(--primary-glow);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.about-heading {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
  text-align: left;
  line-height: 1.1;
}

.about-heading-accent {
  color: var(--primary-glow);
  text-shadow: 0 0 20px var(--primary-glow);
}

.about-sub {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.88rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.about-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 550px;
  margin-bottom: 40px;
}

/* Stats */
.about-stats {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-glow);
  text-shadow: 0 0 14px var(--primary-glow);
  line-height: 1;
}

.stat-plus {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-glow);
}

.stat-item p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Skill Bars */
.skill-bars {
  margin-top: 15px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}




.skill-bar-label {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.skill-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-glow), #ff4da6);
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Timeline */
.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tl-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: 2px solid rgba(255, 0, 127, 0.4);
  flex-shrink: 0;
  margin-top: 3px;
  transition: 0.3s;
}

.tl-dot.active {
  background: var(--primary-glow);
  border-color: var(--primary-glow);
  box-shadow: 0 0 10px var(--primary-glow);
}

.tl-year {
  font-size: 0.68rem;
  color: var(--primary-glow);
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.tl-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

/* ── About inner: 3-column ── */
/* ── About inner: 3-column ── */
.about-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: nowrap;
  overflow: visible;
  position: relative;
}

/* Bigger blob, spread fully to the left edge */
.blob-1 {
  width: 900px !important;
  height: 800px !important;
  top: -200px !important;
  left: -400px !important;
}

/* Badge row */
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 18px;
}

.cert-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  border: 1px solid;
}

.hackerrank-badge {
  border-color: rgba(0, 200, 100, 0.5);
  background: rgba(0, 200, 100, 0.08);
  color: #00c864;
}

.leetcode-badge {
  border-color: rgba(255, 161, 22, 0.5);
  background: rgba(255, 161, 22, 0.08);
  color: #ffa116;
}

/* ── Col 3: Right column ── */
.about-right-col {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Cert Fan Collage */
.cert-collage-wrap {
  position: relative;
}

.collage-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.cert-fan {
  position: relative;
  width: 300px;
  height: 290px;
  margin-bottom: 18px;
}

.cert-card {
  position: absolute;
  width: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform-origin: bottom center;
  transition: transform 0.5s cubic-bezier(.4, 0, .2, 1), z-index 0.1s;
  top: 40px;
  left: 50%;
  margin-left: -100px;
}

.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Fan spread: each card gets different rotation */
.cf1 {
  transform: rotate(-36deg) translateY(-10px);
  z-index: 1;
}

.cf2 {
  transform: rotate(-24deg) translateY(-8px);
  z-index: 2;
}

.cf3 {
  transform: rotate(-12deg) translateY(-4px);
  z-index: 3;
}

.cf4 {
  transform: rotate(0deg) translateY(0px);
  z-index: 4;
}

.cf5 {
  transform: rotate(12deg) translateY(-4px);
  z-index: 3;
}

.cf6 {
  transform: rotate(24deg) translateY(-8px);
  z-index: 2;
}

.cf7 {
  transform: rotate(36deg) translateY(-10px);
  z-index: 1;
}

/* Hover: fan spreads wider */
.cert-fan:hover .cf1 {
  transform: rotate(-54deg) translateY(-18px);
}

.cert-fan:hover .cf2 {
  transform: rotate(-36deg) translateY(-14px);
}

.cert-fan:hover .cf3 {
  transform: rotate(-18deg) translateY(-8px);
}

.cert-fan:hover .cf4 {
  transform: rotate(0deg) translateY(0px);
  z-index: 7;
  box-shadow: 0 20px 50px rgba(255, 0, 127, 0.3);
}

.cert-fan:hover .cf5 {
  transform: rotate(18deg) translateY(-8px);
}

.cert-fan:hover .cf6 {
  transform: rotate(36deg) translateY(-14px);
}

.cert-fan:hover .cf7 {
  transform: rotate(54deg) translateY(-18px);
}

/* =======================
   Interactive Parallax Overlay (Modal)
   ======================= */
.cert-parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 10, 30, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 100;
  display: none;
  /* hidden by default */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
  perspective: 1200px;
}

.cert-parallax-overlay.active {
  display: flex;
  opacity: 1;
}

.close-parallax-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 101;
  transition: all 0.3s ease;
}

.close-parallax-btn:hover {
  background: var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow);
  transform: scale(1.1);
}

.parallax-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
  align-content: start;
  overflow-y: auto;
}

.p-cert-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1.414;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: popInTile 0.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
}

@keyframes popInTile {
  0% {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Base glowing effect */
.p-cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 30px rgba(255, 0, 127, 0.1);
  pointer-events: none;
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

.p-cert-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* High-intensity Hover */
.p-cert-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 127, 0.4);
  z-index: 20;
}

.p-cert-card:hover::before {
  box-shadow: inset 0 0 50px rgba(255, 0, 127, 0.4);
}

/* Bento Style Label */
.cert-bento-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 0, 127, 0.3);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 0, 127, 0.1);
  z-index: 10;
  transition: all 0.3s ease;
}

.p-cert-card:hover .cert-bento-label {
  background: rgba(15, 10, 25, 0.95);
  border-top-color: var(--primary-glow);
  box-shadow: 0 -10px 40px rgba(255, 0, 127, 0.3), inset 0 0 25px rgba(255, 0, 127, 0.2);
}

.cert-index {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ff4da6;
  background: rgba(255, 77, 166, 0.15);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 166, 0.3);
  box-shadow: 0 0 10px rgba(255, 77, 166, 0.2);
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  text-align: right;
  flex: 1;
  margin-left: 15px;
  margin-right: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cert-download-btn {
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 20;
}

.cert-download-btn:hover {
  color: #ff4da6;
  background: rgba(255, 0, 127, 0.15);
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
  transform: translateY(-2px);
}

/* Auto-cycle active card highlight via animation */
@keyframes certCycle {

  0%,
  14% {
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    transform: rotate(-36deg) translateY(-10px) scale(1.06);
  }

  14.01%,
  100% {
    z-index: 1;
    transform: rotate(-36deg) translateY(-10px);
  }
}

.cf1 {
  animation: certCycle1 7s ease-in-out infinite;
}

.cf2 {
  animation: certCycle2 7s ease-in-out infinite;
}

.cf3 {
  animation: certCycle3 7s ease-in-out infinite;
}

.cf4 {
  animation: certCycle4 7s ease-in-out infinite;
}

@keyframes certCycle1 {

  0%,
  14% {
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    transform: rotate(-36deg) translateY(-10px) scale(1.06);
  }

  14.01%,
  100% {
    z-index: 1;
    transform: rotate(-36deg) translateY(-10px);
  }
}

@keyframes certCycle2 {

  0%,
  14.99% {
    z-index: 2;
    transform: rotate(-24deg) translateY(-8px);
  }

  15%,
  28% {
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    transform: rotate(-24deg) translateY(-8px) scale(1.06);
  }

  28.01%,
  100% {
    z-index: 2;
    transform: rotate(-24deg) translateY(-8px);
  }
}

@keyframes certCycle3 {

  0%,
  28.99% {
    z-index: 3;
    transform: rotate(-12deg) translateY(-4px);
  }

  29%,
  42% {
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    transform: rotate(-12deg) translateY(-4px) scale(1.06);
  }

  42.01%,
  100% {
    z-index: 3;
    transform: rotate(-12deg) translateY(-4px);
  }
}

@keyframes certCycle4 {

  0%,
  42.99% {
    z-index: 4;
    transform: rotate(0deg) translateY(0px);
  }

  43%,
  57% {
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
    transform: rotate(0deg) translateY(0px) scale(1.06);
  }

  57.01%,
  100% {
    z-index: 4;
    transform: rotate(0deg) translateY(0px);
  }
}

.collage-sub {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  margin-top: 8px;
}

/* LeetCode Panel */
.lc-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.lc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.lc-panel-brand {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffa116;
  letter-spacing: 1px;
}

.lc-panel-beats {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 161, 22, 0.1);
  border: 1px solid rgba(255, 161, 22, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
}

.lc-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.lc-total-num {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffa116;
  line-height: 1;
}

.lc-total-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lc-difficulty-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.lc-diff {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid;
}

.lc-diff span {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  opacity: 0.6;
}

.lc-diff b {
  font-size: 1.1rem;
  font-weight: 800;
}

.lc-diff.easy {
  border-color: rgba(0, 184, 164, 0.3);
  color: #00b8a4;
  background: rgba(0, 184, 164, 0.06);
}

.lc-diff.med {
  border-color: rgba(255, 161, 22, 0.3);
  color: #ffa116;
  background: rgba(255, 161, 22, 0.06);
}

.lc-diff.hard {
  border-color: rgba(239, 71, 67, 0.3);
  color: #ef4743;
  background: rgba(239, 71, 67, 0.06);
}

.lc-meta-row {
  display: flex;
  gap: 12px;
}

.lc-meta-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lc-meta-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.lc-meta-val.lc-pct {
  color: #00b8a4;
}

.lc-meta-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
}

/* ═══ ORBITAL TECH STACK ═══ */
.orbit-tech-stack {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.orbit-path-wrapper {
  position: relative;
  width: 400px;
  height: 140px;
  transform: rotate(-8deg);
}

.orbit-svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-item {
  position: absolute;
  width: 44px;
  height: 44px;
  left: 0;
  top: 0;
  margin-left: -22px;
  margin-top: -22px;
  background: var(--surface);
  border: 2px solid var(--pink);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  offset-path: path("M 20 70 A 180 50 0 1 0 380 70 A 180 50 0 1 0 20 70");
  animation: orbitTrack 20s linear infinite;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
  z-index: 10;
}

.orbit-item img {
  width: 24px;
  height: 24px;
  transform: rotate(8deg);
  /* Counter parent rotation */
}

.orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.orbit-center span {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--muted);
  transform: rotate(8deg);
}

@keyframes orbitTrack {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

/* ═══ MOBILE — Full Responsive Fix ═══ */
@media (max-width: 768px) {

  /* Navbar: compact but fully visible */
  .navbar {
    padding: 0 20px;
    height: 70px;
  }

  .nav-brand {
    gap: 8px;
  }

  .nav-name {
    display: none;
  }

  /* Hamburger Toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 10001;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile Dropdown Menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px !important;
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 10000;
    padding: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    padding: 10px 20px;
    width: 100%;
    text-align: center;
  }

  .nav-academic {
    font-size: 1.2rem !important;
    padding: 12px 24px !important;
    margin-top: 20px;
  }

  /* Hero: Stacked & Centered for Mobile */
  .hero {
    flex-direction: column;
    padding: 120px 20px 40px;
    min-height: auto;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .hero-container {
    flex-direction: column;
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .hero-accent {
    display: none;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-name {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .tagline {
    font-size: 1.2rem;
    margin: 0 0 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
  }

  .cta-group {
    justify-content: center;
    width: 100%;
    gap: 15px;
  }

  .resume-btn {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 200px;
  }

  .hero-3d-model {
    position: relative !important;
    width: 100%;
    max-width: 450px;
    height: 400px;
    margin: 20px auto 0;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* About and other sections */
  section {
    padding: 80px 20px;
  }

  .jsm-section-headtext {
    font-size: 2.8rem;
    text-align: center;
  }

  /* === About section: stack vertically on mobile === */
  .about-section>.about-inner,
  .about-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 10px;
  }

  .about-photo-wrap {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .about-content {
    width: 100%;
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .badge-row {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .skill-bars {
    text-align: left;
  }

  .about-timeline {
    text-align: left;
  }

  /* About right col (cert fan + LC panel) */
  .about-right-col {
    width: 100%;
  }

  /* Hide the cert fan collage on mobile — too cramped */
  .cert-collage-wrap {
    display: none;
  }

  /* === Projects section: safe min-width === */
  .jsm-section {
    padding: 80px 5%;
  }

  .jsm-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* === Contact section: orb scaled down === */
  .jsm-css-orb {
    width: 180px;
    height: 180px;
  }

  .orb-core {
    width: 110px;
    height: 110px;
  }

  .ring-1 {
    width: 150px;
    height: 150px;
  }

  .ring-2 {
    width: 170px;
    height: 170px;
  }

  .ring-3 {
    width: 190px;
    height: 190px;
  }

  /* === Modals: safe padding on mobile === */
  .cert-modal {
    width: 95%;
    height: 90vh;
    border-radius: 12px;
  }

  .cert-grid-view {
    padding: 20px 15px;
  }

  .company-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .resume-modal-content {
    width: 95%;
    padding: 24px 16px;
    border-radius: 12px;
  }

  .parallax-content {
    padding: 20px 10px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* Extra small fixes */
@media (max-width: 480px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .hero-3d-model {
    height: 320px;
  }

  .jsm-section-headtext {
    font-size: 2.4rem;
  }

  /* Orbit tech stack: scale down to prevent overflow */
  .orbit-path-wrapper {
    transform: scale(0.72) rotate(-8deg);
    transform-origin: center center;
    width: 400px;
    /* keep original, scale handles sizing */
  }

  .orbit-tech-stack {
    overflow: hidden;
    height: 140px;
  }
}

/* ═══ LOGO LOOP (Infinite Marquee) ═══ */
.logoloop-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  background: transparent;
  z-index: 10;

  --logoloop-gap: 60px;
  --logoloop-logoHeight: 40px;
  --logoloop-duration: 20s;
}

.logoloop-track {
  display: flex;
  width: max-content;
  animation: logoScroll var(--logoloop-duration) linear infinite;
}

/* Only pause on hover for pointer (non-touch) devices */
@media (hover: hover) and (pointer: fine) {
  .logoloop-track:hover {
    animation-play-state: paused;
  }
}

.logoloop-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logoloop-item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  display: flex;
  align-items: center;
}

.logoloop-list .logoloop-item:last-child {
  margin-right: var(--logoloop-gap);
}

.logoloop-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logoloop-link:hover {
  transform: translateY(-2px) scale(1.1);
}

.logoloop-item img,
.logoloop-item svg {
  height: var(--logoloop-logoHeight);
  width: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logoloop-item:hover img,
.logoloop-item:hover svg {
  opacity: 1;
}





@keyframes logoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% / 4));
  }
}

@media (max-width: 768px) {
  .logoloop-container {
    --logoloop-logoHeight: 32px;
    --logoloop-gap: 40px;
    padding: 30px 0;
  }

  .logoloop-text {
    font-size: 0.95rem;
  }
}

/* ═══ ACCESSIBILITY: Reduced Motion ═══ */
@media (prefers-reduced-motion: reduce) {
  .logoloop-track {
    animation: none;
  }

  .orbit-item {
    animation: none;
  }

  .orb-core,
  .ring-1,
  .ring-2,
  .ring-3 {
    animation: none;
  }

  .hero-3d-model model-viewer {
    --animation-name: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ═══ PROFILE CARD STYLES ═══ */
.pc-card-wrapper {
  perspective: 500px;
  transform: translate3d(0, 0, 0.1px);
  position: relative;
  touch-action: none;
  width: 100%;
  max-width: 300px;
  /* alignment with about-photo-col */
  margin: 0;
}

.pc-behind {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y),
      var(--behind-glow-color) 0%,
      transparent var(--behind-glow-size));
  filter: blur(50px) saturate(1.1);
  opacity: calc(0.8 * var(--card-opacity));
  transition: opacity 200ms ease;
}

.pc-card-wrapper:hover,
.pc-card-wrapper.active {
  --card-opacity: 1;
}

.pc-card {
  height: 420px;
  /* matches about-photo-tall height */
  display: grid;
  aspect-ratio: 0.718;
  border-radius: var(--card-radius);
  position: relative;
  background-blend-mode: color-dodge, normal, normal, normal;
  animation: glow-bg 12s linear infinite;
  box-shadow: rgba(0, 0, 0, 0.8) calc((var(--pointer-from-left) * 10px) - 3px) calc((var(--pointer-from-top) * 20px) - 6px) 20px -5px;
  transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  background: url('images/cardimage.jpeg') center 20% / cover no-repeat;
  background-color: transparent;
  backface-visibility: hidden;
  overflow: hidden;
}

.pc-card:hover,
.pc-card.active {
  transition: none;
  transform: translateZ(10px) rotateX(calc(var(--rotate-y) * 0.5)) rotateY(calc(var(--rotate-x) * 0.5));
}

.pc-card-shell.entering .pc-card {
  transition: transform 180ms ease-out;
}

.pc-card-shell {
  position: relative;
  z-index: 1;
}

.pc-card * {
  display: grid;
  grid-area: 1/-1;
  border-radius: var(--card-radius);
  pointer-events: none;
}

.pc-inside {
  inset: 0;
  position: absolute;
  background: transparent;
  background-color: transparent;
  transform: none;
}

.pc-shine {
  mask-image: var(--icon);
  mask-mode: luminance;
  mask-repeat: repeat;
  mask-size: 150%;
  mask-position: top calc(200% - (var(--background-y) * 5)) left calc(100% - var(--background-x));
  transition: filter 0.8s ease, opacity 0.8s ease;
  filter: brightness(0.4) contrast(1.2) saturate(0.2);
  opacity: 0.15;
  animation: holo-bg 18s linear infinite;
  animation-play-state: running;
  mix-blend-mode: color-dodge;
}

.pc-shine,
.pc-shine::after {
  --space: 5%;
  --angle: -45deg;
  transform: translate3d(0, 0, 1px);
  overflow: hidden;
  z-index: 3;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-image:
    repeating-linear-gradient(0deg,
      var(--sunpillar-clr-1) calc(var(--space) * 1),
      var(--sunpillar-clr-2) calc(var(--space) * 2),
      var(--sunpillar-clr-3) calc(var(--space) * 3),
      var(--sunpillar-clr-4) calc(var(--space) * 4),
      var(--sunpillar-clr-5) calc(var(--space) * 5),
      var(--sunpillar-clr-6) calc(var(--space) * 6),
      var(--sunpillar-clr-1) calc(var(--space) * 7)),
    repeating-linear-gradient(var(--angle),
      #0e152e 0%,
      hsl(180, 10%, 60%) 3.8%,
      hsl(180, 29%, 66%) 4.5%,
      hsl(180, 10%, 60%) 5.2%,
      #0e152e 10%,
      #0e152e 12%),
    radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y),
      hsla(0, 0%, 0%, 0.1) 12%,
      hsla(0, 0%, 0%, 0.15) 20%,
      hsla(0, 0%, 0%, 0.25) 120%);
  background-position:
    0 var(--background-y),
    var(--background-x) var(--background-y),
    center;
  background-blend-mode: color, hard-light;
  background-size:
    500% 500%,
    300% 300%,
    200% 200%;
  background-repeat: repeat;
}

.pc-shine::before,
.pc-shine::after {
  content: '';
  background-position: center;
  background-size: cover;
  grid-area: 1/1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.pc-card:hover .pc-shine,
.pc-card.active .pc-shine {
  filter: brightness(0.6) contrast(1.4) saturate(0.4);
  opacity: 0.4;
  animation-play-state: paused;
}

.pc-card:hover .pc-shine::before,
.pc-card.active .pc-shine::before,
.pc-card:hover .pc-shine::after,
.pc-card.active .pc-shine::after {
  opacity: 1;
}

.pc-shine::before {
  background-image:
    linear-gradient(45deg,
      var(--sunpillar-4),
      var(--sunpillar-5),
      var(--sunpillar-6),
      var(--sunpillar-1),
      var(--sunpillar-2),
      var(--sunpillar-3)),
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), hsl(0, 0%, 70%) 0%, hsla(0, 0%, 30%, 0.2) 90%),
    var(--grain);
  background-size:
    250% 250%,
    100% 100%,
    220px 220px;
  background-position:
    var(--pointer-x) var(--pointer-y),
    center,
    calc(var(--pointer-x) * 0.01) calc(var(--pointer-y) * 0.01);
  background-blend-mode: color-dodge;
  filter: brightness(calc(2 - var(--pointer-from-center))) contrast(calc(var(--pointer-from-center) + 2)) saturate(calc(0.5 + var(--pointer-from-center)));
  mix-blend-mode: luminosity;
}

.pc-shine::after {
  background-position:
    0 var(--background-y),
    calc(var(--background-x) * 0.4) calc(var(--background-y) * 0.5),
    center;
  background-size:
    200% 300%,
    700% 700%,
    100% 100%;
  mix-blend-mode: difference;
  filter: brightness(0.8) contrast(1.5);
}

.pc-glare {
  transform: translate3d(0, 0, 1.1px);
  overflow: hidden;
  background-image: radial-gradient(farthest-corner circle at var(--pointer-x) var(--pointer-y),
      hsl(248, 25%, 80%) 12%,
      hsla(207, 40%, 30%, 0.8) 90%);
  mix-blend-mode: overlay;
  filter: brightness(0.6) contrast(1.1);
  opacity: 0.3;
  z-index: 4;
}

.pc-avatar-content {
  overflow: visible;
  transform: translateZ(2);
  backface-visibility: hidden;
}

.pc-avatar-content .avatar {
  display: none;
}

/* Moving Code Symbols */
.pc-code-icons {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.code-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90px;
  height: 90px;
  stroke: url(#pc-symbol-gradient);
  /* Use the defined gradient */
  filter: drop-shadow(0 0 10px rgba(82, 39, 255, 0.4));
  opacity: 0.3;
  /* Better base visibility */
  stroke-width: 1.5;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  animation: flow-dynamic 6s ease-in-out infinite alternate;
  /* Digital Pixel Effect */
  mask-image: radial-gradient(circle, #000 60%, transparent 60%);
  mask-size: 4px 4px;
  -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 60%);
  -webkit-mask-size: 4px 4px;
}

@keyframes flow-dynamic {
  0% {
    transform: translate(-50%, -50%) translateY(-25px) rotate(-5deg);
  }

  100% {
    transform: translate(-50%, -50%) translateY(25px) rotate(5deg);
  }
}

.pc-card:hover .code-icon,
.pc-card.active .code-icon {
  opacity: 1;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 20px rgba(255, 159, 252, 0.8)) brightness(1.2);
  animation-play-state: running;
}

.icon-left {
  transform: translate3d(-140px, -20px, 40px);
}

.icon-right {
  transform: translate3d(50px, -20px, 40px);
}

.icon-tl {
  transform: translate3d(-120px, -180px, 20px) scale(0.7);
}

.icon-tr {
  transform: translate3d(40px, -180px, 20px) scale(0.7);
}

.icon-bl {
  transform: translate3d(-130px, 140px, 20px) scale(0.7);
}

.icon-br {
  transform: translate3d(50px, 140px, 20px) scale(0.7);
}

.pc-avatar-content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: none;
  pointer-events: none;
}

.pc-user-info {
  position: absolute;
  --ui-inset: 20px;
  --ui-radius-bias: 6px;
  bottom: var(--ui-inset);
  left: var(--ui-inset);
  right: var(--ui-inset);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(max(0px, var(--card-radius) - var(--ui-inset) + var(--ui-radius-bias)));
  padding: 12px 14px;
  pointer-events: auto;
}

.pc-user-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-mini-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.pc-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.pc-user-text {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
}

.pc-handle {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
}

.pc-status {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1;
}

.pc-contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.pc-contact-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.pc-content:not(.pc-avatar-content) {
  max-height: 100%;
  overflow: hidden;
  text-align: center;
  position: relative;
  transform: translate3d(calc(var(--pointer-from-left) * -6px + 3px),
      calc(var(--pointer-from-top) * -6px + 3px),
      0.1px);
  z-index: 5;
}

.pc-details {
  width: 100%;
  position: absolute;
  bottom: 40px;
  /* Lower position */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pc-details h3 {
  font-weight: 700;
  margin: 0;
  font-size: 1.6rem;
  /* Slightly smaller */
  letter-spacing: 0.35em;
  /* Cleaner elongation */
  text-transform: uppercase;
  background-image: linear-gradient(to right, #5227FF, #FF9FFC, #B19EEF, #5227FF);
  background-size: 300% 100%;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: gradient-sweep 8s linear infinite;
  text-indent: 0.35em;
}

.pc-details p {
  font-weight: 500;
  position: relative;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 auto;
  width: min-content;
  color: rgba(255, 255, 255, 0.45);
  /* Elegant semi-transparent white */
  opacity: 1;
}

@keyframes gradient-sweep {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

@keyframes glow-bg {
  0% {
    --bgrotate: 0deg;
  }

  100% {
    --bgrotate: 360deg;
  }
}

@keyframes holo-bg {
  0% {
    background-position:
      0 var(--background-y),
      0 0,
      center;
  }

  100% {
    background-position:
      0 var(--background-y),
      90% 90%,
      center;
  }
}

/* ═══ PROFILE CARD MOBILE TWEAKS ═══ */
@media (max-width: 768px) {
  .pc-card {
    height: 450px;
  }

  .pc-details {
    bottom: 1.5em;
  }

  .pc-details h3 {
    font-size: min(4svh, 2.5em);
  }

  .pc-details p {
    font-size: 14px;
  }

  .pc-user-info {
    --ui-inset: 15px;
    padding: 10px 12px;
  }

  .pc-mini-avatar {
    width: 28px;
    height: 28px;
  }

  .pc-user-details {
    gap: 10px;
  }

  .pc-handle {
    font-size: 13px;
  }

  .pc-status {
    font-size: 10px;
  }

  .pc-contact-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .pc-card {
    height: 380px;
  }

  .pc-details {
    bottom: 1em;
  }

  .pc-details h3 {
    font-size: min(3.5svh, 2em);
  }

  .pc-details p {
    font-size: 12px;
  }

  .pc-user-info {
    --ui-inset: 12px;
    padding: 8px 10px;
  }

  .pc-mini-avatar {
    width: 24px;
    height: 24px;
  }

  .pc-user-details {
    gap: 8px;
  }

  .pc-handle {
    font-size: 12px;
  }

  .pc-status {
    font-size: 9px;
  }

  .pc-contact-btn {
    padding: 5px 10px;
    font-size: 10px;
    border-radius: 50px;
  }
}