/* RESET */
* { margin: 0; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9fdfb;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden !important;
}


/* ===== HEADER ===== */
header.main-header {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  z-index: 1000; 
  overflow: visible;
  background-color: #f8f8f830;
}
header.main-header.scrolled {
  background-color: #0c0a44;
  box-shadow: 0 2px 6px rgba(47, 20, 110, 0.978);
}


/* Ana menü öğelerine çizgi */
.mobile-menu ul > li {
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 20px;
}

/* Services altındaki öğelere çizgi yok */
.accordion-item .accordion-content li {
  border-bottom: none !important;
  background-color: #f5f5f5;
  padding: 12px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover efekti */
.accordion-item .accordion-content li:hover {
  background-color: #05a74381;
  cursor: pointer;
}

.accordion-item .accordion-content li.active a {
  color: white;
  font-weight: bold;
}

.accordion-content li {
  position: relative; /* gerekli */
}

.accordion-content li a {
  display: block;
  padding-right: 5px; /* sağ boşluk aç */
  position: relative;  /* after konumlandırma için */
}

.accordion-content li a:hover::after {
  content: "–";
  position: absolute;
  right: 200px; /* işte buradan ayarlarsın: daha küçük = yazıya daha yakın */
  top: 24%;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 1.2rem;
  color: black;
}

/* OVERLAY (arka plan karartması) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.507);
  z-index: 9998; /* mobile-menu 9999 olduğundan bir altına koyduk */
  display: none;
}
.overlay.active { display: block; }


/* ==== VERDEO LANG DROPDOWN — ULTIMATE FIX ==== */
.main-header .lang-dropdown{ position:relative; z-index:10030; }
.main-header .lang-dropdown .lang-btn{
  display:flex; align-items:center; gap:8px; background:transparent; border:0;
  color:#fff; font-weight:700; padding:6px 8px; cursor:pointer; margin-bottom: -9px;
}
.main-header .lang-dropdown .lang-btn img{ width:22px; height:16px; border-radius:2px; object-fit:cover; }
.main-header .lang-dropdown .chevron{
  width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid #fff;
  transition:transform .2s; margin-left:2px;
}
.main-header .lang-dropdown.open .chevron{ transform:rotate(180deg); }

/* Kutu */
.main-header .lang-dropdown .lang-menu{
  position:absolute; right:0; top:calc(100% + 8px);
  padding:6px 0; margin:0; list-style:none;
  display:none; background:rgba(10,12,40,.88); backdrop-filter:blur(6px);
  border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,.35); z-index:10040;
}
.main-header .lang-dropdown.open .lang-menu{ display:block !important; }

/* — Görünürlük kilidi — */
.main-header .lang-menu li,
.main-header .lang-menu li *{
  display:initial !important;
  visibility:visible !important;
  opacity:1 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;  /* chrome/safari text bug */
  mix-blend-mode:normal !important;
  filter:none !important;
  text-shadow:none !important;
  transform:none !important;
}

/* Satır düzeni */
.main-header .lang-menu li{
  display:flex !important; align-items:center !important; gap:10px !important;
  padding:10px 14px !important; cursor:pointer; user-select:none;
  background:transparent !important; border:0 !important;
  font-size:14px !important; font-weight:700 !important; line-height:1.2 !important;
  position:relative !important; z-index:1 !important;
}
.main-header .lang-menu li img{
  width:24px !important; height:16px !important; border-radius:3px !important; object-fit:cover !important;
}
.main-header .lang-menu li span{ letter-spacing:.3px; }

/* Hover/active */
.main-header .lang-menu li:hover{ background:rgba(255,255,255,.12) !important; }
.main-header .lang-menu li.selected{ background:rgba(255,255,255,.18) !important; }

/* Başka menü kurallarını sıfırla */
.main-header .lang-menu a{ all:unset !important; }

/* ===== LOGO & NAV ===== */
.logo-img {
  object-fit: contain;
  background-color: transparent;
  padding-top: 30px;
  height: 80px;
}
.logo-container { display: flex; align-items: center; flex-shrink: 0; margin-left: 20px; }

.nav-links {
  display: inline;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
}

.nav-links a {
  white-space: nowrap;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.3s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}
.nav-links a:hover { color: #1e7005; }

.main-header.scrolled .menu a {
  color: white;
  text-shadow: none;
}

.main-header.scrolled .menu a:hover{
  color: #1e7005;
}

.menu { 
display: flex; 
gap: 60px; 
margin-right: 151px; 
list-style: none;
margin-top: 16px; 
}

/*DROPDOWN — GENEL BASE*/
.menu li { position: relative; }
.menu a {
  text-decoration: none;
  color: #fff;
  padding: 10px 15px;
  display: block;
}

/* Varsayılan dropdown (base) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;             /* gap yok */
  left: 50%;
  transform: translateX(-50%);
  background-color: #1e7005;
  min-width: 80px;
  z-index: 9999;
  border-radius: 10px;
  padding: 12px 0;
}
.dropdown-content li { border-bottom: 1px solid rgb(2, 2, 2); }
.dropdown-content li:last-child { border-bottom: none; }


.dropdown-content a:hover { background-color: #e8e3e23b; }

.dropdown:hover .dropdown-content { display: block; }


/* DROPDOWN FIX */
.nav-links .menu > li.dropdown:hover > a { color: #1e7005; }
.nav-links .menu > li { position: relative; }
.nav-links .menu > li.dropdown::after {
  content:""; position:absolute; left:0; right:0; top:100%; height:10px;
}
.nav-links .menu > li.dropdown .dropdown-content {
  top: 100%; left: 0; transform: none;
  width: 300px; background: #fff;
  border-top: 4px solid #1e7005; border-radius: 6px;
  overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 0; pointer-events: auto; z-index: 10000;
}
.nav-links .menu > li.dropdown > a { padding-bottom: 14px; }
.nav-links .menu > li.dropdown .dropdown-content li { border-bottom: 1px solid #e7e7e7; }
.nav-links .menu > li.dropdown .dropdown-content li:last-child { border-bottom: none; }
.nav-links .menu > li.dropdown .dropdown-content a {
  display:block; padding:10px 16px;
  font-size:13px; font-weight:700; color:#222;
  text-decoration:none; text-shadow:none; background:#fff;
  transition:background-color .2s ease, color .2s ease;
}
.nav-links .menu > li.dropdown .dropdown-content a:hover {
  background: #f5f5f5; color: #1e7005;
}





/* ===== HERO ===== */
/* ================ SERVICES  SEKMELERI ======================================= */



.detail-link .arrow {
  font-size: 18px;
}

/* Aktif olduğunda görünür */
.detail-link.active {
  display: inline-flex;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Hover efekti */
.detail-link:hover {
  transform: translateY(-50%) translateX(0) scale(1.05);
  background: rgba(0,0,0,0.8);
}


/* === SERVİSE GÖRE YÜKSEKLİK === */
.link-0 { top: 30%; left: 270px; }   /* Day-Ahead */
.link-1 { top: 50%; }   /* Intraday */
.link-2 { top: 60%; }   /* Balancing */
.link-3 { top: 70%; }   /* Arbitrage */

/* === DİLE GÖRE KONUM VE RENK === */

/* İngilizce → Sağda lacivert */
.lang-en .detail-link {
  left: 340px;
  background: #c0c0cf;
  color: #efefef;
}
.lang-en .detail-link:hover { background: #1e7005; }

/* Türkçe → Solda yeşil */
.lang-tr .detail-link {
  left: 40px;
  right: auto;
  background: #05a743;
  color: #d41212;
}
.lang-tr .detail-link:hover { background: #0c0a44; }

/* Romence → Solda turuncu */
.lang-ro .detail-link {
  left: 40px;
  right: auto;
  background: #ff9900;
  color: #fff;
  font-style: italic;
}
.lang-ro .detail-link:hover { background: #cc7a00; }





.section-hero-dayahead {
  background: url("../IMAGES/I.jpg") center/cover no-repeat;
  height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 100vw; text-align: center; z-index: 10;
}
#animated-title {
  font-size: 3rem; font-weight: bold; letter-spacing: 0.05em;
  color: white; white-space: pre;
  font-family: 'Montserrat', sans-serif;
  background-color: rgba(0,0,0,.39);
}
.letter { opacity: 0; display: inline-block; transform: translateY(30px) scale(0.95); transition: opacity 0.2s, transform 0.2s; }
.letter.visible { opacity: 1; transform: translateY(0) scale(1); }

/* ===== INTERACTIVE SECTION ===== */
.interactive-section {
  position: relative; height: 100vh; width: 100%;
  background: url('../IMAGES/kutay.png') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: left; margin-top: 10px;
}
.service-sidebar {
  position: absolute; left: 0.01rem; top: 57%;
  transform: translateY(-60%);
  display: flex; flex-direction: column; gap: 58px;
}
.service-tab {
  color: white; padding: 20px 25px; font-weight: bold; font-size: 1.1rem;
  border-left: 8px solid transparent; cursor: pointer;
  background: rgba(0,0,0,0.28); transition: all 0.3s ease;
}
.service-tab.active {
  background: #0b25b6bd; border-left: 3px solid #fff; color: white;
}

/* ===== SUPPORT & APPROACH ===== */
.support-section, .approach-section {
  display: flex; justify-content: space-between; gap: 90px;
  padding: 60px 40px;
}
.support-left h3, .approach-left h6 { font-size: 1.6rem; margin-bottom: 20px; }
.support-left ul, .approach-left ul {
  padding-left: 20px; line-height: 1.8; font-size: 1.3rem; margin-top: 60px;
}
.support-right{
  flex: 2; 
  display: flex; 
  flex-wrap: wrap; 
  gap:25px;
  align-items: flex-start;
}


.approach-right{
flex: 2; 
display: flex; 
flex-wrap: wrap; 
gap: 25px; 
align-items: flex-start;  
}
.support-img{
  width: 260px; height: 160px; object-fit: cover;
  border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 110px; margin-left: 30px;
}
.approach-img{
  width: 260px; height: 160px; object-fit: cover;
  border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 110px; margin-left: 30px;
}
/* ===== FOOTER ===== */
.footer {
  background-color: #0c0a44; color: white;
  padding: 40px 20px; font-family: 'Arial', sans-serif;
}
.footer-container {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 40px; max-width: 1300px; margin: 0 auto;
}
.footer-section { flex: 1 1 220px; min-width: 220px; }
.footer-section h4{
  font-size: 18px; margin-bottom: 10px;
  border-bottom: 2px solid #1e7005;
  display: inline-block; 
  padding-bottom: 4px;
  margin-top: 13.5px;
}

.social-media h3{
 font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 2px solid #1e7005;
  padding-bottom: 4px;
  margin-top: 13.5px;  
}
.footer-section ul { list-style: none; padding: 0; }
.footer-section ul li { margin-bottom: 8px; font-size: 15px; }
.footer-section ul li i, .footer-section i { color: white; margin-right: 6px; }
.footer-section a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-section a:hover { color:#08b74b81; }
.footer-logo { width: 150px; margin-left: -10px; }
.footer-logo img{
  margin-bottom: 11px;
}
.footer-section p { font-size: 14px; margin-bottom: 10px; }

.social-link {
  display: inline-flex; align-items: center;
  background-color: #0a66c2; color: #fff;
  padding: 10px 16px; border-radius: 6px;
  font-weight: 500; font-size: 14px;
  text-decoration: none; transition: all 0.3s ease;
}
.social-link i { margin-right: 8px; font-size: 18px; }
.social-link:hover { background-color: #004182; transform: scale(1.1); }

/* ===== MISC ===== */
.fa-bars::before, .fa-navion::before { content: "\f0c9"; margin-right: 30px; }

/* Language soft refresh overlay */
.lang-transition {
  position: fixed; inset: 0; background: rgba(12,10,68,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 100000;
}
.lang-transition.show { opacity: 1; pointer-events: auto; }
.lang-transition .lt-card {
  background: rgba(20,22,60,0.92); padding: 14px 16px; border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); display: flex; align-items: center; gap: 10px;
  transform: scale(.98); transition: transform .15s ease;
}
.lang-transition.show .lt-card { transform: scale(1); }
.lt-spinner {
  width: 22px; height: 22px; border: 3px solid #fff; border-top-color: transparent;
  border-radius: 50%; animation: ltspin 1s linear infinite;
}
@keyframes ltspin { to { transform: rotate(360deg); } }
.lt-text { color: #fff; font-weight: 700; font-size: .9rem; }



/* id verilmiş başlık/bölümlere offset uygula */
h1[id], h2[id], h3[id], section[id] {
  scroll-margin-top: var(--header-offset);
}

/* isteğe bağlı: yumuşak kaydırma */
html { scroll-behavior: smooth; }


/* Back to Top Button */
#backToTop {
  display: none; /* başta görünmez */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: #1e7005; /* senin header rengin */
  color: white;
  border: none;
  border-radius: 50%;
  padding: 15px 20px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}

#backToTop:hover {
  background-color: #0c0a44; /* hover rengi */
}


@media (max-width: 768px) {
    .interactive-section {
    height:auto !important;
    min-height: 320px;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center top;
    padding: 24px 0 24px 0;
  }

.service-sidebar {
  position: absolute;
  left: 0.01rem;                      /* soldan boşluk */
  top: 44%;
  transform: translateY(-60%);     /* dikey ortalama, yatayda SOLDA */
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}

.service-tab {
  width: 100%; /* Kutular container genişliğini kaplar */
  color: white;
  padding: 10px 6px; /* Makul yükseklik */
  font-weight: bold;
  font-size: 0.7rem;
  border-left: 8px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.281);
  text-align: left; /* Yazıyı sola hizala */
  display: none;
}

.service-tab.active {
  background: #0b25b6bd;
  border-left: 3px solid #fff;
  color: white;
}

}


@media (max-width: 768px) {
  .support-section,
  .approach-section {
    flex-direction: column;
    padding: 30px 20px;
    gap: 40px;
  }
.support-img,
.approach-img {
  width: 260px;
  height: 160px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-top: 110px;
  margin-left: 60px;
  }  
}  

/* MOBİL UYUMLULUK */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links .menu {
    flex-direction: column;
    gap: 10px;
  }
}
/* RESPONSIVE */
@media (max-width: 768px) {
  .logo-img {
    height: 60px;

  }

}

@media (max-width: 768px) {
  .section-hero-dayahead {
    background-size: contain;
    background-repeat: no-repeat;
    height: auto;
    min-height: 234px;
  }
  #animated-title {
    font-size: 1.3rem;
    line-height: 1.2;
    word-break: break-word;
    padding: 0 3vw;
    margin-bottom: 600px;
  }

}

/* Reduce Motion dostu */
@media (prefers-reduced-motion: reduce){
  .lang-transition{ transition: none; }
  .lang-transition .lt-card{ transition: none; }
  .lt-spinner{ animation: none; }
}


/* Varsayılan: sadece mobilde göster */
.mobile-only { display: none; }
@media (max-width: 768px) {
  .mobile-only { display: block; }
}

/* Bileşen stili */
.mobile-lang {
  position: relative;
  padding: 12px 16px;       /* menü öğeleriyle hizalı dursun */
}
.mobile-lang__btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  color: inherit;
}
.mobile-lang .flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

/* Chevron SVG için animasyon */
.mobile-lang .chev svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform .15s ease;
}

/* Menü açıldığında oku döndür */
.mobile-lang.open .chev svg {
  transform: rotate(-46deg);
}

.mobile-lang__btn:focus,
.mobile-lang__btn:active {
  outline: none;
  box-shadow: none;
}

.mobile-lang__btn img.flag-btn {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
}

/* Açılır menü */
.mobile-lang__menu {
  left: 16px;               /* solda hizalı, görseldeki gibi */
  top: calc(100% + 8px);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #3a3a3a;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  display: none;
  z-index: 9999;
}

.mobile-lang__menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-lang__menu li:hover { background: rgba(255,255,255,.08); }

/* Açık durum */
.mobile-lang.open .mobile-lang__menu { display: block; }
.mobile-lang.open .chev { transform: rotate(-135deg); } /* ok yukarı baksın */

/* Masaüstünde tamamen gizle (desktopta zaten var dedin) */
@media (min-width: 769px) {
  .mobile-lang { display: none; }
}

/* Copyright yazısı için ortalama ve aşağı kaydırma */
.pbmit-footer-copyright-text-area {
  text-align: center;   /* ortala */
  font-size: 14px;
  color: #ccc;          /* dilersen daha soluk görünmesi için */
  margin-top: 30px;     /* üstten boşluk */
}

/* Footer copyright linklerinin rengini değiştir */
.pbmit-footer-copyright-text-area a {
  color: #1e7005;        /* istediğin rengi yaz (#fff, red, yellow vs) */
  text-decoration: none; /* alt çizgiyi kaldırır */
  font-weight: bold;
}

.pbmit-footer-bottom {
  border-top: 1px solid #1e700569 ;
  text-align: center;   /* her şeyi ortala */
  margin-top: 20px;
}

.pbmit-footer-copyright-text-area a:hover {
  color: #1e7005;       /* üzerine gelince farklı yeşil */
  text-decoration: underline; /* hoverda alt çizgi */
}