html, body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #0f0f0f; /* Prevents any white gaps below the footer */
}

main {
  padding-top: 0px;
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Fullscreen hero section */
.hero-section {
  height: 100vh;
  background-color: #0f0f0f;
  padding: 0 1rem;
}

/* Project cards */
.card h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #333;
}

.skills {
  background-color: #1a1a1a;
  /* Replace with any shade you want */
  color: #f0f0f0;
}

#skills img {
  transition: transform 0.3s ease;
}

#skills img:hover {
  transform: scale(1.2);
}

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

/* Scroll behavior */
body {
  scroll-behavior: smooth;
}

/* Section spacing */
.hero-section,
#projects,
#skills,
#contact,
#footer-section {
  padding-top: 6vh;
  padding-bottom: 12vh;
}

/* Hero section */
.hero-section {
  background-color: #0f0f0f;
  position: relative;
  overflow: hidden;
}

/* Scroll-down arrow */
.scroll-down-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid #00ffee;
  border-radius: 50px;
  z-index: 10;
}

.scroll-down-arrow span {
  display: block;
  width: 4px;
  height: 8px;
  background: #00ffee;
  margin: 8px auto;
  border-radius: 2px;
  animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.5;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.section-header {
  margin-top: 2vh;
  margin-bottom: 12vh;
  text-align: center;
}

.footer-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
  border-top: 1px solid #333;
  min-height: 200px;
  /* Fixes height issues */
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.social-links a {
  font-size: 2.2rem;
  color: #f0f0f0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #00ffee;
  transform: translateY(-3px);
}

.footer-section .btn {
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-section .btn:hover {
  background-color: #00ffee;
  color: #000;
  border-color: #00ffee;
}

.unity-hero {
  height: 100vh;
  position: relative;
  background-color: #121212;
  overflow: hidden;
}

.unity-hero canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 0;
}

.unity-hero .z-1 {
  z-index: 1;
  position: relative;
}

.hardware-hero {
  height: 100vh;
  position: relative;
  background-color: #121212;
  overflow: hidden;
}

.hardware-hero canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 0;
}

.hardware-hero .z-1 {
  z-index: 1;
  position: relative;
}

.hero-section {
  height: 100vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background-color: #030508;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section canvas {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}

/* 3D Depth Room Wrapper */
.room-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  z-index: 1;
}

/* 3D Room Box */
.room {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.wall {
  position: absolute;
  background-color: rgba(5, 7, 12, 0.96);
  border: 1.5px solid rgba(0, 255, 238, 0.35);
  box-shadow: inset 0 0 80px rgba(0, 255, 238, 0.1);
}

/* Back Wall */
.wall-back {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(-800px);
  background-image:
    radial-gradient(circle at center, rgba(0, 102, 255, 0.3) 0%, transparent 75%),
    linear-gradient(rgba(0, 255, 238, 0.2) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 255, 238, 0.2) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 60px 60px, 60px 60px;
}

/* Left Wall */
.wall-left {
  top: 0;
  left: 0;
  width: 800px;
  height: 100%;
  transform-origin: left center;
  transform: rotateY(90deg);
  background-image:
    linear-gradient(rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 60px 60px;
}

/* Right Wall */
.wall-right {
  top: 0;
  right: 0;
  width: 800px;
  height: 100%;
  transform-origin: right center;
  transform: rotateY(-90deg);
  background-image:
    linear-gradient(rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 60px 60px;
}

/* Ceiling (Top Wall) */
.wall-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 800px;
  transform-origin: top center;
  transform: rotateX(-90deg);
  background-image:
    linear-gradient(rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 60px 60px;
}

/* Floor (Bottom Wall) */
.wall-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 800px;
  transform-origin: bottom center;
  transform: rotateX(90deg);
  background-image:
    linear-gradient(rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(0, 255, 238, 0.16) 1.5px, transparent 1.5px);
  background-size: 60px 60px, 60px 60px;
}

/* Floating content positioning inside the room */
.room-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(-300px);
  z-index: 10;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.room-content .hero-container {
  pointer-events: auto;
}

/* Avatar Circle Styles */
.avatar-circle-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #00ffee 0%, #0066ff 100%);
  box-shadow: 0 0 25px rgba(0, 255, 238, 0.4), 0 0 50px rgba(0, 102, 255, 0.2);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  z-index: 2;
}

.avatar-circle-wrapper:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 35px rgba(0, 255, 238, 0.6), 0 0 70px rgba(0, 102, 255, 0.4);
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 238, 0.4) 0%, transparent 70%);
  opacity: 0.6;
  filter: blur(10px);
  z-index: -1;
  animation: avatarPulse 3s infinite ease-in-out;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #0a0a0a;
  background-color: #1a1a1a;
}

@keyframes avatarPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.8;
  }
}

/* Timeline full layout */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Timeline vertical line */
.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: #555;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

/* Container for each item */
.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

/* Common content box */
.timeline-content {
  background-color: #1c1c1c;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  border-left: 4px solid #00ffee;
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.1);
}

.timeline-title {
  margin-bottom: 5px;
  font-weight: bold;
  color: #ffffff;
}

.timeline-date {
  font-size: 0.9rem;
  color: #aaaaaa;
  margin-bottom: 10px;
}

.timeline-description {
  color: #dddddd;
  margin: 0;
}

/* Left items */
.timeline-item.left {
  left: 0;
}

/* Right items */
.timeline-item.right {
  left: 50%;
}

/* Circles on the line */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: #00ffee;
  border-radius: 50%;
  top: 24px;
  z-index: 1;
}

/* Flip side for right */
.timeline-item.right::before {
  left: -8px;
  right: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 30px;
    padding-right: 0;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
  }

  .timeline-item::before {
    left: 0 !important;
  }
}

.timeline-icon {
  position: absolute;
  left: -8px;
  top: 24px;
  background-color: #00ffee;
  color: #0a0a0a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 8px rgba(0, 255, 238, 0.4);
}

.timeline-item.right .timeline-icon {
  left: auto;
  right: -8px;
}

/* Consolidated Glass Card Style for All Page Headers (excluding index.html) */
.hero-glass-card {
  background: rgba(66, 80, 113, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 191, 255, 0.15) !important;
  padding: 3rem !important;
  max-width: 800px !important;
  margin: 0 auto !important;
  position: relative !important;
  z-index: 15 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  width: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.hero-glass-card:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 191, 255, 0.4), 0 0 50px rgba(0, 191, 255, 0.2) !important;
}

/* Text styling to match home page */
.hero-glass-card h1,
.hero-glass-card .display-4,
.hero-glass-card .display-5 {
  background: linear-gradient(135deg, #00ffee 0%, #0066ff 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: bold !important;
}

.hero-glass-card p,
.hero-glass-card .lead {
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center !important;
}


/* Writing Page Tabs Styling - High-Tech Glassmorphism */
#writingTabs {
  border-bottom: none !important;
  margin-bottom: 2rem;
  gap: 1rem;
  justify-content: center;
}

#writingTabs .nav-link {
  color: rgba(15, 23, 42, 0.7) !important; /* Dark slate text for better contrast */
  font-weight: 600;
  padding: 0.875rem 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12) !important; /* Darker border */
  border-radius: 2rem !important;
  background: rgba(15, 23, 42, 0.04) !important; /* Subtle dark tint */
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05), 0 0 10px rgba(0, 102, 255, 0.05) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

#writingTabs .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

#writingTabs .nav-link:hover::before {
  left: 100%;
}

#writingTabs .nav-link:hover {
  color: rgba(15, 23, 42, 0.95) !important;
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(0, 102, 255, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(0, 102, 255, 0.15) !important;
  transform: translateY(-2px);
}

#writingTabs .nav-link.active {
  background: linear-gradient(135deg, #0077b6 0%, #0056ff 100%) !important; /* Rich blue-to-neon-blue gradient for high contrast */
  border-color: #0056ff !important;
  box-shadow: 0 8px 25px rgba(0, 86, 255, 0.3), 0 0 20px rgba(0, 119, 182, 0.2) !important;
  transform: translateY(-2px);
  color: #fff !important;
  text-shadow: none !important;
}

#writingTabContent {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 20px rgba(0, 191, 255, 0.1) !important;
  padding: 3rem !important;
  min-height: 300px;
  color: rgba(0, 0, 0, 0.8) !important;
}

#writingTabContent .lead {
  color: rgba(0, 0, 0, 0.6) !important;
}

@media screen and (max-width: 768px) {
  .hero-glass-card {
    padding: 2rem 1.5rem !important;
    max-width: 90% !important;
  }

  #writingTabs {
    gap: 0.5rem;
  }

  #writingTabs .nav-link {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 1.5rem !important;
  }

  #writingTabContent {
    padding: 2rem 1.5rem !important;
    border-radius: 20px !important;
  }
}

animation: statusPulse 2.5s infinite ease-in-out;
}

.status-dot.offline {
  background-color: var(--text-muted) !important;
  box-shadow: none;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

.status-text {
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* ==========================================
   11. AI Page Hero & Orb Styles (Teal Themed)
   ========================================== */
.ai-hero {
  height: 100vh;
  background-color: var(--bg-0);
  overflow: hidden;
  position: relative;
  padding-top: 60px;
}

.ai-hero .z-1 {
  z-index: 1;
  position: relative;
}

.orb-container {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.orb-glow {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--accent);
  background: radial-gradient(circle at center, rgba(0, 229, 204, 0.05) 20%, transparent 70%);
  box-shadow:
    0 0 10px rgba(0, 229, 204, 0.4),
    0 0 40px rgba(0, 229, 204, 0.3),
    0 0 60px rgba(0, 229, 204, 0.2);
  animation: orbIdle 3s ease-in-out infinite;
}

.orb-glow.talking {
  animation: orbTalking 0.4s ease-in-out infinite;
}

@keyframes orbIdle {

  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(0, 229, 204, 0.3),
      0 0 40px rgba(0, 229, 204, 0.2),
      0 0 60px rgba(0, 229, 204, 0.1);
  }

  50% {
    transform: scale(1.05);
    box-shadow:
      0 0 15px rgba(0, 229, 204, 0.5),
      0 0 50px rgba(0, 229, 204, 0.4),
      0 0 70px rgba(0, 229, 204, 0.3);
  }
}

@keyframes orbTalking {

  0%,
  100% {
    transform: scale(1.2);
    box-shadow:
      0 0 20px rgba(0, 229, 204, 0.7),
      0 0 60px rgba(0, 229, 204, 0.6),
      0 0 100px rgba(0, 229, 204, 0.4);
  }

  50% {
    transform: scale(1);
    box-shadow:
      0 0 10px rgba(0, 229, 204, 0.4),
      0 0 30px rgba(0, 229, 204, 0.3),
      0 0 50px rgba(0, 229, 204, 0.2);
  }
}

/* ==========================================
   12. Hero Glass Card Overrides
   ========================================== */
.hero-container {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  animation: none !important;
  /* No pulsing animation */
}

.hero-name {
  font-size: 4rem;
  font-weight: bold;
  color: var(--text) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ==========================================
   13. 3D Workstation & Hologram Elements
   ========================================== */

/* Workbenches Base */
.workbench {
  position: absolute;
  width: 320px;
  height: 220px;
  z-index: 5;
  transform-style: preserve-3d;
  pointer-events: auto;
  left: 50%;
  margin-left: -160px;
}

/* 3D Positions */
.workbench-left {
  top: calc(50% - 110px);
  transform: translate3d(-500px, -70px, -680px) rotateY(45deg) scale(0.85);
}

.workbench-right {
  top: calc(50% - 110px);
  transform: translate3d(500px, -70px, -680px) rotateY(-45deg) scale(0.85);
}

/* CRT Screen Monitor styling */
.screen-monitor {
  width: 100%;
  height: 100%;
  background: rgba(10, 20, 30, 0.4);
  border: 4px solid #1a2b3c;
  border-radius: 12px;
  box-shadow:
    0 0 20px rgba(0, 255, 238, 0.15),
    inset 0 0 15px rgba(0, 255, 238, 0.1);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
}

/* Screen Glass Overlay (CRT effects) */
.screen-glass {
  width: 100%;
  height: 100%;
  position: relative;
  background: radial-gradient(circle at center, rgba(16, 28, 44, 0.9) 0%, rgba(5, 10, 18, 0.98) 100%);
  padding: 12px;
  font-family: 'Courier New', Courier, monospace;
}

.screen-glass::after {
  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% 4px, 6px 100%;
  pointer-events: none;
  z-index: 10;
}

/* Screen Header Dots */
.screen-header {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(0, 255, 238, 0.2);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.screen-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-red {
  background-color: #ff5f56;
}

.dot-yellow {
  background-color: #ffbd2e;
}

.dot-green {
  background-color: #27c93f;
}

.screen-title {
  font-size: 0.7rem;
  color: rgba(0, 255, 238, 0.7);
  margin-left: 5px;
}

/* Content inside screens */
.screen-content {
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.85);
  height: calc(100% - 30px);
  overflow-y: hidden;
  text-align: left;
}

.code-line {
  margin-bottom: 4px;
  white-space: nowrap;
}

.code-prompt {
  color: #ffbd2e;
}

.code-status {
  font-weight: bold;
}

/* Blueprint/CAD Schematics Board */
.blueprint-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.blueprint-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 102, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 102, 255, 0.15) 1px, transparent 1px);
  background-size: 15px 15px;
}

.pcb-board {
  position: relative;
  width: 100%;
  height: 100%;
  padding-top: 15px;
}

.pcb-chip {
  width: 70px;
  height: 70px;
  background-color: #111;
  border: 2px solid #00ffee;
  border-radius: 6px;
  position: absolute;
  top: calc(50% - 35px);
  left: calc(50% - 35px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 255, 238, 0.3);
}

.chip-label {
  font-size: 0.55rem;
  font-weight: bold;
  color: #00ffee;
}

/* PCB Traces & Nodes */
.pcb-trace {
  position: absolute;
  background-color: rgba(0, 255, 238, 0.4);
}

.trace-1 {
  width: 80px;
  height: 2px;
  top: 50%;
  left: 10px;
  box-shadow: 0 0 5px #00ffee;
}

.trace-2 {
  width: 2px;
  height: 50px;
  top: 10px;
  left: 50%;
  box-shadow: 0 0 5px #00ffee;
}

.trace-3 {
  width: 70px;
  height: 2px;
  bottom: 40px;
  right: 15px;
  box-shadow: 0 0 5px #00ffee;
}

.pcb-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00ffee;
  box-shadow: 0 0 8px #00ffee;
  animation: nodePulse 2s infinite ease-in-out;
}

.node-1 {
  top: 50%;
  left: 90px;
  margin-top: -2px;
}

.node-2 {
  top: 60px;
  left: 50%;
  margin-left: -2px;
}

.node-3 {
  bottom: 40px;
  right: 85px;
  margin-bottom: -2px;
}

@keyframes nodePulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }
}

/* Floor desk & Holographic projection */
.workbench-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 800px;
  transform-origin: bottom center;
  transform: rotateX(90deg);
  transform-style: preserve-3d;
  z-index: 3;
}

.desk-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(4, 6, 12, 0.95);
  background-image:
    linear-gradient(rgba(0, 255, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 238, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  border-top: 5px solid #1a2b3c;
  box-shadow: inset 0 0 100px rgba(0, 255, 238, 0.05);
}

.hologram-emitter {
  position: absolute;
  top: 60%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%) translateZ(1px);
  transform-style: preserve-3d;
}

.emitter-ring {
  position: absolute;
  border: 2px solid rgba(0, 255, 238, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 3s infinite linear;
}

.ring-1 {
  width: 80px;
  height: 80px;
  box-shadow: 0 0 15px rgba(0, 255, 238, 0.3);
}

.ring-2 {
  width: 120px;
  height: 120px;
  border-style: dashed;
  animation-duration: 6s;
  animation-direction: reverse;
}

.emitter-light-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 140px;
  background: linear-gradient(to top, rgba(0, 255, 238, 0.25) 0%, rgba(0, 102, 255, 0.03) 70%, transparent 100%);
  transform-origin: bottom center;
  transform: translate3d(-50%, -100%, 0) rotateX(-90deg);
  clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  filter: blur(4px);
}

.hologram-project {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 100px);
}

.holo-cube-container {
  width: 80px;
  height: 80px;
  position: absolute;
  top: -40px;
  left: -40px;
  transform-style: preserve-3d;
  animation: rotateCube 15s infinite linear;
}

.holo-cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
}

.cube-face {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 238, 0.12);
  border: 1px solid rgba(0, 255, 238, 0.7);
  box-shadow:
    0 0 10px rgba(0, 255, 238, 0.3),
    inset 0 0 10px rgba(0, 255, 238, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono), monospace;
  font-size: 0.65rem;
  color: #fff;
  text-shadow: 0 0 8px #00ffee;
  font-weight: bold;
  backface-visibility: visible;
  user-select: none;
}

/* Face transforms */
.face-front {
  transform: rotateY(0deg) translateZ(40px);
}

.face-back {
  transform: rotateY(180deg) translateZ(40px);
}

.face-left {
  transform: rotateY(-90deg) translateZ(40px);
}

.face-right {
  transform: rotateY(90deg) translateZ(40px);
}

.face-top {
  transform: rotateX(90deg) translateZ(40px);
}

.face-bottom {
  transform: rotateX(-90deg) translateZ(40px);
}

@keyframes rotateCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.9);
    opacity: 0.6;
  }
}

/* Responsive fixes for mobile workstation screens */
@media screen and (max-width: 1024px) {
  .workbench {
    display: none;
    /* Hide side screens on smaller tablet/mobile devices to fit main about card */
  }

  .workbench-floor {
    transform: rotateX(90deg) scale(0.8);
  }
}

/* Corner Workbench Left Styling */
.corner-workbench-left {
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 250px;
  height: 140px;
  transform: translate3d(40px, 0, -550px) rotateY(40deg);
  transform-style: preserve-3d;
  z-index: 4;
}

/* Corner Workbench Right Styling */
.corner-workbench-right {
  position: absolute;
  bottom: 0;
  right: 6%;
  width: 250px;
  height: 140px;
  transform: translate3d(-40px, 0, -550px) rotateY(-40deg);
  transform-style: preserve-3d;
  z-index: 4;
}

.desk-table {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.desk-top {
  width: 100%;
  height: 80px;
  background: #111a24;
  border: 2px solid #00ffee;
  box-shadow: 0 0 15px rgba(0, 255, 238, 0.25);
  position: absolute;
  bottom: 80px;
  left: 0;
  transform: rotateX(90deg);
  transform-origin: bottom center;
  transform-style: preserve-3d;
}

.desk-mat {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  background: rgba(0, 102, 255, 0.15);
  border: 1px dashed rgba(0, 255, 238, 0.4);
}

.desk-leg {
  position: absolute;
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, #00ffee, #05101a);
  bottom: 0;
}

.leg-1 {
  left: 5px;
}

.leg-2 {
  right: 5px;
}

.leg-3 {
  left: 5px;
  transform: translate3d(0, 0, -70px);
}

.leg-4 {
  right: 5px;
  transform: translate3d(0, 0, -70px);
}

/* Laptop on desk */
.retro-laptop {
  position: absolute;
  top: 15px;
  left: 20px;
  width: 50px;
  height: 40px;
  transform-style: preserve-3d;
  transform: rotateZ(-10deg) translate3d(0, 0, 5px);
}

.laptop-screen {
  position: absolute;
  width: 50px;
  height: 35px;
  background: #080f18;
  border: 1px solid #00ffee;
  border-radius: 3px;
  transform-origin: bottom center;
  transform: rotateX(-30deg);
  box-shadow: 0 0 8px rgba(0, 255, 238, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2px;
}

.laptop-code {
  font-family: monospace;
  font-size: 3.5px;
  color: #00ffee;
  line-height: 1.2;
  text-align: left;
}

.laptop-keyboard {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 30px;
  background: #152230;
  border: 1px solid #00ffee;
  border-radius: 1px;
  transform: rotateX(90deg);
  transform-origin: bottom center;
}

/* Desk Lamp */
.desk-lamp {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 30px;
  height: 50px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 5px);
}

.lamp-base {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: #00ffee;
  border-radius: 50%;
  transform: rotateX(90deg);
}

.lamp-arm {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 2px;
  height: 30px;
  background: #00ffee;
  transform-origin: bottom center;
  transform: rotateX(-20deg);
}

.lamp-head {
  position: absolute;
  top: 10px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: #ffbd2e;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffbd2e;
}

.lamp-light-cone {
  position: absolute;
  top: 15px;
  left: -10px;
  width: 30px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255, 189, 46, 0.3) 0%, transparent 100%);
  clip-path: polygon(30% 0%, 70% 0%, 100% 100%, 0% 100%);
  transform-origin: top center;
  transform: rotateX(25deg);
  pointer-events: none;
}

/* Server chassis on desk */
.server-chassis {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 45px;
  height: 50px;
  background: #0f172a;
  border: 1.5px solid #00ffee;
  border-radius: 3px;
  transform: translate3d(0, 0, 5px) rotateY(-15deg);
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.2);
  display: flex;
  align-items: center;
  padding: 5px;
}

.server-front {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: ledBlink 1s infinite alternate;
}

.led-green {
  background-color: #27c93f;
  animation-delay: 0.2s;
}

.led-blue {
  background-color: #00ffee;
  animation-delay: 0.5s;
}

.led-red {
  background-color: #ff5f56;
  animation-delay: 0.8s;
}

@keyframes ledBlink {
  0% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 5px currentColor;
  }
}

/* Oscilloscope on desk */
.oscilloscope {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 65px;
  height: 45px;
  background: #182230;
  border: 2px solid #00ffee;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.3);
  transform-style: preserve-3d;
  transform: rotateZ(10deg) translate3d(0, 0, 5px);
  padding: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scope-screen {
  width: 100%;
  height: 24px;
  background: #051008;
  border: 1px solid #27c93f;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.sine-wave {
  width: 100%;
  height: 100%;
  stroke: #27c93f;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 100;
  animation: waveMove 2s infinite linear;
}

@keyframes waveMove {
  0% {
    stroke-dashoffset: 100;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.scope-knobs {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.knob {
  width: 5px;
  height: 5px;
  background-color: #00ffee;
  border-radius: 50%;
  display: inline-block;
}

/* Blueprint Blueprint sheet */
.blueprint-paper {
  position: absolute;
  top: 10px;
  left: 80px;
  width: 60px;
  height: 40px;
  background: rgba(0, 102, 255, 0.25);
  border: 1px solid rgba(0, 255, 238, 0.5);
  transform: rotateZ(15deg) translate3d(0, 0, 1px);
}

/* ==========================================
   14. Navbar Scroll Progress Bar
   ========================================== */
.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1000;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00ffee 0%, #0066ff 100%);
  box-shadow: 0 0 10px rgba(0, 255, 238, 0.7);
  transition: width 0.1s ease-out;
}

/* ==========================================
   15. Front-of-Room Workbenches (Left/Right)
   ========================================== */

.front-workbench-left {
  position: absolute;
  bottom: 0;
  left: 6%;
  width: 250px;
  height: 140px;
  transform: translate3d(-100px, 0, -250px) rotateY(80deg);
  transform-style: preserve-3d;
  z-index: 4;
}

.front-workbench-right {
  position: absolute;
  bottom: 0;
  right: 6%;
  width: 250px;
  height: 140px;
  transform: translate3d(100px, 0, -250px) rotateY(-80deg);
  transform-style: preserve-3d;
  z-index: 4;
}

/* Solder station elements on front-left desk */
.solder-station {
  position: absolute;
  top: 15px;
  left: 30px;
  width: 45px;
  height: 35px;
  background: #1e293b;
  border: 1.5px solid #00ffee;
  border-radius: 4px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 5px) rotateZ(5deg);
  box-shadow: 0 0 8px rgba(0, 255, 238, 0.2);
}

.solder-station-base {
  width: 100%;
  height: 100%;
  position: relative;
}

.solder-iron {
  position: absolute;
  width: 35px;
  height: 6px;
  background: #334155;
  border: 1px solid #00ffee;
  top: 12px;
  left: 15px;
  transform: rotateZ(-20deg);
}

.solder-glow {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ff5f56;
  border-radius: 50%;
  top: 6px;
  left: 38px;
  box-shadow: 0 0 10px #ff5f56;
  animation: solderPulse 1.5s infinite alternate;
}

@keyframes solderPulse {
  0% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.microchip-parts {
  position: absolute;
  top: 25px;
  left: 95px;
  width: 35px;
  height: 25px;
  transform: translate3d(0, 0, 1px);
}

.chip-part {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #0f172a;
  border: 1px solid #00ffee;
}

.part-1 {
  top: 0;
  left: 0;
  transform: rotate(10deg);
}

.part-2 {
  top: 10px;
  left: 12px;
  transform: rotate(-25deg);
}

/* Dual monitor setup on front-right desk */
.dual-monitor-setup {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 140px;
  height: 50px;
  display: flex;
  gap: 15px;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 5px);
}

.mini-monitor {
  width: 60px;
  height: 42px;
  background: #0f172a;
  border: 1.5px solid #00ffee;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(0, 255, 238, 0.25);
  transform-style: preserve-3d;
}

.mon-1 {
  transform: rotateY(15deg);
}

.mon-2 {
  transform: rotateY(-15deg);
}

.mini-mon-screen {
  width: 100%;
  height: 100%;
  background: #050d18;
  color: #27c93f;
  font-family: monospace;
  font-size: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 0 3px #27c93f;
  user-select: none;
}

/* ==========================================
   16. Mobile 3D Room Scaling & Spacing fixes
   ========================================== */
@media screen and (max-width: 768px) {
  .room-content .hero-container {
    padding: 1.75rem 1.5rem !important;
    max-width: 90% !important;
    margin: 0 auto !important;
    /* Increase card scale for improved mobile readability */
    transform: translate3d(0, 0, 80px) scale(0.86) !important;
  }

  .avatar-circle-wrapper {
    width: 105px !important;
    height: 105px !important;
    box-shadow: 0 0 18px rgba(0, 255, 238, 0.35) !important;
  }

  .hero-name {
    font-size: 2.3rem !important;
    margin-bottom: 0.6rem !important;
    text-align: center !important;
  }

  .hero-description {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
  }

  /* Scale floor hologram to fit mobile viewport height */
  .workbench-floor {
    transform: rotateX(90deg) scale(0.55) !important;
  }

  /* Reposition and scale desks on mobile instead of hiding them, ensuring they stay inside bounds */
  .corner-workbench-left {
    transform: translate3d(40px, 0, -550px) rotateY(40deg) scale(0.62) !important;
    display: block !important;
  }

  .corner-workbench-right {
    transform: translate3d(-40px, 0, -550px) rotateY(-40deg) scale(0.62) !important;
    display: block !important;
  }

  .front-workbench-left {
    transform: translate3d(-60px, 0, -250px) rotateY(80deg) scale(0.62) !important;
    display: block !important;
  }

  .front-workbench-right {
    transform: translate3d(60px, 0, -250px) rotateY(-80deg) scale(0.62) !important;
    display: block !important;
  }
}

/* ==========================================
   17. Hardware Page 3D Room (Amber Theme)
   ========================================== */

.hardware-room-wrapper {
  background-color: #0c0803;
}

/* Amber Wall borders and shadows */
.hardware-room-wrapper .wall {
  background-color: rgba(12, 8, 4, 0.96);
  border: 1.5px solid rgba(255, 140, 0, 0.35);
  box-shadow: inset 0 0 80px rgba(255, 140, 0, 0.1);
}

/* Back Wall */
.hardware-wall-back {
  background-image:
    radial-gradient(circle at center, rgba(255, 100, 0, 0.25) 0%, transparent 75%),
    linear-gradient(rgba(255, 140, 0, 0.18) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 140, 0, 0.18) 1.5px, transparent 1.5px) !important;
  background-size: 100% 100%, 60px 60px, 60px 60px !important;
}

/* Side walls */
.hardware-wall-side {
  background-image:
    linear-gradient(rgba(255, 140, 0, 0.14) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 140, 0, 0.14) 1.5px, transparent 1.5px) !important;
  background-size: 60px 60px, 60px 60px !important;
}

/* Desk Surface */
.hardware-desk-grid {
  background-color: rgba(12, 8, 4, 0.97) !important;
  background-image:
    linear-gradient(rgba(255, 140, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 140, 0, 0.05) 1px, transparent 1px) !important;
  border-top: 5px solid #3c2a1a !important;
  box-shadow: inset 0 0 100px rgba(255, 140, 0, 0.05) !important;
}

/* Hologram Emitter Amber styling */
.hardware-emitter .hardware-ring {
  border-color: rgba(255, 140, 0, 0.5) !important;
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.3) !important;
}

.hardware-ray {
  background: linear-gradient(to top, rgba(255, 140, 0, 0.25) 0%, rgba(255, 100, 0, 0.03) 70%, transparent 100%) !important;
}

/* Holographic Microprocessor Chip */
.holo-chip {
  width: 70px;
  height: 70px;
  position: absolute;
  top: -35px;
  left: -35px;
  transform-style: preserve-3d;
  animation: rotateHoloChip 15s infinite linear;
}

.holo-chip-body {
  width: 70px;
  height: 70px;
  background: rgba(255, 140, 0, 0.12);
  border: 1.5px solid rgba(255, 140, 0, 0.75);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono), monospace;
  font-weight: bold;
  font-size: 0.8rem;
  color: #fff;
  text-shadow: 0 0 8px #ff8c00;
  border-radius: 4px;
}

.holo-chip-pin {
  position: absolute;
  width: 10px;
  height: 3px;
  background: rgba(255, 140, 0, 0.85);
  box-shadow: 0 0 5px #ff8c00;
}

/* Pin placements */
.pin-left-1 {
  left: -10px;
  top: 20px;
}

.pin-left-2 {
  left: -10px;
  top: 45px;
}

.pin-right-1 {
  right: -10px;
  top: 20px;
}

.pin-right-2 {
  right: -10px;
  top: 45px;
}

@keyframes rotateHoloChip {
  0% {
    transform: rotateY(0deg) rotateX(25deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(25deg);
  }
}

/* Override hero card text color gradients on hardware page to fit the amber theme */
.hardware-room-hero .hero-glass-card h1 {
  background: linear-gradient(135deg, #ffc04d 0%, #ff6600 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

@media screen and (max-width: 768px) {
  .hardware-room-hero .hero-glass-card {
    padding: 1.75rem 1.5rem !important;
    max-width: 90% !important;
    transform: translate3d(0, 0, 80px) scale(0.86) !important;
  }
}

/* ==========================================
   WebGL / Graphic Acceleration Fallbacks
   ========================================== */

/* Net-based heroes default background images */
.unity-hero,
.cpp-hero,
.timeline-hero,
.react-hero,
.python-hero,
.projects-hero,
.hardware-hero {
  background: radial-gradient(circle at center, rgba(13, 13, 13, 0.4) 0%, #0a0a0a 100%), url('/static/portfolio/img/tech_net_fallback.png') no-repeat center center;
  background-size: cover;
}

/* Wave-based heroes default background images */
.hero-section,
.django-hero,
.rust-hero,
.java-hero {
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.4) 0%, #050505 100%), url('/static/portfolio/img/tech_wave_fallback.png') no-repeat center center;
  background-size: cover;
}

/* Fallback overrides when WebGL / Graphic Acceleration is unavailable */
.no-webgl .wall,
.no-webgl .workbench,
.no-webgl .workbench-floor,
.no-webgl .corner-workbench-left,
.no-webgl .corner-workbench-right,
.no-webgl .front-workbench-left,
.no-webgl .front-workbench-right,
.no-webgl canvas {
  display: none !important;
}

.no-webgl .room-wrapper {
  perspective: none !important;
}

.no-webgl .room {
  transform: none !important;
  transform-style: flat !important;
}

.no-webgl .room-content {
  transform: none !important;
  position: relative !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.no-webgl .room-hero {
  background: radial-gradient(circle at center, rgba(5, 14, 20, 0.45) 0%, #020a0e 100%), url('/static/portfolio/img/tech_wave_fallback.png') no-repeat center center !important;
  background-size: cover !important;
}

.no-webgl .hardware-room-hero {
  background: radial-gradient(circle at center, rgba(20, 10, 0, 0.45) 0%, #0f0a05 100%), url('/static/portfolio/img/tech_net_fallback.png') no-repeat center center !important;
  background-size: cover !important;
}.no-webgl .timeline-hero {
  background: radial-gradient(circle at center, rgba(13, 13, 13, 0.4) 0%, #0a0a0a 100%), url('/static/portfolio/img/tech_net_fallback.png') no-repeat center center !important;
  background-size: cover !important;
}

/* ==========================================
   macOS Folder UI Icons
   ========================================== */

/* The link container */
.mac-folder-link {
  transition: transform 0.2s ease;
  display: block;
  text-align: center;
  text-decoration: none;
}

/* Wrapper to maintain consistent size & spacing */
.mac-folder-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background-color: transparent;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  height: 100%;
}

.mac-folder-wrapper:hover {
  transform: translateY(-8px) scale(1.05);
  background-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Folder structure */
.mac-folder {
  position: relative;
  width: 130px;
  height: 95px;
  margin: 0 auto;
}

/* Folder Back Flap */
.folder-back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Folder Tab on Back Flap */
.folder-tab {
  position: absolute;
  top: -8px;
  left: 8px;
  width: 42px;
  height: 14px;
  background: #2563eb;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  transform: skewX(-12deg);
}

/* Folder Front Flap (Centered stamp container) */
.folder-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 8px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Embossed Stamp/Icon on Front Flap */
.folder-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 1.5px 2px rgba(0, 0, 0, 0.22));
  transition: transform 0.2s, color 0.2s;
}

/* Folder Title/Label underneath */
.mac-folder-label {
  text-align: center;
  pointer-events: none;
}

.folder-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
  transition: color 0.2s ease;
}

.folder-subtitle {
  font-size: 0.75rem;
  color: #7f8c8d;
  display: block;
  margin-top: 2px;
}

.mac-folder-wrapper:hover .folder-title {
  color: #2563eb;
}


/* ==========================================
   14. Coffee Chats Component Styling
   ========================================== */

#coffee-chats-grid {
  margin-top: 2.5rem;
}

.coffee-chat-intro {
  color: #475569 !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.chat-card {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  height: 100%;
}

.chat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08), 0 0 15px rgba(26, 115, 232, 0.03) !important;
  border-color: rgba(26, 115, 232, 0.2) !important;
}

.chat-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(26, 115, 232, 0.1);
  background-color: #f8fafc;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.chat-card:hover .chat-card-avatar {
  border-color: rgba(26, 115, 232, 0.4);
}

.chat-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.chat-card-role {
  font-size: 0.85rem;
  color: #5f6368;
  font-weight: 500;
  line-height: 1.4;
}

.chat-card-teaser {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.chat-card-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a73e8;
  background: none;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.chat-card-btn:hover {
  color: #1557b0;
}

.chat-card-btn i {
  transition: transform 0.2s ease;
  font-size: 0.85rem;
}

.chat-card:hover .chat-card-btn i {
  transform: translateX(4px);
}

/* Modal styling overrides */
.chat-modal-content {
  border-radius: 20px !important;
  border: none !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  overflow: hidden;
  background: #ffffff;
}

.chat-modal-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
  padding: 2.25rem 2.25rem 1.5rem 2.25rem !important;
  background: #ffffff;
}

.chat-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(26, 115, 232, 0.15);
  background-color: #f8fafc;
  flex-shrink: 0;
}

.chat-modal-body {
  padding: 2.25rem !important;
  color: #334155;
}

.chat-modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a73e8;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.chat-modal-paragraph {
  font-size: 0.975rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 1.75rem;
}

.chat-modal-takeaways-list {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.chat-modal-takeaways-list li {
  font-size: 0.975rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 0.75rem;
}

.chat-modal-takeaways-list li::marker {
  color: #1a73e8;
}

@media (max-width: 576px) {
  .chat-card {
    padding: 1.5rem !important;
  }
  .chat-modal-header,
  .chat-modal-body {
    padding: 1.5rem !important;
  }
  .chat-modal-avatar {
    width: 60px;
    height: 60px;
  }
}

/* ==========================================
   15. 3D Animated Contact Form Card
   ========================================== */

/* Main 3D form card */
.mac-3d-form-card {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 2rem auto 0 auto;
  background: #ffffff;
  border: 6px solid #2563eb;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 0px #1d4ed8, 0 15px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  display: block;
}

/* Hover and focus animation matching the folder icons' lift effect */
.mac-3d-form-card:hover,
.mac-3d-form-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 18px 0px #1e3a8a, 0 25px 45px rgba(37, 99, 235, 0.18);
  border-color: #1d4ed8;
}

/* Input fields style */
.mac-3d-form-card .form-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.mac-3d-form-card .form-control {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  color: #1e293b;
}

.mac-3d-form-card .form-control:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* Custom styled submit button */
.mac-3d-form-card .btn-folder-submit {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: none !important;
  padding: 0.8rem 2.5rem !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
  font-size: 0.95rem !important;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.mac-3d-form-card .btn-folder-submit:hover {
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35) !important;
  background-color: #1d4ed8 !important;
}

.mac-3d-form-card .btn-folder-submit:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Responsiveness tweak */
@media (max-width: 576px) {
  .mac-3d-form-card {
    padding: 2rem 1.5rem;
    border-width: 4px;
    box-shadow: 0 5px 0px #1d4ed8, 0 10px 20px rgba(0, 0, 0, 0.08);
  }
  .mac-3d-form-card:hover,
  .mac-3d-form-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 11px 0px #1e3a8a, 0 15px 30px rgba(37, 99, 235, 0.18);
  }
}

/* ==========================================
   16. Clean 3D Animated Project & Writing Cards
   ========================================== */

/* Main 3D Card */
.mac-3d-card {
  position: relative;
  border: 3px solid rgba(10, 25, 47, 0.3) !important; /* Semi-translucent dark navy shadow-border */
  border-radius: 16px !important;
  box-shadow: 0 12px 36px rgba(10, 25, 47, 0.45) !important; /* Very prominent soft navy shadow */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease !important;
  background: #ffffff !important;
  overflow: hidden; /* Critical for the shine animation */
}

/* Shiny Sweep Effect */
.mac-3d-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.6s ease;
  z-index: 5;
  pointer-events: none;
}

/* Hover State for 3D Cards */
.mac-3d-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 50px rgba(10, 25, 47, 0.65) !important; /* Highly prominent navy shadow on hover */
  border-color: rgba(10, 25, 47, 0.55) !important; /* Slightly darker navy shadow-border on hover */
}

/* Trigger Shiny Sweep on Hover */
.mac-3d-card:hover::before {
  left: 100%;
}

/* Responsiveness for 3D Cards */
@media (max-width: 576px) {
  .mac-3d-card {
    border-width: 2.5px !important;
    box-shadow: 0 8px 24px rgba(10, 25, 47, 0.35) !important;
  }
  .mac-3d-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 36px rgba(10, 25, 47, 0.55) !important;
  }
}