/* ===== NAVIGATION LINKS ===== */
.nav a {
  color: #1F2937;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav a:hover { 
  opacity: 0.6; 
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #64748B;
  transition: width 0.3s ease;
}

.nav a:hover::after { 
  width: 100%; 
}

/* ===== DYNAMIC CONTENT SYSTEM ===== */

/* Content Stage - Main Container */
.content-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Content Cards - Each Section */
.content-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0) scale(1);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.content-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 20;
}

.content-card.fading-out {
  opacity: 0;
  transform: translateX(0) scale(0.98);
}

.content-card.fading-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Content Card Headers */
.content-header {
  position: fixed;
  top: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  pointer-events: none;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  padding: 0.8rem 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.back-btn:hover {
  background: rgba(100, 116, 139, 0.1);
  border-color: rgba(100, 116, 139, 0.3);
  transform: translateX(-3px);
  color: #1F2937;
}

.back-arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.back-btn:hover .back-arrow {
  transform: translateX(-2px);
  color: #64748B;
}

.content-title {
  background: rgba(249, 250, 251, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 12px;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== HERO PAGE LAYOUT ===== */
.hero-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-intro {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0.7;
  letter-spacing: 0.02em;
  color: #6B7280;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 0.9;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #1F2937;
}

.hero-title .highlight {
  font-weight: 600;
  position: relative;
  color: #1a1a1a;
}

.hero-description {
  max-width: 600px;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 4rem;
  opacity: 0.8;
  color: #4B5563;
}

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

.hero-link {
  color: #374151;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.hero-link:hover { 
  color: #64748B;
}

.hero-link::before {
  content: '→';
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  color: #9CA3AF;
}

.hero-link:hover::before {
  transform: translateX(3px);
  color: #64748B;
}

/* ===== NEURAL BORDER CARD ===== */
.neural-border-card {
  background: transparent;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.neural-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: 24px;
}

.falling-node {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(100, 116, 139, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.6);
  opacity: 0;
}

.falling-node:nth-child(1) {
  animation: fall-to-corner-tl 3s ease-in-out infinite;
  animation-delay: 0s;
}

.falling-node:nth-child(2) {
  animation: fall-to-corner-tr 3s ease-in-out infinite;
  animation-delay: 0.5s;
}

.falling-node:nth-child(3) {
  animation: fall-to-corner-br 3s ease-in-out infinite;
  animation-delay: 1s;
}

.falling-node:nth-child(4) {
  animation: fall-to-corner-bl 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

.falling-node:nth-child(5) {
  animation: fall-to-top-edge 3s ease-in-out infinite;
  animation-delay: 2s;
}

.falling-node:nth-child(6) {
  animation: fall-to-right-edge 3s ease-in-out infinite;
  animation-delay: 2.5s;
}

.falling-node:nth-child(7) {
  animation: fall-to-bottom-edge 3s ease-in-out infinite;
  animation-delay: 3s;
}

.falling-node:nth-child(8) {
  animation: fall-to-left-edge 3s ease-in-out infinite;
  animation-delay: 3.5s;
}

.border-segment {
  position: absolute;
  background: rgba(100, 116, 139, 0.8);
  box-shadow: 0 0 4px rgba(100, 116, 139, 0.4);
  opacity: 0;
}

.border-segment.top-1 {
  top: 20px;
  left: 20px;
  width: 0;
  height: 2px;
  animation: draw-top-1 3s ease-in-out infinite;
  animation-delay: 0.8s;
}

.border-segment.top-2 {
  top: 20px;
  left: 50%;
  width: 0;
  height: 2px;
  animation: draw-top-2 3s ease-in-out infinite;
  animation-delay: 2.3s;
}

.border-segment.right-1 {
  top: 20px;
  right: 20px;
  width: 2px;
  height: 0;
  animation: draw-right-1 3s ease-in-out infinite;
  animation-delay: 1.3s;
}

.border-segment.right-2 {
  top: 50%;
  right: 20px;
  width: 2px;
  height: 0;
  animation: draw-right-2 3s ease-in-out infinite;
  animation-delay: 2.8s;
}

.border-segment.bottom-1 {
  bottom: 20px;
  right: 20px;
  width: 0;
  height: 2px;
  animation: draw-bottom-1 3s ease-in-out infinite;
  animation-delay: 1.8s;
}

.border-segment.bottom-2 {
  bottom: 20px;
  left: 60%;
  width: 0;
  height: 2px;
  animation: draw-bottom-2 3s ease-in-out infinite;
  animation-delay: 3.3s;
}

.border-segment.left-1 {
  bottom: 20px;
  left: 20px;
  width: 2px;
  height: 0;
  animation: draw-left-1 3s ease-in-out infinite;
  animation-delay: 2.3s;
}

.border-segment.left-2 {
  top: 60%;
  left: 20px;
  width: 2px;
  height: 0;
  animation: draw-left-2 3s ease-in-out infinite;
  animation-delay: 3.8s;
}

.connection-pulse {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(100, 116, 139, 1);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(100, 116, 139, 0.6);
  opacity: 0;
}

.connection-pulse:nth-child(9) {
  animation: pulse-travel-1 4s ease-in-out infinite;
  animation-delay: 1s;
}

.connection-pulse:nth-child(10) {
  animation: pulse-travel-2 4s ease-in-out infinite;
  animation-delay: 2s;
}

.connection-pulse:nth-child(11) {
  animation: pulse-travel-3 4s ease-in-out infinite;
  animation-delay: 3s;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.neural-indicator-card {
  display: flex;
  gap: 4px;
}

.neural-indicator-card .neural-dot {
  width: 5px;
  height: 5px;
  background: rgba(100, 116, 139, 0.8);
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

.neural-indicator-card .neural-dot:nth-child(1) { animation-delay: 0s; }
.neural-indicator-card .neural-dot:nth-child(2) { animation-delay: 0.3s; }
.neural-indicator-card .neural-dot:nth-child(3) { animation-delay: 0.6s; }
.neural-indicator-card .neural-dot:nth-child(4) { animation-delay: 0.9s; }

.card-title {
  color: #6B7280;
  font-size: 0.85rem;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.neural-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.neural-nav a {
  color: #374151;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 300;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  background: transparent;
  border: 1px solid rgba(229, 231, 235, 0.6);
  position: relative;
  overflow: hidden;
}

.neural-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, 
    rgba(100, 116, 139, 0.8), 
    rgba(0, 153, 204, 0.8));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.neural-nav a::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: rgba(100, 116, 139, 0.6);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
}

.neural-nav a:hover {
  background: rgba(100, 116, 139, 0.05);
  border-color: rgba(100, 116, 139, 0.4);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(100, 116, 139, 0.15);
  color: #1F2937;
}

.neural-nav a:hover::before {
  transform: scaleY(1);
}

.neural-nav a:hover::after {
  opacity: 1;
  animation: pulse-dot 2s infinite;
}

.neural-nav a.active {
  background: rgba(100, 116, 139, 0.08);
  border-color: rgba(100, 116, 139, 0.5);
  color: #1F2937;
}

.neural-nav a.active::before {
  transform: scaleY(1);
}

.neural-nav a.active::after {
  opacity: 1;
  background: rgba(100, 116, 139, 1);
}

/* ===== ABOUT SECTION ===== */

.about-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 4rem;
}

.about-header {
  margin-bottom: 6rem;
  text-align: center;
}

.about-intro {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.7;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: #6B7280;
}

/* Subtle glow for about intro paragraph in dark theme */
[data-theme="dark"] .about-intro {
  color: #E5E5E5 !important;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2) !important;
}

.about-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: #1F2937;
}

.about-title .highlight {
  font-weight: 600;
  color: #64748B;
}

.about-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  color: #4B5563;
}

/* Subtle glow for about subtitle in dark theme */
[data-theme="dark"] .about-subtitle {
  color: #E5E5E5 !important;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2) !important;
}

.about-stats {
  margin: 6rem 0;
  padding: 3rem 2rem;
  background: rgba(229, 231, 235, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(229, 231, 235, 0.6);
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  background: rgba(100, 116, 139, 0.03);
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
  line-height: 1.4;
  color: #6B7280;
}

.about-contact {
  margin-top: 6rem;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.about-contact h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #1F2937;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 12px;
  text-decoration: none;
  color: #374151;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: rgba(100, 116, 139, 0.05);
  border-color: rgba(100, 116, 139, 0.3);
  transform: translateY(-1px);
}

.link-label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #374151;
}

.link-value {
  font-size: 0.85rem;
  opacity: 0.7;
  color: #6B7280;
}

/* ===== PROJECTS SECTION ===== */

.projects-content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.projects-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.projects-intro h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #1F2937;
}

/* Dark theme glow for projects heading */
[data-theme="dark"] .projects-intro h2 {
  color: #FFFFFF !important;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 255, 255, 0.2) !important;
  animation: company-glow-pulse 2s ease-in-out infinite alternate !important;
}

.projects-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
  color: #4B5563;
}

/* Subtle glow for projects intro paragraph in dark theme */
[data-theme="dark"] .projects-intro p {
  color: #E5E5E5 !important;
  text-shadow: 
    0 0 10px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.2) !important;
}

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

.project-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  align-items: center;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.project-item:hover { 
  opacity: 0.6; 
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1F2937;
}

.project-description {
  font-size: 0.9rem;
  opacity: 0.6;
  line-height: 1.5;
  color: #6B7280;
}

.project-status {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(229, 231, 235, 0.6);
  border-radius: 12px;
  white-space: nowrap;
  color: #374151;
}

.project-year {
  font-size: 0.9rem;
  opacity: 0.6;
  font-weight: 300;
  color: #6B7280;
}

/* ===== TOOLS SECTION ===== */

.tools-content-wrapper {
  max-width: 100%;
  padding: 8rem 0 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: #1F2937;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.tools-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  perspective: 1000px;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}

.tools-carousel::-webkit-scrollbar {
  height: 8px;
}

.tools-carousel::-webkit-scrollbar-track {
  background: rgba(229, 231, 235, 0.6);
  border-radius: 10px;
}

.tools-carousel::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.6);
  border-radius: 10px;
}

.tools-carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

.tool-card {
  min-width: 380px;
  height: 380px;
  position: relative;
  cursor: pointer;
  scroll-snap-align: center;
  flex-shrink: 0;
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.320, 1);
  transform-style: preserve-3d;
}

.tool-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(249, 250, 251, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.05), rgba(229, 231, 235, 0.1));
  border: 1px solid rgba(100, 116, 139, 0.2);
  padding: 2rem 1.5rem;
}

.card-front .card-header,
.card-back .card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: rgba(229, 231, 235, 0.3);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.icon-resume {
  position: relative;
}

.icon-resume::before,
.icon-resume::after {
  content: '';
  position: absolute;
  border: 2px solid rgba(100, 116, 139, 0.7);
  border-radius: 4px;
}

.icon-resume::before {
  width: 20px;
  height: 26px;
  top: 12px;
  left: 15px;
  background: linear-gradient(135deg, transparent 40%, rgba(100, 116, 139, 0.2) 40%, rgba(100, 116, 139, 0.2) 60%, transparent 60%);
}

.icon-resume::after {
  width: 18px;
  height: 24px;
  top: 14px;
  left: 21px;
  border-color: rgba(100, 116, 139, 0.5);
  background: linear-gradient(45deg, transparent 30%, rgba(100, 116, 139, 0.15) 30%, rgba(100, 116, 139, 0.15) 70%, transparent 70%);
}

.icon-alpha {
  position: relative;
}

.icon-alpha::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  top: 18px;
  left: 18px;
  background: 
    linear-gradient(30deg, transparent 40%, rgba(100, 116, 139, 0.6) 40%, rgba(100, 116, 139, 0.6) 60%, transparent 60%),
    linear-gradient(90deg, transparent 40%, rgba(100, 116, 139, 0.4) 40%, rgba(100, 116, 139, 0.4) 60%, transparent 60%),
    linear-gradient(150deg, transparent 40%, rgba(100, 116, 139, 0.6) 40%, rgba(100, 116, 139, 0.6) 60%, transparent 60%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: pulse-circuit 2s infinite ease-in-out;
}

.icon-beta {
  position: relative;
  font-family: 'Courier New', monospace;
  font-size: 20px;
  color: rgba(100, 116, 139, 0.8);
  font-weight: bold;
}

.icon-beta::before {
  content: '{ }';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: code-pulse 1.5s infinite ease-in-out;
}

.icon-beta::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 20px;
  background: rgba(100, 116, 139, 0.6);
  top: 20px;
  left: 29px;
  animation: cursor-blink 1s infinite;
}

.icon-gamma {
  position: relative;
}

.icon-gamma::before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(100, 116, 139, 0.8);
  border-radius: 50%;
  top: 15px;
  left: 15px;
  box-shadow: 
    18px 0 0 rgba(100, 116, 139, 0.6),
    30px 0 0 rgba(100, 116, 139, 0.8),
    9px 15px 0 rgba(100, 116, 139, 0.7),
    21px 15px 0 rgba(100, 116, 139, 0.5),
    15px 30px 0 rgba(100, 116, 139, 0.8);
  animation: neural-pulse 2s infinite ease-in-out;
}

.icon-gamma::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 21px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(100, 116, 139, 0.4), transparent);
  box-shadow: 
    -3px 15px 0 0 rgba(100, 116, 139, 0.3),
    9px 15px 0 0 rgba(100, 116, 139, 0.3),
    -9px 30px 0 0 rgba(100, 116, 139, 0.4);
  animation: connection-flow 3s infinite ease-in-out;
}

.tool-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1F2937;
}

.tool-preview {
  font-size: 0.9rem;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 0;
}

.tool-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 1rem;
}

.tool-features {
  list-style: none;
  margin-bottom: 1rem;
}

.tool-features li {
  font-size: 0.9rem;
  color: #6B7280;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1rem;
}

.tool-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #64748B;
}

.tool-status {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tool-status.beta {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
}

.tool-status.coming-soon {
  background: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
}

.tool-cta {
  background: transparent;
  border: 1px solid rgba(229, 231, 235, 0.8);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
  white-space: nowrap;
}

.tool-cta:hover {
  background: #64748B;
  color: #FFFFFF;
  border-color: #64748B;
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

.tool-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tool-cta:disabled:hover {
  background: transparent;
  color: #374151;
  border-color: rgba(229, 231, 235, 0.8);
  box-shadow: none;
}

.construction-icon {
  position: relative;
  overflow: hidden;
}

.construction-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(100, 116, 139, 0.4), 
    transparent);
  animation: construction-sweep 2s infinite;
}

.building-blocks {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
  justify-content: center;
}

.block {
  width: 12px;
  height: 12px;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 2px;
  animation: building-animation 1.5s infinite ease-in-out;
}

.block:nth-child(1) { animation-delay: 0s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.4s; }
.block:nth-child(4) { animation-delay: 0.6s; }

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(229, 231, 235, 0.6);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #64748B, #0099CC);
  border-radius: 2px;
  animation: progress-fill 3s infinite ease-in-out;
}

.neural-accent {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  background: rgba(100, 116, 139, 0.3);
  border-radius: 50%;
  animation: pulse-glow-accent 2s infinite ease-in-out;
  z-index: 10;
}

/* ===== CONTACT SECTION ===== */

.contact-content-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.contact-content-wrapper h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: #1F2937;
}

.contact-content-wrapper .contact-links {
  list-style: none;
  margin: 0 0 4rem 0;
  padding: 0;
}

.contact-content-wrapper .contact-links li {
  margin-bottom: 1rem;
}

.contact-content-wrapper .contact-links a {
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  display: block;
  padding: 0.5rem 0;
}

.contact-content-wrapper .contact-links a:hover { 
  color: #64748B;
}

.contact-form {
  margin-top: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  margin-bottom: 2rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.6;
  color: #6B7280;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #1F2937;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #64748B;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background: transparent;
  border: 1px solid rgba(229, 231, 235, 0.8);
  padding: 1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #374151;
  border-radius: 8px;
}

.submit-btn:hover {
  background: #64748B;
  color: #FFFFFF;
  border-color: #64748B;
  box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

/* ===== NEURAL NETWORK NAVIGATION ===== */

.neural-navigation {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4rem !important;
  margin: 4rem auto 6rem !important;
  max-width: 900px !important;
  position: relative !important;
  z-index: 5 !important;
}

.neural-node {
  display: flex !important;
  align-items: center !important;
  gap: 2rem !important;
  position: relative !important;
  z-index: 10 !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
  width: 100% !important;
  max-width: 500px !important;
}

.neural-node.left-offset {
  transform: translateX(-100px) !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
}

.neural-node.right-offset {
  transform: translateX(100px) !important;
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

.node-button {
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(100, 116, 139, 0.3) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

body.dark .node-button {
  background: rgba(20, 20, 20, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

.node-number {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: rgba(100, 116, 139, 0.8) !important;
}

body.dark .node-number {
  color: rgba(255, 255, 255, 0.8) !important;
}

.node-content {
  max-width: 350px !important;
  flex: 1 !important;
}

.node-title {
  font-size: 1.4rem !important;
  font-weight: 500 !important;
  color: #1F2937 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

body.dark .node-title {
  color: #F9FAFB !important;
}

.neural-node:hover .node-button {
  transform: scale(1.1) !important;
  border-color: rgba(100, 116, 139, 0.6) !important;
  box-shadow: 0 15px 40px rgba(100, 116, 139, 0.2) !important;
}

body.dark .neural-node:hover .node-button {
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2) !important;
}

.neural-node.left-offset:hover {
  transform: translateX(-100px) scale(1.02) !important;
}

.neural-node.right-offset:hover {
  transform: translateX(100px) scale(1.02) !important;
}

/* Neural Connections */
.neural-connection {
  position: absolute !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.connection-line {
  width: 2px !important;
  height: 60px !important;
  background: linear-gradient(45deg, 
    rgba(100, 116, 139, 0.3), 
    rgba(100, 116, 139, 0.6), 
    rgba(100, 116, 139, 0.3)) !important;
  position: relative !important;
  margin: 0 auto !important;
}

body.dark .connection-line {
  background: linear-gradient(45deg, 
    rgba(255, 255, 255, 0.3), 
    rgba(255, 255, 255, 0.6), 
    rgba(255, 255, 255, 0.3)) !important;
}

.connection-pulse {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 4px !important;
  height: 4px !important;
  background: rgba(100, 116, 139, 0.8) !important;
  border-radius: 50% !important;
  box-shadow: 0 0 10px rgba(100, 116, 139, 0.6) !important;
  animation: pulse-travel-down 3s ease-in-out infinite !important;
}

body.dark .connection-pulse {
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6) !important;
}

@keyframes pulse-travel-down {
  0% {
    top: -5px;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 65px;
    opacity: 0;
  }
}

/* ===== MODAL SYSTEM ===== */

.card-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  padding: 2rem;
}

.card-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 20px;
  padding: 3rem;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.dark .modal-content {
  background: rgba(15, 15, 15, 0.98);
  border-color: rgba(255, 255, 255, 0.2);
  color: #E5E5E5;
}

.card-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

body.dark .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.modal-number {
  width: 40px;
  height: 40px;
  background: var(--hover-bg, rgba(100, 116, 139, 0.1));
  border: 1px solid var(--border-accent, rgba(100, 116, 139, 0.3));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--neural-primary, rgba(100, 116, 139, 0.8));
  font-family: 'Inter', sans-serif; /* MATCH WEBSITE FONT */
}

body.dark .modal-number {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary, #1F2937);
  font-family: 'Inter', sans-serif; /* MATCH WEBSITE FONT */
  line-height: 1.3;
}

body.dark .modal-title {
  color: #F9FAFB;
}

.modal-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary, #4B5563);
  margin-bottom: 1.5rem;
  font-family: 'Inter', sans-serif; /* MATCH WEBSITE FONT */
  font-weight: 400;
}

body.dark .modal-text {
  color: #B3B3B3;
}

.close-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.8rem;
  opacity: 0.5;
  color: var(--text-tertiary, #6B7280);
  font-family: 'Inter', sans-serif; /* MATCH WEBSITE FONT */
}

body.dark .close-hint {
  color: #9CA3AF;
}

/* ===== MOBILE RESPONSIVE (CONSOLIDATED) ===== */

@media (max-width: 768px) {
  /* Content Header */
  .content-header {
    top: 1rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .back-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .content-title {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  /* Hero Page */
  .hero-page {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
    min-height: auto;
    align-items: flex-start;
  }
  
  .hero-left {
    order: 1;
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .neural-border-card {
    order: 2;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .hero-intro {
    font-size: 0.9rem;
    margin-bottom: 2rem;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 1.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .hero-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .neural-nav {
    gap: 0.8rem;
  }
  
  .neural-nav a {
    padding: 1rem 1.2rem;
    font-size: 1rem;
  }
  
  /* About Section */
  .about-content-wrapper {
    padding: 6rem 1rem 4rem;
  }
  
  .about-header {
    margin-bottom: 4rem;
  }
  
  .about-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .about-subtitle {
    font-size: 1rem;
  }
  
  .about-stats {
    margin: 4rem 0;
    padding: 2rem 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .about-contact {
    margin-top: 4rem;
    padding: 2rem 1rem;
  }
  
  /* Neural Navigation Mobile */
  .neural-navigation {
    gap: 2.5rem !important;
    margin: 2rem auto 4rem !important;
    padding: 0 1rem !important;
  }
  
  .neural-node.left-offset {
    transform: translateX(-40px) !important;
  }
  
  .neural-node.right-offset {
    transform: translateX(40px) !important;
  }
  
  .neural-node.left-offset:hover {
    transform: translateX(-40px) scale(1.02) !important;
  }
  
  .neural-node.right-offset:hover {
    transform: translateX(40px) scale(1.02) !important;
  }
  
  .node-button {
    width: 50px !important;
    height: 50px !important;
  }
  
  .node-content {
    max-width: 200px !important;
  }
  
  .node-title {
    font-size: 1.1rem !important;
  }
  
  .connection-line {
    height: 40px !important;
  }
  
  /* Projects Section */
  .projects-content-wrapper {
    padding: 6rem 1rem 4rem;
  }
  
  .projects-intro h2 {
    font-size: 2rem;
  }
  
  .project-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Tools Section */
  .tools-content-wrapper {
    padding: 6rem 0 4rem;
  }
  
  .section-header {
    margin-bottom: 4rem;
    padding: 0 1rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .tools-carousel {
    padding: 1rem;
    justify-content: flex-start;
    min-height: 370px;
  }
  
  .tool-card {
    min-width: 280px;
    height: 350px;
  }
  
  .card-front, .card-back {
    padding: 2rem 1.5rem;
  }
  
  .card-back {
    padding: 1.5rem 1.2rem;
  }
  
  .tool-name {
    font-size: 1.3rem;
  }
  
  /* Contact Section */
  .contact-content-wrapper {
    padding: 6rem 1rem 4rem;
  }
  
  .contact-content-wrapper h2 {
    font-size: 2rem;
  }
  
  /* Modal Mobile */
  .modal-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-height: 85vh;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  /* Content Stage Mobile */
  .content-stage {
    min-height: 100vh;
    overflow-y: auto;
  }
  
  .content-card {
    min-height: auto;
    overflow-y: auto;
  }
  
  /* Mobile Sticky Nav */
  .mobile-sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(249, 250, 251, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    padding: 1rem;
    padding-right: 4rem;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  .mobile-nav-links {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
  }
  
  .mobile-nav-links a {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.6);
  }
  
  .mobile-nav-links a:hover {
    background: rgba(100, 116, 139, 0.05);
    border-color: rgba(100, 116, 139, 0.4);
  }
  
  .content-stage {
    padding-top: 80px;
  }
    .about-content-wrapper,
  .projects-content-wrapper,
  .tools-content-wrapper,
  .contact-content-wrapper {
    padding-bottom: 3rem;
  }
  
  .content-card {
    padding-bottom: 3rem;
  }
  
  .hero-page {
    padding-bottom: 3rem;
  }
}

/* ===== NODE ILLUMINATION FOR DARK THEME ===== */
body.dark .node-number {
  color: #000000 !important;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 255, 255, 0.2) !important;
  animation: company-glow-pulse 2s ease-in-out infinite alternate;
}

body.dark .node-title {
  color: #FFFFFF !important;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 40px rgba(255, 255, 255, 0.4),
    0 0 60px rgba(255, 255, 255, 0.2) !important;
  animation: company-glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes company-glow-pulse {
  0% {
    text-shadow: 
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 40px rgba(255, 255, 255, 0.4),
      0 0 60px rgba(255, 255, 255, 0.2);
  }
  100% {
    text-shadow: 
      0 0 30px rgba(255, 255, 255, 0.8),
      0 0 50px rgba(255, 255, 255, 0.6),
      0 0 70px rgba(255, 255, 255, 0.4);
  }
}


