/* =========================
   RESET & BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #ededed;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

input,
textarea {
  font: inherit;
}

/* =========================
   CUSTOM TEXT SELECTION
   ========================= */
::selection,
::-moz-selection {
  background: #d1d5db;
  color: #000;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 11px;
  background: #808080;
}
::-webkit-scrollbar-track {
  background: #808080;
  border-radius: 11px;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

/* =========================
   HEADER / NAV
   ========================= */
header {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.33);
}

.header-content {
  width: 100%;
  background: #f2f2f2;
}

.nav-menu {
  width: 980px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-family: "Josefin Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  transition: 0.4s;
}
.nav-logo a:hover {
  color: #3b82f6;
}
.nav-logo .dotme {
  color: #3b82f6;
}

/* Nav Links */
.nav-list {
  display: inline-flex;
  flex-wrap: nowrap;
}

.nav-list a {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  display: inline-block;
  margin: 30px 30px 20px;
  padding-bottom: 7px;
  position: relative;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

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

.nav-list a::after {
  content: "";
  width: 100%;
  height: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  background: #3b82f6;
  border-radius: 1px;
  transition: height 0.3s ease;
}
.nav-list a:hover::after {
  height: 4px;
}

/* Nav Responsive */
@media (max-width: 1120px) {
  .nav-menu {
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 6px;
    width: 100%;
  }
  .nav-logo a {
    font-size: 20px;
    margin: 10px 0 2px;
  }
  .nav-list {
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav-list a {
    margin: 12px 16px;
    font-size: 11px;
    padding-bottom: 6px;
  }
}
@media (max-width: 650px) {
  .nav-list a {
    margin: 8px 12px;
    font-size: 11px;
  }
}

/* =========================
   WORK PAGE GRID
   ========================= */
main {
  flex: 1;
}

#work .main-wrap {
  margin: 40px 0 30px;
  padding: 0 16px;
}

#work .main-grid {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr; /* mobile: tek sütun */
}

/* 2x2 grid (tablet ve üstü) */
@media (min-width: 768px) {
  #work .main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Project Card */
#work .grid-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
  transition: 0.2s ease;
}

#work .grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* Overlay */
#work .overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  background: rgba(31, 41, 55, 0.9);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.25s ease;
}
#work .grid-item:hover .overlay {
  opacity: 1;
}

#work .overlay h2 {
  font-size: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
}
#work .overlay p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

/* Overlay – küçük ekranlarda daha sıkı padding */
@media (max-width: 640px) {
  #work .overlay {
    padding: 20px;
  }
  #work .overlay h2 {
    font-size: 18px;
  }
  #work .overlay p {
    font-size: 13px;
  }
}

/* =========================
   ABOUT PAGE
   ========================= */
.about-section {
  max-width: 900px;
  margin: 80px auto 120px;
  padding: 0 20px;
  color: #1a1a1a;
  line-height: 1.75;
}

.about-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 15px;
  margin-bottom: 16px;
  color: #333;
}

@media (max-width: 640px) {
  .about-section {
    margin: 60px auto 100px;
    padding: 0 16px;
  }
  .about-section h2 {
    font-size: 24px;
  }
  .about-section p {
    font-size: 14px;
  }
}

/* =========================
   THREE COLS
   ========================= */
.three-cols {
  background: #ededed;
  padding: 40px 0 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.three-cols__container {
  width: 930px;
  margin: 0 auto;
  display: grid;
  gap: 56px;
  grid-template-columns: repeat(3, 1fr);
}

.three-cols__item {
  text-align: center;
  padding: 0 10px;
}

/* ICONS (Shared) */
.three-cols__item svg,
.contact-hero__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  color: #1a1a1a;
  opacity: 0.9;
  flex-shrink: 0;
}

.three-cols__title {
  font-family: "Montserrat";
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}

.three-cols__text {
  max-width: 560px;
  margin: 0 auto;
  font-size: 13px;
  color: #555;
  line-height: 20px;
}

/* =========================
   FOOTER (FIXED + RESPONSIVE)
   ========================= */
.site-footer {
  background: #ededed;
  margin-top: auto;
  width: 100%;
}

.thin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
  padding: 40px 0 44px;
  width: 930px;
  max-width: 100%;
}

/* Footer text */
.copyright {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 11px;
  color: #000;
  white-space: nowrap;
}

.copyright span {
  font-weight: 700;
}

/* Social icons */
.social {
  display: flex;
  align-items: center;
  gap: 22px;
}

.social a {
  opacity: 0.6;
  transition: 0.25s ease;
  display: inline-flex;
}

.social a:hover {
  opacity: 1;
}

/* Responsive footer */
@media (max-width: 700px) {
  .thin-footer {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    padding: 28px 0 40px;
  }

  .social {
    gap: 18px;
  }
}

/* =========================
   BACK TO TOP
   ========================= */
.back-to-top {
  position: fixed;
  bottom: 3em;
  right: 3em;
  padding: 15px 17px;
  color: #fff;
  background: #1a1a1a;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.25s ease;
}

.back-to-top:hover {
  background: #3b82f6;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   CONTACT PAGE
   ========================= */
.contact-hero {
  min-height: calc(100vh - 180px);
  padding: 40px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-hero__email {
  font-size: 34px;
  font-weight: 700;
  color: #bdbdbd;
}

@media (max-width: 640px) {
  .contact-hero__email {
    font-size: 26px;
  }
}
