html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Pubblic Sans, sans-serif;
}
* {
  box-sizing: border-box;
}
::selection {
  color: #ffffff;       /* Seçilən mətn ağ rəngdə */
  background: #4a90e2;  /* Arxa fon ChatGPT-nin yaşıl rəngi */
}

::-moz-selection {
  color: #ffffff;       
  background: #4a90e2;
}

@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 */
header {
  margin-top: 1rem;
}
.header-container {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid #d1d5db;
  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 a {
  text-decoration: none;
  color: #666666;
  font-weight: 500;
  margin-left: 1.5rem;
  transition: color 0.3s ease;

  font-weight: bold;
  font-family: DM Serif Display, serif;
}

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

.righ {
  font-weight: bold;
  font-family: DM Serif Display, serif;
}

.content {
  max-width: 60rem;
  margin: 2rem auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #444444;
  padding-left: 1rem;
  padding-right: 1rem;
}
main section {
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* Son section-un altında xətt olmasın */
main section:last-child {
  border-bottom: none;
}

h1 {
  font-family: "DM Serif Display", serif;
  font-size: 2.25rem; /* text-4xl equivalent */
  font-weight: 800; /* font-black */
  line-height: 1.2; /* leading-tight */
  letter-spacing: -0.033em; /* tracking-[-0.033em] */
  color: #4a90e2; /* text-primary */
  margin: 0;
  padding: 0;
}

.intro p {
  font-size: 1rem;
  color: gray;
  line-height: 1.6;
}

.intro {
  padding-bottom: 2rem;
}

.introduction {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
}
main section h2 {
  font-weight: 600;
  font-size: 1.5rem;
  color: black;
}

.education {
  margin: 40px 0;
}

.education h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
}

.education-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.edu-card {
  flex: 1 1 300px; /* responsivlik üçün */
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
}

.edu-card h3 {
  font-size: 15px;
  color: #1a0dab; /* mavi rəng (şəkildəki link effekti kimi) */
  margin: 0 0 5px 0;
}

.edu-card .school {
  font-size: 14px;
  color: #555;
  margin: 0 0 3px 0;
}

.edu-card .date {
  font-size: 12px;
  color: #888;
  margin: 0;
}

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .left {
    justify-content: center;
    margin-bottom: 0rem; 
  }

  .logo {
    font-size: 2.5rem;
  }

  .logo-text {
    font-size: 1rem;
  }

  .right {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    margin: 0;
  }

  .right a {
    margin: 0.5rem 0; 
    font-size: 0.9rem;
  }
  footer p {
    font-size: 1.05rem;
  }
}
