@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --primary-color: #3b82f6;
  --primary-color-dark: #2563eb;
  --text-dark: #141414;
  --text-light: #f3f4f6;
  --text-muted: #a1a1aa;
  --bg-dark: #141414;
  --bg-card: #1a1a1a;
  --white: #ffffff;
  --max-width: 1200px;
}

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

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
  transition: 0.3s;
}

ul {
  list-style: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

/* Nav - Art Studio style */
nav {
  position: fixed;
  isolation: isolate;
  width: 100%;
  z-index: 9;
}

.nav__header {
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--primary-color);
}

.nav__logo a {
  display: flex;
  align-items: center;
}

.nav__logo a img {
  max-width: 100px;
  max-height: 80px;
  object-fit: contain;
}

.nav__logo .logo-dark {
  display: none;
}

.nav__menu__btn {
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

.nav__links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  background-color: var(--primary-color);
  transition: transform 0.4s ease;
  z-index: -1;
  transform: translateY(-100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav__links.open {
  transform: translateY(0);
}

.nav__links a {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.nav__links a:hover {
  opacity: 0.9;
}

/* Hero / Header section */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  gap: 4rem 2rem;
  min-height: 100vh;
  align-items: start;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 11rem;
}

.hero__image-wrap {
  max-width: 620px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

.hero__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero__content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.hero__content h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-light);
}

.hero__content p {
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.75rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.hero__btn {
  margin-bottom: 2rem;
}

.hero__btn a,
.hero__btn button {
  display: inline-block;
  padding: 1rem 1.5rem;
  outline: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 5rem;
  transition: 0.3s;
  cursor: pointer;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero__btn a:last-child,
.hero__btn button:last-child {
  margin-right: 0;
}

.hero__btn a.outline,
.hero__btn button.outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.hero__btn a:hover,
.hero__btn button:hover {
  background-color: var(--primary-color-dark);
}

.hero__btn a.outline:hover,
.hero__btn button.outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.hero__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  font-size: 1.25rem;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border-radius: 100%;
  transition: 0.3s;
}

.hero__socials a:hover {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.2);
}

/* Section styling */
.section {
  padding: 4rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section__header .divider {
  width: 4rem;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 1rem;
}

.section__header p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto;
}

/* Project cards */
.projects__filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.projects__filter button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
  background-color: var(--bg-card);
  color: var(--text-muted);
}

.projects__filter button.active,
.projects__filter button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: scale(1.02);
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(59, 130, 246, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.project-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-align: center;
  margin-bottom: 1rem;
}

.project-overlay .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-overlay .tags span {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5rem;
  color: var(--white);
  font-size: 0.75rem;
}

.project-overlay a.btn {
  padding: 0.5rem 1rem;
  background: var(--white);
  color: var(--primary-color);
  border-radius: 5rem;
  font-weight: 600;
  font-size: 0.875rem;
  transition: 0.3s;
}

.project-overlay a.btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Contact section - OpticOdds-inspired: sleek, dark, gradient, conversion-focused */
.contact__optic-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, #0f0f12 0%, #1a1a22 50%, #14141a 100%);
  border-radius: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.contact__optic-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact__optic-info > p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact__optic-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__optic-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact__optic-item i {
  font-size: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.contact__optic-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__optic-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.contact__optic-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.contact__optic-form input,
.contact__optic-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(26, 26, 32, 0.8);
  border: 1px solid rgba(63, 63, 70, 0.8);
  border-radius: 0.5rem;
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact__optic-form input:focus,
.contact__optic-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.contact__optic-form input::placeholder,
.contact__optic-form textarea::placeholder {
  color: #52525b;
}

.contact__optic-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__optic-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.contact__optic-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.contact__optic-cta i {
  font-size: 1.125rem;
}

.contact__optic-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -0.25rem;
}

#form-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (width <= 768px) {
  .contact__optic-wrapper {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }
}

/* Footer */
.footer {
  background-color: #0d0d0d;
  border-top: 1px solid #262626;
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer__content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__top img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.footer__top p {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  max-width: 24rem;
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: 0.3s;
}

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

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #262626;
  text-align: center;
}

.footer__bottom p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Desktop styles */
@media (width > 768px) {
  nav {
    position: static;
    padding: 2rem 1rem 1rem;
    max-width: var(--max-width);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__header {
    padding: 0;
    background-color: transparent;
    flex: 1;
  }

  .nav__logo a img {
    max-width: 120px;
    max-height: 100px;
  }

  .nav__logo .logo-dark {
    display: flex;
  }

  .nav__logo .logo-white {
    display: flex;
  }

  .nav__menu__btn {
    display: none;
  }

  .nav__links {
    position: static;
    width: fit-content;
    padding: 0;
    flex-direction: row;
    gap: 2rem;
    background-color: transparent;
    transform: none !important;
    z-index: 1;
  }

  .nav__links a {
    font-weight: 600;
    color: var(--text-light);
  }

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

  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero__content {
    grid-area: 1/1/2/2;
  }

  .hero__image {
    grid-area: 1/2/2/3;
    justify-content: flex-end;
  }

  .hero__content :is(h2, h1, p, .hero__btn) {
    text-align: left;
  }

  .hero__socials {
    justify-content: flex-start;
  }


  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__top p {
    text-align: left;
  }

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

/* Resume page */
.resume-page main {
  padding-top: 2rem;
  padding-bottom: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.resume-page .resume-content {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.resume-page .resume-header {
  text-align: center;
  margin-bottom: 2rem;
}

.resume-page .resume-header h1 {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.resume-page .resume-header .title {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.resume-page .resume-header .contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.resume-page section {
  margin-bottom: 2rem;
}

.resume-page section h2 {
  font-size: 1.5rem;
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.resume-page section h3 {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.resume-page section p,
.resume-page section li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.resume-page .resume-card {
  background: var(--bg-card);
  border: 1px solid #262626;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.resume-page .resume-card h3 {
  margin-bottom: 0.5rem;
}

.resume-page .resume-card ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.resume-page .resume-card li {
  margin-bottom: 0.25rem;
}

.resume-page .grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Success page */
.success-page main {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.success-page .success-card {
  background: var(--bg-card);
  border: 1px solid #262626;
  border-radius: 0.5rem;
  padding: 2.5rem;
  max-width: 28rem;
  text-align: center;
}

.success-page .success-card i {
  font-size: 4rem;
  color: #22c55e;
  margin-bottom: 1rem;
}

.success-page .success-card h1 {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.success-page .success-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.success-page .success-card a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 5rem;
  font-weight: 600;
  transition: 0.3s;
}

.success-page .success-card a:hover {
  background: var(--primary-color-dark);
}

/* Mobile nav - fixed with blue bar, content needs top padding to clear nav */
@media (width <= 768px) {
  .hero {
    padding-top: 6rem;
  }

  .resume-page main,
  .success-page main {
    padding-top: 6rem;
  }

  .nav__links {
    transform: translateY(-100%);
  }

  .nav__links.open {
    transform: translateY(0);
  }

}
