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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --text: #e0e0e0;
  --text-muted: #888888;
  --gold: #c8a96e;
  --gold-dim: rgba(200, 169, 110, 0.15);
  --blue: #4a9eff;
  --radius: 12px;
  --max-width: 1100px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.8;
}

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* ===== Hero ===== */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

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

.hero h1 .gold {
  color: var(--gold);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== Sections ===== */
section {
  padding: 80px 0;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 20px;
}

/* ===== Mission / About ===== */
.mission {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.mission p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.mission em {
  color: var(--text);
  font-style: italic;
}

.mission strong {
  color: var(--text);
  font-weight: 600;
}

/* ===== Projects ===== */
.projects-intro {
  text-align: center;
  margin-bottom: 48px;
}

.projects-intro p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 48px;
  margin-bottom: 32px;
  transition: border-color 0.3s;
}

.project-card:hover {
  border-color: rgba(200, 169, 110, 0.2);
}

a.project-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.project-card.reverse {
  direction: rtl;
}

.project-card.reverse > * {
  direction: ltr;
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-card .project-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card .project-img img {
  max-height: 280px;
  object-fit: contain;
}

/* ===== Resume ===== */
.resume-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.resume-header .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.resume-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.resume-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg);
}

.timeline-item .date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.education-grid {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 24px;
}

.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--bg-card);
}

.edu-item span:first-child {
  font-size: 0.95rem;
}

.edu-item span:last-child {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 16px;
}

/* ===== Services ===== */
.services-hero {
  text-align: center;
  padding: 80px 0 48px;
}

.services-hero p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: rgba(200, 169, 110, 0.2);
  transform: translateY(-2px);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card ul li {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.service-card ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.wont-do {
  text-align: center;
  padding: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wont-do h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.wont-do p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ===== Contact Form ===== */
.contact-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 24px;
}

.contact-section h1 {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}

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

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
  opacity: 1;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .hero {
    padding: 64px 0 48px;
  }

  .project-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
  }

  .project-card.reverse {
    direction: ltr;
  }

  .project-card .project-img {
    order: -1;
  }

  .project-card .project-img img {
    max-height: 200px;
  }

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

  .edu-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .edu-item span:last-child {
    margin-left: 0;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
