:root {
  color-scheme: light;
  --black: #0f0f0f;
  --charcoal: #1c1c1c;
  --slate: #4a4a4a;
  --stone: #e7e3dc;
  --sand: #f5f3ef;
  --accent: #c7a27a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 15, 15, 0.15);
}

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

body {
  font-family: "Nunito", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--sand);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(245, 243, 239, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  z-index: 10;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: "Varela Round", sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: var(--white);
  color: #1877f2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 15, 15, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  padding: 4.5rem 2rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("https://sparkling-gelato-e1db04.netlify.app/images/crths1.png")
    center/cover no-repeat;
  min-height: 440px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  color: var(--white);
  overflow: hidden;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 15, 15, 0.7), rgba(15, 15, 15, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  max-width: 560px;
  color: var(--white);
  text-align: center;
}

.hero-content h1 {
  font-family: "Varela Round", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.8s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.3s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.4s;
}

.hero-subtitle {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.82);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow);
  text-align: center;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.15);
  background: transparent;
  font-weight: 600;
  color: var(--charcoal);
}

.phone-link {
  display: inline-flex;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--white);
  justify-content: center;
  width: 100%;
}

.section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 110px;
}

.section-heading h2 {
  font-family: "Varela Round", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.section-heading p {
  max-width: 720px;
  color: var(--slate);
}

.projects {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

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

.project-card {
  background: var(--sand);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 14px 40px rgba(15, 15, 15, 0.08);
}

#experience {
  background: linear-gradient(160deg, rgba(15, 15, 15, 0.78), rgba(15, 15, 15, 0.35)),
    url("https://sparkling-gelato-e1db04.netlify.app/images/oscourt.png") center/cover
      no-repeat;
  color: var(--white);
}

#experience h3,
#experience h4 {
  color: var(--white);
}

#experience p,
#experience ul {
  color: rgba(255, 255, 255, 0.82);
}

.project-card h3 {
  font-size: 1.4rem;
}

.project-card h4 {
  font-size: 1rem;
  color: var(--charcoal);
  margin-top: 0.5rem;
}

.project-card ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--slate);
}

.contact-card {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--black);
  color: var(--white);
  padding: 2.5rem;
  border-radius: 28px;
}

.contact-card a {
  color: var(--white);
  font-weight: 600;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--slate);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
  }

  .nav-links {
    flex-wrap: nowrap;
    gap: 0.75rem;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
  }

  .brand {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 2.5rem 2rem;
  }
}
