/* Modern Homepage Stylesheet - Light Mode */

:root {
  --primary-blue: #4A90E2;
  --light-blue: #E8F4FF;
  --accent-blue: #87CEEB;
  --dark-text: #1A1A1A;
  --light-gray: #F5F5F5;
  --white: #FFFFFF;
  --border-gray: #E0E0E0;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--white);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gray);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-text);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo-accent {
  color: var(--primary-blue);
}

.nav-logo:hover {
  transform: translateY(-2px);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  transition: var(--transition);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Hero Section */
.hero {
  padding: 120px 2rem 80px;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  color: var(--dark-text);
}

.hero-title {
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin: 0 0 2rem 0;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--dark-text);
  border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--light-blue);
  transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 400px;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: rgba(74, 144, 226, 0.15);
  top: 20px;
  right: 50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: rgba(135, 206, 235, 0.2);
  bottom: 100px;
  right: 200px;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: rgba(74, 144, 226, 0.1);
  bottom: 50px;
  right: 20px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

/* Stats Section */
.stats {
  background: var(--light-gray);
  padding: 4rem 2rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border-top: 3px solid var(--primary-blue);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 5rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 0 1rem 0;
  color: var(--dark-text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Robotics Section */
.robotics-section {
  background: var(--light-gray);
}

.robotics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.robotics-card,
.tech-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  border: 2px solid var(--border-gray);
  transition: var(--transition);
  cursor: default;
}

.robotics-card:hover,
.tech-card:not(.featured-tech):not(.stagereader-card):hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.15);
  transform: translateY(-5px);
}

.robotics-card.featured {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.5) 0%, rgba(255, 255, 255, 1) 100%);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.robotics-card h3,
.tech-card h3 {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: var(--dark-text);
}

.robotics-card p,
.tech-card p {
  color: #666;
  margin: 0 0 1rem 0;
  line-height: 1.7;
}

.tech-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.tech-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #666;
}

.tech-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-blue);
  font-weight: bold;
}

/* Tech Section */
.tech-section {
  background: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.featured-tech {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
}

.stagereader-card {
  border-color: #ff007f;
  background: linear-gradient(135deg, #ffe8f5 0%, var(--white) 100%);
  grid-column: 1 / -1;
}

.stagereader-card:hover {
  border-color: #ff007f;
}

.tech-link {
  display: inline-block;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.tech-link:hover {
  border-bottom-color: var(--primary-blue);
  transform: translateX(5px);
}

.crl-link {
  display: inline-block;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.crl-link:hover {
  border-bottom-color: var(--primary-blue);
  transform: translateX(5px);
}

.stagereader-link {
  display: inline-block;
  color: #ff007f;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.stagereader-link:hover {
  border-bottom-color: #ff007f;
  transform: translateX(5px);
}

/* Coding Section */
.coding-section {
  background: var(--light-gray);
}

.coding-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.coding-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.stack-item {
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--primary-blue);
  transition: var(--transition);
}

.stack-item:hover {
  background: var(--primary-blue);
  color: white;
}

.projects-cta {
  text-align: center;
  margin-top: 2rem;
}

/* About Section */
.about-section {
  background: var(--white);
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2.5rem;
  margin: 0 0 1.5rem 0;
  text-align: center;
  color: var(--dark-text);
}

.about-content p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: center;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.highlight-item {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--border-gray);
  transition: var(--transition);
}

.highlight-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
}

.highlight-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.highlight-text {
  display: block;
  color: var(--dark-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.about-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Contact Section */
.contact-section {
  background: var(--white);
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin: 0 0 1rem 0;
  color: var(--dark-text);
}

.contact-section > p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark-text);
  border: 2px solid var(--border-gray);
  transition: var(--transition);
  gap: 1.5rem;
  text-align: left;
}

.contact-card:hover {
  border-color: var(--primary-blue);
  background: var(--light-blue);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.15);
}

.contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  color: var(--dark-text);
}

.contact-text p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: var(--dark-text);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-container p {
  margin: 0 0 1.5rem 0;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-blue);
}

/* Easter Egg - Robot Mode */
body.robot-mode {
  --primary-blue: #FF6B6B;
  --accent-blue: #FF8E8E;
  --light-blue: #FFE8E8;
}

.confetti {
  position: fixed;
  pointer-events: none;
  top: -10px;
  width: 10px;
  height: 10px;
  background: var(--primary-blue);
  animation: fall 3s linear forwards;
  border-radius: 50%;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 80px 0 40px 0;
  }

  .hero-visual {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

  .robotics-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .nav-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }

  .nav-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 60px 1rem 40px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ===========================
   Red Theme Mode (Easter Egg)
   =========================== */
body.red-theme-mode {
  background-color: #fafafa !important;
  color: #2c3e50 !important;
}

body.red-theme-mode .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: #e8e8e8 !important;
}

body.red-theme-mode .nav-logo {
  color: #2c3e50 !important;
}

body.red-theme-mode .logo-accent {
  color: #ff6b6b !important;
}

body.red-theme-mode .nav-link::after {
  background: #ff6b6b !important;
}

body.red-theme-mode .nav-link:hover::after,
body.red-theme-mode .nav-link.active::after {
  width: 100%;
}

body.red-theme-mode .nav-cta {
  background: #ff6b6b !important;
}

body.red-theme-mode .nav-cta:hover {
  background: #ff5555 !important;
}

body.red-theme-mode h1,
body.red-theme-mode h2,
body.red-theme-mode h3 {
  color: #2c3e50 !important;
}

body.red-theme-mode .hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffe8e8 100%) !important;
}

body.red-theme-mode .hero-accent {
  color: #ff6b6b !important;
  background: linear-gradient(135deg, #ff6b6b, #ff6b6b) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.red-theme-mode .hero .highlight {
  background: linear-gradient(135deg, #ff6b6b, #ff6b6b) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.red-theme-mode .floating-circle {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.15) 0%, transparent 70%) !important;
}

body.red-theme-mode .hero::before,
body.red-theme-mode .hero::after {
  background: radial-gradient(circle, rgba(255, 107, 107, 0.15) 0%, transparent 70%) !important;
}

body.red-theme-mode .btn {
  background: linear-gradient(135deg, #ff6b6b, #ff9999) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
}

body.red-theme-mode .btn:hover {
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5) !important;
  background: linear-gradient(135deg, #ff5555, #ff8888) !important;
}

/* Do not force all sections to white in red mode — sections are styled individually when crossed */

body.red-theme-mode .section-header h2::after {
  background: linear-gradient(90deg, #ff6b6b, transparent) !important;
}

body.red-theme-mode .featured-card {
  background: linear-gradient(135deg, #ffe8e8 0%, #fff5f5 100%) !important;
  border-color: #ff6b6b !important;
}

body.red-theme-mode .featured-card h3,
body.red-theme-mode .featured-card .stat-label {
  color: #ff6b6b !important;
}

body.red-theme-mode .featured-card .stat-number,
body.red-theme-mode .featured-card .highlight-number {
  color: #ff6b6b !important;
}

body.red-theme-mode .stat-number,
body.red-theme-mode .highlight-number {
  color: #ff6b6b !important;
}

body.red-theme-mode .skill-tag {
  background: #ffe8e8 !important;
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

body.red-theme-mode .tech-card {
  background: white !important;
  border-color: #f0f0f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.red-theme-mode .tech-card:hover {
  background: #fff5f5 !important;
  border-color: #ff6b6b !important;
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.15) !important;
}

body.red-theme-mode .tech-card h3 {
  color: #ff6b6b !important;
}

body.red-theme-mode .stack-item {
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
  background: transparent !important;
}

body.red-theme-mode .stack-item:hover {
  background: #ffe8e8 !important;
  color: #ff5555 !important;
  border-color: #ff5555 !important;
}

body.red-theme-mode .contact-card {
  background: white !important;
  border-color: #f0f0f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.red-theme-mode .contact-card:hover {
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.15) !important;
  border-color: #ff6b6b !important;
  background: #fff5f5 !important;
}

body.red-theme-mode .contact-card h3 {
  color: #ff6b6b !important;
}

body.red-theme-mode .contact-link {
  color: #ff6b6b !important;
}

body.red-theme-mode .contact-link:hover {
  color: #ff5555 !important;
}

body.red-theme-mode .project {
  background: white !important;
  border-color: #f0f0f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

body.red-theme-mode .project::before {
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent) !important;
}

body.red-theme-mode .project:hover {
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.15) !important;
  border-color: #ff6b6b !important;
}

body.red-theme-mode p {
  color: #555 !important;
}

body.red-theme-mode .project-highlight {
  color: #ff6b6b !important;
}

body.red-theme-mode footer {
  background: #2b0a0a !important; /* preserve darker footer, but red-toned */
  border-top-color: #4a0a0a !important;
  color: #ffdede !important;
}

body.red-theme-mode footer p {
  color: #ffdede !important;
}

body.red-theme-mode footer a {
  color: #ffdede !important;
}

body.red-theme-mode footer a:hover {
  color: #ffb4b4 !important;
}

body.red-theme-mode .footer-section h3 {
  color: #ff6b6b !important;
}

body.red-theme-mode .projects-link {
  color: #ff6b6b !important;
}

body.red-theme-mode .projects-link::after {
  background: #ff6b6b !important;
}

body.red-theme-mode .cta-btn {
  background: white !important;
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

body.red-theme-mode .cta-btn::before {
  background: linear-gradient(135deg, #ff6b6b, #ff9999) !important;
}

body.red-theme-mode .cta-btn:hover {
  color: white !important;
}

body.red-theme-mode .easter-egg {
  background: linear-gradient(135deg, #ff6b6b, #ff9999) !important;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
}

/* StageReader button styling in red theme */
body.red-theme-mode .stagereader-btn {
  background: #ffeb3b !important;
  color: #000 !important;
  box-shadow: 0 4px 15px rgba(255, 235, 59, 0.3) !important;
}

body.red-theme-mode .stagereader-btn:hover {
  transform: translateY(-3px) !important;
  background: linear-gradient(135deg, #ff007f, #ff00ff, #ff007f) !important;
  background-size: 300% 300% !important;
  animation: stagereaderGradientMove 2s infinite !important;
  box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5), 0 0 15px rgba(255, 0, 255, 0.4) !important;
  color: #fff !important;
}

@keyframes redLineFall {
  from {
    top: 0;
    opacity: 1;
  }
  to {
    top: 100vh;
    opacity: 0;
  }
}

/* Red touched effect - applies smooth transition when line passes through */
.red-touched {
  transition: all 0.4s ease !important;
}

/* Targeted visual changes for elements when the red line crosses them */
.hero.red-touched {
  background: linear-gradient(135deg, #ffffff 0%, #ffe8e8 100%) !important;
}
.logo-accent.red-touched {
  color: #ff6b6b !important;
}
.nav-link.red-touched {
  color: #ff6b6b !important;
}
.nav-link.red-touched::after {
  background: #ff6b6b !important;
}
.section-header.red-touched h2,
.section-header.red-touched {
  color: #2c3e50 !important;
}
.featured-card.red-touched,
.project.red-touched,
.tech-card.red-touched,
.contact-card.red-touched {
  background: #fff5f5 !important;
  border-color: #ff6b6b !important;
  box-shadow: 0 12px 30px rgba(255, 107, 107, 0.12) !important;
}
.featured-card.red-touched h3,
.project.red-touched h3,
.tech-card.red-touched h3,
.contact-card.red-touched h3 {
  color: #ff6b6b !important;
}
.stat-number.red-touched,
.highlight-number.red-touched {
  color: #ff6b6b !important;
}
.stack-item.red-touched {
  color: #ff6b6b !important;
  border-color: #ff6b6b !important;
  background: #fff5f5 !important;
}
.projects-link.red-touched {
  color: #ff6b6b !important;
}
.projects-link.red-touched {
  color: #ff6b6b !important;
}

/* Keep coding section and footer visible in red mode (light red backgrounds)
   and ensure floating shapes also get tinted only when crossed. */
.coding-section.red-touched {
  background: #fff5f5 !important;
}

.footer.red-touched,
.footer.red-touched p {
  background: #fff5f5 !important;
  color: #6b2b2b !important;
}

/* line indicator styling */
#red-line {
  transition: top 0.05s linear;
}
