/*
Theme Name: Sourav Portfolio
Author: Antigravity
Description: A premium, modern portfolio for an AWS Cloud Architect.
Version: 6.0
*/

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --bg: #f5f4f0;
  --fg: #0e0e0e;
  --accent: #0052ff;
  --accent2: #00c896;
  --muted: #888;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --radius: 20px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

/* ============================================
   NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  background: rgba(245, 244, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--fg) !important;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--fg);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-btn-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5px;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO — Bazil-style exact layout
   ============================================ */
#hero {
  display: flex;
  height: 100vh;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 160px 60px 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-greeting {
  position: relative;
  z-index: 5;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-greeting span {
  font-size: 20px;
}

/* Typography wrapper */
.hero-type-wrap {
  text-align: left;
  /* Pushed to left as requested */
  margin-top: 40px;
  z-index: 2;
  width: 100%;
  max-width: 65%;
  /* Restricting width to avoid right-side overlap */
}

.hero-row {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -4px;
  display: block;
  opacity: 0;
}

/* Row 1: "Solution Architect" — solid filled */
.hero-row-1 {
  font-size: clamp(50px, 7vw, 110px);
  /* Scaled down to prevent overlap while keeping impact */
  color: var(--fg);
  animation: fadeUp 0.7s 0.3s forwards;
  margin-bottom: 4px;
}

/* Row 2: "& Cloud Expert" — original soft gray fill, kept on one line */
.hero-row-2 {
  font-size: clamp(50px, 7vw, 110px);
  color: rgba(14, 14, 14, 0.12);
  /* Reverted to solid gray */
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-row .amp {
  color: var(--accent);
}

/* Portrait: absolute, bottom-right */
.hero-portrait-wrap {
  display: flex;
  position: absolute;
  bottom: 10%;
  right: 2%;
  /* Pushed to the right as requested */
  z-index: 3;
  width: 420px;
  /* Made slightly smaller as requested */
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  animation: fadeUp 1s 1s forwards;
}

.hero-portrait-wrap img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: bottom;
}

/* Restored bottom fade */
.hero-portrait-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--bg) 20%, transparent 100%);
  pointer-events: none;
}

/* Left Content Wrapper */
.hero-content-left {
  position: relative;
  z-index: 2;
  /* Lower z-index so the portrait appears visually in front */
  width: 60%;
  display: flex;
  flex-direction: column;
}

/* Action Area (Buttons + Meta) */
.hero-action-area {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

/* Meta Data (Location + Clients) */
.hero-meta-bottom {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hero-location {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-btns {
  display: flex;
  gap: 12px;

  /* Pushed slightly to the right */
}

.btn-hero-primary {
  background: var(--fg);
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--fg);
  transition: all 0.2s;
}

.btn-hero-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-hero-outline {
  background: transparent;
  color: var(--fg) !important;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--fg);
  transition: all 0.2s;
}

.btn-hero-outline:hover {
  background: var(--fg);
  color: #fff !important;
  transform: translateY(-2px);
}

.hero-clients {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
  /* Push client logos to the far right */
}

.client-logo {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #bbb;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.client-logo:hover {
  color: var(--fg);
}



/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--fg);
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0;
}

.stat-item {
  flex: 1;
  max-width: 240px;
  padding: 32px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--accent2);
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-wrap {
  overflow: hidden;
  background: var(--accent);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.marquee-item .dot {
  color: #fff;
  margin: 0 20px;
}

/* ============================================
   SECTION GENERIC
   ============================================ */
section {
  padding: 100px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

.full-divider {
  height: 1px;
  background: var(--border);
  margin: 0 60px;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-dash-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
  display: block;
}

.about-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.about-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.about-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.about-card-role {
  font-size: 13px;
  color: var(--muted);
}

/* Cloud stack box inside about card */
.cloud-stack-box {
  background: #f8f8f6;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.cloud-stack-label {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.cloud-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cs-tag {
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.cs-aws {
  background: #fff3e0;
  color: #e65100;
}

.cs-azure {
  background: #e3f2fd;
  color: #1565c0;
}

.cs-k8s {
  background: #e8f5e9;
  color: #2e7d32;
}

.cs-tf {
  background: #f3e5f5;
  color: #6a1b9a;
}

.cs-sec {
  background: #fff8e1;
  color: #f57f17;
}

.cs-fin {
  background: #fce4ec;
  color: #880e4f;
}

.cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.cert-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
}

.cert-pill.highlight {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.floating-badge {
  position: absolute;
  right: -20px;
  bottom: -20px;
  background: var(--fg);
  color: #fff;
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-badge .num {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  display: block;
}

.about-text p {
  font-size: 17px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.skill-tag {
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: default;
}

.skill-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   EXPERIENCE — TIMELINE
   ============================================ */
#experience {
  padding-top: 0;
}

.arch-visual {
  background: #0f1012;
  border-radius: 24px;
  padding: 60px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.arch-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(0, 82, 255, 0.15) 0%, rgba(0, 0, 0, 0) 60%);
  pointer-events: none;
  z-index: 0;
}

.arch-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 60px;
}

.arch-title {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.arch-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto;
}

.arch-diagram {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  gap: 20px;
}

/* Connecting dashed line */
.arch-diagram::before {
  content: '';
  position: absolute;
  top: 40px;
  /* Half of box height to center align with SVG */
  left: 60px;
  right: 60px;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.15) 50%, transparent 50%);
  background-size: 16px 2px;
  z-index: -1;
  animation: marchingAnts 1s linear infinite;
}

@keyframes marchingAnts {
  from {
    background-position: 0 0;
  }

  to {
    background-position: +16px 0;
  }
}

.arch-node-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 120px;
}

.arch-box {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.arch-box svg {
  width: 32px;
  height: 32px;
  color: #fff;
  transition: all 0.3s;
}

/* Glow effects */
.arch-box::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* Hover effects */
.arch-box:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.arch-box:hover::after {
  opacity: 1;
}

/* Specific colors */
.arch-box.sec:hover {
  box-shadow: 0 10px 40px rgba(255, 100, 100, 0.3);
}

.arch-box.sec:hover svg {
  color: #ff6464;
}

.arch-box.aws:hover {
  box-shadow: 0 10px 40px rgba(255, 153, 0, 0.3);
}

.arch-box.aws:hover svg {
  color: #ff9900;
}

.arch-box.k8s:hover {
  box-shadow: 0 10px 40px rgba(50, 150, 255, 0.3);
}

.arch-box.k8s:hover svg {
  color: #3296ff;
}

.arch-box.db:hover {
  box-shadow: 0 10px 40px rgba(0, 200, 150, 0.3);
}

.arch-box.db:hover svg {
  color: #00c896;
}

.arch-box.ci:hover {
  box-shadow: 0 10px 40px rgba(180, 80, 255, 0.3);
}

.arch-box.ci:hover svg {
  color: #b450ff;
}

.arch-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  text-align: center;
  transition: color 0.3s;
}

.arch-node-group:hover .arch-label {
  color: #fff;
}

.timeline {
  margin-top: 50px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 32px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.timeline-content:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}

.client-logo-img {
  max-height: 24px;
  width: auto;
  filter: grayscale(1) opacity(0.5);
  transition: all 0.3s ease;
}

.client-logo-img:hover {
  filter: grayscale(0) opacity(1);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.timeline-company {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.timeline-period {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
}

.timeline-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

/* ============================================
   PROJECTS
   ============================================ */
#projects .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 50px;
}

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

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover::before {
  opacity: 0.04;
}

.project-card:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  color: inherit;
}

.project-card:first-child {
  grid-column: span 2;
}

.project-num {
  font-family: 'Syne', sans-serif;
  font-size: 60px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  position: absolute;
  top: 20px;
  right: 30px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
}

.project-tag {
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.2;
  position: relative;
}

.project-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 24px;
  position: relative;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
  position: relative;
}

.project-link:hover {
  gap: 10px;
}

/* ============================================
   CERTIFICATIONS — Real badge images
   ============================================ */
#certifications {
  padding-top: 100px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.cert-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-decoration: none !important;
  color: inherit;
  text-align: center;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 82, 255, 0.1);
  transform: translateY(-4px);
  color: inherit;
}

.cert-card-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.cert-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.cert-badge-pill {
  display: inline-block;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

.view-all-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* ============================================
   CTA / CONTACT
   ============================================ */
#contact {
  max-width: 100%;
  padding: 0;
  background: var(--fg);
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.cta-text {
  flex: 1;
}

.cta-text .section-tag {
  color: var(--accent2);
}

.cta-text .section-tag::before {
  background: var(--accent2);
}

.cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  line-height: 1.05;
}

.cta-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  max-width: 400px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-cta-primary {
  background: var(--accent);
  color: #fff !important;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
}

.btn-cta-primary:hover {
  background: #0041d4;
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-cta-outline {
  background: transparent;
  color: #fff !important;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #080808;
  color: rgba(255, 255, 255, 0.4);
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-icon {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a:hover .footer-icon {
  opacity: 1;
}

/* ============================================
   PAGE CONTENT (inner pages)
   ============================================ */
.page-content {
  padding: 120px 60px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
  text-decoration: none;
  transition: all 0.2s;
}

.back-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 82, 255, 0.1);
}

.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
}

/* Badges grid for certification page */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s;
  text-decoration: none;
}

.badge-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 82, 255, 0.1);
  border-color: var(--accent);
}

.badge-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.badge-item .badge-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

.badge-item:hover .badge-name {
  color: var(--accent);
}

/* Single project page */
.content-wrapper {
  font-size: 16px;
  color: #444;
  line-height: 1.8;
}

.content-wrapper h2,
.content-wrapper h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--fg);
}

.content-wrapper ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.content-wrapper li {
  margin-bottom: 10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s, transform 0.7s;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {

  .hero-row-1,
  .hero-row-2 {
    font-size: clamp(56px, 9vw, 110px) !important;
  }

  .hero-portrait-wrap {
    width: 340px;
  }

  #about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-greeting {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .site-nav {
    padding: 16px 24px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 80px 32px 32px;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  #navCtaDesktop {
    display: none;
  }

  section {
    padding: 70px 24px;
  }

  #hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 24px 60px;
    display: flex;
    flex-direction: column;
  }

  .hero-content-left {
    display: contents;
    /* Allows children to participate in #hero flex container */
  }

  .hero-greeting {
    order: 1;
    justify-content: center;
  }

  .hero-type-wrap {
    order: 2;
    text-align: center;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .hero-portrait-wrap {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 20px auto 0;
    left: 5%;

    order: 3;
    /* Portrait below text */
  }

  .hero-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
    text-align: center;
    width: 100%;
    order: 4;
    /* Buttons below portrait */
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    gap: 12px;
  }

  .hero-meta-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn-hero-primary,
  .btn-hero-outline {
    width: 100%;
    text-align: center;
    padding: 15px 20px;
  }

  .hero-location {
    font-size: 15px;
    text-align: center;
    color: var(--muted);
    order: 2;
    /* Location below buttons */
  }

  .hero-clients {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    opacity: 0.5;
  }

  .client-logo {
    font-size: 10px;
  }

  .arch-visual {
    padding: 40px 20px;
  }

  .arch-diagram {
    flex-direction: column;
    gap: 40px;
  }

  .arch-diagram::before {
    top: 40px;
    bottom: 40px;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 50%, transparent 50%);
    background-size: 2px 16px;
    animation: marchingAntsVertical 1s linear infinite;
  }

  /* Restored layout adjustments */
  #about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .project-card:first-child {
    grid-column: span 1;
  }

  .cta-inner {
    flex-direction: column;
    padding: 60px 24px;
  }

  .stats-bar {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 50%;
  }

  .site-footer {
    flex-direction: column;
    gap: 16px;
    padding: 28px 24px;
    text-align: center;
  }

  .full-divider {
    margin: 0 24px;
  }

  .page-content {
    padding: 100px 24px 60px;
  }
}

@keyframes marchingAntsVertical {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 16px;
  }
}

@media (max-width: 600px) {

  .hero-row-1,
  .hero-row-2 {
    font-size: clamp(40px, 12vw, 70px) !important;
    letter-spacing: -2px;
  }

  .hero-row-2 {
    color: rgba(14, 14, 14, 0.4) !important;
    /* Higher contrast on mobile */
  }

  .hero-portrait-wrap {
    max-width: 320px;
    margin-top: -20px;
    transform: translateX(10px);
  }

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

  .stat-num {
    font-size: 32px;
  }

  .stat-item {
    padding: 20px;
  }

  .floating-badge {
    right: -10px;
    bottom: -10px;
  }
}