/* ==========================================================================
   Vincent Tellier — vincenttellier.pro
   Deep sea meets terminal — dark ocean theme with bioluminescent accents
   ========================================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap');

/* --- Variables --- */
:root {
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  --font-serif: 'Source Serif 4', 'Georgia', serif;

  /* Backgrounds — ocean depth zones */
  --bg: #080c18;
  --bg-alt: #0c1122;
  --bg-card: #101828;
  --text: #d1d9e6;
  --text-muted: #8294aa;
  --text-light: #566880;
  --accent: #00e5ff;
  --accent-light: rgba(0, 229, 255, 0.08);
  --accent-hover: #33ecff;
  --border: #1a2035;
  --border-light: #141a2c;

  /* Expanded accent palette */
  --accent-coral: #ff5277;
  --accent-coral-hover: #ff7a96;
  --accent-glow: #00ffaa;
  --accent-blue: #6366f1;
  --accent-amber: #fbbf24;

  /* Code syntax */
  --code-bg: #050810;
  --code-text: #c8d6e5;
  --code-green: #00ffaa;
  --code-blue: #6366f1;
  --code-orange: #fbbf24;
  --code-comment: #4a5568;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --max-w: 1280px;
  --max-w-narrow: 800px;
  --radius: 3px;

  /* Glow helpers */
  --glow-accent: 0 0 20px rgba(0, 229, 255, 0.15);
  --glow-coral: 0 0 20px rgba(255, 82, 119, 0.15);
  --glow-blue: 0 0 20px rgba(99, 102, 241, 0.12);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 82, 119, 0.015) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: oceanDrift 90s ease-in-out infinite;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3.6rem;
  font-weight: 700;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

strong {
  font-weight: 600;
}

/* --- Utility --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

.text-accent {
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
}

.serif {
  font-family: var(--font-serif);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- Deep ocean atmosphere — surface light filtering down --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60vh;
  background: radial-gradient(
    ellipse at 50% 0%,
    rgba(0, 229, 255, 0.04) 0%,
    rgba(99, 102, 241, 0.02) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

/* --- Abyss gradient at the bottom --- */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 229, 255, 0.015) 40%,
    rgba(99, 102, 241, 0.025) 70%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
  z-index: -1;
}

/* --- External link indicator for accessibility --- */
a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-left: 0.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300e5ff'%3E%3Cpath d='M10 1h5v5l-1.7-1.7-4.6 4.6-1.4-1.4 4.6-4.6L10 1zM3 3h4v2H3v8h8V9h2v4a2 2 0 01-2 2H3a2 2 0 01-2-2V5a2 2 0 012-2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: baseline;
  opacity: 0.5;
}

/* Don't show external icon on nav, footer, buttons, or client links */
.site-nav a[target="_blank"]::after,
.site-footer__links a[target="_blank"]::after,
.btn[target="_blank"]::after,
.contact-link-card[target="_blank"]::after,
.clients__grid a[target="_blank"]::after {
  display: none;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px) saturate(120%);
  background: rgba(8, 12, 24, 0.85);
}

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

.site-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--accent);
}

.site-logo .logo-slash {
  color: var(--accent);
  margin-right: 2px;
}

/* Header availability status */
.header-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-logo .logo-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1.2s step-end infinite;
  vertical-align: text-bottom;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
}

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

.site-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-xs) 0;
  position: relative;
  transition: color 0.2s;
}

.site-nav a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.site-nav a:hover::before,
.site-nav a.active::before {
  transform: scaleX(1);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

/* Nav download CV button */
.site-nav .nav-cv {
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.35rem 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.82rem;
  transition: all 0.2s;
  margin-left: var(--space-xs);
  white-space: nowrap;
}

.site-nav .nav-cv::before {
  display: none;
}

.site-nav .nav-cv:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: var(--glow-accent);
}

.site-nav .nav-cv svg {
  width: 0.9em;
  height: 0.9em;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 10rem 0 var(--space-2xl);
}

.hero__intro {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: 0 0 8px rgba(0, 255, 170, 0.6), 0 0 20px rgba(0, 255, 170, 0.2);
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  max-width: 850px;
}

.hero h1 .accent-line {
  display: block;
  color: var(--accent);
}

.hero__description {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: var(--space-xl);
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--accent-coral);
  color: #ffffff;
  border-color: var(--accent-coral);
}

.btn--primary:hover {
  background: var(--accent-coral-hover);
  border-color: var(--accent-coral-hover);
  color: #ffffff;
  box-shadow: var(--glow-coral);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-accent);
}

.btn__arrow {
  transition: transform 0.2s;
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   Section Layout
   ========================================================================== */
.section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.section:last-child {
  border-bottom: none;
}

.section--alt {
  background: var(--bg-alt);
  border-bottom-color: var(--border);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section__label::before {
  content: '//';
  color: var(--accent);
}

/* ==========================================================================
   Services Grid
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: rgba(16, 24, 40, 0.6);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  backdrop-filter: blur(4px);
}

.service-card:nth-child(2) { border-top-color: var(--accent-blue); }
.service-card:nth-child(3) { border-top-color: var(--accent-coral); }

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.service-card__icon {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card__icon::before {
  content: '$';
  opacity: 0.5;
}

.service-card h3 {
  font-family: var(--font-serif);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ==========================================================================
   Client Logos
   ========================================================================== */
.clients {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: var(--space-md);
}

.clients__grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.clients__grid a {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 40px;
}

.clients__grid a.client--wide {
  width: 180px;
}

.clients__grid a.client--square {
  width: 40px;
}

.clients__grid a img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.4;
  filter: grayscale(100%) brightness(2) invert(1);
  transition: opacity 0.3s, filter 0.3s;
}

.clients__grid a:hover img {
  opacity: 0.85;
  filter: grayscale(0%) brightness(1.2) invert(0);
}

/* ==========================================================================
   Testimonial
   ========================================================================== */
.testimonial {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -1.5rem;
  left: -0.5rem;
  line-height: 1;
}

.testimonial__author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.testimonial__author strong {
  color: var(--text);
}

/* ==========================================================================
   About Page
   ========================================================================== */
/* Reduced top padding for the about hero section */
.about-hero-section {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.about-hero {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-2xl);
  align-items: start;
}

.about-hero__content h1 {
  margin-bottom: var(--space-md);
}

.about-hero__bio {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.about-hero__bio p {
  margin-bottom: var(--space-sm);
}

.about-hero__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(10%);
  border: 1px solid var(--border);
}

.about-hero__sidebar-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  line-height: 1.8;
}

.sidebar-note__flag {
  display: block;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.sidebar-note__company {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-light);
}

/* Table of contents */
.about-toc {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.about-toc a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.about-toc a:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

/* Scroll offset for anchor links under sticky header */
[id="expertise"],
[id="career"],
[id="education"],
[id="client-work"],
[id="ventures"],
[id="testimonials"] {
  scroll-margin-top: 5rem;
}

/* Tech stack */
.tech-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.tech-group h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border-light);
}

.tech-group__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  background: rgba(26, 32, 53, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  white-space: nowrap;
}

.tech-tag--primary {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--accent);
  font-weight: 500;
}

.tech-tag--primary:nth-child(3n+2) {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent-blue);
}

.tech-tag--primary:nth-child(3n) {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--accent-amber);
}

/* Career timeline */
.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--accent),
    var(--border) 30%,
    var(--border) 70%,
    var(--accent)
  );
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-lg);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) + 2px);
  top: 0.5rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.timeline__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline__company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline__desc {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

/* Languages section */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.language-card {
  text-align: center;
  padding: var(--space-md);
  background: rgba(16, 24, 40, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.language-card__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.language-card__level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Projects Page
   ========================================================================== */
.projects-grid {
  display: grid;
  gap: var(--space-md);
}

.project-card {
  background: rgba(16, 24, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-md);
  align-items: start;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  backdrop-filter: blur(4px);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  transform: translateY(-2px);
}

.project-card__type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-family: var(--font-serif);
  margin-bottom: 0.5rem;
}

.project-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.project-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  display: flex;
  gap: var(--space-md);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: var(--space-sm);
}

.project-card__side {
  text-align: right;
  flex-shrink: 0;
}

.project-card__duration {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* ==========================================================================
   Testimonials Page / Section
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: rgba(16, 24, 40, 0.6);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: var(--space-md);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: var(--accent);
}

.testimonial-card__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.testimonial-card__author {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info__text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.contact-methods {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-methods li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-methods__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 80px;
}

.contact-methods a {
  font-size: 0.88rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(16, 24, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(4px);
}

.contact-link-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
  color: var(--text);
}

.contact-link-card__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
}

.contact-link-card__url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Calendly CTA */
.calendly-cta {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.calendly-cta__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
}

.calendly-cta__text span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: block;
  margin-top: 0.25rem;
}

/* Water accent divider */
.water-divider {
  height: 3px;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.3) 15%,
    rgba(0, 229, 255, 0.5) 35%,
    rgba(0, 255, 170, 0.4) 50%,
    rgba(0, 229, 255, 0.5) 65%,
    rgba(99, 102, 241, 0.3) 85%,
    transparent 100%
  );
  margin: 0;
  position: relative;
}

.water-divider::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 10%;
  right: 10%;
  height: 16px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.08) 30%,
    rgba(0, 229, 255, 0.12) 50%,
    rgba(0, 229, 255, 0.08) 70%,
    transparent
  );
  filter: blur(4px);
  pointer-events: none;
}

/* Code block decoration */
.code-block {
  background: var(--code-bg);
  border-radius: var(--radius);
  padding: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--code-text);
  overflow-x: auto;
  white-space: pre;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.code-block .comment { color: var(--code-comment); }
.code-block .keyword { color: var(--code-blue); }
.code-block .string { color: var(--code-orange); }
.code-block .function { color: var(--accent); }
.code-block .type { color: var(--accent-glow); }
.code-block .number { color: var(--accent-glow); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

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

.site-footer__left {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
}

.site-footer__links {
  display: flex;
  gap: var(--space-md);
}

.site-footer__links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes oceanDrift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.6), 0 0 20px rgba(0, 255, 170, 0.2);
  }
  50% {
    box-shadow: 0 0 12px rgba(0, 255, 170, 0.8), 0 0 30px rgba(0, 255, 170, 0.3);
  }
}

.animate-in {
  animation: fadeInUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .about-hero__photo {
    max-width: 300px;
    order: -1;
  }

  .about-toc {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card__side {
    text-align: left;
  }

  .clients__grid {
    gap: var(--space-md);
  }

  .clients__grid a {
    width: 110px;
    height: 35px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .about-hero-section {
    padding-top: var(--space-lg);
  }

  .container {
    padding: 0 var(--space-md);
  }

  .header-status {
    display: none;
  }

  .about-toc a {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 24, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-sm) var(--space-md);
    gap: 0;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-toggle {
    display: block;
  }

  .clients__grid {
    gap: var(--space-sm);
  }

  .clients__grid a {
    width: 100px;
    height: 30px;
  }

  .languages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .clients__grid a img {
    opacity: 0.5;
  }
}

/* ==========================================================================
   Accessibility & Performance
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  .status-dot {
    animation: none;
  }

  .reveal {
    transition-duration: 0.01ms;
  }

  .animate-in {
    animation-duration: 0.01ms;
  }
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-2px);
  }

  .project-card:hover {
    transform: translateY(-2px);
  }
}

@supports not (backdrop-filter: blur(12px)) {
  .site-header {
    background: rgba(8, 12, 24, 0.98);
  }

  .service-card,
  .project-card,
  .testimonial-card,
  .contact-link-card,
  .language-card {
    background: var(--bg-card);
  }
}
