/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root{
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --card: #f8fafc;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  padding: 16px;
  max-width: 980px;
  margin: 0 auto;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

h1, h2 {
  font-family: "Poppins", sans-serif;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* BUTTONS */
section a {
  display: inline-block;
  padding: 10px 18px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary);
  transition: 0.2s ease;
}

section a:hover {
  background: var(--primary);
  color: #fff;
}

/* HERO */
#top img {
  margin-top: 20px;
  border-radius: 12px;
}

/* SKILLS */
.skills-list{
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 12px;
}

.skill-card{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
}

.skill-card i{
  color: var(--primary);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.primary-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.primary-nav .menu li a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 0.4rem 0;
  border: none;
  display: inline-block;
  transition: 0.2s ease;
}

.primary-nav .menu li a:hover {
  color: var(--primary);
}

@media (max-width: 767px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* FOOTER */
.site-footer{
  text-align: center;
  padding: 30px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* DESKTOP */
@media (min-width: 900px){
  #top{
    display: flex;
    gap: 40px;
    align-items: center;
  }

  #top img{
    max-width: 350px;
  }

  .skills-list{
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================= */
/* PROJECT SINGLE + ARCHIVE */
/* ============================= */

.project-single,
.projects-archive {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* HERO IMAGE */
.project-hero-image img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

/* EXCERPT */
.project-excerpt {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* CONTENT */
.project-content {
  margin-top: 2rem;
}

/* NAVIGATION */
.project-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.project-navigation a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

/* ============================= */
/* ARCHIVE GRID */
/* ============================= */

.project-grid {
  display: grid;
  gap: 24px;
  margin-top: 2rem;
}

/* DESKTOP GRID */
@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* ============================= */
/* PROJECT CARD */
/* ============================= */

.project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* IMAGE */
.project-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* TITLE */
.project-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* LINK STYLE */
.project-card a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: 0.2s ease;
}

.project-card a:hover {
  color: var(--primary);
}

/* TEXT */
.project-card p {
  font-size: 0.95rem;
  color: var(--muted);
}

.projects-archive {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.project-grid {
  display: grid;
  gap: 32px;
  margin-top: 2rem;
}

.projects-archive h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.projects-archive p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.project-card img {
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
}

.hero-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem 0 3rem;
}

.hero-label {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: 2.5rem;
  line-height: 1.1;
  max-width: 520px;
}

.hero-description {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
}

.hero-button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: 0.2s ease;
}

.hero-button:hover {
  background: var(--primary);
  color: #fff;
}

@media (min-width: 900px) {
  .hero-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
  }

  .hero-text {
    flex: 1;
  }

  .hero-side {
    flex: 0 0 340px;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 3.4rem;
  }
}

/* HOME HERO */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 4rem 0;
  align-items: center;
}

.hero-text {
  max-width: 620px;
}

.hero-label,
.section-label {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-image img {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.hero-button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: 0.2s ease;
}

.hero-button:hover {
  background: var(--primary);
  color: #fff;
}

/* SECTION HEADINGS */
.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.section-heading p,
.section-text {
  max-width: 720px;
  color: var(--muted);
}

/* FEATURED PROJECTS */
.featured-projects {
  padding: 4rem 0;
}

.project-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.project-card__image-link {
  display: block;
  border: none;
  padding: 0;
}

.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.project-card__content {
  padding: 1.25rem;
}

.project-card__content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.project-card__content h3 a {
  text-decoration: none;
  color: var(--text);
  border: none;
  padding: 0;
}

.project-card__content h3 a:hover {
  color: var(--primary);
  background: transparent;
}

.project-card__content p {
  margin-bottom: 1rem;
}

.project-card__button {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border: 2px solid var(--primary);
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: 0.2s ease;
}

.project-card__button:hover {
  background: var(--primary);
  color: #fff;
}

.projects-more {
  margin-top: 2rem;
  text-align: center;
}

/* ABOUT + SKILLS */
.about-section,
.skills-section {
  padding: 4rem 0;
}

/* DESKTOP */
@media (min-width: 900px) {
  .hero-section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image-wrap {
    flex: 0 0 360px;
  }

  .hero-text h1 {
    font-size: 3.6rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* HERO CARD (RIGHT SIDE FIX) */
.hero-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.hero-card-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.hero-stat {
  padding: 1rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-stat-text {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-points {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.hero-points li {
  margin-bottom: 0.4rem;
}
