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

:root {
  --bg: #f8f9fa;
  --white: #ffffff;
  --dark: #0d0d0d;
  --dark2: #1a1a1a;
  --accent: #00c896;
  --accent-dark: #00a87e;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 12px 40px rgba(0,0,0,0.13);
}

/* ===== DARK THEME ===== */
[data-theme="dark"] {
  --bg: #0f172a;
  --white: #1e293b;
  --dark: #f1f5f9;
  --dark2: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --card-shadow-hover: 0 12px 40px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--dark);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 3rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.92);
}

.logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

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

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

.nav-links a {
  padding: 0.45rem 1rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--dark); background: var(--bg); }
.nav-links a.active { color: var(--dark); font-weight: 700; }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--dark);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.theme-toggle span {
  pointer-events: none;
  line-height: 1;
  display: flex;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--white);
}

/* ===== PAGE ===== */
.page { padding-top: 72px; }

/* ===== HERO ===== */
.hero {
  background: var(--white);
  transition: background 0.3s;
  padding: 6rem 3rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left { flex: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,200,150,0.12);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-right {
  flex-shrink: 0;
  width: 260px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible;
}

.hero-right img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 32px;
  display: block;
}

.hero-photo-name {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
}

.hero-right::after {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(0,200,150,0.2);
  bottom: -30px; right: -30px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  border: none;
}

.btn-primary {
  background: #0d0d0d;
  color: #fff;
}

[data-theme="dark"] .btn-primary {
  background: #f1f5f9;
  color: #0d0d0d;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

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

.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,200,150,0.35); }

.btn-ghost {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTION ===== */
.section {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: all 0.22s, background 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: transparent;
}

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(0,200,150,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card .btn { font-size: 0.8rem; padding: 0.5rem 1.1rem; }

/* ===== TAGS ===== */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.tag {
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 1.75rem; }

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.2rem; top: 5px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.timeline-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.15rem; }
.timeline-item h4 { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; font-weight: 500; }
.timeline-item p { color: var(--muted); font-size: 0.875rem; }

.contact-info .card p {
  overflow-wrap: break-word;
}

.contact-info .card p a {
  color: var(--accent-dark);
  font-weight: 500;
  transition: color 0.18s;
}

.contact-info .card p a:hover { color: var(--accent); }

/* ===== CONTACT GRID ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 2rem;
  align-items: start;
}

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

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
  box-shadow: var(--card-shadow);
  transition: background 0.3s, border-color 0.3s;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--dark);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,200,150,0.12);
  background: var(--white);
}

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

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

.avatar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  position: sticky;
  top: 90px;
  transition: background 0.3s, border-color 0.3s;
}

.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00c896, #00a87e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 1rem;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-card h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.2rem; }
.avatar-card > p { color: var(--muted); font-size: 0.85rem; }

.stat-row { display: flex; gap: 0.75rem; margin-top: 1.25rem; }

.stat {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.stat strong { display: block; font-size: 1.3rem; font-weight: 900; color: var(--accent-dark); }
.stat span { font-size: 0.7rem; color: var(--muted); font-weight: 500; }

/* ===== OPEN TO WORK CARD ===== */
.open-to-work-card {
  background: #f0fdf9;
  border-color: var(--accent);
  color: var(--dark);
}

[data-theme="dark"] .open-to-work-card {
  background: #0f172a;
  border-color: var(--accent);
  color: #fff;
}

.open-to-work-card h3 { color: var(--dark); }
.open-to-work-card p { color: var(--muted); }
[data-theme="dark"] .open-to-work-card h3 { color: #fff; }
[data-theme="dark"] .open-to-work-card p { color: #9ca3af; }

.strip {
  background: #f0fdf9;
  border-top: 1px solid #d1fae5;
  border-bottom: 1px solid #d1fae5;
  color: var(--dark);
  padding: 3.5rem 3rem;
  text-align: center;
}

[data-theme="dark"] .strip {
  background: #1e293b;
  border-top: 1px solid #334155;
  border-bottom: 1px solid #334155;
  color: #fff;
}

.strip h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.strip h2 span { color: var(--accent); }
.strip p { color: var(--muted); margin-bottom: 1.75rem; font-size: 0.95rem; }
[data-theme="dark"] .strip p { color: #9ca3af; }

/* ===== FOOTER ===== */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 3rem 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  max-width: 260px;
  line-height: 1.6;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
}

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

.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--white);
}

.footer-links h4 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dark);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.18s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-bottom span { color: var(--accent); font-weight: 700; }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; padding: 2rem 1.5rem 1.5rem; gap: 1.75rem; }
  .footer-bottom { padding: 1rem 1.5rem; }
}

/* ===== NAVBAR RIGHT ===== */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: border-color 0.18s;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.25s;
  pointer-events: none;
}

.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); }
.hamburger:hover { border-color: var(--accent); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 1rem 1.5rem;
  gap: 0.25rem;
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.18s;
}

.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--dark);
  background: var(--bg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { flex-direction: column; padding: 3.5rem 1.25rem 2.5rem; gap: 2rem; text-align: center; }
  .hero-left { display: flex; flex-direction: column; align-items: center; }
  .hero h1 { font-size: 2rem; letter-spacing: -1px; }
  .hero p { font-size: 0.95rem; }
  .hero-right { width: 100%; max-width: 280px; }
  .hero-right img { width: 100%; height: 260px; }

  .section { padding: 2.5rem 1.25rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .avatar-card { position: static; }
  .exp-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .r-two-col { grid-template-columns: 1fr; }
  .resume-actions { padding: 1.25rem 1.25rem 0; }
  .resume-wrapper { padding: 0 1.25rem; }
  .resume-card { padding: 1.5rem 1.25rem; }
  .r-item-header { flex-direction: column; gap: 0.2rem; }

  .footer-inner { grid-template-columns: 1fr; padding: 2rem 1.25rem 1.5rem; gap: 1.5rem; }
  .footer-bottom { padding: 1rem 1.25rem; }

  .strip { padding: 2.5rem 1.25rem; }
  .contact-info { grid-template-columns: 1fr !important; }
}
