/* 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 {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* səhifə hündürlüyü qədər */
}


/* 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;
}

/* Container */
.container {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background-color: #ffffff;

  /* Səhifə paddinglərinə uyğun */
}

/* 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;
  justify-content: center;
}
.right nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
.right a {
  text-decoration: none;
  color: #666666;
  font-weight: 500;

  transition: color 0.3s ease;
}
.right a:not(:first-of-type){
  margin-left: 1.5rem;
}
.projects {
  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;
}

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

nav a p {
  font-weight: bold;
  font-family: DM Serif Display, serif;
}
main {
  max-width: 60rem;
  justify-content: center;
  text-align: left;

  padding-left: 1rem;
  padding-right: 1rem;

  flex: 1;
}
main h1 {
  font-size: 2.5rem;
  font-weight: 1200;
  font-family: DM Serif Display, serif;
}
main p {
  color: #666666;
}
/* Filters */
.filters {
  padding: 1rem 0;
  overflow-x: auto;
}

.filter-container {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #f0f3f4;
  color: #111618;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Hover effect */
.filter-btn:hover {
  background-color: #e0e3e4;
  transform: translateY(-2px);
}

/* Active state (first button) */
.filter-btn.active {
  background-color: rgba(19, 164, 236, 0.2);
  color: #13a4ec;
}

/* Projects Grid */

h3 {
    font-family: DM Serif Display, serif;
}

.projects-section {
  padding: 2rem 0;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1rem;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  border-color: #13a4ec;
  box-shadow: 0 4px 12px rgba(19, 164, 236, 0.15);
  transform: translateY(-4px);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #e0e0e0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-info h3 {
  font-size: 1.125rem;
  font-weight: bold;
  color: #111618;
  margin: 0;
}

.project-info p {
  font-size: 0.875rem;
  color: #617c89;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.view-page {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #007bff;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Hover effect */
.view-page:hover {
  background-color: #e0e3e4;
  transform: translateY(-2px);
}

/* footer */

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  margin-top: auto;
}

.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 (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* 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;
  }

  .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;
  }

  main h1,p{
    padding-left: 1rem;
  }

  .filter-container {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    flex-wrap: wrap;
  }

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

  .header-container{
    align-items: center;
    justify-content: baseline;
  }
  header{
    align-items: center;
    justify-content: center;
  }

  .right nav{
    justify-content: space-around;
  }
  nav a{
    margin-left: 0rem;
  }
}
