:root {
  --main-color: #f6f8ee;
  --second-color: #1C1C1C;
  --dark-text-color: #111111;
  --light-text-color: #e0e0e0;
  --soft-text-color: #d8d8d8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Average Sans", sans-serif;
}

.average-sans-regular {
  font-family: "Average Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--second-color);
  /* arka plan (track) */
}

::-webkit-scrollbar-thumb {
  background: var(--soft-text-color);
  /* scroll’un kendisi */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--light-text-color);
  /* hover efekti */
}

body,
html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  /* ← SADECE YATAYI KISITLA */
  font-family: 'Inter', sans-serif;

  background: linear-gradient(120deg, #1C1C1C 0%, #0F0F0F 100%);
  scroll-behavior: smooth;
}

body {

  background-color: linear-gradient(120deg, #1C1C1C 0%, #0F0F0F 100%);

  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

html {
  background-color: linear-gradient(120deg, #1C1C1C 0%, #0F0F0F 100%);
}

section {
  min-height: 100vh;
  padding: 120px 40px 80px 40px;
  /* üstte ekstra 50px verdik */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

strong {
  font-weight: 600;
  color: var(--main-color);
}

/*NAVBAR-------------------------------------------------------------------------*/
/* NAVBAR */
nav#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 100px;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  z-index: 10;
  transform: translateY(-100%);
  transition: all 0.6s ease;
}

nav#navbar.visible {
  transform: translateY(0);
}

nav .logo a {
  display: block;
  width: 150px;
  height: 40px;
}

nav .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  animation: fadeInLeft 0.6s ease forwards;
}


nav .nav-links {
  display: flex;
  gap: 20px;
  animation: fadeInRight 0.6s ease forwards;
}

nav .nav-links a {
  color: var(--main-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* MOBIL HAMBURGER */
.hamburger {
  display: none;
  font-size: 28px;
  color: var(--main-color);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(120deg, #1C1C1C 0%, #3c3c3c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 99;
  transition: right 0.4s ease;
}

.mobile-menu.hidden {
  right: -100%;
}

.mobile-menu a {
  color: var(--main-color);
  font-size: 24px;
  text-decoration: none;
}

.mobile-menu .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  color: var(--main-color);
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav#navbar {
    padding: 0 20px;
  }

  nav .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* FADE ANIMASYONLAR */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*NAVBAR-------------------------------------------------------------------------*/
/*LANDING PAGE-------------------------------------------------------------------------*/
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.overlay {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  color: var(--main-color);
  text-align: center;
}

.overlay h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  margin-bottom: 10px;
}

.overlay p {
  font-size: clamp(16px, 2.5vw, 18px);
  color: var(--soft-text-color);
}

.landing-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-btn {
  padding: 12px 24px;
  background-color: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background-color: var(--main-color);
  color: var(--second-color);
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .landing-buttons {
    flex-direction: column;
    align-items: center;
  }

  .scroll-btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}

/*LANDING PAGE-------------------------------------------------------------------------*/
/*ABOUT-------------------------------------------------------------------------*/
.about-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ─── Biz Kimiz ───────────────────────────── */
.about-block {
  max-width: 80vw;
  box-sizing: border-box;
  border: 1px solid var(--main-color);
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(175deg, #0000003f 0%, #ffffff18 100%);
  transition: all 0.2s ease-in-out;
  margin: 0 auto;
}

.about-block:hover {
  box-shadow: 0 0 10px var(--main-color);
}

.about-block h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--main-color);
  margin-bottom: 12px;
  text-align: center;
  word-break: break-word;
}

.about-block p {
  color: var(--soft-text-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (max-width: 768px) {
  .about-block {
    padding: 16px;
    max-width: 80vw;
  }

  .about-block h2 {
    font-size: 22px;
  }

  .about-block p {
    font-size: 16px;
  }
}

/* ─── Kartlı Bölümler ─────────────────────── */
.about-section {
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  padding: 20px 0;
}

.about-section h2 {
  font-size: 32px;
  font-weight: 500;
  color: var(--main-color);
  margin-bottom: 24px;
  text-align: center;
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-card {
  border: 1px solid var(--main-color);
  border-radius: 12px;
  padding: 20px;
  background-color: rgba(69, 69, 69, 0.155);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: 0.2s;
  width: 260px;
  flex-shrink: 0;
}

.about-card:hover {
  box-shadow: 0 0 10px var(--main-color);
}

.about-card i {
  font-size: 28px;
  color: var(--main-color);
  margin-bottom: 12px;
  display: inline-block;
}

.about-card p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--soft-text-color);
  word-break: break-word;
}

/* Ekran küçüldükçe sütun sayısını azalt */
@media (max-width: 768px) {
  .about-section h2 {
    text-align: center;
  }
}

/*ABOUT-------------------------------------------------------------------------*/
/*PROJECTS-------------------------------------------------------------------------*/
.projects-section {
  padding: 100px 100px;
  color: var(--main-color);
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  justify-content: center;
}

.project-image {
  flex: 1 1 300px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 2px var(--main-color);
}

.project-image:hover {
  box-shadow: 0 0 10px var(--main-color);
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.project-content {
  flex: 1 1 300px;
}

.project-content h4 {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--light-text-color);
  margin-bottom: 10px;
}

.project-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--main-color);
}

.project-content p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--soft-text-color);
  margin-bottom: 20px;
}

.view-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--main-color);
  border-radius: 8px;
  color: var(--main-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 100;
  transition: all 0.3s ease;
}

.view-btn:hover {
  background-color: var(--main-color);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@media (min-width: 1024px) {
  .project-item:nth-child(even) {
    flex-direction: row-reverse;
  }
}

@media (max-width: 768px) {
  .projects-section {
    padding: 100px 20px;
  }

  .project-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-content {
    padding-top: 20px;
  }

  .project-image,
  .project-content {
    flex: 1 1 auto;
    width: 100%;
  }

  .project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .project-content {
    padding: 0 10px;
  }
}

/*PROJECTS-------------------------------------------------------------------------*/
/*FOOTER-------------------------------------------------------------------------*/
.main-footer {
  background: linear-gradient(to right, #1C1C1C, #0F0F0F);
  color: var(--main-color);
  padding: 50px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo {
  max-width: 200px;
}

.footer-contact,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-contact a,
.footer-social a {
  color: var(--main-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.footer-contact a:hover,
.footer-social a:hover {
  color: var(--main-color);
  text-shadow: 0 0 5px var(--main-color);
}

.footer-social .social-icons {
  display: flex;
  gap: 20px;
}

.footer-social i,
.footer-contact i {
  margin-right: 8px;
  font-size: 18px;
}

.footer-bottom {
  font-size: 12px;
  color: var(--soft-text-color);
}

.footer-bottom p {
  margin-bottom: 6px;
}

.footer-bottom a {
  color: var(--main-color);
  text-decoration: none;
  transition: 0.1s ease;
}

.footer-bottom a:hover {
  text-shadow: 0 0 10px var(--main-color);
}

/* Responsive */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-contact,
  .footer-social {
    align-items: center;
  }

  .footer-logo-area,
  .footer-contact,
  .footer-social {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

}

/*FOOTER-------------------------------------------------------------------------*/
/* GENEL FADE-IN VE YUKARIDAN GELME ANİMASYONU */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-up.appear {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Gecikmeler sadece 'appear' olunca işe yarar */
.fade-in-up.appear.delay-1 {
  animation-delay: 0.3s;
}

.fade-in-up.appear.delay-2 {
  animation-delay: 0.6s;
}

.fade-in-up.appear.delay-3 {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tilt-card {
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  will-change: transform;
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
  overflow: hidden;
}

.tilt-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  pointer-events: none;
  transition: background 0.2s ease;
  z-index: 0;
}