/* ============================================================
   TKS3 — Scientific Software Solutions
   Light Academic Theme
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-card-hover: #212c40;

  --accent-primary: #f97316;
  --accent-secondary: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --text-accent: #f97316;

  --border-subtle: #334155;
  --border-accent: rgba(249, 115, 22, 0.4);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --section-padding: 100px 0;
  --container-width: 1140px;
  --container-padding: 0 clamp(1.5rem, 5vw, 4rem);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Canvas --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-padding);
  position: relative;
}

/* --- Section Headers --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent-primary);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 850px;
  line-height: 1.8;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: var(--transition-smooth);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo .accent {
  color: var(--accent-primary);
  font-weight: 800;
}

.logo sup {
  font-size: 0.65em;
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-smooth);
}

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

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

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-tertiary);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 600;
}

.lang-toggle button {
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.lang-toggle button.active {
  background: var(--accent-primary);
  color: #fff;
}

.lang-toggle button:hover:not(.active) {
  color: var(--text-primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
  max-width: 760px;
  position: relative;
}

.hero-greeting-wrapper {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.4rem;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--accent-primary);
  font-weight: 600;
}

.hero-name {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  line-height: 1.4;
}

.hero-title .highlight {
  color: var(--accent-primary);
  font-weight: 500;
}

.hero-description-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  flex: 1;
  margin-bottom: 3rem;
}

.burst-star-wrapper {
  position: absolute;
  right: 0;
  top: -95px;
  flex-shrink: 0;
  filter: drop-shadow(0px 8px 15px rgba(239, 68, 68, 0.4));
  z-index: 10;
}

.burst-star {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 120px;
  height: 120px;
  background: #ef4444;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);

  /* 10-point burst star */
  clip-path: polygon(50% 0%, 61% 15%, 80% 10%, 79% 28%, 98% 35%,
      85% 50%, 98% 65%, 79% 72%, 80% 90%, 61% 85%,
      50% 100%, 39% 85%, 20% 90%, 21% 72%, 2% 65%,
      15% 50%, 2% 35%, 21% 28%, 20% 10%, 39% 15%);

  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: pulse-star 4s infinite alternate ease-in-out;
}

@keyframes pulse-star {
  0% {
    transform: scale(1) rotate(-3deg);
  }

  100% {
    transform: scale(1.03) rotate(3deg);
  }
}

.burst-star:hover {
  transform: scale(1.1) rotate(10deg);
  background: #dc2626;
  animation: none;
}

.burst-title {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0px;
  margin-bottom: 1px;
  color: #ffffff;
}

.burst-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  padding: 0 10px;
  text-align: center;
  color: #ffe600;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(233, 115, 22, 0.04);
}


/* Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.8rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

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

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 1rem;
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  background: rgba(233, 115, 22, 0.06);
  border: 1px solid rgba(233, 115, 22, 0.15);
  padding: 2px 9px;
  border-radius: 4px;
}

/* ============================================================
   PRODUCTS & TOOLS
   ============================================================ */
.products-section {
  background: #0f172a;
  /* Dark slate */
  color: #f8fafc;
}

.products-section .section-title {
  color: #ffffff;
}

.products-section .section-subtitle {
  color: #94a3b8;
}

.products-section .section-label {
  color: var(--accent-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.product-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border-color: #475569;
}

.product-card.os {
  border-left: 4px solid #38bdf8;
  background: linear-gradient(145deg, #1e293b 0%, #151e2e 100%);
}

.product-card.os:hover {
  border-color: #38bdf8;
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.15);
}

.product-card.pro {
  background: linear-gradient(145deg, #1e293b 0%, #172033 100%);
  border: 1px solid var(--border-accent);
}

.product-card.pro:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 15px 35px rgba(233, 115, 22, 0.15);
}

.product-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-header {
  margin-bottom: 1rem;
}

.product-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.product-badge.os {
  background: rgba(2, 132, 199, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.product-badge.pro {
  background: rgba(233, 115, 22, 0.15);
  color: var(--accent-secondary);
  border: 1px solid rgba(233, 115, 22, 0.3);
}

.product-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.product-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-light {
  border-color: #475569;
  color: #cbd5e1;
}

.btn-light:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(2, 132, 199, 0.1);
}

.product-image-container {
  background: #0f172a;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.product-image-container::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 3rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.product-card:hover .product-image-container::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.product-screenshot {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.product-card:hover .product-screenshot {
  transform: scale(1.03);
  filter: brightness(0.6);
}

.newsletter-form {
  margin-top: auto;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #475569;
  background: #0f172a;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.inline-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
#experience {
  background: var(--bg-secondary);
}

.projects-timeline {
  margin-top: 2.5rem;
  position: relative;
}

.projects-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--border-subtle), transparent);
}

.project-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 2.5rem;
}

.project-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2.5px solid var(--accent-primary);
  z-index: 1;
  transition: var(--transition-fast);
}

.project-item:hover::before {
  background: var(--accent-primary);
}

.project-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.project-client {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.project-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.project-description ul {
  list-style: none;
  margin-top: 0.4rem;
}

.project-description li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.project-description li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.8rem;
}

.project-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-glow);
  border: 1px solid rgba(2, 132, 199, 0.15);
  padding: 2px 9px;
  border-radius: 4px;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials {
  background: var(--bg-primary);
}

.testimonials-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-accent) transparent;
}

.testimonials-grid::-webkit-scrollbar {
  height: 6px;
}

.testimonials-grid::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials-grid::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.testimonial-card {
  flex: 0 0 450px;
  max-width: 85vw;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

.testimonial-stars {
  color: var(--accent-primary);
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.testimonial-text::before {
  content: '"';
  font-size: 2.5rem;
  color: var(--accent-primary);
  opacity: 0.25;
  line-height: 0;
  display: block;
  margin-bottom: 0.4rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-author-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-author-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   ACADEMIC
   ============================================================ */
#academic {
  background: var(--bg-secondary);
}

.academic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.academic-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.academic-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.academic-card h3 .icon {
  font-size: 1.2rem;
}

.education-item {
  margin-bottom: 1.1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-primary);
}

.education-item h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.education-item .grade {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-primary);
}

.education-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.publication-item {
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.publication-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.publication-item .journal {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-bottom: 3px;
}

.publication-item .title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   SKILLS
   ============================================================ */
#skills {
  background: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  box-shadow: var(--shadow-sm);
}

.skill-category h3 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.8rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

.skill-badge:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(233, 115, 22, 0.05);
}

.skill-badge.highlight {
  color: var(--accent-primary);
  border-color: var(--border-accent);
  background: rgba(233, 115, 22, 0.06);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  padding-bottom: 80px;
  background: var(--bg-secondary);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.contact-method:hover {
  color: var(--accent-primary);
  border-color: var(--border-accent);
  background: rgba(233, 115, 22, 0.04);
}

.contact-method .icon {
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-card .cta-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.contact-card .cta-text {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  max-width: 340px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  background: var(--bg-primary);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.stagger-children .reveal:nth-child(1) {
  transition-delay: 0s;
}

.stagger-children .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.stagger-children .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.stagger-children .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    z-index: 99;
  }

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

  .nav-links a {
    font-size: 1.1rem;
  }

  .mobile-toggle {
    display: flex;
    z-index: 101;
  }

  .hero-stats {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

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

  .project-header-flex {
    grid-template-areas:
      "period"
      "logo"
      "client"
      "location";
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .client-logo-box {
    margin-bottom: 6px;
    margin-top: 4px;
  }

  .project-period, .project-client, .project-location {
    margin: 0;
  }

  .client-logo-box img {
    max-height: 28px; /* scale down slightly on mobile */
  }
  
  .client-logo-box.logo-ufz img {
    max-height: 50px;
  }

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

  .services-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

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

  .hero-description-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .burst-star-wrapper {
    margin-top: 0;
  }

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

  .btn {
    width: 100%;
    justify-content: center;
  }

  .inline-form {
    flex-direction: column;
  }
}

/* ============================================================
   LIGHTBOX OVERLAY
   ============================================================ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.visible .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  font-size: 3.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent-primary);
}

/* ============================================================
   SUBSCRIBE MODAL
   ============================================================ */
.subscribe-modal-content {
  background: #1e293b;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid #334155;
}

.stacked-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #cbd5e1;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.3);
}

/* OS Tabs Styles */
.os-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 8px;
  margin-top: 1rem;
  width: 100%;
}
.os-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.os-tab:hover {
  color: var(--text-primary);
}
.os-tab.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.os-tab-content {
  display: none;
}
.os-tab-content.active {
  display: block;
}

/* --- Dropdown for CV --- */
.dropdown {
  position: relative;
  display: inline-flex;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 170px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: 6px;
  z-index: 100;
  margin-top: 0;
  overflow: hidden;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: flex;
  flex-direction: column;
}
.dropdown-item {
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-sans);
  text-align: left;
}
.dropdown-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

/* --- Next Section Link --- */
.next-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  margin-left: 6px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.next-link:hover {
  color: var(--accent-secondary);
  transform: translateX(6px);
}

/* ============================================================
   CLIENT LOGOS
   ============================================================ */
.project-header-flex {
  display: grid;
  grid-template-areas:
    "period logo"
    "client logo"
    "location logo";
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0 15px;
  margin-bottom: 0.8rem;
}

.project-period { grid-area: period; }
.project-client { grid-area: client; margin: 0; padding-bottom: 2px;}
.project-location { grid-area: location; }
.client-logo-box { grid-area: logo; align-self: start; }

.client-logo-box {
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  box-shadow: var(--shadow-sm);
}

a.client-logo-box {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

a.client-logo-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.client-logo-box img {
  max-height: 34px;
  max-width: 140px;
  object-fit: contain;
}

.testimonial-avatar-logo {
  background: white;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

a.testimonial-avatar-logo {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

a.testimonial-avatar-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.testimonial-avatar-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Specific Logo Overrides */
.client-logo-box.logo-ufz,
.testimonial-avatar-logo.logo-ufz {
  padding: 0 8px;
  overflow: hidden;
}

.client-logo-box.logo-ufz img {
  max-height: 80px;
  max-width: 240px;
}

.client-logo-box.logo-varian,
.testimonial-avatar-logo.logo-varian {
  padding: 0 8px;
  overflow: hidden;
}

.client-logo-box.logo-varian img {
  max-height: 54px;
}

.client-logo-box.logo-dewpoint {
  background: #581376;
  padding: 4px 12px;
}

.client-logo-box.logo-dewpoint img {
  max-width: 180px;
  max-height: 46px;
}

.client-logo-box.logo-transparent,
.testimonial-avatar-logo.logo-transparent {
  background: transparent;
  box-shadow: none;
}

a.client-logo-box.logo-transparent:hover,
a.testimonial-avatar-logo.logo-transparent:hover {
  box-shadow: none;
}