/* ===== FONTS ===== */
@font-face {
  font-family: 'Google Sans';
  src: url('../assets/fonts/GoogleSans.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Manrope';
  src: url('../assets/fonts/Manrope.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

/* ===== CSS VARIABLES ===== */
:root {
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-primary: #356029;
  --color-primary-light: #3560291a;
  --color-secondary: #a2c25b;
  --color-accent: #fd9e3f;
  --color-border: #e0e0e0;

  --font-heading: 'Google Sans', 'Manrope', sans-serif;
  --font-body: 'Google Sans', 'Manrope', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 14px rgba(53, 96, 41, 0.3);

  --max-width: 1100px;
  --section-padding: 5rem 1.5rem;
}

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

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0 1.5rem;
}

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

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.nav-lang a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
}

.nav-lang a.active {
  background: var(--color-primary);
  color: #fff;
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-adjectives {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-adjectives span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 0.4rem 1.2rem;
  border: 2px solid var(--color-secondary);
  border-radius: 50px;
  background: var(--color-primary-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.hero-scroll svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-light);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: #2a4d21;
  border-color: #2a4d21;
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== ABOUT ===== */
.about {
  background: var(--color-bg-alt);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-highlight {
  text-align: center;
  padding: 1.5rem;
}

.about-highlight .number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-highlight .label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.skill-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.skill-card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-card h3 {
  margin-bottom: 0.75rem;
}

.skill-card p {
  font-size: 0.95rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50px;
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

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

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: translateX(calc(-50% + 1px));
}

.timeline-item.current::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--color-bg-alt);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-card-body {
  padding: 1.5rem;
}

.project-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tech span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
}

.project-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(42, 77, 33, 0.4); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(42, 77, 33, 0); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(42, 77, 33, 0); }
}

/* ===== CONTACT ===== */
.contact {
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 1.5rem 0;
  word-break: break-all;
}

.contact-email:hover {
  color: var(--color-secondary);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.contact-links a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ===== AVAILABILITY BANNER ===== */
.availability-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a4d21 100%);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.availability-text {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}

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

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-alt);
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-weight: 500;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ===== LEGAL PAGES ===== */
.legal {
  padding-top: calc(70px + 3rem);
  padding-bottom: 3rem;
}

.legal .container {
  max-width: 800px;
}

.legal h1 {
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal p, .legal li {
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal a {
  text-decoration: underline;
}

/* ===== LANGUAGE SELECTOR (Root page) ===== */
.lang-selector {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.lang-selector h1 {
  margin-bottom: 0.5rem;
}

.lang-selector p {
  margin-bottom: 2.5rem;
}

.lang-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 3rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.lang-option:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lang-option span {
  font-size: 2rem;
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    z-index: 999;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem;
    overflow-y: auto;
  }

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

  .nav-links a {
    font-size: 1.4rem;
    text-align: center;
  }

  .nav-lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-adjectives {
    gap: 0.75rem;
  }

  .hero-adjectives span {
    font-size: 0.95rem;
    padding: 0.3rem 0.9rem;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== PRINT CSS ===== */
@media print {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .navbar,
  .hero-scroll,
  .hero-cta,
  .contact-links,
  .footer,
  .btn,
  .no-print {
    display: none !important;
  }

  section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0 1rem;
  }

  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; margin-top: 1rem; }
  h3 { font-size: 12pt; }

  a {
    color: #000;
    text-decoration: none;
  }

  .about {
    background: none;
  }

  .projects {
    background: none;
  }

  .skill-card,
  .project-card {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .skill-card:hover,
  .project-card:hover {
    transform: none;
  }

  .print-only {
    display: block !important;
  }

  .contact-email {
    font-size: 11pt;
  }
}

.print-only {
  display: none;
}