:root {
  --color-background: #f7f7f5;
  --color-surface: #ffffff;
  --color-section: #e9e6df;

  --color-text: #222222;
  --color-text-muted: #666666;

  --color-accent: #222222;
  --color-accent-text: #ffffff;

  --color-nav: rgba(233, 230, 223, 0.92);

  --color-border: rgba(34, 34, 34, 0.15);
  --color-input: #ffffff;

  --radius-small: 6px;
  --radius-medium: 10px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.07);

  --content-width: 1100px;
  --section-padding: 80px;
}

/* DARK THEME */

html[data-theme="dark"] {
  --color-background: #151515;
  --color-surface: #202020;
  --color-section: #1b1b1b;

  --color-text: #f4f4f2;
  --color-text-muted: #b7b7b3;

  --color-accent: #f4f4f2;
  --color-accent-text: #151515;

  --color-nav: rgba(27, 27, 27, 0.92);

  --color-border: rgba(255, 255, 255, 0.16);
  --color-input: #181818;

  --shadow-card: 0 10px 35px rgba(0, 0, 0, 0.3);
}

/* BASE */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  color: var(--color-text);
  background-color: var(--color-background);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

h1,
h2 {
  font-weight: 700;
}

h3 {
  font-weight: 600;
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

/* NAVIGATION */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  padding: 0 20px;

  background-color: var(--color-nav);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--color-border);
}

.navbar {
  max-width: var(--content-width);
  margin: 0 auto;

  padding: 16px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 24px;
  font-weight: 700;
}

.logo-image {
  display: block;

  width: 42px;
  height: 42px;

  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;

  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;

  gap: 30px;
}

.nav-links a {
  font-size: 16px;

  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 0.6;
}

/* THEME BUTTON */

.theme-toggle {
  width: 42px;
  height: 42px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--color-surface);
  color: var(--color-text);

  border: 1px solid var(--color-border);
  border-radius: 50%;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-icon {
  font-size: 21px;
  line-height: 1;
}

/* HERO */

.hero {
  min-height: calc(100vh - 75px);

  padding: 0 20px 60px;

  background-color: var(--color-section);
}

.hero-content {
  max-width: var(--content-width);
  margin: 0 auto;

  min-height: calc(100vh - 135px);

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  gap: 60px;
}

.hero-text {
  text-align: left;
}

.hero-label,
.section-label {
  margin-bottom: 12px;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: 2px;
}

.hero h1 {
  margin-bottom: 25px;

  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
}

.hero-description {
  max-width: 600px;

  margin-bottom: 30px;

  font-size: 19px;

  color: var(--color-text-muted);
}

.hero-button {
  display: inline-block;

  padding: 14px 28px;

  background-color: var(--color-accent);
  color: var(--color-accent-text);

  border-radius: var(--radius-small);

  font-size: 17px;
  font-weight: 600;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.hero-button:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.hero-image {
  overflow: hidden;

  border-radius: var(--radius-medium);
}

.hero-image img {
  display: block;

  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;
}

/* SERVICES */

#services {
  max-width: var(--content-width);
  margin: 0 auto;

  padding: var(--section-padding) 20px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 25px;
}

#services h2 {
  grid-column: 1 / -1;

  margin: 0 0 25px;

  text-align: center;

  font-size: 40px;
}

#services > div {
  padding: 30px;

  background-color: var(--color-surface);

  border-radius: var(--radius-medium);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#services > div:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-card);
}

#services h3 {
  margin-bottom: 10px;

  font-size: 22px;
}

#services p {
  margin-bottom: 0;

  color: var(--color-text-muted);
}

/* ABOUT ME */

#about-me {
  padding: var(--section-padding) 20px;

  background-color: var(--color-section);
}

.about-me-content {
  max-width: var(--content-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;

  align-items: center;

  gap: 70px;
}

.about-me-image img {
  display: block;

  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  border-radius: var(--radius-medium);
}

.about-me-text h2 {
  margin-bottom: 25px;

  font-size: 40px;
  line-height: 1.2;
}

.about-me-text p {
  margin-bottom: 18px;

  color: var(--color-text-muted);
}

.about-me-text p:last-child {
  margin-bottom: 0;
}

/* WHY */

#about {
  padding: var(--section-padding) 20px;

  background-color: var(--color-background);
}

#about h2 {
  margin-bottom: 50px;

  text-align: center;

  font-size: 40px;
}

#about > div {
  max-width: 800px;

  margin: 0 auto 25px;

  padding: 25px 30px;

  background-color: var(--color-surface);

  border-radius: var(--radius-medium);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#about > div:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-card);
}

#about h3 {
  margin-bottom: 8px;

  font-size: 22px;
}

#about p {
  margin-bottom: 0;

  color: var(--color-text-muted);
}

/* HOW IT WORKS */

#how-it-works {
  max-width: var(--content-width);
  margin: 0 auto;

  padding: var(--section-padding) 20px;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 25px;
}

#how-it-works h2 {
  grid-column: 1 / -1;

  margin: 0 0 25px;

  text-align: center;

  font-size: 40px;
}

#how-it-works > div {
  padding: 30px;

  background-color: var(--color-surface);

  border-radius: var(--radius-medium);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

#how-it-works > div:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-card);
}

#how-it-works h3 {
  margin-bottom: 10px;

  font-size: 22px;
}

#how-it-works p {
  margin-bottom: 0;

  color: var(--color-text-muted);
}

/* PORTFOLIO */

#portfolio {
  max-width: var(--content-width);

  margin: 0 auto;

  padding: var(--section-padding) 20px;
}

#portfolio h2 {
  margin-bottom: 20px;

  text-align: center;

  font-size: 40px;
}

#portfolio > p {
  max-width: 700px;

  margin: 0 auto 40px;

  text-align: center;

  color: var(--color-text-muted);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 20px;
}

.portfolio-grid img {
  display: block;

  width: 100%;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  border-radius: var(--radius-medium);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.portfolio-grid img:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-card);
}

/* REVIEWS */

#reviews {
  padding: var(--section-padding) 20px;

  background-color: var(--color-section);
}

.reviews-content {
  max-width: var(--content-width);

  margin: 0 auto;
}

#reviews .section-label {
  text-align: center;
}

#reviews h2 {
  margin-bottom: 45px;

  text-align: center;

  font-size: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 25px;
}

.review-card {
  padding: 30px;

  background-color: var(--color-surface);

  border-radius: var(--radius-medium);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-card);
}

.review-stars {
  margin-bottom: 18px;

  font-size: 18px;

  letter-spacing: 2px;
}

.review-card p {
  margin-bottom: 20px;

  color: var(--color-text-muted);
}

.review-card .review-author {
  margin-bottom: 0;

  color: var(--color-text);

  font-weight: 700;
}

.reviews-link {
  margin-top: 35px;

  text-align: center;
}

.reviews-link a {
  display: inline-block;

  padding-bottom: 3px;

  border-bottom: 1px solid var(--color-text);

  font-weight: 600;
}

/* CONTACT */

#contact {
  padding: var(--section-padding) 20px;

  background-color: var(--color-background);
}

.contact-content {
  max-width: 760px;

  margin: 0 auto;

  text-align: center;
}

#contact h2 {
  margin-bottom: 20px;

  font-size: 40px;
}

.contact-intro {
  max-width: 650px;

  margin: 0 auto 30px;

  color: var(--color-text-muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px;

  max-width: 520px;

  margin: 0 auto;
}

.contact-action {
  min-height: 58px;

  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  background-color: var(--color-accent);
  color: var(--color-accent-text);

  border-radius: var(--radius-small);

  font-weight: 600;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.contact-action:hover {
  transform: translateY(-2px);

  opacity: 0.85;
}

.contact-icon {
  width: 22px;
  height: 22px;

  fill: currentColor;
}

.contact-divider {
  position: relative;

  margin: 50px 0 35px;

  text-align: center;
}

.contact-divider::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 100%;
  height: 1px;

  background-color: var(--color-border);
}

.contact-divider span {
  position: relative;

  display: inline-block;

  padding: 0 16px;

  background-color: var(--color-background);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 1.5px;

  color: var(--color-text-muted);
}

/* FORM */

.contact-form {
  padding: 35px;

  background-color: var(--color-surface);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-medium);

  text-align: left;

  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;

  margin-bottom: 7px;

  font-size: 15px;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;

  padding: 13px 14px;

  color: var(--color-text);

  background-color: var(--color-input);

  border: 1px solid var(--color-border);

  border-radius: var(--radius-small);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.25s ease;
}

.form-field textarea {
  resize: vertical;

  min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-text);

  box-shadow: 0 0 0 3px rgba(127, 127, 127, 0.12);
}

.form-field textarea::placeholder {
  color: var(--color-text-muted);

  opacity: 0.75;
}

.form-submit {
  width: 100%;

  padding: 15px 24px;

  background-color: var(--color-accent);
  color: var(--color-accent-text);

  border: 0;

  border-radius: var(--radius-small);

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.form-submit:hover {
  transform: translateY(-2px);

  opacity: 0.85;
}

.form-submit:disabled {
  cursor: wait;

  opacity: 0.6;

  transform: none;
}

.form-status {
  margin: 18px 0 0;

  text-align: center;

  font-size: 15px;
  font-weight: 600;
}

.form-status.success {
  color: #268a45;
}

.form-status.error {
  color: #b83737;
}

.hidden-field {
  position: absolute;

  width: 1px;
  height: 1px;

  overflow: hidden;

  clip: rect(0 0 0 0);
  clip-path: inset(50%);

  white-space: nowrap;
}

/* FOOTER */

footer {
  padding: 50px 20px 25px;

  background-color: #111111;
  color: #ffffff;
}

.footer-content {
  max-width: var(--content-width);

  margin: 0 auto 35px;

  display: flex;
  justify-content: space-between;

  gap: 40px;
}

.footer-brand {
  margin-bottom: 8px;

  font-size: 24px;
  font-weight: 700;
}

.footer-info {
  text-align: right;
}

.footer-info p {
  margin-bottom: 6px;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--content-width);

  margin: 0 auto;

  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.2);

  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}
.menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 0 0 5px 0;

  align-items: center;
  justify-content: center;

  background-color: var(--color-surface);
  color: var(--color-text);

  border: 1px solid var(--color-border);
  border-radius: 50%;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
}

/* MOBILE */

@media (max-width: 700px) {
  :root {
    --section-padding: 60px;
  }

  .site-nav {
    padding: 0 16px;
  }

  .navbar {
    padding: 12px 0;
  }

  .logo {
    font-size: 20px;
  }

  .logo-image {
    width: 36px;
    height: 36px;
  }

  .nav-right {
    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    min-width: 210px;

    padding: 10px;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    background-color: var(--color-surface);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);

    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;

    border-radius: var(--radius-small);
  }

  .nav-links a:hover {
    background-color: var(--color-section);

    opacity: 1;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;

    padding-bottom: 50px;
  }

  .hero-content {
    min-height: auto;

    grid-template-columns: 1fr;

    gap: 35px;
  }

  .hero-text {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-button {
    width: 100%;

    text-align: center;
  }

  #services {
    grid-template-columns: 1fr;
  }

  .about-me-content {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .about-me-text h2 {
    font-size: 34px;
  }

  #services h2,
  #about h2,
  #how-it-works h2,
  #portfolio h2,
  #reviews h2,
  #contact h2 {
    font-size: 34px;
  }

  #how-it-works {
    grid-template-columns: 1fr;
  }

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

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

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-info {
    text-align: left;
  }
}
/* Privacy page */

.privacy-page {
  padding: 80px 20px;
}

.privacy-content {
  width: min(100%, 850px);
  margin: 0 auto;
}

.privacy-content h1 {
  margin-bottom: 24px;
}

.privacy-content h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.privacy-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.privacy-content ul {
  margin: 0 0 20px 22px;
}

.privacy-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.privacy-content a {
  color: inherit;
  text-decoration: underline;
}

.privacy-home-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
}

.privacy-home-link:hover {
  opacity: 0.7;
}

@media (max-width: 700px) {
  .privacy-page {
    padding: 50px 20px;
  }

  .privacy-content h2 {
    margin-top: 32px;
  }
}
/* Privacy page header */

.privacy-page-header {
  width: min(100% - 40px, 1200px);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.privacy-page-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-privacy {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.form-privacy a {
  color: inherit;
  text-decoration: underline;
}

.form-privacy a:hover {
  opacity: 0.75;
}
