:root {
  --bg: #1a1a2e;
  --fg: #ffffff;
  --muted: #a1a1aa;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #6c5991;
  /* Fixed purple */
  --accent-2: #6c5991;
  /* Same purple */
  --accent-3: #6c5991;
  /* Same purple */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Nimbus Sans', 'Nimbus Sans L', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.2rem;
}

.brand .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-sep {
  display: inline-block;
  width: 2px;
  height: 22px;
  background: var(--accent);
  opacity: .9;
  margin: 0 6px;
  border-radius: 2px;
}

/* Emphasize the "Projenizi Başlatın" link in navbar (text accent only) */
.nav a[href="#quote"] {
  color: var(--accent);
  background: transparent;
  border: none;
  box-shadow: none;
}

.nav a[href="#quote"]:hover {
  color: var(--accent-2);
  transform: none;
  box-shadow: none;
}

.nav a {
  position: relative;
  padding: 8px 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 0.92;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a:hover {
  color: var(--accent-2);
  opacity: 1;
}

.burger {
  display: none;
  width: 48px;
  height: 40px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--fg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* HERO */
.hero {
  position: relative;
  min-height: 110vh;
  /* Increased to 110vh to extend section downwards */
  display: grid;
  align-items: end;
  /* Push content to bottom */
  padding-bottom: 25vh;
  /* Space from bottom */
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 60%;
  /* Slightly focused on bottom half */
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* Dark overlay to ensure buttons are visible */
/* Gradient overlay to respect the visual */
.hero-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 2;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
}

.title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 20px 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  opacity: 0.9;
  max-width: 720px;
  margin: 0 0 32px 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.grad {
  color: var(--accent);
}

@keyframes gradient-shift {

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

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

/* Scroll Down Indicator */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.scroll-down:hover {
  opacity: 1;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 4px;
  background: var(--accent);
  /* Changed to purple as requested */
  border-radius: 50%;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel 1.5s infinite;
}

@keyframes wheel {
  0% {
    top: 6px;
    opacity: 1;
  }

  100% {
    top: 18px;
    opacity: 0;
  }
}

.arrows span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin: -4px 0;
  animation: arrow 2s infinite;
}

.a1 {
  animation-delay: 0s;
}

.a2 {
  animation-delay: 0.2s;
}

.a3 {
  animation-delay: 0.4s;
}

@keyframes arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Remove old button styles if unused, or keep for other sections */
.btn {
  display: inline-flex;

  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}



.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn.ghost {
  background: rgba(237, 234, 234, 0.948);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(246, 243, 243, 0.908);
  border-color: var(--accent);
  transform: translateY(-2px);
}



/* ABOUT */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.card {
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(108, 89, 145, 0.3);
}

.card.photo {
  overflow: hidden;
  aspect-ratio: 3/4;
  width: 94%;
  margin: 0 auto;
}

.card.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}



.about h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.about p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
}



/* HOW WE WORK & WHY WE DO (Zigzag Layout) */
.grid-2-zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.grid-2-zigzag.reverse .content-image {
  order: -1;
}



.vision-content {
  padding: 32px;
  border-left: 3px solid var(--accent);
  background: transparent;
  border-radius: 0 16px 16px 0;
}

.vision-content p.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.7;
}

.vision-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.content-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--glass-border);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}



.section-head-left h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--accent);
  text-align: center;
}

/* PROJECTS */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.section-head p {
  font-size: 1.05rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card.project {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s ease;
}

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

.card.project .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.8) 100%);
  transition: all 0.4s ease;
  opacity: 0;
}

.card.project:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}



.card.project:hover .overlay {
  opacity: 1;
}

.card.project .overlay h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.card.project .overlay p {
  opacity: 0.9;
  font-size: 0.95rem;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.card.project:hover .overlay h3,
.card.project:hover .overlay p {
  transform: translateY(0);
}

/* Project card category badge */
.card.project::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  opacity: 0;
  /* transform: scale(0); removed */
  transition: all 0.3s ease;
  z-index: 2;
}

.card.project:hover::before {
  opacity: 1;
  opacity: 1;
  /* transform: scale(1); removed */
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card.service {
  padding: 32px;
  text-align: left;
  transition: all 0.3s ease;
}

.card.service:hover {
  background: rgba(108, 89, 145, 0.05);
  border-color: var(--accent);
}

.card.service h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent);
  text-align: center;
}

.card.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card.service ul li {
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
}

.card.service ul li:last-child {
  margin-bottom: 0;
}

.card.service ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.card.service p {
  opacity: 0.8;
  line-height: 1.6;
}

/* TESTIMONIALS - Infinite Marquee */
.section.testimonials {
  background: transparent;
  padding: 20px 0;
  overflow: hidden;
}

.testimonials-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Mask for smooth fade edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scroll 60s linear infinite;
  /* Slow smooth scroll */
}

/* Pause on hover for readability */
.testimonial-track:hover {
  animation-play-state: paused;
}

.card.testimonial {
  width: 320px;
  /* Fixed width */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  margin: 10px 0;
  /* Space for hover transform */
}

.card.testimonial:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.quote-icon svg {
  width: 24px;
  height: 24px;
}

.quote-icon {
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 4px;
}

.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  font-style: italic;
  flex-grow: 1;
  /* Push author to bottom */
}

.testimonial-author {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .card.testimonial {
    width: 300px;
    padding: 24px;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }
}

/* CONTACT */
.contact h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--accent);
}

.contact p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.contact .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact .contact-list li {
  margin: 16px 0;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact .contact-list a {
  color: var(--accent-2);
  transition: color 0.3s ease;
}

.contact .contact-list a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--fg);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.form {
  display: grid;
  gap: 20px;
  padding: 32px;
}

.form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.form input,
.form textarea {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 89, 145, 0.1);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.to-top {
  border: 1px solid var(--glass-border);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--glass);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .section {
    padding: 80px 0;
  }

  .grid-2 {
    gap: 40px;
  }


}

.detailed-questions {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  animation: fadeIn 0.5s ease;
}

.detailed-questions.hidden {
  display: none;
}

.toggle-details {
  margin: 16px 0;
  width: 100%;
  background-color: #ffffff !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  font-weight: 600;
  padding: 14px 30px;
  /* Matches .btn padding */
  text-transform: capitalize;
  /* Ensures Title Case visually if needed, but text will be Title Case */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.toggle-details:hover {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 4rem;
  cursor: pointer;
  padding: 0 20px;
  z-index: 2001;
  transition: opacity 0.3s;
}

.lightbox-nav:hover {
  opacity: 0.7;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Media Queries */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-2-zigzag {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .navbar .nav {
    display: none;
    position: absolute;
    right: 20px;
    top: 80px;
    background: rgba(20, 19, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    min-width: 200px;
    box-shadow: var(--shadow);
  }

  .nav-sep {
    width: 100%;
    height: 1px;
    margin: 6px 0;
    background: var(--accent)
  }

  .navbar .nav.open {
    display: flex;
  }

  .burger {
    display: inline-block;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .contact h2,
  .about h2 {
    font-size: 2rem;
  }

  .hero-cta {
    gap: 12px;
  }

  .btn {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 80vh;
  }

  .title {
    font-size: clamp(1.6rem, 3vw, 2rem);
  }

  .subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }

  .card.service {
    padding: 24px 20px;
  }

  .form {
    padding: 24px 20px;
  }
}

/* QUOTE / UPLOADER */
.quote .form {
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px
}

.uploader {
  display: grid;
  gap: 12px
}

.dropzone {
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 24px;
  text-align: center;
  transition: all .25s ease;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: rgba(108, 89, 145, 0.06);
}

.dz-instructions {
  display: grid;
  gap: 10px;
  justify-items: center
}

.dz-instructions small {
  opacity: .7
}

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px
}

.preview {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card)
}

.preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block
}

.preview .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: .85rem
}

.preview .remove {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border-radius: 999px;
  width: 28px;
  height: 28px;
  cursor: pointer
}

.send-options {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between
}

.send-via {
  display: flex;
  align-items: center;
  gap: 8px
}

@media(max-width:700px) {
  .previews {
    grid-template-columns: repeat(2, 1fr)
  }
}

/* Logo size tweak to prevent overflow */
.brand .logo {
  height: 30px
}

@media(max-width:900px) {
  .brand .logo {
    height: 26px
  }
}

/* Navbar brand positioning and logo size per request */
.navbar .container {
  padding-left: 0
}

.brand .logo {
  height: 60px
}

@media(max-width:900px) {
  .brand .logo {
    height: 48px
  }
}

/* Logo hover: only whiten (no glow, no move) */
.brand::after {
  display: none !important
}

.brand .logo {
  transition: filter .2s ease, -webkit-filter .2s ease
}

.brand:hover .logo {
  filter: brightness(1.12) contrast(1.05) !important
}

/* Navbar actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px
}

.btn.small {
  padding: 8px 12px;
  font-size: .9rem;
  border-radius: 10px
}

@media(max-width:900px) {
  .nav-actions {
    gap: 8px
  }

  .btn.small {
    padding: 8px 10px;
    font-size: .85rem
  }
}

/* Language toggle color to match site white */
#lang-toggle {
  color: var(--fg-dim) !important;
  border-color: var(--glass-border)
}

#lang-toggle:hover {
  color: var(--accent-2) !important
}

/* Hover: only color change for language toggle and hero ghost button */
#lang-toggle {
  color: var(--fg-dim)
}

#lang-toggle:hover {
  color: var(--accent-2);
  background: transparent;
  border-color: var(--glass-border);
  transform: none
}

/* Make language toggle and hero 'Teklif Al' match primary button */
#lang-toggle {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: var(--shadow);
}

#lang-toggle:hover {
  box-shadow: var(--shadow-hover);
}

/* Emphasize the hero 'Teklif Al' button */
.hero .btn.ghost {
  padding: 18px 26px;
  box-shadow: none;
  position: relative;
  /* animation removed */
}

.hero .btn.ghost:hover {
  box-shadow: var(--shadow-hover);
}

/* Hero 'Teklif Al' button text color to black */
.hero .btn.ghost,
.hero .btn.ghost:hover {
  color: #0f0f12 !important
}

/* Fix lang toggle text color to stay same on hover */
#lang-toggle,
#lang-toggle:hover {
  color: var(--fg) !important
}

/* COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 400px;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 16px;
  z-index: 9999;
  box-shadow: var(--shadow-hover);
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex !important;
  /* Ensure it overrides hidden class when we remove it, but actually we toggle class 'show' usually or remove 'hidden' */
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.cookie-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
  margin: 0;
  color: var(--fg);
}

.cookie-content .btn {
  align-self: flex-end;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Mobile Responsive adjustment */
@media (max-width: 768px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
    /* Full width minus margins on mobile */
  }
}

/* GLOBAL LIGHTBOX STYLES */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* No scrolling, fit to screen */
  padding: 40px;
}

/* 
   Fit image to screen (both width and height)
*/
.lightbox-content img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.05);
  min-height: 200px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-content img.loading {
  opacity: 0.3;
}

.lightbox-content img.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lightbox-content {
    padding: 10px;
    align-items: center;
    /* Center vertically on mobile too, or flex-start if very tall */
  }

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

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

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}