/* Tilia Proses - Design System & Bootstrap Overrides */

:root {
  --tilia-green: #2dbf81;
  --tilia-navy: #0a0b2b;
  --tilia-navy-light: #161a4d;
  --tilia-gray: #f8fafc;
  --tilia-white: #ffffff;
  --tilia-text: #0a0b2b;
  --tilia-muted: #64748b;
  --tilia-border: #e2e8f0;
  --font-family: "Outfit", sans-serif;

  /* Bootstrap Overrides */
  --bs-primary: var(--tilia-green);
  --bs-body-font-family: var(--font-family);
  --bs-body-color: var(--tilia-text);
}

/* Base Styles */
body {
  background-color: var(--tilia-white);
  overflow-x: hidden;
}

/* --- Image Performance Optimizations --- */
img {
  content-visibility: auto;
}

.product-grid-card img {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  background-color: #ffffff;
}

/* Beyaz arka plan - şeffaf PNG'ler için */
.product-grid-card {
  background-color: #ffffff;
}

.gslide-image img {
  background-color: #ffffff !important;
}

.gcontainer {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.glightbox-clean .gslide-image {
  background-color: #ffffff;
}

.img-fluid {
  will-change: transform;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  color: var(--tilia-navy);
}

.text-gradient {
  background: linear-gradient(135deg, var(--tilia-navy), var(--tilia-green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */
.navbar {
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--tilia-border);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--tilia-navy) !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 75px;
  /* Scaled up for premium impact */
  width: auto;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.02);
}

.navbar-nav {
  margin-left: auto;
  /* Right-align navbar-nav */
}

.nav-link {
  font-weight: 600;
  color: var(--tilia-navy) !important;
  padding: 8px 20px !important;
  margin: 0 5px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--tilia-green) !important;
  border-color: var(--tilia-green);
  background-color: rgba(45, 191, 129, 0.05);
}

/* --- Dropdowns --- */
.dropdown-menu {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(10, 11, 43, 0.1);
  padding: 10px;
  background: var(--tilia-navy);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.2s;
  text-transform: uppercase;
  /* Force uppercase */
}

.dropdown-item:hover {
  background: var(--tilia-green);
  color: white !important;
  transform: translateX(5px);
}

/* --- Multi-level Dropdowns --- */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -10px;
  margin-left: 5px;
  display: none;
  background: var(--tilia-navy-light);
  /* Slightly lighter for contrast */
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

@media (max-width: 991px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    left: 0;
    margin-left: 15px;
    margin-top: 0;
    display: block;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }

  .dropdown-submenu > .dropdown-item i {
    transform: rotate(90deg);
  }
}

.dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 6px;
}

/* --- Buttons --- */
.btn-primary {
  background-color: var(--tilia-green);
  border-color: var(--tilia-green);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(45, 191, 129, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #27a671;
  border-color: #27a671;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 191, 129, 0.4);
}

.btn-outline-navy {
  border: 2px solid var(--tilia-navy);
  color: var(--tilia-navy);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
}

.btn-outline-navy:hover {
  background-color: var(--tilia-navy);
  color: white;
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  height: 550px;
  /* Reduced fixed height */
  overflow: hidden;
  background: var(--tilia-navy);
}

.hero-slider .carousel,
.hero-slider .carousel-inner,
.hero-slider .carousel-item {
  height: 100%;
}

.hero-slider .carousel-item img {
  height: 100%;
  object-fit: cover;
  animation: kenburns 20s infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 43, 0.4) 0%,
    rgba(10, 11, 43, 0.7) 50%,
    rgba(10, 11, 43, 0.85) 100%
  );
  z-index: 1;
}

.hero-slider .carousel-caption {
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: center;
  width: 100%;
  left: 0;
  padding: 0 15px;
}

.hero-slider .carousel-caption h1,
.hero-slider .carousel-caption h2 {
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
}

.hero-slider .carousel-caption h1 {
  font-size: 4rem;
}

.hero-slider .carousel-caption h2 {
  font-size: 3.5rem;
}

.text-primary {
  color: var(--tilia-green) !important;
}

.hero-slider .carousel-caption p {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.4rem;
  color: #fff;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  opacity: 1;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 8px;
  background-color: var(--tilia-green);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 3;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
}

/* --- Brand Logo Shelf --- */
.brand-shelf {
  background: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 0 !important;
}

.brand-track {
  display: flex;
  align-items: center;
  /* Vertically center logos */
  width: max-content;
  animation: scrollBrands 30s linear infinite;
}

.brand-item {
  padding: 0 40px;
  flex-shrink: 0;
  transition: all 0.3s ease;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-item img {
  max-height: 40px;
  width: auto;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.brand-item:hover img {
  transform: scale(1.05);
}

@keyframes scrollBrands {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.hero-tag {
  background: rgba(45, 191, 129, 0.1);
  color: var(--tilia-green);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 20px;
}

/* --- Product Cards --- */
.product-card {
  border: 1px solid var(--tilia-border);
  border-radius: 24px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--tilia-green);
  box-shadow: 0 20px 40px rgba(10, 11, 43, 0.05);
}

.product-icon {
  width: 60px;
  height: 60px;
  background: var(--tilia-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 24px;
  font-size: 1.5rem;
  transition: background-color 0.3s;
}

.product-card:hover .product-icon {
  background: var(--tilia-green);
}

/* --- Intro Section --- */
.intro-section h2 {
  line-height: 1.2;
}

.intro-body p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.intro-visual {
  position: relative;
  padding: 20px;
}

.visual-card {
  position: relative;
  z-index: 1;
}

.visual-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--tilia-green);
  border-radius: 20px;
  z-index: -1;
  opacity: 0.2;
}

.visual-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: white;
  padding: 15px 25px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(10, 11, 43, 0.15);
  display: flex;
  align-items: center;
  font-weight: 700;
  z-index: 2;
}

@media (max-width: 991px) {
  .visual-badge {
    left: 20px;
    bottom: 20px;
  }
}

/* --- Sectors Section --- */
.sectors-section {
  background-image: url("../img/slider_factory_overview.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 600px;
}

.sectors-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 11, 43, 0.95) 0%,
    rgba(10, 11, 43, 0.8) 100%
  );
  z-index: 0;
}

.sector-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.sector-card i {
  font-size: 2.5rem;
  color: var(--tilia-green);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.sector-card span {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sector-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-10px) scale(1.02);
  border-color: var(--tilia-green);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sector-card:hover i {
  transform: rotateY(180deg) scale(1.1);
}

/* --- Feature Cards Modern --- */
.feature-card-modern {
  background: white;
  transition: all 0.4s ease;
  border-color: rgba(10, 11, 43, 0.05) !important;
}

.feature-card-modern:hover {
  transform: translateY(-15px);
  border-color: var(--tilia-green) !important;
  box-shadow: 0 30px 60px rgba(10, 11, 43, 0.1) !important;
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: rgba(10, 11, 43, 0.02);
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(10, 11, 43, 0.05);
}

.feature-card-modern:hover .feature-icon {
  background: var(--tilia-green);
  border-color: var(--tilia-green);
}

.feature-card-modern:hover .feature-icon i {
  color: white !important;
  transform: scale(1.1);
}

.feature-icon i {
  transition: all 0.4s ease;
}

.feature-icon-small {
  width: 80px;
  height: 80px;
  background: rgba(45, 191, 129, 0.1);
  border-radius: 20px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border: 1px solid rgba(45, 191, 129, 0.2);
}

.feature-card-modern:hover .feature-icon-small {
  background: var(--tilia-green);
  border-color: var(--tilia-green);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(45, 191, 129, 0.3);
}

.feature-card-modern:hover .feature-icon-small i {
  color: white !important;
}

/* --- Corporate Page --- */
.visual-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #161845 0%, var(--tilia-navy) 100%);
  position: relative;
  z-index: 1;
  color: white !important;
}

.visual-placeholder h2,
.visual-placeholder .display-1 {
  color: white !important;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.visual-placeholder .opacity-50 {
  opacity: 0.8 !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.visual-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  background: var(--tilia-green);
  border-radius: 20px;
  z-index: 0;
  opacity: 0.1;
}

.corporate-content p {
  line-height: 1.8;
}

/* --- Gallery --- */
.gallery-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 10px 30px rgba(10, 11, 43, 0.1);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(10, 11, 43, 0.8) 0%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay span {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-card:hover .gallery-overlay span {
  transform: translateY(0);
}

/* --- Features Section (Dark) --- */
.features-dark {
  background-color: var(--tilia-navy);
  color: white;
  border-radius: 40px;
  padding: 80px 40px;
}

.feature-item i {
  color: var(--tilia-green);
  font-size: 1.5rem;
}

/* --- Responsive Overrides --- */
@media (max-width: 991px) {
  .hero-slider {
    height: 400px;
  }
  .hero-slider .carousel-caption h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }
  .hero-slider .carousel-caption h2 {
    font-size: 2.5rem;
  }
  .hero-slider .carousel-caption p {
    font-size: 1.1rem;
  }
  .navbar-brand img {
    height: 60px;
  }
  .contact-info-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .hero-slider {
    height: 350px;
  }
  .hero-slider .carousel-caption h1 {
    font-size: 2.2rem;
  }
  .hero-slider .carousel-caption h2 {
    font-size: 1.8rem;
  }
  .hero-slider .carousel-caption p {
    font-size: 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .brand-hero-light {
    padding: 3rem 1.5rem;
    border-radius: 25px;
  }
  .category-hub-card {
    padding: 1.5rem;
  }
  .contact-form-card {
    padding: 30px 20px;
  }
  .contact-info-text h1 {
    font-size: 2.5rem;
  }
}

/* Lightbox fix for mobile interaction */
.glightbox-link {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* --- Contact Page Redesign --- */
/* --- Contact Page Refined --- */
.contact-header-section {
  padding: 100px 0;
  background-color: #fff;
}

.contact-info-text h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.contact-info-text .lead {
  font-size: 1.1rem;
  max-width: 450px;
  margin-bottom: 50px;
  color: #6c757d !important;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: #2dbf81;
  /* Precise green */
}

.contact-info-item h5 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 800;
}

.contact-info-item p {
  color: #6c757d;
  margin: 0;
  font-size: 0.95rem;
}

.contact-form-card {
  background-color: #f8f9fa;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.03);
  border: none;
}

.contact-form-card h3 {
  font-size: 1.75rem;
  margin-bottom: 40px;
}

.contact-form-card .form-control {
  background-color: #fff;
  border: 1px solid #eee;
  padding: 18px 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.contact-form-card .btn-send {
  background-color: #2dbf81;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 50px;
  width: 100%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 10px;
  transition: all 0.3s;
}

.contact-form-card .btn-send:hover {
  background-color: #26a36e;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(45, 191, 129, 0.3);
}

.contact-map-section iframe {
  width: 100%;
  height: 500px;
  filter: grayscale(1);
  opacity: 0.8;
  border: none;
  display: block;
}

.contact-map-section iframe:hover {
  filter: grayscale(0);
  opacity: 1;
  transition: all 0.5s ease;
}

/* --- Footer --- */
footer {
  background: var(--tilia-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.footer-logo img {
  height: 70px;
  /* Scaled up footer logo */
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0;
}

footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

footer ul li {
  margin-bottom: 12px;
}

footer ul li a {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

footer ul li a:hover {
  color: var(--tilia-green) !important;
  padding-left: 5px;
}

footer .opacity-50 {
  opacity: 0.7 !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: 20px;
  background: #111111;
  color: #fff;
  padding: 25px;
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  display: none;
  max-width: 600px;
  margin: 0 auto;
}

.cookie-content {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.cookie-actions a {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cookie-actions .btn-accept {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.cookie-actions .btn-accept:hover {
  background: #5a6268;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 0;
    max-width: 100%;
  }
}

/* --- Image Upload UI --- */
.upload-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(45, 191, 129, 0.9);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.upload-overlay-btn:hover {
  background: var(--tilia-navy);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 55px;
    /* Scaled down for mobile */
  }

  .footer-logo img {
    height: 50px;
  }

  .hero-slider {
    height: 450px;
    /* Slightly shorter on mobile */
  }

  .hero-slider .carousel-caption h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .hero-slider .carousel-caption h2 {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .hero-slider .carousel-caption p {
    font-size: 1.1rem;
    max-width: 90%;
  }

  .display-4 {
    font-size: 2.2rem;
  }

  .display-5 {
    font-size: 1.8rem;
  }

  .sector-card {
    padding: 20px 10px;
  }

  .sector-card i {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .sector-card span {
    font-size: 0.8rem;
  }

  .brand-item {
    padding: 0 20px;
  }

  .hero-section {
    padding: 120px 0 60px;
  }

  .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-slider .carousel-caption h1 {
    font-size: 1.8rem;
  }

  .hero-slider .carousel-caption p {
    font-size: 0.95rem;
  }

  .sector-card span {
    font-size: 0.75rem;
  }

  /* Stack footer contact info differently if needed */
  .contact-info-text h1 {
    font-size: 2.5rem;
  }
}
