/* ------------------------------
   VARIABLES
------------------------------ */

:root {
  --background: #fafaf8;
  --white: #ffffff;
  --text: #161616;
  --secondary-text: #757575;
  --accent: #bd806d;
  --border: #deded9;
  --image-background: #ecece8;

  --max-width: 1180px;
}


/* ------------------------------
   RESET
------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

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

  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

ul {
  margin: 0;
  padding: 0;

  list-style: none;
}

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


/* ------------------------------
   GENERAL LAYOUT
------------------------------ */

.container {
  width: calc(100% - 40px);
  max-width: var(--max-width);

  margin-right: auto;
  margin-left: auto;
}

.section-label {
  margin-bottom: 14px;

  color: var(--accent);

  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}


/* ------------------------------
   HEADER
------------------------------ */


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

  background-color: var(--background);

  padding-top: 28px;
  padding-bottom: 28px;
}


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

.logo {
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--secondary-text);

  font-size: 0.8rem;

  transition: color 0.2s ease;
}

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


/* ------------------------------
   HERO
------------------------------ */

.hero {
  padding-top: 85px;
  padding-bottom: 85px;
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 24px;

  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 0;

  color: var(--secondary-text);

  font-size: 1rem;
  line-height: 1.7;
}


/* ------------------------------
   PROJECTS
------------------------------ */

.projects-section {
  padding-top: 60px;
  padding-bottom: 120px;
}

.section-heading {
  margin-bottom: 38px;

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

  gap: 40px;
}

.section-heading h2 {
  margin-bottom: 0;

  font-size: 1.4rem;
  font-weight: 500;
}

.section-heading p {
  max-width: 430px;
  margin-bottom: 0;

  color: var(--secondary-text);

  font-size: 0.9rem;
}

.projects-grid {
  display: grid;

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

  gap: 46px 22px;
}

.project-card {
  min-width: 0;
}

.project-link {
  display: block;
}

.project-image {
  aspect-ratio: 1.25 / 1;

  overflow: hidden;

  background-color: var(--image-background);
  border-radius: 8px;
}

.project-image img {
  height: 100%;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.project-link:hover .project-image img {
  transform: scale(1.025);
}

.project-details {
  padding-top: 14px;

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

  gap: 20px;
}

.project-details h3 {
  margin-bottom: 3px;

  font-size: 0.95rem;
  font-weight: 500;
}

.project-details p {
  margin-bottom: 0;

  color: var(--secondary-text);

  font-size: 0.75rem;
}

.project-year {
  padding-top: 2px;

  color: var(--secondary-text);

  font-size: 0.7rem;
}

.btn {
    display: inline-block;

    padding: 14px 28px;
    
    margin-top: 60px;

    color: #111111;
    background: transparent;

    border: 1px solid #111111;
    border-radius: 50px;

    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;

    transition: all 0.3s ease;
}

.btn:hover {
    background: #111111;
    color: #ffffff;
}

.projects-links {
    margin-top: 70px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 25px;
}

.behance-link {
    color: var(--secondary-text);

    font-size: 0.9rem;
    text-decoration: none;

    transition: color 0.3s ease;
}

.behance-link:hover {
    color: var(--text);
}

/* ------------------------------
   ABOUT
------------------------------ */

.about-section {
  padding-top: 120px;
  padding-bottom: 120px;

  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 90px;
}

.about-title h2 {
  max-width: 500px;
  margin-bottom: 0;

  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.about-content {
  padding-top: 30px;
}

.about-content p {
  color: var(--secondary-text);

  font-size: 1rem;
  line-height: 1.8;
}

.skills {
  margin-top: 34px;

  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.skills span {
  padding: 9px 14px;

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

  color: var(--secondary-text);

  font-size: 0.75rem;
}


/* ------------------------------
   CONTACT
------------------------------ */

.contact-section {
  padding-top: 120px;
  padding-bottom: 120px;

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

.contact-container h2 {
  max-width: 760px;
  margin-bottom: 24px;

  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.contact-container > p:not(.section-label) {
  max-width: 570px;
  margin-bottom: 35px;

  color: #b6b6b6;

  line-height: 1.7;
}

.contact-link {
  display: inline-block;

  padding-bottom: 6px;

  border-bottom: 1px solid var(--white);

  font-size: 1rem;
}

.thank-you-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.thank-you-container h2,
.thank-you-container p {
    margin-left: auto;
    margin-right: auto;
}
/* ------------------------------
   CONTACT PAGE
------------------------------ */

.contact-page {
  min-height: calc(100vh - 100px);

  padding-top: 110px;
  padding-bottom: 120px;
}

.contact-page-grid {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 100px;
  align-items: start;
}

.contact-page-intro {
  position: sticky;
  top: 140px;
}

.contact-page h1 {
  max-width: 600px;
  margin-bottom: 30px;

  font-size: clamp(3.5rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.contact-description {
  max-width: 520px;
  margin-bottom: 55px;

  color: var(--secondary-text);

  font-size: 1rem;
  line-height: 1.8;
}

.contact-information {
  display: grid;
  gap: 30px;
}

.contact-information > div {
  padding-top: 18px;

  border-top: 1px solid var(--border);
}

.contact-information span {
  display: block;

  margin-bottom: 8px;

  color: var(--secondary-text);

  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-information p,
.contact-information a {
  margin-bottom: 0;

  font-size: 0.9rem;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;

  gap: 20px;
}

.contact-socials a {
  color: var(--text);

  transition: opacity 0.2s ease;
}

.contact-socials a:hover {
  opacity: 0.55;
}


/* ------------------------------
   CONTACT FORM
------------------------------ */

.contact-page-form {
  padding: 45px;

  background-color: #ffffff;

  border: 1px solid var(--border);
  border-radius: 8px;
}

.contact-form {
  display: grid;
  gap: 30px;
}

.form-group {
  display: grid;
  gap: 9px;
}

.form-group label {
  color: var(--secondary-text);

  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

  padding: 13px 0;

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

  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;

  font-family: inherit;
  font-size: 1rem;

  outline: none;
}

.form-group textarea {
  min-height: 160px;

  resize: vertical;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--text);
}

.form-button {
  width: fit-content;

  margin-top: 12px;
  padding: 14px 28px;

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

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

  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;

  cursor: pointer;

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

.form-button:hover {
  color: var(--text);
  background-color: transparent;
}


/* ------------------------------
   CONTACT PAGE TABLET
------------------------------ */

@media screen and (max-width: 900px) {

  .contact-page-grid {
    grid-template-columns: 1fr;

    gap: 70px;
  }

  .contact-page-intro {
    position: static;
  }

  .contact-page h1 {
    max-width: 700px;
  }

}


/* ------------------------------
   CONTACT PAGE MOBILE
------------------------------ */

@media screen and (max-width: 600px) {

  .contact-page {
    padding-top: 75px;
    padding-bottom: 85px;
  }

  .contact-page-grid {
    gap: 50px;
  }

  .contact-page h1 {
    font-size: 3.5rem;
  }

  .contact-description {
    margin-bottom: 40px;
  }

  .contact-page-form {
    padding: 28px 22px;
  }

}

/* ------------------------------
   FOOTER
------------------------------ */

.site-footer {
  padding-top: 30px;
  padding-bottom: 30px;

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

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.footer-container p {
  margin-bottom: 0;

  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.75rem;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}


/* ------------------------------
   TABLET
------------------------------ */

@media screen and (max-width: 900px) {

  .hero {
    padding-top: 65px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

    gap: 40px;
  }

  .about-content {
    max-width: 650px;
    padding-top: 0;
  }

}


/* ------------------------------
   MOBILE
------------------------------ */

@media screen and (max-width: 600px) {

  .container {
    width: calc(100% - 28px);
  }

  .site-header {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .header-container {
    align-items: flex-start;
  }

  .logo {
    max-width: 130px;

    line-height: 1.2;
  }

  .main-nav ul {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 55px;
    padding-bottom: 75px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .projects-section {
    padding-bottom: 85px;
  }

  .section-heading {
    margin-bottom: 28px;

    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }

  .section-heading p {
    max-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr;

    gap: 42px;
  }

  .project-image {
    aspect-ratio: 1.3 / 1;
  }

  .about-section {
    padding-top: 85px;
    padding-bottom: 85px;
  }

  .about-title h2 {
    font-size: 2.6rem;
  }

  .contact-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .contact-container h2 {
    font-size: 3rem;
  }

  .footer-container {
    align-items: flex-start;
    flex-direction: column;

    gap: 16px;
  }

}

/*floating logog milyncia edits*/

.floating-logo {
    position: fixed;
    bottom: 35px;
    right: 35px;

    width: 60px;

    opacity: 0.7;
    z-index: 999;

    transition: all 0.3s ease;
}

.floating-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}