:root {
  --primary: #1f6feb;
  --primary-dark: #144da3;
  --accent: #ffb703;
  --dark: #0f172a;
  --bg: #f5f7fb;
  --white: #ffffff;
  --text: #334155;
  --muted: #64748b;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --grad: linear-gradient(135deg, #1f6feb, #144da3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.5px;
}

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

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--dark);
  padding: 120px 0 70px;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(31, 111, 235, 0.25), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 183, 3, 0.12), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.hello-badge {
  display: inline-block;
  background: rgba(255, 183, 3, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.typed-line {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  min-height: 2.4rem;
  margin-bottom: 16px;
}

.cursor {
  animation: blink 0.8s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-desc {
  color: #94a3b8;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 111, 235, 0.35);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1.2;
}

.stat span {
  font-size: 0.85rem;
  color: #94a3b8;
}

.photo-frame {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.photo-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(255, 183, 3, 0.6);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.12);
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.scroll-down {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.scroll-down span {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
}

.scroll-down span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 3px;
  animation: wheelfall 1.6s infinite;
}

@keyframes wheelfall {
  0% { opacity: 1; top: 7px; }
  70% { opacity: 0; top: 24px; }
  100% { opacity: 0; top: 7px; }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  background: rgba(31, 111, 235, 0.1);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--dark);
  font-weight: 700;
}

/* ---------- ABOUT ---------- */
.about-box {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.about-box p {
  margin-bottom: 16px;
  color: var(--text);
}

.about-box strong {
  color: var(--primary-dark);
}

.about-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

.about-facts li {
  font-size: 0.95rem;
}

.about-facts span {
  font-weight: 600;
  color: var(--primary);
  margin-right: 6px;
}

/* ---------- TIMELINE ---------- */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 3px;
}

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

.timeline-dot {
  position: absolute;
  left: -35px;
  top: 10px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2);
}

.timeline-content {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-badge {
  display: inline-block;
  background: var(--accent);
  color: #1d2a1d;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.timeline-content h3 {
  color: var(--dark);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

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

.timeline-content ul {
  margin: 14px 0 0 18px;
}

.timeline-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* ---------- CARDS ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px;
  text-align: center;
  border-top: 4px solid var(--primary);
  transition: transform 0.3s;
}

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

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.card h3 {
  color: var(--dark);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-sub {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
}

.skill-cat {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.skill-cat h3 {
  color: var(--dark);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  background: rgba(31, 111, 235, 0.08);
  color: var(--primary-dark);
  border: 1px solid rgba(31, 111, 235, 0.25);
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

.skill-chip:hover {
  background: var(--primary);
  color: var(--white);
}

.core-competencies {
  text-align: center;
}

.core-competencies h3 {
  color: var(--dark);
  margin-bottom: 18px;
}

.competency-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.competency-list span {
  background: var(--dark);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ---------- LANGUAGES ---------- */
.lang-grid {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lang-item strong {
  color: var(--dark);
  margin-bottom: 6px;
  display: block;
  text-align: left;
}

.lang-bar {
  display: block;
  height: 10px;
  background: #e2e8f0;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.lang-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--grad);
  border-radius: 10px;
  transition: width 1.2s ease;
}

.lang-bar.animated::after {
  width: var(--width, 100%);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.8rem;
}

.contact-item h4 {
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  background: #f8fafc;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
}

.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.info {
  display: block;
  color: var(--primary);
}

.form-status.success {
  display: block;
  color: #16a34a;
}

.form-status.error {
  display: block;
  color: #dc2626;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 26px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer-contacts {
  margin-top: 8px;
}

.footer-contacts a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-contacts .dot {
  margin: 0 8px;
  color: #475569;
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .photo-frame::before,
  .scroll-down span::after {
    animation: none;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 28px;
  }
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .photo-frame {
    order: -1;
    max-width: 280px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 700px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark);
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .about-facts {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 32px;
  }
  .timeline-dot {
    left: -27px;
  }
  .contact-form {
    padding: 24px;
  }
  .about-box {
    padding: 28px 22px;
  }
}