/* ============================================================
   STYLE.CSS — Satkunam Tishalan Portfolio
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --bg-primary: #0d0b12;
  /* Near-black with a purple tint */
  --bg-secondary: #13101e;
  /* Dark deep purple-black */
  --bg-card: #1c1730;
  /* Card: dark midnight purple */
  --accent-blue: #a855f7;
  /* Vibrant royal purple */
  --accent-cyan: #f59e0b;
  /* Bright warm gold */
  --accent-purple: #c084fc;
  /* Light electric lavender */
  --accent-pink: #fbbf24;
  /* Bright amber/gold highlight */
  --text-primary: #f3f0ff;
  /* Clean near-white with slight purple tint */
  --text-muted: #a09ab8;
  /* Muted lavender-grey */
  --glass: rgba(168, 85, 247, 0.06);
  --glass-border: rgba(168, 85, 247, 0.18);
  --border-glow: 0 0 24px rgba(168, 85, 247, 0.5);
  --border-glow-cyan: 0 0 24px rgba(245, 158, 11, 0.5);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 3px;
}

/* === SECTION BASE === */
section {
  position: relative;
  padding: 20px 5%;
  /* Reduced padding so the banner controls the space */
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 0;
  position: relative;
}

#three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px 20px;
}

/* Profile photo */
.profile-ring-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
}

.profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-blue), var(--accent-cyan), var(--accent-purple), var(--accent-blue));
  animation: ringRotate 4s linear infinite;
  z-index: 1;
}

.profile-ring::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
}

@keyframes ringRotate {
  to {
    transform: rotate(360deg);
  }
}

.profile-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.6), 0 0 80px rgba(59, 130, 246, 0.3);
  z-index: 2;
  pointer-events: none;
}

.profile-photo {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
}

/* Hero text */
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

/* ── Hero Tagline ── */
.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 10px 0 6px;
  font-size: clamp(0.65rem, 1.4vw, 0.88rem);
  line-height: 1.6;
}

.tagline-sep {
  color: var(--accent-blue);
  opacity: 0.5;
  font-weight: 300;
  user-select: none;
}

.tagline-item {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.3s;
}

.tagline-item:hover {
  color: var(--accent-purple);
}

.tagline-item.open-badge {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  animation: shimmerBadge 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes shimmerBadge {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  height: 2em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.typewriter-text {
  color: var(--accent-cyan);
  font-weight: 600;
  border-right: 2px solid var(--accent-cyan);
  white-space: nowrap;
  overflow: hidden;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50%       { border-color: var(--accent-cyan); }
}

/* Social links */
.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.hero-btn.github {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.hero-btn.linkedin {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--border-glow);
}

.hero-btn.github:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Scroll arrow */
.scroll-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 2px;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-cyan);
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(12px);
  }
}

/* ============================================================
   SECTION 2 — ABOUT
   ============================================================ */
#about {
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* 3D flip card */
.flip-card-wrapper {
  perspective: 1200px;
  width: 100%;
  max-width: 420px;
  height: 480px;
  margin: 0 auto;
}

.flip-card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.flip-card.flipped {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.flip-front {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px;
}

.about-orbit-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
}

.about-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-cyan);
  border-right-color: var(--accent-purple);
  animation: orbitSpin 3s linear infinite;
}

.orbit-ring:nth-child(2) {
  inset: 10px;
  border-top-color: var(--accent-blue);
  border-left-color: var(--accent-pink);
  animation-direction: reverse;
  animation-duration: 5s;
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

.flip-front p {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}

.flip-back {
  background: linear-gradient(135deg, var(--bg-card), #1a2744);
  border: 1px solid var(--accent-blue);
  transform: rotateY(180deg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.flip-back h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-cyan);
}

.flip-back p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* About text side */
.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-text h2 span {
  color: var(--accent-cyan);
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-blue);
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================================
   SECTION 3 — SKILLS
   ============================================================ */
#skills {
  background: transparent;
}

.skills-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cat-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}

.cat-btn.active,
.cat-btn:hover {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

/* Hex grid */
.hex-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hex-item {
  position: relative;
  width: 120px;
  height: 104px;
  background: var(--bg-card);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  opacity: 0;
  transform: translateY(30px);
}

.hex-item::before {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg-card);
  z-index: 0;
  transition: var(--transition);
}

.hex-item:hover {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.6));
}

.hex-item:hover::before {
  background: linear-gradient(135deg, #1a2744, #0d1b3e);
}

.hex-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hex-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 0.5px;
}

.hex-level {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.hex-level-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 2px;
  transition: width 1s ease;
}

/* Category colors */
.hex-item[data-cat="Programming"] {
  --hex-color: #3b82f6;
}

.hex-item[data-cat="Web"] {
  --hex-color: #06b6d4;
}

.hex-item[data-cat="DS & ML"] {
  --hex-color: #8b5cf6;
}

.hex-item[data-cat="Tools"] {
  --hex-color: #f59e0b;
}

.hex-item[data-cat="Design"] {
  --hex-color: #ec4899;
}

.hex-item::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: conic-gradient(var(--hex-color, #3b82f6), transparent, var(--hex-color, #3b82f6));
  z-index: 0;
  opacity: 0.2;
}

/* ============================================================
   SECTION 4 — EXPERIENCE
   ============================================================ */
#experience {
  background: transparent;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateX(-40px) perspective(600px) rotateY(-10deg);
}

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
  z-index: 2;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition);
  transform-style: preserve-3d;
}

.timeline-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--border-glow);
  transform: translateZ(10px);
}

.timeline-period {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-role {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 1rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-desc {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* ============================================================
   SECTION 5 — PROJECTS
   ============================================================ */
#projects {
  background: transparent;
}

.projects-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* 3D Project card */
.project-card-wrapper {
  perspective: 1000px;
  height: 260px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.project-card {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.project-card.flipped {
  transform: rotateY(180deg);
}

.project-front,
.project-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 28px;
}

.project-front {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s;
}

.project-card-wrapper:hover .project-front {
  border-color: var(--accent-blue);
  box-shadow: var(--border-glow);
}

.project-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(59, 130, 246, 0.15);
  line-height: 1;
}

.project-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.project-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-pill {
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.flip-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.flip-hint svg {
  width: 14px;
  height: 14px;
}

.project-back {
  background: linear-gradient(135deg, #1a2744, #0d1b3e);
  border: 1px solid var(--accent-blue);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-back h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.project-back p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  flex: 1;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 8px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 12px;
  width: fit-content;
  transition: var(--transition);
}

.project-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--border-glow);
}

/* ============================================================
   SECTION 6 — EDUCATION
   ============================================================ */
#education {
  background: transparent;
}

.edu-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.edu-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-purple), var(--accent-blue), var(--accent-cyan));
}

.edu-item {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 20px 0;
  opacity: 0;
  transform: scale(0.8);
}

.edu-node {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--accent-purple);
  text-align: center;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  position: relative;
  z-index: 2;
  animation: eduPulse 3s ease-in-out infinite;
}

@keyframes eduPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
  }
}

.edu-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
}

.edu-content:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.edu-period {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-purple);
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.edu-degree {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-institution {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 4px;
}

.edu-location {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.edu-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: 1px;
}

.edu-badge.present {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.edu-badge.completed {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* ============================================================
   SECTION 7 — CERTIFICATES
   ============================================================ */
#certificates {
  background: transparent;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.cert-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--border-glow);
  transform: translateY(-4px);
}

.cert-image-wrapper {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1a2744, #0d1b3e);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cert-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.cert-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--accent-blue);
  opacity: 0.6;
}

.cert-placeholder span {
  font-size: 0.8rem;
}

.cert-info {
  padding: 16px;
}

.cert-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.cert-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--accent-purple);
  transform: scale(1.1);
}

/* ============================================================
   SECTION 8 — CONTACT
   ============================================================ */
#contact {
  background: transparent;
}

.contact-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px;
  backdrop-filter: blur(20px);
  box-shadow: var(--border-glow);
  opacity: 0;
  transform: translateY(40px);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item:hover {
  color: var(--accent-cyan);
}

.contact-item:hover .contact-icon {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-blue);
}

.contact-item:hover .contact-icon svg {
  stroke: var(--bg-primary);
}

.contact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-primary);
  padding: 30px 5%;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* The secret hidden letter */
.secret-trigger {
  cursor: default;
  user-select: none;
  color: #0a0f1e;
  /* invisible — same as bg */
  font-size: 0.85rem;
  transition: text-shadow 0.3s ease;
  display: inline;
  border-radius: 2px;
  padding: 0 2px;
}

/* Very subtle hint on hover — only YOU know to look here */
.secret-trigger:hover {
  color: #0a0f1e;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.25);
  cursor: default;
}

/* ============================================================
   ADMIN LOGIN MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  border-radius: 20px;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--border-glow), 0 30px 60px rgba(0, 0, 0, 0.5);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-box.shake {
  animation: shake 0.5s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-10px);
  }

  40% {
    transform: translateX(10px);
  }

  60% {
    transform: translateX(-10px);
  }

  80% {
    transform: translateX(10px);
  }
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-cyan);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 30px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 14px;
  outline: none;
  transition: var(--transition);
}

.modal-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 6px;
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.modal-error {
  text-align: center;
  color: #f87171;
  font-size: 0.85rem;
  margin-top: 10px;
  min-height: 1.2em;
}

.modal-close-btn {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

/* ============================================================
   ROBOT CHARACTER
   ============================================================ */
.robot-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.robot-bubble {
  background: var(--bg-card);
  border: 1px solid var(--accent-blue);
  border-radius: 16px 16px 4px 16px;
  padding: 14px 18px;
  max-width: 240px;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.5;
  box-shadow: var(--border-glow);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
  position: relative;
}

.robot-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 0px solid transparent;
  border-top: 8px solid var(--accent-blue);
}

.robot-body {
  width: 70px;
  height: 70px;
  animation: robotFloat 3s ease-in-out infinite;
  cursor: pointer;
  pointer-events: all;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.5));
}

@keyframes robotFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.portfolio-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.portfolio-nav.scrolled {
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 5%;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-cyan);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flip-card-wrapper {
    max-width: 320px;
    height: 380px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 5%;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(13, 11, 18, 0.98);
    padding: 20px 5%;
    border-top: 1px solid var(--glass-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-name {
    font-size: 1.6rem;
    letter-spacing: 1px;
  }

  /* Tagline wraps nicely on mobile */
  .hero-tagline {
    font-size: 0.62rem;
    gap: 4px 6px;
    justify-content: center;
    text-align: center;
  }

  .tagline-sep {
    display: none; /* clean on mobile, just wrap */
  }

  .tagline-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.62rem;
  }

  .profile-ring-wrapper {
    width: 130px;
    height: 130px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .flip-card-wrapper {
    max-width: 280px;
    height: 340px;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .hex-item {
    width: 90px;
    height: 78px;
  }

  .hex-name {
    font-size: 0.62rem;
  }

  .hex-level {
    width: 38px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-wrapper {
    height: 280px;
  }

  .edu-timeline {
    padding-left: 0;
  }

  .edu-timeline::before {
    display: none;
  }

  .edu-item {
    gap: 16px;
  }

  .edu-node {
    width: 48px;
    height: 48px;
    font-size: 0.6rem;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .robot-widget {
    bottom: 12px;
    right: 12px;
  }

  .robot-body {
    width: 48px;
    height: 48px;
  }

  .robot-bubble {
    max-width: 160px;
    font-size: 0.75rem;
  }

  /* 3D banner padding reduced */
  .banner-3d-content {
    padding: 36px 18px;
  }

  /* Hide heavy CSS background assets on mobile */
  .cyber-city-bg {
    display: none;
  }

  /* Scroll arrow smaller */
  .scroll-arrow {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.3rem;
  }

  .hero-tagline {
    font-size: 0.58rem;
  }

  .hero-socials {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* ============================================================
   GLOBAL PARALLAX BACKGROUND ASSETS
   ============================================================ */
.cyber-city-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background: url('../images/cyber-city.svg') repeat-x bottom center;
  background-size: cover;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.rocket-bg {
  position: fixed;
  bottom: -150px;
  left: -150px;
  width: 120px;
  height: 120px;
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  transform: rotate(15deg);
  animation: flyRocket 45s linear infinite;
}

@keyframes flyRocket {
  0% {
    transform: translate(0, 0) rotate(15deg);
    opacity: 0;
  }

  5% {
    opacity: 0.3;
  }

  95% {
    opacity: 0.3;
  }

  100% {
    transform: translate(120vw, -120vh) rotate(15deg);
    opacity: 0;
  }
}

/* ============================================================
   3D SECTION BANNERS (FULL PAGE CARDS)
   ============================================================ */
.banner-3d-wrapper {
  perspective: 1200px;
  width: 100%;
  margin: 40px 0;
  /* Creates the gap where the background is visible */
}

.banner-3d-content {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(139, 92, 246, 0.1);
  border-radius: 24px;
  padding: 60px 40px;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  position: relative;
  overflow: hidden;
}

/* Glowing orb behind text in banner */
.banner-3d-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, rgba(167, 139, 250, 0) 70%);
  z-index: 0;
  pointer-events: none;
}

.banner-3d-content>* {
  position: relative;
  z-index: 1;
}

.banner-3d-content .section-header {
  margin-bottom: 40px;
  transform: translateZ(30px);
}

@media (max-width: 768px) {
  .banner-3d-content {
    padding: 40px 20px;
  }
}