/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

:root {
  --bg-color: #0a0f1f;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text-color: #e0e0e0;
  --accent-color: #0ef; /* Neon Cyan */
  --accent-glow: rgba(0, 238, 255, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --font-main: "Inter", sans-serif;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  overflow-x: hidden;
}

/* --- LANGUAGE SWITCH LOGIC --- */
/* Varsayılan olarak İngilizce açık, Almanca kapalı başlar (JS ile yönetilir) */
body.lang-en .lang-de {
  display: none !important;
}
body.lang-de .lang-en {
  display: none !important;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 15, 31, 0.85);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8%;
  z-index: 1000;
  border-bottom: var(--glass-border);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.logo span {
  color: var(--accent-color);
}

.navbar {
  display: flex;
  align-items: center;
}
.navbar a {
  color: #ccc;
  font-size: 1.2rem;
  margin-left: 30px;
  font-weight: 500;
  position: relative;
}
.navbar a:hover,
.navbar a.active {
  color: var(--accent-color);
}
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: 0.3s;
}
.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  bottom: -5px;
  left: 0;
}

/* Language Button */
.lang-btn {
  margin-left: 30px;
  padding: 5px 15px;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.lang-btn:hover {
  background: var(--accent-color);
  color: #000;
}

#menu-icon {
  font-size: 1.8rem;
  display: none;
  cursor: pointer;
  color: #fff;
  margin-left: 20px;
}

/* --- GENERAL LAYOUT --- */
section {
  padding: 80px 8% 80px;
  min-height: 80vh;
  position: relative;
}
.heading {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards;
}
.heading span {
  color: var(--accent-color);
  text-shadow: 0 0 15px var(--accent-glow);
}

/* --- COMPONENTS --- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
  transform: translateX(-100%);
  transition: 0.5s;
}
.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(0, 238, 255, 0.2);
}
.glass-card:hover::before {
  transform: translateX(100%);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent-color);
  border-radius: 50px;
  box-shadow: 0 0 10px var(--accent-color);

  color: #0a0f1f; /* Dark text on button */
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: 0.5s ease;
}

.btn:hover {
  box-shadow: none;
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/* Move hero button a bit down from the text above */
.hero-content .btn {
  margin-top: 2rem;
}

/* --- HOME HERO --- */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 0;
}
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}
.hero-content h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #aaa;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 5rem;
  flex-wrap: wrap;
}
.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
}
.stat-item p {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* --- LOGO SLIDER (Infinite Scroll) --- */
.logo-slider {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.2);
  margin-top: -50px;
}
.logo-track {
  display: flex;
  width: calc(200px * 10); /* Tahmini genişlik */
  animation: scroll 20s linear infinite;
}
.client-logo {
  width: 300px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 5));
  }
}

/* --- SERVICES --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* --- TIMELINE (About) --- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}
.container {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}
.left {
  left: 0;
  text-align: left;
}
.right {
  left: 50%;
}
.container::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background: var(--bg-color);
  border: 2px solid var(--accent-color);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--accent-color);
}
.right::after {
  left: -8px;
}

/* --- PROJECTS --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.project-card h2 {
  margin-bottom: 2rem;
}

.tech-stack {
  margin: 15px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tech-tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--accent-color);
  border-radius: 15px;
  color: var(--accent-color);
}
.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  vertical-align: middle;
}

/* --- CONTACT --- */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}
.contact-info,
.contact-form-wrap {
  flex: 1;
  min-width: 300px;
}
.map-frame {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  border: var(--glass-border);
  margin-top: 20px;
  filter: grayscale(100%) invert(92%) contrast(83%);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
  color: #fff;
  border-radius: 8px;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
}

/* --- FOOTER --- */
footer {
  padding: 40px 8%;
  text-align: center;
  border-top: var(--glass-border);
  color: #777;
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    flex-direction: column;
    display: none;
    padding: 2rem 0;
    border-bottom: 1px solid #333;
  }
  .navbar.active {
    display: flex;
  }
  .navbar a {
    margin: 1rem 0;
    font-size: 1.2rem;
  }
  #menu-icon {
    display: block;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .timeline::after {
    left: 31px;
  }
  .container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    text-align: left;
  }
  .container::after {
    left: 23px;
  }
  .right {
    left: 0;
  }
  .contact-wrapper {
    flex-direction: column;
  }
}

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

/* === PROFESSIONAL FOOTER === */
.site-footer {
  background: rgba(10, 15, 31, 0.9);
  border-top: var(--glass-border);
  padding: 80px 8% 30px;
  font-size: 0.95rem;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
  text-align: left;
}

.footer-col ul li a {
  color: #aaa;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

/* Brand */
.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-logo span {
  color: var(--accent-color);
}

.footer-col.brand p {
  color: #999;
  line-height: 1.6;
  max-width: 350px;
}

/* Social */
.social-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
}

.social-links a:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Contact */
.footer-contact li {
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: var(--glass-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: left;
  flex-wrap: wrap;
  gap: 15px;
  color: #777;
}

.legal-links a {
  margin-left: 20px;
  color: #777;
  font-size: 0.85rem;
}

.legal-links a:hover {
  color: var(--accent-color);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* === FOOTER SCROLL REVEAL === */
.footer-col,
.footer-bottom {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer-col.reveal,
.footer-bottom.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect */
.footer-col:nth-child(1) {
  transition-delay: 0.1s;
}
.footer-col:nth-child(2) {
  transition-delay: 0.2s;
}
.footer-col:nth-child(3) {
  transition-delay: 0.3s;
}
.footer-col:nth-child(4) {
  transition-delay: 0.4s;
}

.footer-bottom {
  transition-delay: 0.5s;
}
/* content detail section  */
/* ==============================================
   DETAILED SERVICE SECTIONS STYLING
=============================================== */

/* Section Layout */
.service-detail {
  padding: 80px 3%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.service-detail.alt-bg {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 31, 0) 0%,
    rgba(0, 238, 255, 0.03) 50%,
    rgba(10, 15, 31, 0) 100%
  );
}

.service-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.service-container.reverse {
  direction: rtl; /* Swaps columns for Zig-Zag effect */
}

.service-container.reverse .service-content {
  direction: ltr; /* Resets text direction */
}

/* Typography & Badges */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 238, 255, 0.1);
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #fff;
}

.highlight {
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-glow);
}

.service-description {
  color: #bbb;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Problem / Solution Grid */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ps-card {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #555;
  padding: 20px;
  border-radius: 0 10px 10px 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: 0.3s;
}

.ps-card i {
  font-size: 1.5rem;
  margin-top: 4px;
}

.ps-card.problem {
  border-color: #fff;
}
.ps-card.problem i {
  color: #fff;
}

.ps-card.solution {
  border-color: var(--accent-color);
  background: linear-gradient(
    90deg,
    rgba(0, 238, 255, 0.05) 0%,
    transparent 100%
  );
}
.ps-card.solution i {
  color: var(--accent-color);
}

.ps-card h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 5px;
}

.ps-card p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* Benefit List */
.benefit-list {
  margin-bottom: 2.5rem;
}

.benefit-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #e0e0e0;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.benefit-list li i {
  color: var(--accent-color);
  background: rgba(0, 238, 255, 0.1);
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.9rem;
}

/* Visual Side (Cards & Tech Stack) */
.service-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.visual-card {
  width: 100%;
  height: 400px;
  background: var(--card-bg);
  border: var(--glass-border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.visual-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--accent-color);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
  top: -50px;
  left: -50px;
}

.bg-icon {
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.05);
  transition: 0.5s;
}

.visual-card:hover .bg-icon {
  color: rgba(0, 238, 255, 1);
  transform: scale(1.1) rotate(5deg);
}

.tech-stack-display {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 10px;
}

.tech-stack-display span {
  background: rgba(10, 15, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #ccc;
  backdrop-filter: blur(5px);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transition: all 1s ease-out;
}

[data-animate="slide-right"] {
  transform: translateX(-50px);
}

[data-animate="slide-left"] {
  transform: translateX(50px);
}

.animate-active {
  opacity: 1;
  transform: translateX(0) !important;
}

/* Responsive */
@media (max-width: 900px) {
  .service-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service-container.reverse {
    direction: ltr;
  }

  .visual-card {
    height: 300px;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* gemini bolümü  */

/* --- SERVICES GRID LIST STYLE --- */

/* Liste genel ayarları */
.glass-card ul {
  list-style: none; /* Varsayılan noktaları kaldırır */
  padding: 0;
  margin: 1.2rem 0;
  text-align: left; /* Metinleri sola yaslar */
}

/* Her bir liste maddesi */
.glass-card ul li {
  position: relative;
  padding-left: 28px; /* İkon için boşluk */
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #cbd5e1; /* Soft gümüş rengi */
  line-height: 1.4;
  transition: all 0.3s ease;
}

/* Modern İkon (Checkmark) Ekleme */
.glass-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: #00eeff;
  font-size: 0.85rem;
  text-shadow: 0 0 8px rgba(0, 238, 255, 0.6);
}

.glass-card ul li:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.glass-card ul li span {
  display: block;
}

/* gemini answer  */
/* ===============================
   PROJECT DETAIL VIEW
================================ */

.project-detail {
  display: none;
  max-width: 900px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease forwards;
}

.project-detail.active {
  display: block;
}

.project-grid.hidden {
  display: none;
}

.project-detail h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.project-detail p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #bbb;
  margin-bottom: 1.5rem;
}

.project-detail ul {
  margin: 1.5rem 0;
}

.project-detail ul li {
  margin-bottom: 12px;
  color: #ddd;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2rem;
  cursor: pointer;
  color: var(--accent-color);
  font-weight: 600;
}

.back-btn i {
  font-size: 0.9rem;
}

.back-btn:hover {
  text-shadow: 0 0 10px var(--accent-glow);
}

/* gpt trying */
/* Project section h2 başlıkları için boşluk */
/* 1. Temel Stil (Mobil için - Küçük ekranlar) */
#projects h2.heading {
  margin-bottom: 20px;
  margin-top: 15px;
  font-size: 1.5rem; /* Mobil için daha küçük bir boyut */
  line-height: 1.2;
  font-weight: 700;
  text-align: center; /* Mobilde genelde ortalı başlıklar daha iyi durur */
  transition: font-size 0.3s ease; /* Boyut geçişini yumuşatır */
}

/* 2. Tablet ve Büyük Ekranlar için (768px ve üzeri) */
@media (min-width: 768px) {
  #projects h2.heading {
    font-size: 2.5rem; /* Büyük ekranlarda daha görkemli bir boyut */
    text-align: left; /* Büyük ekranda sola yaslayabiliriz */
  }
}

/* Project detail alt başlıkları */
.project-subtitle {
  margin-top: 2.5rem; /* üstteki içerikten boşluk */
  margin-bottom: 1rem; /* altındaki listeden boşluk */
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}
