/* ==========================================================
   styles.css — Corporate Portfolio Styles
   Palette: Navy (#0A1628), Charcoal (#2D3748), White (#FFFFFF)
   Accents: Slate (#64748B), Light Gray (#F1F5F9)
   ========================================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --color-navy: #0A1628;
  --color-charcoal: #2D3748;
  --color-slate: #64748B;
  --color-light: #F1F5F9;
  --color-white: #FFFFFF;
  --color-accent: #1E3A5F;
  --color-accent-hover: #2B4F7E;
  --color-border: #E2E8F0;
  --color-text-primary: #1A202C;
  --color-text-secondary: #4A5568;
  --color-text-muted: #718096;

  --font-heading: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max-width: 1120px;
  --nav-height: 64px;
  --section-padding: 96px 24px;
  --transition: 0.3s ease;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
  --color-navy: #0D1B2A;
  --color-charcoal: #1B2838;
  --color-slate: #94A3B8;
  --color-light: #1E293B;
  --color-white: #0F172A;
  --color-accent: #3B82F6;
  --color-accent-hover: #60A5FA;
  --color-border: #334155;
  --color-text-primary: #F1F5F9;
  --color-text-secondary: #CBD5E1;
  --color-text-muted: #94A3B8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ---- Utility ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

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

/* ---- Fade-in Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 80, 80, 0.5));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.nav-logo-img:hover {
  filter: drop-shadow(0 0 14px rgba(255, 80, 80, 0.8));
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .nav-logo-img {
    height: 42px;
  }
}

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

.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background-color var(--transition);
}

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

/* Dark Mode Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  font-size: 1.125rem;
  transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.theme-toggle:hover {
  background-color: var(--color-light);
  color: var(--color-text-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
  transition: border-color var(--transition);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
  }
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  padding: 140px 24px 96px;
  background-color: var(--color-white);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding: 6px 12px;
  background-color: var(--color-light);
  border-radius: 4px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-summary {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-navy);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
  text-decoration: none;
}

[data-theme="dark"] .hero-cta {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

.hero-cta:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  color: #FFFFFF;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 340px;
  height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--color-border);
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 24px 64px;
    min-height: auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .hero-image {
    width: 200px;
    height: 200px;
  }

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

/* ==========================================================
   SECTION COMMON
   ========================================================== */
section {
  padding: var(--section-padding);
}

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

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

.alt-bg {
  background-color: var(--color-light);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about-content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

[data-theme="dark"] .about-highlights {
  background-color: var(--color-charcoal);
}

.about-highlights h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.about-highlights ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.about-highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

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

/* ==========================================================
   EXPERTISE
   ========================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.expertise-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

[data-theme="dark"] .expertise-card {
  background-color: var(--color-charcoal);
}

.expertise-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.expertise-card > p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.expertise-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expertise-card li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.expertise-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

@media (max-width: 960px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   EXPERIENCE (Timeline)
   ========================================================== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--color-accent);
  border: 3px solid var(--color-light);
  border-radius: 50%;
  z-index: 1;
}

[data-theme="dark"] .timeline-dot {
  border-color: var(--color-charcoal);
}

.timeline-header {
  margin-bottom: 12px;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.timeline-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.timeline-meta .separator {
  color: var(--color-border);
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

@media (max-width: 600px) {
  .timeline-meta {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .timeline-meta .separator {
    display: none;
  }
}

/* ==========================================================
   PROJECTS
   ========================================================== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}

[data-theme="dark"] .filter-btn {
  background-color: var(--color-charcoal);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: #FFFFFF;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .project-card {
  background-color: var(--color-charcoal);
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.project-card > p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-outcomes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-outcomes li {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.project-outcomes li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.75rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background-color: var(--color-light);
  color: var(--color-text-muted);
  border-radius: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.project-link:hover {
  color: var(--color-accent-hover);
}

.project-card.hidden {
  display: none;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.contact-info > p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

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

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

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

.contact-link-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background-color: var(--color-charcoal);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}

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

.form-group .error-msg {
  font-size: 0.75rem;
  color: #DC2626;
  display: none;
}

.form-group.invalid .error-msg {
  display: block;
}

.form-group.invalid input,
.form-group.invalid textarea {
  border-color: #DC2626;
}

.form-submit {
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFFFFF;
  background-color: var(--color-navy);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition);
  align-self: flex-start;
}

[data-theme="dark"] .form-submit {
  background-color: var(--color-accent);
}

.form-submit:hover {
  background-color: var(--color-accent-hover);
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-submit {
    width: 100%;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  padding: 40px 24px;
  background-color: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8125rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.footer-links svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Certifications card header */
.cert-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cert-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- CV Viewer ---- */

.cv-viewer-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: var(--card-bg);
  margin-bottom: 20px;
}

.cv-iframe {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: none;
  display: block;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity var(--transition);
  margin-bottom: 8px;
}

.cv-download-btn:hover {
  opacity: 0.85;
}

.cv-download-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cv-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}

.cv-fallback-icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.35;
}

.cv-fallback p {
  margin: 0;
  font-size: 1rem;
}

.cv-fallback-hint {
  font-size: 0.85rem !important;
  font-family: monospace;
  background: var(--border);
  padding: 6px 14px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .cv-iframe {
    height: 60vh;
    min-height: 400px;
  }
}

/* ---- Contact Clock ---- */

.contact-clock {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.clock-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.clock-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.clock-time {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.clock-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Form success state ---- */

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--text-primary);
}

.form-success svg {
  width: 52px;
  height: 52px;
  color: #22c55e;
  margin-bottom: 8px;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.form-success p {
  color: var(--text-muted);
  margin: 0;
}

/* ---- CV Viewer ---- */

.cv-viewer-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: var(--card-bg);
  margin-bottom: 20px;
}

.cv-iframe {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  border: none;
  display: block;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity var(--transition);
  margin-bottom: 8px;
}

.cv-download-btn:hover {
  opacity: 0.85;
}

.cv-download-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cv-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}

.cv-fallback-icon svg {
  width: 56px;
  height: 56px;
  opacity: 0.35;
}

.cv-fallback p {
  margin: 0;
  font-size: 1rem;
}

.cv-fallback-hint {
  font-size: 0.85rem !important;
  font-family: monospace;
  background: var(--border);
  padding: 6px 14px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .cv-iframe {
    height: 60vh;
    min-height: 400px;
  }
}

/* ---- Contact Clock ---- */

.contact-clock {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.clock-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.clock-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.clock-time {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.clock-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- Form success state ---- */

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  color: var(--text-primary);
}

.form-success svg {
  width: 52px;
  height: 52px;
  color: #22c55e;
  margin-bottom: 8px;
}

.form-success h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.form-success p {
  color: var(--text-muted);
  margin: 0;
}

/* ---- CV PIN Gate ---- */

.cv-pin-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 16px;
}

.cv-pin-icon svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.85;
}

.cv-pin-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.cv-pin-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.cv-pin-input-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cv-pin-box {
  width: 56px;
  height: 64px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  caret-color: transparent;
}

.cv-pin-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cv-pin-error {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 20px;
  margin: 0;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.cv-pin-shake {
  animation: pinShake 0.5s ease;
  border-color: #ef4444 !important;
}

@media (max-width: 480px) {
  .cv-pin-box {
    width: 48px;
    height: 56px;
    font-size: 1.25rem;
  }
}

/* ---- CV PIN Gate ---- */

.cv-pin-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  text-align: center;
  gap: 16px;
}

.cv-pin-icon svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.85;
}

.cv-pin-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.cv-pin-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.cv-pin-input-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.cv-pin-box {
  width: 56px;
  height: 64px;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  caret-color: transparent;
}

.cv-pin-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cv-pin-error {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 20px;
  margin: 0;
}

@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

.cv-pin-shake {
  animation: pinShake 0.5s ease;
  border-color: #ef4444 !important;
}

@media (max-width: 480px) {
  .cv-pin-box {
    width: 48px;
    height: 56px;
    font-size: 1.25rem;
  }
}

/* ============================================================
   COOL ANIMATIONS
   ============================================================ */

/* ---- Hero staggered entrance ---- */
.hero-label   { animation: heroFadeIn 1.0s ease 0.1s both; }
.hero-name    { animation: heroFadeIn 1.0s ease 0.25s both; }
.hero-title   { animation: heroFadeIn 1.0s ease 0.4s both; }
.hero-headline{ animation: heroFadeIn 1.0s ease 0.55s both; }
.hero-summary { animation: heroFadeIn 1.0s ease 0.7s both; }
.hero-cta     { animation: heroFadeIn 1.0s ease 0.85s both; }

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Calm breathing profile image ---- */
.hero-image-wrapper {
  animation: heroImageIn 1.2s ease 0.4s both;
  will-change: transform, opacity;
}

.hero-image {
  animation: breathe 7s ease-in-out infinite;
}

@keyframes heroImageIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1);    box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
  50%       { transform: scale(1.018); box-shadow: 0 16px 48px rgba(0,0,0,0.16); }
}

/* ---- Gradient shimmer on name ---- */
.hero-name {
  background: linear-gradient(
    120deg,
    var(--color-text-primary) 0%,
    var(--color-text-primary) 40%,
    var(--color-accent) 50%,
    var(--color-text-primary) 60%,
    var(--color-text-primary) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 5s ease-in-out infinite 1.5s;
}

@keyframes nameShimmer {
  0%, 70%, 100% { background-position: 0% 0%; }
  35%            { background-position: 100% 0%; }
}

/* ---- Expertise / project cards: lift on hover ---- */
.expertise-card,
.project-card {
  transition: transform 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease !important;
}

.expertise-card:hover,
.project-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-color: var(--color-accent) !important;
}

/* ---- Experience cards: slide-in left border ---- */
.experience-card {
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, var(--color-accent), #818cf8);
  transition: height 0.4s cubic-bezier(0.16,1,0.3,1);
  border-radius: 0 0 0 0;
}

.experience-card:hover::before {
  height: 100%;
}

/* ---- Contact links: slide-right on hover ---- */
.contact-link-item {
  transition: transform 0.25s ease, color 0.25s ease !important;
}

.contact-link-item:hover {
  transform: translateX(6px);
}

/* ---- Nav links: underline slide-in ---- */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}

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

/* ---- CTA button: ripple pulse ---- */
.hero-cta {
  position: relative;
  overflow: hidden;
}

.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: inherit;
}

.hero-cta:hover::after {
  transform: scaleX(1);
}

/* ---- Section titles: accent underline draw ---- */
.section-title {
  position: relative;
  display: block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #818cf8);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}

.section-header.visible .section-title::after {
  width: 60px;
}

/* ---- Clock: calm fade on seconds ---- */
.clock-time {
  transition: opacity 0.3s ease;
}

.clock-time.tick {
  animation: none;
}

@keyframes clockTick {
  0%   { opacity: 1; }
  50%  { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ---- Fade-in: varied directions per element ---- */
.fade-in-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---- Page load: smooth body reveal ---- */
@keyframes pageReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageReveal 0.4s ease both;
}

/* ---- Respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-label, .hero-name, .hero-title, .hero-headline,
  .hero-summary, .hero-cta, .hero-image-wrapper,
  .hero-image, body {
    animation: none !important;
  }
  .expertise-card:hover, .project-card:hover {
    transform: none;
  }
}

/* ============================================================
   PARTICLE CANVAS
   ============================================================ */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero {
  position: relative;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.fab-group {
  position: fixed;
  bottom: 32px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fab-group.fab-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.fab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              padding 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
}

.fab-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fab-label {
  max-width: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.3s ease;
  opacity: 0;
  white-space: nowrap;
}

.fab-btn:hover .fab-label {
  max-width: 160px;
  opacity: 1;
}

.fab-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}

.fab-linkedin { background: #0077b5; }
.fab-linkedin:hover { background: #005f96; }

.fab-meet { background: #10b981; }
.fab-meet:hover { background: #059669; }

@media (max-width: 480px) {
  .fab-group { bottom: 20px; right: 16px; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--color-navy);
  padding: 40px 24px;
}

[data-theme="dark"] .stats-bar {
  background: #1e293b;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 600px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ============================================================
   ACHIEVEMENT BADGES
   ============================================================ */
.achievements-wrapper {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.achievements-heading {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 32px;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.achievement-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease;
  cursor: default;
}

[data-theme="dark"] .achievement-badge {
  background: var(--color-card);
}

.achievement-badge:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.badge-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.badge-year {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
}

/* ============================================================
   JOURNEY MAP
   ============================================================ */
#journey {
  padding: 80px 0;
}

.journey-map-wrap {
  margin-top: 8px;
}

.journey-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.map-bg {
  position: relative;
  height: 320px;
  border-radius: 16px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

[data-theme="dark"] .map-bg {
  background: #1e293b;
}

.bd-map-svg {
  width: 100%;
  height: 100%;
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
}

.map-pin:hover .pin-dot {
  transform: scale(1.3);
}

.pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid;
  animation: pinPulse 2s ease-out infinite;
  opacity: 0;
}

@keyframes pinPulse {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.8; }
  100% { transform: translate(-50%,-50%) scale(2);   opacity: 0; }
}

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 10;
}

.pin-tooltip strong {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 2px;
}

.pin-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-navy);
}

.map-pin:hover .pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Journey timeline */
.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.journey-stop {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.journey-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

.journey-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.journey-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.journey-org {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.journey-date {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .journey-map { grid-template-columns: 1fr; }
  .map-bg { height: 220px; }
}


/* ============================================================
   CV ACCESS BUTTON & MODAL
   ============================================================ */

.cv-access-wrapper {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
}

.cv-access-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(135deg, var(--color-navy), var(--color-accent));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
}

.cv-access-btn svg {
  width: 18px;
  height: 18px;
}

.cv-access-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(59,130,246,0.4);
}

/* Modal overlay */
.cv-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.cv-modal.cv-modal-open {
  opacity: 1;
  pointer-events: all;
}

.cv-modal-inner {
  background: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 860px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  transform: scale(0.95) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

[data-theme="dark"] .cv-modal-inner {
  background: var(--color-card);
}

.cv-modal.cv-modal-open .cv-modal-inner {
  transform: scale(1) translateY(0);
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cv-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.cv-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-light);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.cv-modal-close:hover {
  background: var(--color-border);
  color: var(--color-text-primary);
}

.cv-modal-close svg {
  width: 18px;
  height: 18px;
}

.cv-modal-pin-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  gap: 14px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.cv-modal-iframe {
  width: 100%;
  flex: 1;
  min-height: 500px;
  border: none;
  display: block;
}

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px auto;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: #fff;
  background: var(--color-accent);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cv-download-btn svg {
  width: 16px;
  height: 16px;
}

.cv-download-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  color: #fff;
}

@media (max-width: 600px) {
  .cv-modal-iframe { min-height: 380px; }
}
