/* ===============================
   Global Değişkenler
   (Renk paleti bu değişkenlerle kontrol edilebilir)
================================= */
:root {
  --color-primary: #006c67; /* Ana tema rengi (yeşilimsi) */
  --color-secondary: #0a3d62; /* İkincil tema rengi (lacivert) */
  --color-accent: #ffdb58; /* Vurgu rengi (sarı tonları) */
  --color-bg-light: #f4f4f4; /* Açık arka plan */
  --color-bg-dark: #222; /* Koyu arka plan */
  --color-text: #333; /* Genel metin rengi */
  --color-white: #ffffff; /* Beyaz */
}

/* ===============================
   Reset & Base Styles
================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.5;
}

/* ===============================
   Header
================================= */
header {
  background: linear-gradient(90deg, #000000, #f70800, #ffe600);
  background-size: 300% 100%;
  animation: flagAnimation 10s linear infinite;
  color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

header img {
  max-height: 53px;
  width: auto;
}

/* ===============================
   Navigation
================================= */
.navbar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.5s ease;
}

.navbar a:hover {
  color: var(--color-accent);
}

/* ===============================
   Language Switcher
================================= */
.lang-switch {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-white);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.lang-switch img {
  max-height: 25px;
  margin-right: 5px;
}

.lang-switch:hover {
  background-color: #0493f3;
  color: var(--color-white);
}

/* ===============================
   Main Content
================================= */
main {
  padding: 2rem;
}

main img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* ===============================
   Footer
================================= */
footer {
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* ===============================
   Buttons
================================= */
.cta-button {
  background-color: var(--color-white);
  color: #111;
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #ddd;
  transform: scale(1.05);
}

/* ===============================
   Animations
================================= */
@keyframes flagAnimation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ===============================
   Responsive
================================= */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
  }
  .navbar a {
    margin: 10px 0;
  }
  .tech-section {
    text-align: center;
  }
}

@media (max-width: 480px) {
  header {
    flex-direction: column;
    text-align: center;
  }
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  .navbar a {
    padding: 0.5rem 0;
  }
}

/* ===============================
   Tech Section
================================= */
.tech-section {
  background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1a2a3a);
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  padding: 60px 20px;
  text-align: center;
  color: var(--color-white);
}

.tech-section h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.2rem);
  margin-bottom: 15px;
}

.tech-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

/* ===============================
   Product Gallery
================================= */
.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.product-card {
  width: 250px;
  background-color: var(--color-bg-light);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.product-card img:hover {
  transform: scale(1.03);
}

.product-card h2 {
  font-size: 1.2rem;
  color: var(--color-secondary);
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.95rem;
}

/* ===============================
   Projects Page
================================= */
.projects-page main section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f0f8ff;
  border-left: 6px solid var(--color-primary);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.projects-page main section h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.projects-page main section ul {
  list-style: none;
  padding-left: 0;
}

.projects-page main section ul li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
}

.projects-page main section ul li strong {
  color: var(--color-text);
}

/* ===============================
   Contact Form
================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: var(--color-bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: darken(var(--color-primary), 10%);
}

/* Sayacı ortalamak için dış kapsayıcı */
.visitor-counter-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
  background: linear-gradient(to right, #f0f0f0, #e0e0e0);
  margin: 2rem 0;
}

/* Sayaç kutusu */
.visitor-counter-box {
  background: white;
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: wave 3s infinite ease-in-out;
}

/* "Ziyaret Sayısı" yazısı */
.counter-label {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #444;
}

/* Sayı görünümü */
.visitor-count {
  font-size: 3rem;
  font-weight: bold;
  color: #0078d7;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dalga animasyonu */
@keyframes wave {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
