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

:root {
  --bg-dark: #2b4054;
  --bg-card: #3a5568;
  --accent: #e8a87c;
  --accent-light: #f5cba7;
  --text-light: #f0e6d3;
  --text-muted: #b8c9d6;
  --pink: #d4838f;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(43, 64, 84, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3044 50%, #2b4054 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 168, 124, 0.08) 0%, transparent 70%);
  top: 10%;
  right: -100px;
}

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

.hero-greeting {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  color: var(--pink);
  margin-bottom: 1.5rem;
}

.hero-quote {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 168, 124, 0.4);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--pink);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p { margin-bottom: 1rem; color: var(--text-muted); }
.about-text strong { color: var(--accent); }

.about-info { display: flex; flex-direction: column; gap: 1rem; }

.info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.info-card i { font-size: 1.3rem; color: var(--accent); min-width: 24px; text-align: center; }
.info-card span { font-size: 0.9rem; color: var(--text-muted); }

/* ===== TECH ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-category {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.tech-category h3 {
  color: var(--pink);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-items { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.3s;
}

.tech-item:hover {
  background: rgba(232, 168, 124, 0.15);
  transform: translateY(-2px);
  color: var(--accent);
}

.tech-item i { font-size: 1.1rem; color: var(--accent); }

/* ===== TIMELINE (EXPERIENCE) ===== */
.experience { background: var(--bg-card); }

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

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

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

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  transform: translateX(-50%);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.04);
  padding: 1.5rem;
  border-radius: 12px;
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-content h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.25rem; }
.timeline-content h4 { font-size: 0.95rem; color: var(--pink); font-weight: 400; margin-bottom: 0.75rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-muted); }

.timeline-content h4 a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s;
}

.timeline-content h4 a:hover { text-decoration-color: var(--pink); }

/* ===== EDUCATION ===== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.edu-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.edu-card:hover { transform: translateY(-4px); }

.edu-icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(232, 168, 124, 0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

.edu-icon i { font-size: 1.3rem; color: var(--accent); }
.edu-card h3 { font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.edu-card h4 { font-size: 0.9rem; color: var(--pink); font-weight: 400; margin-bottom: 0.25rem; }
.edu-card span { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.edu-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ===== PROJECTS CAROUSEL ===== */
.projects { background: var(--bg-card); overflow: hidden; }

.carousel-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.project-card {
  flex-shrink: 0;
  width: 180px; height: 180px;
  border-radius: 20px;
  background: var(--card-bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem;
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  padding: 1rem;
}

.project-card:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.project-card i { font-size: 2.2rem; }
.project-card span { font-size: 0.85rem; }

/* ===== CONTACT ===== */
.contact { background: var(--bg-card); }

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

.contact-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  transition: all 0.3s;
}

.contact-card:hover {
  background: rgba(232, 168, 124, 0.12);
  transform: translateY(-4px);
}

.contact-card i { font-size: 1.8rem; color: var(--accent); }
.contact-card span { font-size: 0.9rem; color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}

.lang-btn:hover {
  background: rgba(232, 168, 124, 0.15);
}

.lang-btn.active {
  border-color: var(--accent);
  background: rgba(232, 168, 124, 0.12);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(43, 64, 84, 0.98);
    padding: 1.5rem 2rem;
    gap: 1rem;
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.2rem; }

  .project-card { width: 140px; height: 140px; }
  .project-card i { font-size: 1.8rem; }
}