:root {
  --bg-color: #020205;
  /* Deeper, richer black */
  --bg-radial: radial-gradient(circle at 50% 0%, #111122 0%, #020205 60%);
  --text-primary: #ffffff;
  --text-secondary: #b0b0c0;
  --accent-cyan: #00f3ff;
  --accent-purple: #bc13fe;
  --accent-glow-cyan: rgba(0, 243, 255, 0.6);
  --accent-primary: var(--accent-cyan);
  --accent-glow: var(--accent-glow-cyan);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.2);
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  /* Enable snapping */
}

body {
  background-color: var(--bg-color);
  /* Global Dot Grid - Seamless Flow */
  background-image:
    radial-gradient(rgba(0, 243, 255, 0.15) 1px, transparent 1px),
    var(--bg-radial);
  background-size: 40px 40px, 100% 100%;
  background-attachment: fixed, fixed;
  /* Fixes background during scroll */
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Canvas Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower.hovering {
  width: 80px;
  height: 80px;
  background: rgba(0, 243, 255, 0.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.custom-cursor.hovering {
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple);
}

/* Click Ripple */
@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

.click-ripple {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  animation: rippleEffect 0.6s ease-out forwards;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  z-index: 1000;
  width: 0%;
  box-shadow: 0 0 15px var(--accent-cyan);
}

/* Utility & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Visual Layer (Cutout Overlay) */



/* =========================================
   Hero Section - Clean Grid Layout
   ========================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  /* Ensure full viewport height */
  display: flex;
  align-items: center;
  /* Background removed here, applied globally to body */
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* Text gets slightly more space */
  align-items: center;
  gap: 4rem;
  padding-top: 0;
  /* Centered vertically now */
  width: 100%;
}

/* Left Column: Text Content */
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-greeting {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hand-wave {
  font-size: 4rem;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0% {
    transform: rotate(0deg);
  }

  10% {
    transform: rotate(14deg);
  }

  20% {
    transform: rotate(-8deg);
  }

  30% {
    transform: rotate(14deg);
  }

  40% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.hero-bio-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Social Icons in Hero */
.hero-socials {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-social-link {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.hero-social-link:hover {
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Right Column: Visual Card */
.hero-visual-col {
  position: relative;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* The Clean Image Card Wrapper (Container for cropping) */
.hero-img-wrapper {
  width: 100%;
  max-width: 450px;
  height: 550px;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  /* This crops the zoomed image */
  position: relative;
  transition: transform 0.4s ease;
}

.hero-img-wrapper:hover {
  transform: scale(1.02);
  border-color: var(--accent-cyan);
}

.hero-img-card {
  width: 110%;
  /* Zoom in to crop edges (logos) */
  height: 110%;
  object-fit: cover;
  object-position: center 20%;
  /* Focus on face, crop bottom more */
  margin-left: -5%;
  /* Center the zoomed image */
  margin-top: -5%;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 6rem;
  }

  .hero-text-col {
    align-items: center;
    order: 2;
  }

  .hero-visual-col {
    order: 1;
  }

  .hero-name-row {
    justify-content: center;
  }

  .hero-img-card {
    height: 400px;
    max-width: 350px;
  }
}

/* Typography Enhancements */
/* Modern Text Gradient Animation */
.hero-title-gradient {
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right,
      #ffffff 20%,
      var(--accent-cyan) 40%,
      #ffffff 60%,
      #ffffff 80%);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  display: inline-block;
}

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

/* Reduced size for mobile to avoid wrapping issues */
@media (max-width: 900px) {
  .hero-title-gradient {
    font-size: 3.5rem;
  }
}

.hero-tagline {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero-tagline .highlight {
  color: var(--accent-cyan);
  font-weight: 600;
}

.eyebrow {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.section h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, #a0a0b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rich Glass Cards */
.glass-panel,
.glass-card {
  background: rgba(10, 10, 20, 0.6);
  /* Slightly darker base for contrast */
  backdrop-filter: blur(20px);
  /* Heavier blur */
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-highlight);
  /* Top highlight simulating light */
  border-left: 1px solid var(--glass-highlight);
  /* Left highlight simulating light */
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  /* Deep shadow for depth */
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 70%);
  pointer-events: none;
}

.glass-panel:hover,
.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0, 243, 255, 0.05);
  border-color: rgba(0, 243, 255, 0.3);
}

/* Scroll Reveal States */
.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5rem;
}

.lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.internship-focus {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.internship-focus h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.internship-focus ul {
  list-style: none;
}

.internship-focus li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.internship-focus li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-purple);
  font-family: var(--font-mono);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  margin-bottom: 2rem;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  background: linear-gradient(to bottom right, var(--accent-cyan), var(--accent-purple));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Projects Section */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.project-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.project-body ul {
  list-style: none;
  margin-bottom: 2rem;
}

.project-body li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.project-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-stack span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.project-visual {
  height: 300px;
  background: linear-gradient(45deg, rgba(0, 243, 255, 0.05), rgba(188, 19, 254, 0.05));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-list span {
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.skill-list span:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
}

/* Experience */
.timeline {
  position: relative;
  border-left: 2px solid var(--glass-border);
  margin-left: 1rem;
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--bg-color);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

.experience-bullets {
  list-style: none;
}

.experience-bullets li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.experience-bullets li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--text-primary);
}

/* Vision Section */
.vision-section {
  background: linear-gradient(180deg, var(--bg-color) 0%, #0a101f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vision-quote {
  font-size: 1.8rem;
  line-height: 1.5;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
}

/* Contact */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
}

.contact-text {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.input-glow {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
  padding: 1rem;
  color: #fff;
  font-family: var(--font-sans);
  border-radius: 6px;
  margin-bottom: 1rem;
}

.input-glow:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.full-width {
  width: 100%;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent-cyan);
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(2, 2, 5, 0.85);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
}

.logo .dot {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* Buttons */
.btn {
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.primary-btn {
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
  margin-right: 1rem;
}

.primary-btn:hover {
  background: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 40px rgba(0, 243, 255, 0.4);
}

.secondary-btn {
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

.secondary-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Sections */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #fff, #a0a0b0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtext {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.hero-role {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.project-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-title-link:hover {
  color: var(--accent-cyan);
}

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

/* Sections General */
.section {
  min-height: 100vh;
  padding: 2rem 0;
  /* Reduced from 8rem */
  position: relative;
  display: flex;
  /* Flexbox for centering */
  flex-direction: column;
  justify-content: center;
}

.section-header {
  margin-bottom: 2rem;
  /* Reduced from 4rem */
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.section-number {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }

  .custom-cursor,
  .cursor-follower {
    display: none;
  }

  .glitch-text {
    font-size: 3rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .about-grid,
  .project-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-links {
    display: none;
  }
}

/* Development Status Badge */
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    width: 100%;
    height: 100%;
    opacity: 1;
    border-width: 2px;
  }

  100% {
    width: 300%;
    height: 300%;
    opacity: 0;
    border-width: 0px;
  }
}

/* Project Animation Container */
.project-visual {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  min-height: 250px;
  background: #000;
}

.project-visual img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* transition: opacity 0.05s linear; REPLACED with none for instant switching */
  transition: none;
}

.project-visual img.active {
  opacity: 1;
}

.project-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Terminal Boot Loader
   ========================================================================== */
/* ==========================================================================
   Custom Cursor
   ========================================================================== */
/* Hide default cursor on desktop */
@media (min-width: 768px) {
  body {
    cursor: none;
  }

  a,
  button,
  .project-card,
  input,
  textarea,
  .nav-link,
  .btn {
    cursor: none;
    /* Ensure interactive elements don't show default pointer */
  }
}

#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: #00f3ff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-radius 0.3s, transform 0.1s ease-out;
  mix-blend-mode: difference;
  /* Cool effect over white text */
}

#cursor-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 243, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: blur(10px);
  transition: transform 0.15s ease-out;
}

/* Active State (Hovering) - Square Reticle */
#cursor.active {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: 1px solid #00f3ff;
  border-radius: 0;
  /* Square */
  transform: translate(-50%, -50%) rotate(45deg);
  /* Diamond/Reticle look */
}

/* ==========================================================================
   Tech Ops Interface (New Skills Section)
   ========================================================================== */
.tech-ops-interface {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.ops-sidebar {
  background: rgba(0, 0, 0, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
}

.ops-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #666;
  padding: 0 1.5rem 1rem;
  letter-spacing: 1px;
}

.ops-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  padding: 1rem 1.5rem;
  color: #888;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  cursor: none;
  /* Custom cursor handles this */
  transition: all 0.3s ease;
}

.ops-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.ops-btn.active {
  border-left-color: #00f3ff;
  background: rgba(0, 243, 255, 0.05);
  color: #00f3ff;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Main Screen */
.ops-screen {
  background: #0a0a12;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 400px;
  /* Fixed height for consistency */
}

/* Scanline Overlay */
.ops-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.screen-header {
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #666;
}

.blink-green {
  color: #00ff88;
  animation: blink 2s infinite;
}

.screen-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

.terminal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.terminal-list li {
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 1rem;
  color: #ccd6f6;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.cmd-prefix {
  color: #00f3ff;
  margin-right: 1rem;
}

.skill-ver {
  color: #666;
  font-size: 0.8rem;
}

.screen-footer {
  padding: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 30%;
  background: #00f3ff;
  animation: loadBar 3s infinite linear;
}

@keyframes loadBar {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(300%);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .tech-ops-interface {
    grid-template-columns: 1fr;
    height: auto;
  }

  .ops-sidebar {
    display: flex;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    padding: 0;
  }

  .ops-title {
    display: none;
  }

  .ops-btn {
    width: auto;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 1rem;
    font-size: 0.8rem;
  }

  .ops-btn.active {
    border-left: none;
    border-bottom-color: #00f3ff;
  }
}

/* Animations for JS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   Cyberpunk Tabbed Interface (Skills)
   ========================================= */
.tech-tabs-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Tabs Navigation */
.tech-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
  color: #fff;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: rgba(0, 243, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Tab Content */
.tab-content-wrapper {
  min-height: 400px;
  /* Prevent jumping */
  padding: 3rem;
  border: 1px solid var(--glass-border);
  background: rgba(10, 10, 20, 0.4);
}

.tab-pane {
  display: none;
  /* Hidden by default */
  animation: fadeInPane 0.5s ease-out;
}

.tab-pane.active {
  display: block;
  /* Shown when active */
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skill Subgroups (Rows) */
.skill-subgroup-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2rem;
}

.skill-subgroup-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.subgroup-label {
  flex: 0 0 200px;
  /* Fixed width label */
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  padding-top: 0.5rem;
  /* Align with tags */
}

.subgroup-tags {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Tech Tags (Pills) */
.tech-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: default;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tech-tag.highlight {
  border-color: var(--accent-cyan);
  background: rgba(0, 243, 255, 0.05);
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .skill-subgroup-row {
    flex-direction: column;
    gap: 1rem;
  }

  .subgroup-label {
    flex: auto;
    width: 100%;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .tech-tabs {
    gap: 0.5rem;
  }

  /* Hero Mobile: Stack Vertically */
  .hero-content {
    grid-template-columns: 1fr;
    /* Stack */
    text-align: center;
    /* Revert to center for mobile */
    padding-top: 6rem;
    gap: 0;
  }

  .hero-text-col {
    grid-column: 1;
    order: 2;
    /* Text below image on mobile */
    align-items: center;
    /* Center align text items */
  }

  .hero-visual-col {
    grid-column: 1;
    order: 1;
    /* Image first */
    height: 300px;
    /* Smaller image */
    margin-bottom: 2rem;
  }

  .hero-content h1,
  .hero-content h2,
  .hero-content p {
    text-align: center;
  }

  .hero-content .eyebrow {
    margin: 0 auto 1rem auto;
  }

  .hero-content .cta-group {
    justify-content: center;
  }


  .tab-btn {
    font-size: 0.75rem;
    padding: 0.6rem 1rem;
    flex: 1 1 45%;
  }
}

/* ==========================================================================
   Certifications Section
   ========================================================================== */
/* ==========================================================================
   Certifications Section
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Force 3 columns */
  gap: 1.5rem;
  margin-top: 2rem;
}

.cert-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;

  /* Anchor tag reset */
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
}

.cert-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cert-logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Optional: visual background or glow? No, user wants logos. */
}

/* Ensure images fit */
.cert-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cert-info {
  display: flex;
  flex-direction: column;
}

.cert-info h3 {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.cert-date,
.cert-id {
  display: block;
  /* Show details */
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.7;
}

.cert-tags {
  display: flex;
  /* Show tags */
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.cert-tags span {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns on tablet */
  }
}

@media (max-width: 768px) {
  .cert-grid {
    grid-template-columns: 1fr;
    /* 1 column on mobile */
  }
}

/* ==========================================================================
   Repositories Section
   ========================================================================== */
.repo-section-title {
  text-align: center;
  margin: 3rem 0 2rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.repo-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.repo-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-cyan);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.repo-icon {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.repo-links {
  display: flex;
  gap: 1rem;
}

.repo-link-icon {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.repo-card:hover .repo-link-icon {
  color: var(--accent-cyan);
}

.repo-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.repo-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.repo-description {
  min-height: 80px;
  /* Ensures consistent card heights */
  line-height: 1.6;
  /* Better readability for longer descriptions */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* Limit to 4 lines */
  line-clamp: 4;
  /* Standard property for compatibility */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



.repo-stats {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.repo-stat-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.repo-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
}

.repo-tech-tag {
  color: var(--accent-cyan);
}

/* =========================================
   📱 MOBILE & TABLET OPTIMIZATIONS
   ========================================= */

/* Tablet (Portrait) & Small Laptops (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
    max-width: 100%;
  }

  /* Hero: Tighter layout for tablet */
  .hero-content {
    gap: 2rem;
  }

  .hero-title-gradient {
    font-size: 4rem;
  }

  /* Certifications 2-column */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Projects: Stack if squeezed */
  .project-card {
    gap: 2rem;
  }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
    /* More breathing room for content vs edge */
  }

  .section {
    padding: 3rem 0;
    /* Consistent vertical spacing */
  }

  /* Navbar */
  .navbar {
    padding: 1rem 0;
    background: rgba(2, 2, 5, 0.95);
    /* More solid on mobile */
  }

  .nav-links {
    display: none;
    /* Ensure nav links are hidden on mobile */
  }

  /* --- Hero Section Refinement --- */
  .hero-section {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
    align-items: flex-start;
  }

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

  .hero-text-col {
    order: 2;
    align-items: center;
  }

  .hero-visual-col {
    order: 1;
    margin-bottom: 0;
    justify-content: center;
  }

  .hero-greeting {
    font-size: 1.8rem;
  }

  .hero-title-gradient {
    font-size: 3rem;
    line-height: 1.1;
  }

  .hero-bio-text {
    font-size: 1rem;
    text-align: center;
  }

  .hero-img-wrapper {
    max-width: 280px;
    height: 350px;
    border-radius: 30px;
  }

  .hero-img-card {
    width: 100%;
    height: 100%;
    margin: 0;
    object-position: center top;
  }

  /* --- Projects Section --- */
  .projects-list {
    gap: 2.5rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .project-content h3 {
    font-size: 1.5rem;
  }

  .project-visual {
    height: 200px;
    order: -1;
    margin-bottom: 1rem;
  }

  /* --- Experience / Timeline --- */
  .timeline {
    margin-left: 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--glass-border);
  }

  .timeline-marker {
    left: -1.95rem;
    /* Re-center on border */
    width: 0.8rem;
    height: 0.8rem;
    top: 0.3rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  /* --- Skills Layout --- */
  .tech-tabs-container {
    width: 100%;
  }

  .tech-tabs {
    gap: 0.5rem;
    justify-content: stretch;
  }

  .tab-btn {
    flex: 1 1 45%;
    /* 2 per row roughly */
    text-align: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  .tab-content-wrapper {
    padding: 1.5rem;
  }

  .skill-subgroup-row {
    flex-direction: column;
    gap: 0.8rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  }

  .subgroup-label {
    width: 100%;
    border: none;
    margin-bottom: 0;
    color: var(--accent-cyan);
  }

  .subgroup-tags {
    gap: 0.5rem;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  /* --- Certifications --- */
  .cert-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cert-card {
    padding: 1.25rem;
  }

  /* --- Contact --- */
  .contact-wrapper {
    padding: 2rem 1rem;
  }

  .section h2 {
    font-size: 2.2rem;
  }
}

/* Small Mobile (Under 400px) */
@media (max-width: 400px) {
  .hero-title-gradient {
    font-size: 2.5rem;
  }

  .tab-btn {
    flex: 1 1 100%;
  }

  .hero-img-wrapper {
    max-width: 100%;
    height: 300px;
  }
}