/* ---------------------------------------------------- */
/* 1. DESIGN SYSTEM VARIABLES & CORE STYLES             */
/* ---------------------------------------------------- */
:root {
  /* Colors */
  --bg-main: #0A0A0A;
  --bg-card: #121212;
  --bg-card-hover: #161616;
  --accent-cyan: #00E5FF;
  --accent-cyan-dim: rgba(0, 229, 255, 0.15);
  --accent-cyan-bright: rgba(0, 229, 255, 0.4);
  --accent-orange: #FF6B35;
  --accent-orange-hover: #FF8A5E;
  --accent-orange-dim: rgba(255, 107, 53, 0.15);
  
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --text-dim: #606060;
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-cyan-glow: rgba(0, 229, 255, 0.25);
  --border-orange-glow: rgba(255, 107, 53, 0.25);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Dimensions */
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-dim);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* ---------------------------------------------------- */
/* 2. REVEAL ANIMATIONS AND COMMON ELEMENTS             */
/* ---------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Scroll-triggered reveal (scoped to js-active for progressive enhancement) */
.js-active .reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid var(--border-dim);
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label span {
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: var(--accent-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -1px;
}

.section-subheading {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 12px;
  max-width: 600px;
}

/* ---------------------------------------------------- */
/* 3. CUSTOM MOUSE CURSOR                               */
/* ---------------------------------------------------- */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 999999;
  pointer-events: none;
  opacity: 0; /* Hide initially to avoid top-left stuck dot on load */
  transition: opacity 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
}

/* Custom Cursor Fade-in State on Mousemove */
body.custom-cursor-visible .cursor-dot {
  opacity: 1;
}
body.custom-cursor-visible .cursor-outline {
  opacity: 1;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
}

.cursor-outline {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent-cyan);
}

/* Safe Cursor Override - Activated only when JS verifies cursor follow is running */
body.custom-cursor-active {
  cursor: none;
}
body.custom-cursor-active a,
body.custom-cursor-active button,
body.custom-cursor-active select,
body.custom-cursor-active textarea,
body.custom-cursor-active input,
body.custom-cursor-active .clickable {
  cursor: none !important;
}

@media (max-width: 1024px) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
}

/* ---------------------------------------------------- */
/* 4. BUTTONS & UI INTERACTIVES                         */
/* ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.btn-orange {
  background-color: var(--accent-orange);
  color: var(--text-primary);
  border: 1px solid var(--accent-orange);
}

.btn-orange:hover {
  background-color: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  box-shadow: 0 0 20px var(--border-orange-glow);
  transform: translateY(-2px);
}

.btn-cyan-outline {
  background-color: transparent;
  color: var(--accent-cyan);
  border: 1.5px solid var(--accent-cyan);
}

.btn-cyan-outline:hover {
  background-color: var(--accent-cyan-dim);
  box-shadow: 0 0 20px var(--border-cyan-glow);
  transform: translateY(-2px);
}

/* ---------------------------------------------------- */
/* 5. STICKY TOP NAVBAR & MOBILE DRAWER                 */
/* ---------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 100;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
  height: 70px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-ar {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1.5px;
  transition: transform 0.3s ease;
}

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

.logo-ar:hover {
  transform: scale(1.05);
}

.nav-links-wrapper {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 6px 0;
}

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

.nav-link:hover {
  color: var(--text-primary);
}

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

.nav-link.active {
  color: var(--text-primary);
}

.nav-cta-wrapper {
  display: flex;
  align-items: center;
}

.nav-cta-wrapper .btn-cta {
  padding: 10px 20px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  cursor: pointer;
  z-index: 110;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hamburger-menu.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(20px);
  z-index: 105;
  padding: 100px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-left: 1px solid var(--border-dim);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mobile-drawer-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.mobile-drawer-link.active {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links-wrapper, .nav-cta-wrapper {
    display: none;
  }
  .hamburger-menu {
    display: flex;
  }
}

/* ---------------------------------------------------- */
/* 6. STICKY RIGHT SIDEBAR                              */
/* ---------------------------------------------------- */
.sticky-sidebar {
  position: fixed;
  right: 40px;
  bottom: 0;
  width: 40px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.sidebar-rotated-text {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-dim);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
}

.sidebar-line {
  width: 1px;
  height: 80px;
  background-color: var(--border-dim);
  margin-bottom: 20px;
}

.sidebar-socials {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.sidebar-icon {
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.sidebar-icon:hover {
  color: var(--accent-cyan);
  transform: translateY(-4px);
  filter: drop-shadow(0 0 8px var(--accent-cyan-bright));
}

.icon-svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .sticky-sidebar {
    display: none;
  }
}

/* ---------------------------------------------------- */
/* 7. HERO SECTION                                      */
/* ---------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--navbar-height) 0 40px 0;
  overflow: hidden;
  position: relative; /* Contain absolute background blobs */
  border-bottom: 1px solid var(--border-dim);
}

/* Background animated gradient blobs */
.gradient-mesh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.1;
  mix-blend-mode: screen;
}

.blob-cyan {
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  width: 50vw;
  height: 50vw;
  top: -10vw;
  left: -10vw;
  animation: floatCyan 24s infinite alternate ease-in-out;
}

.blob-orange {
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
  width: 45vw;
  height: 45vw;
  bottom: -10vw;
  right: -10vw;
  animation: floatOrange 28s infinite alternate ease-in-out;
}

@keyframes floatCyan {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.15); }
  100% { transform: translate(-4vw, 12vh) scale(0.9); }
}

@keyframes floatOrange {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8vw, -8vh) scale(0.85); }
  100% { transform: translate(4vw, 4vh) scale(1.1); }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 3;
}

.hero-pretitle {
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.5vw, 15px);
  color: var(--accent-cyan);
  letter-spacing: 3px;
  margin-bottom: 24px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7.5vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  min-height: 3.3em; /* Pre-allocates space for 3 lines to completely eliminate layout shifts on desktop */
}

.hero-title span.cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 30px var(--accent-cyan-dim);
}

.hero-title span.typewriter-wrapper {
  display: inline;
  font-size: clamp(1.1rem, 4.5vw, 3.2rem); /* Slightly smaller, premium scale ensures the line never wraps during typing */
  vertical-align: bottom;
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    letter-spacing: -1px;
    min-height: 4.4em; /* Pre-allocates space for 4 lines on small viewports to prevent shifting */
  }
}

.cursor-blink {
  animation: blink 0.8s infinite;
  color: var(--accent-cyan);
  font-weight: 400;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 750px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 80px;
}

.hero-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-top: 1px solid var(--border-dim);
  padding-top: 30px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}

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

.location-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  animation: ping 1.5s infinite ease-out;
}

@keyframes ping {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Scroll Indicator bouncing */
.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent-cyan);
}

.scroll-arrow {
  animation: bounce 1.8s infinite ease-in-out;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Bulletproof CSS Entrance Transitions (scoped to js-active for progressive enhancement) */
.js-active .hero-stagger-1, 
.js-active .hero-stagger-2, 
.js-active .hero-stagger-3, 
.js-active .hero-stagger-4 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.page-loaded .hero-stagger-1 { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.page-loaded .hero-stagger-2 { opacity: 1; transform: translateY(0); transition-delay: 150ms; }
.page-loaded .hero-stagger-3 { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.page-loaded .hero-stagger-4 { opacity: 1; transform: translateY(0); transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
  .hero-stagger-1, .hero-stagger-2, .hero-stagger-3, .hero-stagger-4 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-element {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------------------------------------------------- */
/* 8. TRUST TICKER BAR                                  */
/* ---------------------------------------------------- */
.trust-bar {
  background-color: #0d0d0d;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  padding: 20px 0;
  overflow: hidden;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  z-index: 10;
}

.ticker-wrapper {
  display: flex;
  width: fit-content;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  gap: 60px;
  padding-right: 60px;
}

.ticker-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* ---------------------------------------------------- */
/* 9. ABOUT SECTION                                     */
/* ---------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-bio-text {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  color: var(--text-secondary);
  font-weight: 300;
}

.about-bio-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stat-card {
    padding: 24px 16px;
  }
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-card:hover {
  border-color: var(--accent-cyan-bright);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.05);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum"; /* Enforces uniform digit width to completely eliminate horizontal text jittering/shakeness during count-ups */
}

.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------------------------------------------------- */
/* 10. SERVICES SECTION                                 */
/* ---------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 4px;
  padding: 48px 40px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px var(--accent-cyan-dim);
}

.service-card-number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  position: absolute;
  top: 48px;
  right: 40px;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.service-desc {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card {
    padding: 32px 24px;
  }
  .service-card-number {
    top: 32px;
    right: 24px;
  }
}

/* ---------------------------------------------------- */
/* 11. SKILLS SECTION                                   */
/* ---------------------------------------------------- */
.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skills-group {
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 32px;
  background-color: rgba(18, 18, 18, 0.5);
}

.skills-group-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-dim);
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-badge {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-dim);
  padding: 10px 18px;
  border-radius: 30px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skill-badge:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-dim);
  transform: scale(1.05);
}

/* ---------------------------------------------------- */
/* 12. SELECTED PROJECTS SECTION                         */
/* ---------------------------------------------------- */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 100px;
  align-items: center;
}

.project-card:last-child {
  margin-bottom: 0;
}

/* Left-right alternating order for desktop */
@media (min-width: 769px) {
  .project-card:nth-child(even) .project-media {
    order: 1;
  }
  .project-card:nth-child(even) .project-info {
    order: 2;
  }
  .project-card:nth-child(odd) .project-media {
    order: 2;
  }
  .project-card:nth-child(odd) .project-info {
    order: 1;
  }
}

.project-media {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(10, 10, 10, 0.8) 100%);
  pointer-events: none;
}

.project-card:hover .project-media {
  border-color: var(--accent-cyan-bright);
  box-shadow: 0 20px 40px var(--accent-cyan-dim);
  transform: translateY(-4px);
}

/* Abstract Pure-CSS High-Fidelity Mockups inside Projects */
.mockup-wrapper {
  width: 100%;
  height: 100%;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Mock CRM Interface */
.crm-mock {
  background: linear-gradient(135deg, #10101b 0%, #0d2836 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.crm-sidebar-mock {
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-dot-item {
  height: 6px;
  background-color: var(--accent-cyan);
  opacity: 0.3;
  border-radius: 3px;
}

.crm-dot-item:first-child {
  opacity: 0.8;
  background-color: var(--accent-cyan);
}

.crm-body-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-header-mock {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crm-title-txt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  font-weight: bold;
}

.crm-pill-mock {
  width: 45px;
  height: 12px;
  background-color: var(--accent-orange);
  border-radius: 8px;
}

.crm-grid-mock {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.crm-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-card-label {
  font-size: 8px;
  color: var(--text-dim);
}

.crm-card-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: bold;
  color: var(--accent-cyan);
}

.crm-chart-mock {
  flex: 1;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 12px;
  gap: 6px;
}

.crm-chart-bar {
  width: 100%;
  background: linear-gradient(0deg, var(--accent-cyan-dim) 0%, var(--accent-cyan) 100%);
  border-radius: 2px 2px 0 0;
  transition: height 1s ease;
}

/* Mock E-Commerce Store Interface */
.store-mock {
  background: linear-gradient(135deg, #16100d 0%, #301b12 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.store-nav-mock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}

.store-logo-mock {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 800;
}

.store-logo-mock span {
  color: var(--accent-orange);
}

.store-grid-mock {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 14px;
  flex: 1;
}

.store-product-mock {
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.store-product-shape {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0.8;
  animation: pulsate 3s infinite alternate ease-in-out;
}

.store-details-mock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.store-item-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.store-item-price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-orange);
  font-weight: bold;
}

.store-btn-mock {
  height: 24px;
  background-color: var(--accent-orange);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: bold;
  color: white;
}

@keyframes pulsate {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.1); opacity: 0.9; }
}

/* Mock SEO/Website Rank Interface */
.seo-mock {
  background: linear-gradient(135deg, #091211 0%, #0d2822 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.seo-nav-mock {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-dot-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff5f56;
}
.seo-dot-circle:nth-child(2) { background-color: #ffbd2e; }
.seo-dot-circle:nth-child(3) { background-color: #27c93f; }

.seo-search-mock {
  background: rgba(255,255,255,0.04);
  height: 20px;
  border-radius: 10px;
  width: 100%;
  margin: 12px 0;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent-cyan);
}

.seo-results-mock {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.seo-result-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 8px;
}

.seo-item-url {
  font-size: 8px;
  color: #27c93f;
}

.seo-item-h1 {
  font-size: 11px;
  font-weight: bold;
  color: var(--text-primary);
}

.seo-badge-circle {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #27c93f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #27c93f;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(39, 201, 63, 0.2);
}

/* Project card details styling */
.project-info {
  display: flex;
  flex-direction: column;
}

.project-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.project-tech-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-cyan);
  background-color: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-actions {
  display: flex;
  gap: 16px;
}

.project-btn {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}

.project-btn-primary {
  color: var(--accent-cyan);
}

.project-btn-primary:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px var(--accent-cyan-bright);
}

.project-btn-secondary {
  color: var(--text-dim);
}

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

@media (max-width: 768px) {
  .project-card, .project-card.alternate {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 70px;
  }
  .project-card:nth-child(even) .project-media,
  .project-card:nth-child(odd) .project-media {
    order: 1;
  }
  .project-card:nth-child(even) .project-info,
  .project-card:nth-child(odd) .project-info {
    order: 2;
  }
}

/* ---------------------------------------------------- */
/* 13. SOCIAL PROOF / PROFILES SECTION                  */
/* ---------------------------------------------------- */
.profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

.profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.profile-card-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.profile-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--text-secondary);
  transition: all 0.3s ease;
}

.profile-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.profile-sub {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.profile-arrow {
  align-self: flex-end;
  color: var(--text-dim);
  font-size: 20px;
  transition: all 0.3s ease;
  margin-top: 40px;
}

/* Styling profile cards custom borders and hovers */
.profile-github { border-left: 3px solid #707070; }
.profile-linkedin { border-left: 3px solid #0077B5; }
.profile-upwork {
  border-left: 3px solid #6FDA44;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(111, 218, 68, 0.02) 100%);
}

.profile-github:hover {
  border-color: #FFFFFF;
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}
.profile-github:hover .profile-icon {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}
.profile-github:hover .profile-icon svg { fill: #FFFFFF; }
.profile-github:hover .profile-arrow { color: #FFFFFF; transform: translateX(4px); }

.profile-linkedin:hover {
  border-color: #0077B5;
  box-shadow: 0 15px 40px rgba(0, 119, 181, 0.15);
  transform: translateY(-4px);
}
.profile-linkedin:hover .profile-icon {
  border-color: #0077B5;
  background-color: rgba(0, 119, 181, 0.08);
}
.profile-linkedin:hover .profile-icon svg { fill: #0077B5; }
.profile-linkedin:hover .profile-arrow { color: #0077B5; transform: translateX(4px); }

.profile-upwork:hover {
  border-color: #6FDA44;
  box-shadow: 0 15px 40px rgba(111, 218, 68, 0.15);
  transform: translateY(-4px);
}
.profile-upwork:hover .profile-icon {
  border-color: #6FDA44;
  background-color: rgba(111, 218, 68, 0.08);
}
.profile-upwork:hover .profile-icon svg { fill: #6FDA44; }
.profile-upwork:hover .profile-arrow { color: #6FDA44; transform: translateX(4px); }

.profile-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6FDA44;
  border: 1px solid rgba(111, 218, 68, 0.3);
  background-color: rgba(111, 218, 68, 0.08);
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .profiles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------------------------------------------------- */
/* 14. CONTACT SECTION                                  */
/* ---------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

/* Form design */
.contact-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.contact-input {
  width: 100%;
  background-color: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  outline: none;
}

.contact-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-dim);
}

textarea.contact-input {
  height: 150px;
  resize: none;
}

.custom-select-wrapper {
  position: relative;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.custom-select-trigger:hover,
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-dim);
}

.custom-select-arrow {
  color: var(--text-dim);
  font-size: 12px;
  transition: transform 0.3s ease;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 229, 255, 0.15);
  border-radius: 6px;
  z-index: 99;
  max-height: 250px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
              0 0 30px rgba(0, 229, 255, 0.05);
}

.custom-select-wrapper.open .custom-select-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent-cyan-bright);
  padding-left: 24px;
}

.custom-select-option.active {
  background: rgba(0, 229, 255, 0.12);
  color: var(--accent-cyan-bright);
  font-weight: bold;
}

/* Toast Notification System */
.toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.toast-card {
  width: 320px;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 
              0 0 20px rgba(0, 229, 255, 0.05);
  border-radius: 6px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 24px 1fr 16px;
  gap: 14px;
  align-items: start;
  pointer-events: auto;
  transform: translateX(120%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-card.visible {
  transform: translateX(0);
}

.toast-card.exit {
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s ease-in;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

.toast-icon-svg {
  width: 20px;
  height: 20px;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.toast-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.toast-close:hover {
  color: white;
}

/* Success Card Variations */
.toast-success {
  border-color: rgba(39, 201, 63, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 
              0 0 20px rgba(39, 201, 63, 0.05);
}

.toast-success .toast-title {
  color: #27c93f;
}

.toast-error {
  border-color: rgba(255, 95, 86, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 
              0 0 20px rgba(255, 95, 86, 0.05);
}

.toast-error .toast-title {
  color: #ff5f56;
}

.toast-warning {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 
              0 0 20px rgba(255, 107, 53, 0.05);
}

.toast-warning .toast-title {
  color: var(--accent-orange);
}

.contact-btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
}

/* Left side contact content info */
.contact-info-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.contact-meta-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.contact-method-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-method-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-method-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-method-value:hover {
  color: var(--accent-cyan);
}

.contact-method-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-dim);
}

.form-status {
  margin-top: 15px;
  font-family: var(--font-mono);
  font-size: 12px;
  display: none;
}
.form-status.success {
  display: block;
  color: #27c93f;
}
.form-status.error {
  display: block;
  color: #ff5f56;
}
.form-status.info {
  display: block;
  color: var(--accent-cyan);
}
.form-status.warning {
  display: block;
  color: var(--accent-orange);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact-form-wrapper {
    padding: 24px;
  }
}

/* ---------------------------------------------------- */
/* 15. FOOTER SECTION                                   */
/* ---------------------------------------------------- */
.footer {
  border-top: 1px solid var(--accent-cyan);
  padding: 60px 0 40px 0;
  background-color: #050505;
  z-index: 10;
  position: relative;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -1px;
}

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

.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  max-width: 250px;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-column-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-item-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-meta span {
  color: var(--accent-cyan);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------------------------------------------------- */
/* 15. DYNAMIC MODAL AND CUSTOM PROJECT CARD            */
/* ---------------------------------------------------- */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 95%;
  max-width: 580px;
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  padding: 40px;
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 229, 255, 0.05);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-modal.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  line-height: 1;
  transition: color 0.2s ease;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--accent-cyan);
}

.modal-project-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.modal-project-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-actions {
  display: flex;
  gap: 16px;
}

/* Custom Abstract Mockups for Dynamic Projects */
.abstract-mock {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 60%),
              linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px; /* Tech grid pattern */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.abstract-mock-inner {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  color: rgba(0, 229, 255, 0.25); /* Glowing cyan watermark */
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
  text-transform: uppercase;
  user-select: none;
  z-index: 2;
}

.abstract-mock-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-cyan) 0%, var(--accent-orange) 100%);
  filter: blur(45px);
  opacity: 0.25; /* Higher glow opacity */
  animation: floatGlow 8s infinite alternate ease-in-out;
  z-index: 1;
}

@keyframes floatGlow {
  0% { transform: translate(-30px, -30px) scale(0.9); }
  100% { transform: translate(30px, 30px) scale(1.1); }
}

/* AI Cybernetic Node Mockup */
.ai-mock {
  background: linear-gradient(135deg, #0a0414 0%, #1c0633 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: pulsePurp 2s infinite ease-in-out;
}

.ai-engine-txt {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.ai-visual {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.ai-node {
  position: absolute;
  border-radius: 50%;
  background-color: #120c24;
  border: 1.5px solid #a855f7;
  z-index: 2;
}

.central-node {
  width: 28px;
  height: 28px;
  border-color: #c084fc;
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(192, 132, 252, 0.6);
  animation: ripple 2s infinite linear;
}

.leaf-node {
  width: 12px;
  height: 12px;
}

.leaf-node.node-1 { top: 15%; left: 20%; border-color: var(--accent-cyan); }
.leaf-node.node-2 { bottom: 20%; left: 15%; border-color: var(--accent-orange); }
.leaf-node.node-3 { top: 35%; right: 20%; border-color: #a855f7; }

.ai-path {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  transform-origin: left center;
  z-index: 1;
}

/* Connective lines mapped via rotated rectangles */
.ai-path.path-1 {
  width: 65px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan) 0%, transparent 100%);
  top: 35%;
  left: 28%;
  transform: rotate(-18deg);
}

.ai-path.path-2 {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-orange) 0%, transparent 100%);
  bottom: 35%;
  left: 24%;
  transform: rotate(24deg);
}

.ai-path.path-3 {
  width: 60px;
  height: 1px;
  background: linear-gradient(-90deg, #a855f7 0%, transparent 100%);
  top: 45%;
  right: 28%;
  transform: rotate(-5deg);
}

.ai-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 10px;
}

.ai-metric-lbl {
  font-size: 7px;
  color: var(--text-dim);
}

.ai-metric-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: bold;
  color: #c084fc;
}

/* Photo Viewfinder Canvas Mockup */
.photo-mock {
  background: linear-gradient(135deg, #07070a 0%, #15151a 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.photo-viewfinder {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  margin-bottom: 12px;
}

.photo-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.photo-corner.tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.photo-corner.tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.photo-corner.bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.photo-corner.br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.photo-grid-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.02);
}

.photo-grid-line.h {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.photo-grid-line.v {
  height: 100%;
  width: 1px;
  left: 50%;
  top: 0;
}

.photo-focus-box {
  position: absolute;
  width: 32px;
  height: 24px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: focalPulse 4s infinite alternate ease-in-out;
}

.photo-focus-box::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(0, 229, 255, 0.7);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.photo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
}

.photo-telemetry {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  padding: 3px 6px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.photo-battery-icon {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-battery-icon::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 7px;
  border: 1px solid var(--accent-cyan);
  background-color: rgba(0, 229, 255, 0.2);
  border-radius: 1px;
}

/* Luxury Wellness Calendar Scheduler */
.wellness-mock {
  background: linear-gradient(135deg, #060e0a 0%, #12211b 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.wellness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.wellness-branding {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.wellness-schedule-badge {
  font-size: 7px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.wellness-calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0;
}

.wellness-day {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.wellness-day span:first-child {
  font-size: 6px;
  color: var(--text-dim);
}

.wellness-day span:last-child {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  color: var(--text-primary);
}

.wellness-day.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  position: relative;
}

.wellness-day.active span:last-child {
  color: #34d399;
}

.wellness-day-indicator {
  position: absolute;
  bottom: 2px;
  width: 3px;
  height: 3px;
  background-color: #10b981;
  border-radius: 50%;
}

.wellness-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wellness-slot {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wellness-slot-time {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #34d399;
  font-weight: bold;
}

.wellness-slot-lbl {
  font-size: 8px;
  font-weight: bold;
  color: var(--text-primary);
  flex: 1;
  margin-left: 10px;
}

.wellness-slot-status {
  font-size: 7px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
}

.wellness-slot.active {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.02);
}

.wellness-slot-status.select-btn {
  background-color: #10b981;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

/* Executive Coach Testimonial Cards */
.coach-mock {
  background: linear-gradient(135deg, #0e0a0d 0%, #201324 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.coach-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-avatar-mock {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #f472b6 0%, #db2777 100%);
  padding: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-avatar-inner {
  width: 100%;
  height: 100%;
  background-color: #120a16;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
  color: #f472b6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coach-name-mock {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: bold;
  color: var(--text-primary);
}

.coach-title-mock {
  font-size: 8px;
  color: var(--text-dim);
}

.coach-quote-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 10px;
  margin: 10px 0;
}

.coach-stars {
  font-size: 8px;
  color: #fbbf24;
  margin-bottom: 4px;
}

.coach-testimonial {
  font-size: 8px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.3;
}

.coach-cta-mock {
  height: 24px;
  background-color: #db2777;
  color: white;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.2);
  transition: all 0.3s ease;
}

.coach-cta-mock:hover {
  background-color: #ec4899;
  box-shadow: 0 0 15px rgba(219, 39, 119, 0.5);
}

/* Solar Performance Calculator Grid */
.solar-mock {
  background: linear-gradient(135deg, #120c02 0%, #291a04 100%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.solar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.solar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.solar-status {
  font-size: 7px;
  font-weight: bold;
  color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  padding: 1px 6px;
  border-radius: 2px;
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.solar-grid-preview {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  margin: 10px 0;
  align-items: center;
}

.solar-panel-graphic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-cell {
  background-color: #0d2a4a;
  border: 0.5px dashed rgba(0, 229, 255, 0.4);
  aspect-ratio: 1;
}

.solar-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solar-val-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
}

.solar-val-lbl {
  font-size: 6px;
  color: var(--text-dim);
}

.solar-val-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: bold;
  color: #fbbf24;
}

.solar-gauge-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.03);
}

.solar-gauge-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 6px;
}

.solar-gauge-lbl {
  font-size: 7px;
  font-weight: bold;
  color: white;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes pulsePurp {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(168, 85, 247, 0.8); }
}

@keyframes focalPulse {
  0% { border-color: rgba(0, 229, 255, 0.2); transform: translate(-50%, -50%) scale(0.95); }
  100% { border-color: rgba(0, 229, 255, 0.7); transform: translate(-50%, -50%) scale(1.05); }
}

/* Custom Project Card Style */
.project-card.custom-card {
  border: 1px dashed rgba(0, 229, 255, 0.3);
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.3) 0%, rgba(0, 229, 255, 0.02) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  cursor: pointer;
}

.custom-card-graphic {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1.5px dashed var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
  animation: pulseCard 3s infinite ease-in-out;
  position: relative;
}

@keyframes pulseCard {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(0,229,255,0.05); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(0,229,255,0.2); }
}

.custom-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.custom-card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 280px;
}
