:root {
  --bg-color: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;
  --accent-color: #000000;
  --button-bg: #111827;
  --button-text: #ffffff;
  --grid-bg: #f9fafb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0a0a0a;
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    --border-color: #27272a;
    --accent-color: #ffffff;
    --button-bg: #ededed;
    --button-text: #0a0a0a;
    --grid-bg: #121212;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  padding: 3rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

/* HERO SECTION */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 4rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
  max-width: 900px;
}

.hero p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 750px;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

/* SECTION TITLES */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* BENTO BOX GRID (EXPERTISE) */
.expertise {
  margin-bottom: 6rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--grid-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: border-color 0.2s ease;
}

.bento-card:hover {
  border-color: var(--text-tertiary);
}

.bento-card.large {
  grid-column: span 8;
}

.bento-card.medium {
  grid-column: span 4;
}

.bento-icon {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

/* PROJECTS SECTION */
.projects {
  margin-bottom: 6rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card:hover {
  border-color: var(--text-tertiary);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.project-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 800px;
}

.project-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.project-link:hover {
  border-color: var(--text-primary);
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-color);
  padding: 4rem 5%;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .bento-card.large, .bento-card.medium {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2.5rem 5% 1.5rem;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
  nav a {
    margin-left: 0;
  }
  .hero {
    padding: 2rem 0 3rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  .bento-card {
    padding: 1.75rem;
  }
  .bento-card.large, .bento-card.medium {
    grid-column: span 12;
  }
  .project-card {
    padding: 1.75rem;
  }
  .project-header {
    flex-direction: column;
    gap: 1rem;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 3rem 5%;
  }
}
