/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --navy:      #0f1c2e;
  --navy-mid:  #162436;
  --navy-light:#1e3050;
  --gold:      #c9a84c;
  --gold-light:#e0c06a;
  --white:     #f5f7fa;
  --white-dim: #cdd5e0;
  --text:      #334155;
  --text-light:#64748b;
  --bg:        #f8fafc;
  --bg-alt:    #f1f5f9;
  --border:    #e2e8f0;
  --shadow:    0 4px 24px rgba(15,28,46,0.08);
  --shadow-lg: 0 12px 48px rgba(15,28,46,0.14);
  --radius:    10px;
  --transition: all 0.3s ease;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ===========================
   NAVBAR
=========================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,28,46,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--white-dim);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
=========================== */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(30,48,80,0.8) 0%, transparent 60%);
}

/* Subtle grid pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 2rem 4rem;
  max-width: 760px;
  animation: heroFadeIn 1s ease forwards;
}

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

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 6px rgba(201,168,76,0.1);
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
#hero h1 span { color: var(--gold); }

.hero-tagline {
  color: var(--white-dim);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(245,247,250,0.3);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

.hero-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--white-dim);
  font-size: 0.875rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white-dim);
  transition: color 0.2s;
}
.linkedin-link:hover { color: var(--gold); }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.75rem;
}

.section-sub {
  color: var(--text-light);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ===========================
   ABOUT
=========================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.lang-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}
.lang-name { font-weight: 500; font-size: 0.9rem; }
.lang-level {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.lang-level.native { background: var(--navy); color: var(--gold); }
.lang-level.professional { background: rgba(201,168,76,0.12); color: var(--gold); }
.lang-level.b1 { background: var(--border); color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.15);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--white-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===========================
   SKILLS
=========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.skill-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.skill-group:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.skill-group-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.skill-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
}
.skill-group ul { display: flex; flex-direction: column; gap: 0.5rem; }
.skill-group li {
  font-size: 0.875rem;
  color: var(--text-light);
  padding-left: 1rem;
  position: relative;
}
.skill-group li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.15em;
}

/* ===========================
   TIMELINE
=========================== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.45rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold);
}

.timeline-date {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.timeline-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow);
}

.timeline-header { margin-bottom: 1rem; }
.timeline-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.company {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.timeline-points {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.timeline-points li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.6;
}
.timeline-points li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===========================
   TAGS
=========================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  background: rgba(201,168,76,0.1);
  color: #8a6820;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.25);
}

/* ===========================
   PROJECTS
=========================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.project-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.project-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.project-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ===========================
   CERTIFICATIONS
=========================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.cert-card:hover {
  border-color: rgba(201,168,76,0.4);
  box-shadow: var(--shadow);
}
.cert-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(201,168,76,0.06), var(--white));
}
.cert-badge {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}
.cert-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.cert-issuer {
  font-size: 0.775rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===========================
   EDUCATION
=========================== */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.edu-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  transition: var(--transition);
}
.edu-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}
.edu-year {
  font-size: 0.775rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  min-width: 90px;
  padding-top: 0.2rem;
}
.edu-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.edu-degree {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.edu-field {
  font-size: 0.875rem;
  color: var(--text-light);
}
.edu-uni {
  font-size: 0.825rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===========================
   CONTACT
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.2s;
}
a.contact-item:hover { color: var(--gold); }
.contact-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  display: none;
}
.form-status.success {
  display: block;
  background: rgba(16,185,129,0.1);
  color: #065f46;
  border: 1px solid rgba(16,185,129,0.3);
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  color: #991b1b;
  border: 1px solid rgba(239,68,68,0.3);
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--navy);
  padding: 3rem 0;
  border-top: 1px solid rgba(201,168,76,0.2);
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.825rem;
  color: var(--white-dim);
}
.footer-linkedin {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.footer-linkedin:hover { border-color: var(--gold); }
.footer-copy {
  font-size: 0.775rem;
  color: rgba(205,213,224,0.4);
  margin-top: 0.5rem;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { order: -1; grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    padding: 1rem 2rem 2rem;
    border-top: 1px solid rgba(201,168,76,0.15);
  }
  .nav-links.open a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
  }
  .hamburger { display: flex; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .edu-card { flex-direction: column; gap: 0.5rem; }
  .timeline { padding-left: 1rem; }
  .timeline-item { padding-left: 1.25rem; }
  .timeline-dot { left: -1.5rem; }
}

@media (max-width: 500px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .contact-form { padding: 1.5rem; }
  .about-stats { grid-template-columns: repeat(2,1fr); }
}

/* ===========================
   LANGUAGE SWITCHER
=========================== */
.lang-switcher {
  position: relative;
  margin-right: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 6px;
  color: var(--white-dim);
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.lang-btn:hover {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
}
.lang-btn span { letter-spacing: 0.05em; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  min-width: 160px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 200;
}
.lang-dropdown.open {
  opacity: 1;
  transform: none;
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: none;
  border: none;
  color: var(--white-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: left;
}
.lang-option:hover {
  background: rgba(201,168,76,0.08);
  color: var(--white);
}
.lang-option.active {
  color: var(--gold);
  background: rgba(201,168,76,0.1);
}
.lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gold);
}
.lang-flag { font-size: 1.1rem; }
.lang-label { flex: 1; font-weight: 500; }
.lang-code {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-light);
  opacity: 0.6;
}
.lang-option.active .lang-code { opacity: 1; color: var(--gold); }

@media (max-width: 768px) {
  .lang-switcher { margin-right: 0.25rem; }
  .lang-dropdown { right: 0; }
}

/* Project live link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201,168,76,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.project-link:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ===========================
   NAVBAR LOGO IMAGE
=========================== */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0;
}
.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: brightness(1);
  transition: opacity 0.2s;
}
.nav-logo-img:hover { opacity: 0.85; }

/* ===========================
   HERO — SPLIT LAYOUT
=========================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: 1100px;
  padding: 7rem 2rem 4rem;
  text-align: left;
  animation: heroFadeIn 1s ease forwards;
}

/* Left text column */
.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text .hero-eyebrow { text-align: left; }
.hero-text h1            { text-align: left; }
.hero-text .hero-tagline { text-align: left; margin-left: 0; margin-right: 0; }
.hero-text .hero-cta     { justify-content: flex-start; }
.hero-text .hero-meta    { justify-content: flex-start; }

/* Right photo column */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 380px;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  border: 2px solid rgba(201,168,76,0.3);
}

/* Decorative gold ring behind photo */
.hero-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  border: 2px solid rgba(201,168,76,0.2);
  z-index: 1;
}
.hero-photo-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 28px;
  border: 1px solid rgba(201,168,76,0.08);
}

/* Logo badge on bottom-left of photo */
.hero-photo-badge {
  position: absolute;
  bottom: -16px;
  left: -16px;
  z-index: 3;
  background: var(--navy-mid);
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 14px;
  padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.hero-badge-logo {
  height: 42px;
  width: auto;
  display: block;
  filter: brightness(1.1);
}

/* ===========================
   FOOTER LOGO IMAGE
=========================== */
.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  margin-bottom: 0.25rem;
  filter: brightness(1.1);
}

/* ===========================
   RESPONSIVE — HERO
=========================== */
@media (max-width: 860px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2.5rem;
    padding-top: 6rem;
  }
  .hero-photo-wrap {
    width: 220px;
    height: 260px;
    margin: 0 auto;
  }
  .hero-text .hero-eyebrow,
  .hero-text h1,
  .hero-text .hero-tagline { text-align: center; }
  .hero-text .hero-cta  { justify-content: center; }
  .hero-text .hero-meta { justify-content: center; }
  .hero-photo-badge { bottom: -12px; left: -12px; }
  .hero-badge-logo  { height: 32px; }
}

@media (max-width: 500px) {
  .hero-photo-wrap { width: 180px; height: 215px; }
}

/* ===========================
   AVATAR PHOTO — circle, same size as MM avatar
=========================== */
.avatar-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.1);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Restore centered hero layout */
.hero-content {
  display: block;
  text-align: center;
  padding: 7rem 2rem 4rem;
  max-width: 760px;
  margin: 0 auto;
  animation: heroFadeIn 1s ease forwards;
}
.hero-text { flex: unset; }
.hero-text .hero-eyebrow,
.hero-text h1,
.hero-text .hero-tagline { text-align: center; }
.hero-text .hero-cta  { justify-content: center; }
.hero-text .hero-meta { justify-content: center; }

/* ===========================
   SCROLL TO TOP BUTTON
=========================== */
#scrollTop {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-mid);
  border: 1.5px solid rgba(201,168,76,0.4);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

#scrollTop:hover {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(201,168,76,0.35);
}
#scrollTop:hover .scroll-arrow { stroke: var(--navy); }
#scrollTop:hover .scroll-ring  { stroke: var(--gold); }

/* SVG ring + arrow */
.scroll-top-svg {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 0; left: 0;
  transform: rotate(-90deg);
}
.scroll-ring {
  fill: none;
  stroke: rgba(201,168,76,0.25);
  stroke-width: 2;
  stroke-dasharray: 138;
  stroke-dashoffset: 138;
  transition: stroke-dashoffset 0.1s linear, stroke 0.2s;
}
.scroll-arrow {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.2s;
}

/* Bounce animation on the arrow */
#scrollTop .arrow-wrap {
  position: relative;
  z-index: 1;
  animation: arrowBounce 1.8s ease infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-3px); }
}

@media (max-width: 600px) {
  #scrollTop { bottom: 1.5rem; right: 1.5rem; width: 42px; height: 42px; }
  .scroll-top-svg { width: 42px; height: 42px; }
}

/* Telegram & Viber colored icons */
.contact-icon-telegram { background: #229ED9 !important; color: #fff !important; }
.contact-icon-viber    { background: #7360F2 !important; color: #fff !important; }
.contact-telegram:hover { color: #229ED9; }
.contact-viber:hover    { color: #7360F2; }
.contact-icon-linkedin {
  background: #0A66C2 !important;
  color: #fff !important;
}

.contact-linkedin:hover {
  color: #0A66C2;
}
