/* =========================================
   GÜVENLİK VE KALKAN (DÜZELTİLMİŞ)
   ========================================= */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* KÜÇÜK RESİMLER (Thumbnails) Tıklanabilsin ama sürüklenemesin */
.thumb-grid img {
    pointer-events: auto !important; 
    -webkit-user-drag: none;
}

/* ANA RESİM İÇİN KALKAN (Düzeni bozmaz!) */
.main-image-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: rgba(0,0,0,0); /* Şeffaf kalkan */
}

#mainProjectImage {
    pointer-events: none; /* Sağ tık resmi değil, üstteki kalkanı görür */
    -webkit-user-drag: none;
}

/* MODAL (TAM EKRAN) RESİM İÇİN KALKAN */
.modal-content {
    pointer-events: none; /* Korumalı */
    -webkit-user-drag: none;
}






/*CSS BAŞLANGIÇ*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: #2F3640;
  background: #F5F6FA;
}

h1, h2, h3, h4 {
  font-family: "Poppins", sans-serif;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

body.home-page .header{
 background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: none;
}

body.home-page .header.scrolled {
    background: #051622;
  backdrop-filter: none;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}
body:not(.home-page) .header {
    position: sticky; 
}



/* HEADER NAVBAR */

.header {

  background: #051622; 
  backdrop-filter: none; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #F5F6FA;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}


.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Aktif Sayfa ve Hover Durumu */
.nav a.active, 
.nav a:hover {
    color: #ffffff; 
}

.nav a.active::after {
    content: '';
    position: absolute;
    width: 100%;       /* Yazının tam genişliği kadar */
    height: 2px;       /* Çizgi kalınlığı */
    background-color: #ffffff; 
    bottom: -2px;      /* Yazının ne kadar altında duracağı */
    left: 0;
    border-radius: 2px;
}
.nav a:not(.active)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.6);
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}
.nav a:not(.active):hover::after {
  width: 100%;
}

.nav a,
.dropdown-toggle {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition:color 0.3s ease;
  padding: 8px 0;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* DROPDOWN */
.dropdown {
  position: relative;
}
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px; /* Menü ile başlık arasındaki boşluk kadar yukarı uzatıyoruz */
    left: 0;
    width: 100%;
    height: 20px; /* Boşluğu kapatacak yükseklik */
    background: transparent;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  -webkit-backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0,0.3);
  border-radius: 12px;
  padding: 10px 0;
  z-index: 999;
  
  /* Geçiş efekti için eklemeler */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease cubic-bezier(0.4,0,0.2,1);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2 ease;
}
.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
 background: rgba(255, 255, 255, 0.1); /* Hafif mavi parlama */
  color: #ffffff !important;
  padding-left: 25px; /* Hafif sağa kayma efekti */
}

/* HOVER AÇILMA */
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px); /* Hafif yukarı çıkarak belirsin */
}

/* Dropdown içindeki aktif link için */
.dropdown-menu a.active {
    
    color: #ffffff !important;
    font-weight: 600;
}
.dropdown-menu a::after {
    display: none !important;
}

.lang a {
  text-decoration: none;
  color:  rgba(255, 255, 255, 0.6);
}

.lang .active {
  font-weight: 600;
  color: #ffffff;
}





/* ==========
   - FOOTER -
   ========== */

.main-footer {
    background: linear-gradient(135deg, #051622 0%, #0A3D62 100%);
    color: #fff;
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

/* Hafif bir desen efekti */
.main-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 80px;
    position: relative;
    z-index: 1;
}

/* Logo ve Marka */
.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
}

.footer-logo span {
    color: #00d2ff; /* Navbar vurgu rengi */
}

.footer-brand-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 25px 0;
    font-size: 15px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-badges .badge {
    background: rgba(0, 210, 255, 0.1);
    color: #00d2ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Başlıklar */
.main-footer h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    white-space: nowrap;
}

.main-footer h4::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; width: 40px; height: 3px;
    background: #00d2ff;
}

/* Linkler */
.footer-nav-col{
  display: block;
  align-items: center;
  text-align: left;
  gap: 15px;
}
.footer-nav-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    
    /*  Listeyi 2 sütuna böler */
    column-count: 2; 
    /* Sütunlar arasındaki boşluk */
    column-gap: 30px; 
    
    /* Diğer kolonları itmemesi için genişliği sabit tutabiliriz */
    width: 100%; 
}

.footer-nav-col ul li {
    /* Linklerin sütun bölünmesinde ortadan ikiye ayrılmasını engeller */
    break-inside: avoid; 
    margin-bottom: 15px;
}

.footer-nav-col ul li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    transition: all 0.4s ease-in-out; /* Geri dönüşü yavaşlatan o ayar */
}

.footer-nav-col ul li a:hover {
    color: #00d2ff;
    transform: translateX(8px);
}

/* İletişim */
.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.c-icon {
    color: #00d2ff;
    font-size: 20px;
}

.c-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.s-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.s-link:hover {
    background: #00d2ff;
    color: #051622;
    transform: translateY(-5px);
}

/* Bottom */
.footer-bottom {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-flex {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
}