/* 1. Global Reset & Design Tokens */

:root {
  --primary: #2563eb;       /* tech blue */
  --primary-dark: #1e40af;
  --text-dark: #111827;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.15);
}

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

html, body {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

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

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

/* 2. Layout Utilities */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -20px;
  margin-bottom: 40px;
  font-size: 0.98rem;
}

/* 3. Navbar */

.navbar {
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid #e5e7eb;
}

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

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

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

.nav-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
}

/* 4. Hero Section */

.hero {
  padding: 96px 0 72px 0;
  text-align: center;
  background: radial-gradient(circle at top left, #e0ecff 0, #ffffff 55%);
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.highlight {
  color: var(--primary);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

.bio-text {
  max-width: 580px;
  margin: 0 auto 28px auto;
  color: var(--text-light);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 20px -8px rgba(37, 99, 235, 0.6);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn.secondary {
  background: #e5e7eb;
  color: var(--text-dark);
  margin-left: 10px;
}

.btn.secondary:hover {
  background: #d1d5db;
}

.btn.ghost {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: var(--text-dark);
}

.btn.ghost:hover {
  background: #f3f4f6;
}

/* Space buttons nicely on hero */

.hero .btn {
  margin: 0 6px 10px 6px;
}

/* 5. Generic Text Sections (About, etc.) */

.section p {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  font-size: 0.98rem;
  color: var(--text-dark);
}

.section ul {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  padding-left: 1.2rem;
  list-style: disc;
}

.section li {
  margin-bottom: 0.35rem;
}

/* 6. Project Grid & Cards */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px -15px rgba(15, 23, 42, 0.35);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d1d5db;
}

.card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #e5e7eb;
}

.card-content {
  padding: 18px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.card-content h3 a {
  color: var(--text-dark);
}

.card-content h3 a:hover {
  color: var(--primary);
}

.card-content p {
  font-size: 0.93rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex-grow: 1;
}

.tech-stack {
  margin-bottom: 12px;
}

.tech-stack span {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 6px;
  font-weight: 600;
}

.card-links {
  margin-top: 4px;
}

.card-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-right: 16px;
  text-decoration: none;
}

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

/* 7. Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.skill-category h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.05rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f3f4f6;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-dark);
}

/* 8. Contact & Footer */

.contact-section {
  text-align: center;
  background: var(--bg-light);
}

.contact-links {
  margin-top: 22px;
}

.contact-links p {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact-links a {
  color: var(--primary);
  font-weight: 500;
}

.contact-links a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 32px 0;
  color: var(--text-light);
  font-size: 0.85rem;
  border-top: 1px solid #e5e7eb;
}

/* 9. Project Detail Pages (Case Study Layout) */

.project-hero {
  padding-top: 90px;
  padding-bottom: 40px;
}

.project-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.project-hero .subtitle {
  font-size: 1.02rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* small meta blocks at top of project page */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 24px 0 24px 0;
}

.meta-item h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 2px;
}

.meta-item p {
  font-size: 0.95rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.project-hero-image {
  margin-top: 16px;
}

.project-hero-image img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Figures inside case study (architecture, results) */

.project-figure {
  margin-top: 24px;
  text-align: center;
}

.project-figure img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.figure-caption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* 10. Legacy .project blocks (for any remaining old markup) */

.project {
  margin-bottom: 32px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 4px 12px -8px rgba(15, 23, 42, 0.3);
}

.project h4 {
  margin-bottom: 8px;
}

/* 11. Responsive */

@media (max-width: 900px) {
  .hero {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .nav-links {
    display: none; /* keep it simple: no burger menu for now */
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .project-hero {
    padding-top: 70px;
  }

  .project-hero h1 {
    font-size: 1.8rem;
  }

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