/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
html, body { height: 100%; }

/* === GENEL GÖVDE === */
body {
  min-height: 100vh;
  background: url("images/gibs_home.png") no-repeat center 60% fixed;
  background-size: cover;
  font-family: 'Roboto', sans-serif;
  color: #fff;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6); z-index: 1; pointer-events: none;
}
body > * { position: relative; z-index: 2; }

/* === TOP BAR === */
.top-bar {
  background: rgba(0,0,0,0.85);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0; left: 0; width: 100%; z-index: 1000;
  min-height: 46px;
}
.logo {
  height: 36px;
  max-width: 120px;
  margin-right: 10px;
  vertical-align: middle;
}
.right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.flag {
  width: 25px; height: 17px;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.flag:hover {
  transform: scale(1.1);
  box-shadow: 0 0 5px #ff5e14;
}
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.8rem;
  color: #fff;
  padding: 8px;
  z-index: 1001;
}

/* Masaüstü bayraklar */
.flags.desktop-flags { display: flex; gap: 6px; }
.flags.mobile-flags { display: none; justify-content: center; margin-top: 16px; gap: 8px; }

/* === NAV === */
nav {
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  position: sticky;
  top: 52px;
  z-index: 999;
  transition: max-height 0.3s;
}
nav a {
  color: #fff; text-decoration: none; margin: 0 15px; font-weight: bold; transition: color 0.2s;
}
nav a.active, nav a:hover { color: #ff5e14 !important; border-bottom: 2px solid #ff5e14; }

/* Mobil iletişim */
.mobile-contact-info {
  display: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 10px;
    right: 16px;
  }
  .right {
    gap: 8px;
  }
  /* Sadece sosyal ikonlar ve bayraklar kalsın */
  .right i.fa-whatsapp,
  .right i.fa-envelope,
  .right .contact-phone,
  .right .contact-mail {
    display: none !important;
  }
  .flags.desktop-flags {
    display: none !important;
  }
  .flags.mobile-flags {
    display: flex !important;
    gap: 6px;
    justify-content: center;
    margin-top: 14px;
  }
  nav {
    display: none;
    flex-direction: column;
    background-color: rgba(0,0,0,0.97);
    position: absolute;
    top: 48px; right: 0; width: 100%;
    padding: 15px 0 10px 0;
    z-index: 2000;
    box-shadow: 0 2px 12px 0 #0002;
  }
  nav.active {
    display: flex;
  }
  nav a {
    display: block;
    padding: 13px 0;
    font-size: 1.15rem;
    margin: 0 12px;
  }
  nav .flags.mobile-flags {
    display: flex !important;
    margin-top: 10px;
    gap: 10px;
  }
  nav .mobile-contact-info {
    display: block !important;
    color: #fff;
    text-align: center;
    font-size: 1rem;
    margin: 12px 0 0 0;
    opacity: 0.95;
  }
}
@media (max-width: 600px) {
  .top-bar {
    padding: 5px 7px;
    min-height: 41px;
  }
  .logo {
    height: 25px !important;
    max-width: 85px !important;
    margin-right: 4px !important;
  }
  .right {
    gap: 6px;
  }
  /* Sadece Youtube, Insta, LinkedIn, bayraklar kalsın */
  .right a:not([aria-label]),
  .right .fa-whatsapp,
  .right .fa-envelope {
    display: none !important;
  }
  .right .flags {
    margin-left: 0;
    gap: 4px;
  }
  .menu-toggle {
    font-size: 2.2rem;
    top: 6px;
    right: 10px;
  }
}
/* Mobil menü açılınca iletişim göster */
nav.active .mobile-contact-info {
  display: block !important;
}

/* === HERO & RIGHT OVERLAY (index.html) === */
.right-overlay-box {
  position: absolute; top: 38%; right: 6vw; transform: translateY(-50%);
  background: rgba(0,0,0,0.45); border-radius: 18px; box-shadow: 0 8px 36px 0 rgba(255,94,20,0.10);
  max-width: 450px; padding: 42px 34px 34px 38px; text-align: right; z-index: 10;
}
.right-overlay-box h1 {
  font-size: 2.3rem; font-weight: 700; color: #fff; margin-bottom: 18px; letter-spacing: 1px; text-shadow: 1px 2px 10px #001a4450;
}
.right-overlay-box p {
  font-size: 1.17rem; color: #fff; text-shadow: 1px 2px 7px #001a4440; opacity: 0.97;
}
@media (max-width: 900px) {
  .right-overlay-box { right: 2vw; max-width: 98vw; }
}
@media (max-width: 768px) {
  .right-overlay-box { position: static; margin: 68px auto 0 auto; max-width: 98vw; text-align: center; left: 0; right: 0; top: auto; transform: none; padding: 36px 7vw 26px 7vw; }
  .right-overlay-box h1 { font-size: 2rem; }
  .right-overlay-box p { font-size: 1.08rem; }
}
@media (max-width: 520px) {
  .right-overlay-box { padding: 10vw 2vw; }
  .right-overlay-box h1 { font-size: 1.15rem; }
  .right-overlay-box p { font-size: 0.95rem; }
}

/* === HERO-SERVICES (services.html) === */
.hero-services {
  background: url('images/services.png') center center/cover no-repeat;
  min-height: 350px; display: flex; align-items: center; justify-content: center; flex-direction: column;
  position: relative; color: #fff; text-align: center;
  margin-bottom: 30px;
}
.hero-services .hero-content {
  position: relative; z-index: 2; max-width: 650px; padding: 40px 26px 32px 26px;
  background: rgba(0,0,0,0.4); border-radius: 18px; margin: 0 auto;
}
.hero-services h1 { font-size: 2.1rem; font-weight: 700; margin-bottom: 13px; }
.hero-services p { font-size: 1.13rem; opacity: 0.97; }
@media (max-width: 768px) {
  .hero-services { min-height: 220px; }
  .hero-services .hero-content { padding: 16vw 2vw; }
  .hero-services h1 { font-size: 1.25rem; }
  .hero-services p { font-size: 1.01rem; }
}

/* === HİZMETLER KARTLARI === */
.services-cards {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 32px;
  margin: 48px auto 30px auto; max-width: 1100px;
}
.service-card {
  flex: 1 1 270px; background: #fff; border-radius: 18px; min-width: 220px; max-width: 320px;
  padding: 36px 26px 28px 26px; box-shadow: 0 4px 32px 0 rgba(44,86,197,0.13);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: box-shadow 0.18s, transform 0.13s; border-top: 5px solid #0646c8;
}
.service-card img, .service-card i {
  font-size: 2.5rem !important; margin-bottom: 16px; color: #0646c8 !important;
  width: 62px; height: 62px; object-fit: contain;
}
.service-card h3 {
  font-size: 1.15em; font-weight: bold; margin-bottom: 10px; color: #0646c8;
}
.service-card ul {
  padding-left: 0; list-style: none; margin: 0; color: #222; font-size: 1em; text-align: left;
}
.service-card ul li {
  margin-bottom: 10px; padding-left: 22px; position: relative; font-size: 1.09em;
}
.service-card ul li:before {
  content: "•"; color: #0646c8; font-weight: bold; margin-right: 7px; position: absolute; left: 0; font-size: 1.2em;
}
.service-card:hover {
  box-shadow: 0 10px 40px 0 #0646c866;
  transform: scale(1.045);
}
@media (max-width: 900px) {
  .services-cards { gap: 18px; max-width: 98vw; }
  .service-card { min-width: 180px; max-width: 96vw; }
}
@media (max-width: 600px) {
  .services-cards { flex-direction: column; gap: 18px; align-items: center; margin: 30px auto 18px auto; }
  .service-card { width: 97vw; min-width: unset; max-width: 99vw; padding: 24px 8px 20px 8px; font-size: 0.98em; }
}

/* === TARGET MARKETS (HEDEF ENDÜSTRİSİ) KARTLARI === */
.target-markets-title {
  text-align: center; font-size: 2rem; color: #0646c8;
  margin-top: 48px; margin-bottom: 25px; font-weight: 700; letter-spacing: .02em;
}
.target-markets-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 22px;
  margin: 0 auto 55px auto; max-width: 980px;
}
.target-market-card {
  background: #f6f9fe; border-radius: 14px; box-shadow: 0 1px 9px 0 #0646c824, 0 2px 8px 0 #0002;
  width: 200px; min-width: 140px; max-width: 210px; min-height: 120px;
  padding: 24px 14px 19px 14px;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow 0.17s, transform 0.12s; position: relative;
}
.target-market-card:hover {
  box-shadow: 0 8px 26px 0 #0646c83b;
  transform: scale(1.03);
}
.target-market-num {
  color: #fff; background: #0646c8; width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.28em; font-weight: bold; display: flex; align-items: center; justify-content: center;
  margin-bottom: 9px; box-shadow: 0 2px 10px #0646c830; letter-spacing: 0.03em;
}
.target-market-title {
  font-size: 1.08em; color: #19366c; font-weight: 600; text-align: center; margin-top: 7px; letter-spacing: .01em;
}
@media (max-width: 900px) {
  .target-markets-grid { gap: 10px; max-width: 98vw; }
  .target-market-card { min-width: 110px; width: 46vw; max-width: 230px; padding: 14px 7px 14px 7px; }
}
@media (max-width: 600px) {
  .target-markets-grid { flex-direction: column; align-items: center; gap: 8px; max-width: 99vw; }
  .target-market-card { width: 96vw; min-width: unset; max-width: 99vw; margin: 0 auto; padding: 17px 8px; }
}

/* === ABOUT/REFERENCES/CONTACT === */
.about-boxes { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin: 0 auto; padding-top: 30px; }
.about-box {
  background: #fffdfa; border-radius: 18px; box-shadow: 0 4px 24px 0 rgba(255,94,20,0.10);
  padding: 32px 28px; color: #232323; display: flex; flex-direction: column;
  transition: box-shadow 0.2s; border-left: 7px solid #ff5e14; animation: fadeInSection 0.7s;
}
.about-box:hover { box-shadow: 0 8px 36px 0 rgba(255,94,20,0.18); }
.about-title { color: #ff5e14; font-weight: bold; font-size: 1.15em; margin-bottom: 10px; }
.about-text { font-size: 1.09em; font-weight: 400; letter-spacing: 0.01em; }
@keyframes fadeInSection { 0% { opacity: 0; transform: translateY(50px);} 100% { opacity: 1; transform: translateY(0);} }

/* === CONTACT === */
.contact-container { position: relative; width: 100%; height: 100vh; }
.contact-map {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  filter: grayscale(70%) brightness(0.7); z-index: 0;
}
.contact-form-wrapper {
  position: relative; z-index: 2; max-width: 420px;
  background: rgba(0, 0, 0, 0.8); padding: 40px 28px; border-radius: 18px; color: #fff;
  top: 50%; right: 6%; transform: translateY(-50%); float: right;
}
.contact-form-wrapper h2 { margin-bottom: 18px; color: #ff5e14; font-size: 1.6rem; }
.contact-form-wrapper input, .contact-form-wrapper textarea {
  width: 100%; margin-bottom: 14px; padding: 12px; border: none; border-radius: 6px;
  background: #f5f5f5; font-size: 1rem;
}
.contact-form-wrapper button {
  width: 100%; padding: 12px; border: none; background: #ff5e14; color: #fff;
  font-weight: bold; font-size: 1rem; cursor: pointer; border-radius: 6px;
}
.contact-info-box {
  position: absolute; bottom: 30px; left: 40px; z-index: 2;
  color: #fff; background: rgba(0,0,0,0.7);
  padding: 20px 28px; border-radius: 12px; font-size: 1rem;
}
@media (max-width: 768px) {
  .contact-form-wrapper { max-width: 90%; float: none; right: 0; margin: 0 auto; transform: none; top: auto; bottom: 60px; }
  .contact-info-box { position: static; margin-top: 20px; font-size: 0.95rem; }
}
@media (max-width: 600px) {
  body { background: url("images/gibs_home.png") no-repeat center top scroll; background-size: cover; }
}

/* Animasyonlar */
@keyframes fadeInSection { 0% { opacity: 0; transform: translateY(50px);} 100% { opacity: 1; transform: translateY(0);} }

/* === MOBİLDE HERO BOX NET GÖRÜNSÜN === */
@media (max-width: 600px) {
  .right-overlay-box {
    position: relative !important;
    margin: 30px auto 0 auto !important;
    background: rgba(0,0,0,0.70) !important;
    text-align: center !important;
    box-shadow: 0 4px 18px 0 #2228;
    padding: 14vw 4vw !important;
    border-radius: 14px !important;
    left: 0; right: 0; top: unset; transform: none !important;
    max-width: 99vw !important;
    z-index: 22 !important;
  }
  .right-overlay-box h1, .right-overlay-box p {
    color: #fff !important;
    text-shadow: 0 2px 8px #000c, 0 0px 1px #000;
    font-size: 1.07rem;
    line-height: 1.3;
  }
  .right-overlay-box h1 {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.5px;
  }
  .logo {
    height: 26px !important;
    max-width: 70vw !important;
    margin-right: 7px !important;
  }
}

/* === DİĞER GENEL === */
.container {
  max-width: 900px;
  margin: 80px auto 60px;
  background: white;
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

/* Başlıklar */
h1, h2, h3 {
  color: #0646c8;
  margin-bottom: 12px;
}
p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333;
}
ul {
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333;
  font-weight: 500;
}
ul li {
  margin-bottom: 8px;
}

/* Linkler */
a {
  color: #ff5e14;
  text-decoration: none;
  font-weight: 600;
}

/* SSS - Soru açma/kapatma */
.faq-item {
  border-top: 1px solid #ddd;
  padding: 15px 0;
}
.faq-item h3 {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
  user-select: none;
}
.faq-item h3::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: bold;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item.open h3::after {
  content: "-";
  transform: rotate(180deg);
}
.faq-item p {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-top: 10px;
}
.faq-item.open p {
  max-height: 500px; /* yeterince yüksek */
}
@media (max-width: 768px) {
  .container {
    margin: 40px 10px;
    padding: 20px;
  }
}

/* --- REFERANS KARTLARI: Animasyonlu giriş ve hover efektleri --- */
.references-list .reference-card {
  opacity: 0;
  transform: translateY(50px) scale(0.97);
  animation: refCardIn 0.66s cubic-bezier(.22,.96,.34,1.13) forwards;
  transition: box-shadow .18s, transform .15s cubic-bezier(.36,1.5,.44,.94);
}
.references-list .reference-card:hover {
  box-shadow: 0 12px 36px 0 rgba(33,70,200,0.20);
  transform: translateY(-14px) scale(1.05) rotate(-1.5deg);
}
.references-list .reference-card:nth-child(1) { animation-delay: 0.08s;}
.references-list .reference-card:nth-child(2) { animation-delay: 0.18s;}
.references-list .reference-card:nth-child(3) { animation-delay: 0.28s;}
.references-list .reference-card:nth-child(4) { animation-delay: 0.38s;}
.references-list .reference-card:nth-child(5) { animation-delay: 0.48s;}
.references-list .reference-card:nth-child(6) { animation-delay: 0.58s;}
.references-list .reference-card:nth-child(7) { animation-delay: 0.68s;}
.references-list .reference-card:nth-child(8) { animation-delay: 0.78s;}
.references-list .reference-card:nth-child(9) { animation-delay: 0.88s;}
.references-list .reference-card:nth-child(10) { animation-delay: 0.98s;}
.references-list .reference-card:nth-child(11) { animation-delay: 1.08s;}
.references-list .reference-card:nth-child(12) { animation-delay: 1.18s;}
.references-list .reference-card:nth-child(13) { animation-delay: 1.28s;}
.references-list .reference-card:nth-child(14) { animation-delay: 1.38s;}
.references-list .reference-card:nth-child(15) { animation-delay: 1.48s;}
.references-list .reference-card:nth-child(16) { animation-delay: 1.58s;}
.references-list .reference-card:nth-child(17) { animation-delay: 1.68s;}
@keyframes refCardIn {
  to { opacity: 1; transform: translateY(0) scale(1);}
}

/* --- ÜLKE LİSTESİ: Tek tek soldan uçarak giriş --- */
.reference-countries-list ul li {
  opacity: 0;
  transform: translateX(-38px) scale(0.97);
  animation: countryIn 0.5s cubic-bezier(.22,.96,.34,1.13) forwards;
}
.reference-countries-list ul li:nth-child(1) { animation-delay: 0.32s;}
.reference-countries-list ul li:nth-child(2) { animation-delay: 0.44s;}
.reference-countries-list ul li:nth-child(3) { animation-delay: 0.56s;}
.reference-countries-list ul li:nth-child(4) { animation-delay: 0.68s;}
.reference-countries-list ul li:nth-child(5) { animation-delay: 0.80s;}
.reference-countries-list ul li:nth-child(6) { animation-delay: 0.92s;}
.reference-countries-list ul li:nth-child(7) { animation-delay: 1.04s;}
.reference-countries-list ul li:nth-child(8) { animation-delay: 1.16s;}
.reference-countries-list ul li:nth-child(9) { animation-delay: 1.28s;}
.reference-countries-list ul li:nth-child(10) { animation-delay: 1.4s;}
.reference-countries-list ul li:nth-child(11) { animation-delay: 1.52s;}
.reference-countries-list ul li:nth-child(12) { animation-delay: 1.64s;}
.reference-countries-list ul li:nth-child(13) { animation-delay: 1.76s;}
.reference-countries-list ul li:nth-child(14) { animation-delay: 1.88s;}
.reference-countries-list ul li:nth-child(15) { animation-delay: 2.0s;}
.reference-countries-list ul li:nth-child(16) { animation-delay: 2.12s;}
.reference-countries-list ul li:nth-child(17) { animation-delay: 2.24s;}
.reference-countries-list ul li:nth-child(18) { animation-delay: 2.36s;}
.reference-countries-list ul li:nth-child(19) { animation-delay: 2.48s;}
.reference-countries-list ul li:nth-child(20) { animation-delay: 2.6s;}
@keyframes countryIn {
  to { opacity: 1; transform: translateX(0) scale(1);}
}

/* --- HARİTA RESMİ HOVER: Hafif büyü ve dalga --- */
.reference-countries-map img {
  transition: transform 0.42s cubic-bezier(.18,.82,.65,1.2);
  will-change: transform;
}
.reference-countries-map img:hover {
  transform: scale(1.07) rotate(-2.5deg);
}

/* --- Başlık animasyonu: fade-in (isteğe bağlı) --- */
#references_title, #ref_countries_title_1 {
  opacity: 0;
  animation: fadeInUp .7s .19s cubic-bezier(.23,1.04,.36,1.01) forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0);}
  from { opacity: 0; transform: translateY(26px);}
}
#references_title {
  color: #ffffff !important;
}
