/* Bismillah */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Pubblic Sans, sans-serif;
}
* {
  box-sizing: border-box;
}
::selection {
  color: #ffffff;
  background: #4a90e2;
}

::-moz-selection {
  color: #ffffff;
  background: #4a90e2;
}
body {
  justify-content: center;
}

/* fonts */

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* DM Serif Display (başlıqlar üçün gözəl seçim) */
@font-face {
  font-family: "DM Serif Display";
  src: url("./fonts/DMSerifDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("./fonts/DMSerifDisplay-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

/* ===== PUBLIC SANS FONT FAMILY (OPTIMIZED SELECTION) ===== */
@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Header Styles */

header {
  margin-top: 1rem;
}
.header-container {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #ffffff;

  /* Səhifə paddinglərinə uyğun */
  padding-left: 1rem;
  padding-right: 1rem;
}

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

/* Left */

.logo {
  font-family: "DM Serif Display", serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: #333333;
  margin: 0;
}
.logo a {
  text-decoration: none;
  color: #333333;
}

.logo-text {
  margin-left: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: #333333;
}

/* Right */
.right {
  display: flex;
  align-items: center;
}
.right nav {
  display: flex;
  flex-direction: row;
}
.right a {
  text-decoration: none;
  color: #666666;
  font-weight: 500;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}
.contact {
  color: #4a90e2;
}

.right button {
  padding: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  border-radius: 12px;
  border: none;
  background: #007bff;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.right button:hover {
  background: #278fff;
}

nav a p {
    font-weight: bold;
    font-family: DM Serif Display, serif;
}

nav a:hover {
  color: #4a90e2;
}



main {
  justify-content: center;
  text-align: center;
}
.main-intro {
  justify-content: center;
  text-align: center;
}
.main-intro p {
  text-align: center;
}
.main-intro h1 {
  font-size: 2.5rem;
  font-weight: 1200;
  margin-bottom: 0.5rem;
  padding-top: 4rem;

  font-family: DM Serif Display, serif;
}

.main-intro p {
  font-size: 1.2rem;
  color: #666666;
  margin-top: 0;
  padding-top: 1rem;
}

.form-section {
  max-width: 40rem;
  justify-content: center;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 0;
}

.form-section {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-forum {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1rem;
  font-weight: 500;
  color: #333333;
  margin-bottom: 0.5rem;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9375rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "Public Sans", sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.form-group textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.contact-forum button {
  width: 100%;
  padding: 0.9375rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-forum button:hover {
  background-color: #278fff;
}

.note {
  padding-top: 1rem;
  font-size: 1rem;
  color: #666666;
}

.note a {
  text-decoration: none;
  color: #4a90e2;
}

/* footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
}

.social-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.social-buttons button {
  border: none;
  background: transparent;
  cursor: pointer;
}

.social-buttons button svg {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.social-buttons .instagram svg {
  width: 2.9rem;
  height: 2.9rem;
  flex-shrink: 0;
}

footer p {
  color: #6a7282;
  font-weight: 500;
}

/* Responsive */

@media (width<=64rem) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .right {
    margin-top: 1rem;
    gap: 0.7rem;
  }

  .form-row {
    flex-direction: column;
  }

  .left,
  .right {
    justify-content: center;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .left{
    display: flex;
    flex-direction: row;
  }
  .right nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .home{
    margin-left: 0;
    width: 100%;
  }

  .resume-button {
    margin-left: 0;
    width: 100%;
  }



  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .main-intro h1 {
    padding-top: 0.2rem;
  }
  .main-intro p{
    text-align: justify;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
