:root {
  --bg-primary: var(--bg-page);
  --font: var(--font-sans);
  --blue: var(--accent);
  --blue-glow: var(--accent-glow);
}

.container {
  min-height: 100vh;
  position: relative;
}

/* Navbar styles removed - handled by globals.css and headerfooter.js */

.kapak {
  position: relative;
  height: 85vh;
  min-height: 600px;
  width: 95%;
  max-width: 1400px;
  margin: 2rem auto 5rem;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.blur-layer {
  position: absolute;
  inset: -10%;
  background: linear-gradient(160deg,
      rgba(3, 12, 23, 0.85),
      rgba(14, 165, 233, 0.2)),
    url(../images/ana_sayfa.jpeg);
  background-position: center;
  background-size: cover;
  filter: blur(0px);
  z-index: 1;
  transform: scale(1.1);
}

.kapak-text {
  position: absolute;
  z-index: 2;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-primary);
  text-align: center;
  width: 80%;
  max-width: 800px;
}

.kapak-text h1 {
  font-size: 5.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 4rem;
  background: linear-gradient(300deg, #ffffff, var(--accent), var(--accent-dark), #ffffff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
  animation: liquidGradient 8s ease infinite;
}

@keyframes liquidGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.floating-tech {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 15px rgba(14, 165, 233, 0.3));
  animation: float3D 10s infinite ease-in-out alternate;
}

@keyframes float3D {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-40px) rotate(10deg) scale(1.1);
  }

  100% {
    transform: translateY(0) rotate(-5deg) scale(1);
  }
}

.kapak-text p {
  font-size: 1.7rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

.box {
  max-width: var(--max-width);
  margin: 10rem auto;
  padding: 0 5%;
  color: var(--text-primary);
  scroll-margin-top: 20rem;
}

.box hr {
  border: none;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  width: 60%;
  margin: 0 auto;
  border-radius: 2px;
}

.box h1 {
  font-size: 3.6rem;
  font-weight: 800;
  text-align: center;
  padding: 4rem 0 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.box p {
  font-size: 1.7rem;
  padding: 1.5rem 0 4rem;
  text-align: center;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
}

.box-2 {
  max-width: var(--max-width);
  margin: 8rem auto;
  padding: 0 5%;
  color: var(--text-primary);
}

.box-2>h1 {
  font-size: 4rem;
  font-weight: 800;
  text-align: center;
  padding-bottom: 5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(300deg, #ffffff, var(--accent), var(--accent-dark), #ffffff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidGradient 8s ease infinite;
}

/* --- Cinematic Bokeh Background --- */
.gallery-bokeh-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bokeh-item {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: drift 20s infinite alternate ease-in-out;
}

.bokeh-1 {
  width: 40vw;
  height: 40vw;
  background: var(--accent);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.bokeh-2 {
  width: 35vw;
  height: 35vw;
  background: #6d28d9;
  bottom: -5%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.bokeh-3 {
  width: 25vw;
  height: 25vw;
  background: #0ea5e9;
  top: 40%;
  right: 10%;
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(100px, 50px) scale(1.2);
  }
}

.cardlar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cardlar {
    gap: 1.5rem;
    align-items: center !important;
  }

  .card, .card-duyuru {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
    padding: 2.5rem 2rem;
  }

  .kapak {
    height: 70vh;
    min-height: 360px;
    margin: 1rem auto 2.5rem;
    border-radius: 20px;
  }

  .kapak-text {
    width: 92%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .kapak-text h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }

  .kapak-text p {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .box h1 {
    font-size: 2.4rem;
    padding: 3rem 0 1rem;
  }

  .box-2>h1 {
    font-size: 2.6rem;
    padding-bottom: 3rem;
  }

  .footlar {
    flex-direction: column;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 3.5rem 5% 2.5rem;
  }

  .foot {
    min-width: 0;
    width: fit-content;
  }
}

.card {
  flex: 1;
  min-width: 220px;
  max-width: 320px;
  padding: 3.5rem 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  will-change: transform;
}

.card i, .card h1, .card p {
  transform: translateZ(40px);
}

.card:hover {
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 30px 60px rgba(14, 165, 233, 0.25), 0 0 40px rgba(14, 165, 233, 0.1) inset;
  background: rgba(14, 165, 233, 0.08);
}

.card i {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: block;
  position: static;
  left: auto;
  top: auto;
  transform: none;
}

.card h1 {
  font-size: 3.8rem;
  font-weight: 800;
  padding: 0;
  padding-bottom: 0.8rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer {
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-primary), #050508);
  margin-top: 10rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footlar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-content: center;
  align-items: flex-start;
  gap: 6rem;
  padding: 6rem 5% 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.foot {
  width: auto;
  min-width: 160px;
}

.foot img {
  width: 8rem;
  opacity: 0.8;
  transition: opacity var(--transition);
  margin: auto;
}

.foot img:hover {
  opacity: 1;
}

.foot ul {
  list-style: none;
}

.foot ul li a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 2.8rem;
  transition: color var(--transition);
  font-weight: 400;
}

.foot ul li a:hover {
  color: var(--accent);
}

.footlar h1 {
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
}

.footlar h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
  margin-top: 0.8rem;
  border-radius: 1px;
}

#iletisim {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#iletisim a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  width: 100%;
  min-width: 150px;
}

#iletisim a i {
  font-size: 1.5rem;
  width: 1.8rem;
  text-align: center;
  flex-shrink: 0;
}

#iletisim a[href*="github"]:hover {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.3);
  background: rgba(226, 232, 240, 0.06);
  box-shadow: 0 4px 16px rgba(226, 232, 240, 0.08);
  transform: translateX(4px);
}

#iletisim a[href*="instagram"]:hover {
  color: #f472b6;
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.06);
  box-shadow: 0 4px 16px rgba(244, 114, 182, 0.15);
  transform: translateX(4px);
}

#iletisim a[href*="twitter"],
#iletisim a[href*="x.com"]:hover {
  color: #e2e8f0;
  border-color: rgba(226, 232, 240, 0.3);
  background: rgba(226, 232, 240, 0.06);
  box-shadow: 0 4px 16px rgba(226, 232, 240, 0.08);
  transform: translateX(4px);
}

#iletisim a[href*="linkedin"]:hover {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.06);
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.15);
  transform: translateX(4px);
}

#iletisim a[href*="youtube"]:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
  box-shadow: 0 4px 16px rgba(248, 113, 113, 0.15);
  transform: translateX(4px);
}

#iletisim a[href^="mailto"]:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-subtle);
  box-shadow: var(--shadow-blue);
  transform: translateX(4px);
}

#iletisim a:hover {
  transform: translateX(4px);
}

.footer hr {
  display: none;
}

.made-by {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.has-tooltip {
  position: relative !important;
}

.tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 180px;
  height: 240px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.tooltip-bubble::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid rgba(255, 255, 255, 0.08);
}

.tooltip-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.has-tooltip:hover .tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .tooltip-bubble {
    display: none;
  }
}

.footer p {
  text-align: center;
  font-size: 1.3rem;
  padding: 2rem 0 3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  max-width: var(--max-width);
  margin: 0 auto;
}

.card-duyuru {
  width: 30%;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-duyuru::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(14, 165, 233, 0.06),
      transparent 70%);
  pointer-events: none;
}

.card-duyuru:hover {
  transform: translateY(-10px);
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
  background: rgba(14, 165, 233, 0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.date {
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 500;
}

.tag {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent);
  padding: 0.3rem 0.5rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid rgba(14, 165, 233, 0.15);
  margin-left: auto;
}

.card-duyuru h2 {
  color: var(--text-primary);
  font-size: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-duyuru p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: left;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.read-more:hover {
  color: var(--accent-hover);
  gap: 1rem;
}

.galeri-subtitle {
  text-align: center;
  font-size: 1.6rem !important;
  color: var(--text-secondary) !important;
  margin-top: -3rem;
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.gallery-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 6rem 2rem;
  color: var(--text-muted);
}

.gallery-loading i {
  font-size: 2.5rem;
  color: var(--accent);
}

.gallery-loading span {
  font-size: 1.4rem;
  font-weight: 500;
}

.gallery-list-view {
  background: rgba(10, 15, 25, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
}

/* --- Gallery Controls --- */
.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.view-toggle-btn {
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.view-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.view-toggle-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Gallery Grid View --- */
.gallery-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: none;
  /* Default hidden */
}

.gallery-grid-view.active {
  display: grid;
}

.gallery-list-view.hidden {
  display: none;
}

.gallery-card {
  position: relative;
  border-radius: 28px;
  /* Removed overflow: hidden to allow background blur to bleed out if desired, 
       but we want the frame to be contained, so we'll use a wrapper approach if needed.
       Actually, let's keep it for now but add a wrapper in the HTML if needed.
       Wait, let's do it via pseudo-elements without changing HTML. */
  overflow: visible;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  background: transparent;
  z-index: 1;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: -15px;
  background-image: inherit;
  /* This won't work easily without JS or specific CSS. 
                                  Let's use a simpler approach: a soft glow. */
  background: var(--accent-glow);
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: -1;
  border-radius: 40px;
}

.gallery-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 20, 30, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card:hover {
  transform: translateY(-12px) scale(1.03);
}

.gallery-card:hover::before {
  opacity: 0.6;
  transform: scale(1.1);
}

.gallery-card:hover .gallery-card-inner {
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.gallery-card:hover img {
  transform: scale(1.12) rotate(1.5deg);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 12, 23, 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}

.gallery-card-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card:hover .gallery-card-title {
  transform: translateY(0);
}

.gallery-card-meta {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.05s;
}

.gallery-card:hover .gallery-card-meta {
  transform: translateY(0);
}

.gallery-card-tag {
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 0.2rem 0.8rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Compact Gallery Logic --- */
.gallery-grid-view, .gallery-list-view {
  transition: all 0.4s ease;
  width: 100%;
}

.gallery-grid-view.hidden, .gallery-list-view.hidden {
  display: none;
}

.gallery-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 280px));
  /* Capped size */
  justify-content: center;
  /* Center them if few */
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.gallery-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  /* Force normal size */
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.gallery-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  overflow: hidden;
  background: #030c17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.gallery-card:hover .gallery-card-inner {
  border-color: var(--accent);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

/* List View Styles - RESTORED */
.gallery-list-view {
  background: rgba(10, 15, 25, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  max-width: 1200px;
  margin: 2rem auto;
}

.gallery-list-header {
  display: grid;
  grid-template-columns: 80px 2fr 1.5fr 1fr 100px;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.gallery-list-item {
  display: grid;
  grid-template-columns: 80px 2fr 1.5fr 1fr 100px;
  padding: 1.2rem 2rem;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--text-secondary);
}

.gallery-list-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.list-col-icon img {
  width: 45px;
  height: 35px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-col-name {
  font-weight: 600;
  color: var(--text-primary);
}

.list-col-size {
  text-align: right;
  font-family: monospace;
}

/* --- Lightbox Base Styles - RESTORED --- */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 23, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 1;
}

.gallery-lightbox::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: rgba(168, 85, 247, 0.2);
  filter: blur(120px);
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 8s infinite alternate ease-in-out;
}

.gallery-lightbox::after {
  content: "";
  position: absolute;
  bottom: 20%;
  right: 20%;
  width: 40vw;
  height: 40vw;
  background: rgba(56, 189, 248, 0.15);
  filter: blur(120px);
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 10s infinite alternate-reverse;
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxZoomIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-lightbox.closing .lightbox-content {
  animation: lightboxZoomOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lightboxZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-5deg);
    filter: blur(20px);
  }

  60% {
    transform: scale(1.05) rotate(0deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lightboxZoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0.2) rotate(5deg);
    filter: blur(20px);
  }
}

.lightbox-content.lightbox-slide-left {
  animation: slideOutLeft 0.15s ease forwards;
}

.lightbox-content.lightbox-slide-right {
  animation: slideOutRight 0.15s ease forwards;
}

@keyframes slideOutLeft {
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}

@keyframes slideOutRight {
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.lightbox-content img {
  max-width: 85vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 5;
}

.lightbox-content img.zoomed {
  transform: scale(2.0);
  /* Extreme zoom for Sultan */
  cursor: zoom-out;
}

.gallery-lightbox.is-zoomed .lightbox-info,
.gallery-lightbox.is-zoomed .lightbox-nav {
  opacity: 0;
  pointer-events: none;
}

.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(15, 20, 30, 0.5);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.lightbox-caption {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}

.lightbox-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-nav:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
  color: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-50%) scale(1.1);
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 0 2rem;
  flex-wrap: wrap;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  padding: 3.5rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.contact-form h2 {
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 1.4rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-radius: 16px;
  font-size: 1.5rem;
  font-family: var(--font);
  outline: none;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn-submit {
  background: linear-gradient(135deg, var(--accent), #0284c7);
  color: #fff;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: translateY(-2px);
}

.contact-info {
  flex: 0.5;
  min-width: 250px;
  color: var(--text-primary);
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--text-secondary);
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.info-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.info-item i {
  color: var(--accent);
  font-size: 1.8rem;
  width: 2rem;
  text-align: center;
}


@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 3%;
  }

  .navbar img {
    width: 4rem;
  }

  .navbar ul {
    justify-content: flex-start;
    gap: 0.2rem;
  }

  .navbar ul li a {
    font-size: 1rem;
    padding: 0.35rem 0.6rem;
  }

  .kapak {
    width: 95%;
    height: 50vh;
    min-height: 300px;
    margin: 1.5rem auto;
  }

  .kapak-text {
    width: 90%;
  }

  .kapak-text h1 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
  }

  .kapak-text p {
    font-size: 1.3rem;
  }

  .box {
    margin: 5rem auto;
  }

  .box h1 {
    font-size: 2.4rem;
    padding: 2.5rem 0 1rem;
  }

  .box p {
    font-size: 1.4rem;
    padding: 1rem 0 2.5rem;
  }

  .box-2 {
    margin: 4rem auto;
  }

  .box-2>h1 {
    font-size: 2.4rem;
    padding-bottom: 3rem;
  }

  .cardlar {
    gap: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .card {
    min-width: unset;
    width: 100%;
    flex: none;
    padding: 2.5rem 2rem;
  }

  .card h1 {
    font-size: 3rem;
  }

  .card i {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
  }

  .card p {
    font-size: 1.2rem;
  }

  .card-duyuru,
  .card-etkinlik {
    width: 100%;
    min-width: unset;
  }

  .card-duyuru h2 {
    font-size: 1.7rem;
  }

  .card-etkinlik {
    min-width: unset;
  }

  .event-title {
    font-size: 1.8rem;
  }

  .team-card {
    width: 100%;
    min-width: unset;
  }

  .footer {
    margin-top: 5rem;
  }

  .footlar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 5% 3rem;
  }

  .footlar h1::after {
    margin: 0.8rem auto 0;
  }

  #iletisim a {
    min-width: unset;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .galeri-subtitle {
    margin-top: -2rem;
    font-size: 1.3rem !important;
  }

  .lightbox-content {
    max-width: 95vw;
  }

  .lightbox-content img {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .lightbox-prev {
    left: 0.8rem;
  }

  .lightbox-next {
    right: 0.8rem;
  }

  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox-info {
    padding: 0.6rem 1.2rem;
  }

  .lightbox-caption {
    font-size: 1.2rem;
  }

  .contact-container {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .org-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .org-modal-body {
    padding: 4rem 2.5rem;
  }

  .org-modal-body::before,
  .org-modal-body::after {
    filter: blur(60px);
  }

  .org-modal-text h2 {
    font-size: 2.6rem;
    line-height: 1.2;
  }

  .org-modal-text h4 {
    margin-bottom: 2.5rem;
  }

  .org-modal-text p {
    font-size: 1.4rem;
    padding-left: 15px;
    border-left-width: 1.5px;
  }
}

.subpage-container {
  max-width: 900px;
  margin: 10rem auto 5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.subpage-glass-card {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 4rem;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.subpage-glass-card:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(14, 165, 233, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.subpage-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text-primary);
  background: linear-gradient(to right, #ffffff, var(--accent), var(--accent-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

.subpage-description {
  color: var(--text-secondary);
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.subpage-list {
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 2.4;
  margin-bottom: 3rem;
  padding-left: 2rem;
  list-style-type: none;
}

.subpage-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
}

.subpage-list li::before {
  content: '➤';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .subpage-glass-card {
    padding: 2.5rem;
  }

  .subpage-title {
    font-size: 2.5rem;
  }
}