/* 
 * LEGO FUAR STAND HİZMETLERİ - Custom Static CSS Design System
 * Built with Vanilla CSS, HSL Color Scales, Google Fonts (Outfit, Inter) and Scroll-Driven Animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- Design Tokens --- */
:root {
  /* Color Palette (Harmonious Sand, Deep Charcoal & Premium Grays) */
  --primary-hsl: 36, 17%, 68%;
  --primary: hsl(var(--primary-hsl)); /* #b9afa1 - Signature Sand Color */
  --primary-hover: hsl(36, 17%, 58%);
  --secondary: hsl(36, 10%, 48%);
  
  --dark-hsl: 220, 12%, 14%;
  --dark: hsl(var(--dark-hsl)); /* Deep charcoal */
  --dark-light: hsl(220, 10%, 25%);
  
  --light-hsl: 0, 0%, 98%;
  --light: hsl(var(--light-hsl)); /* Soft grey */
  --light-darker: hsl(0, 0%, 93%);
  
  --white: #ffffff;
  --accent: hsl(190, 60%, 45%); /* Cool ocean/teal accent for minor active details if needed */
  
  /* Fonts */
  --font-family-title: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;
  
  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout Dimensions */
  --header-height-desktop: 190px;
  --header-height-scroll: 90px;
  --container-max-width: 1250px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark-light);
  background-color: var(--white);
  overflow-x: hidden;
  padding-top: var(--header-height-desktop); /* Ensure content doesn't slip behind fixed header */
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-title);
  color: var(--dark);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h5 { font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

p {
  margin-bottom: 1.5rem;
}

/* --- Global Components & Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 36px;
  font-family: var(--font-family-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 175, 161, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Decorative leaf separator */
.leaf-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 25px 0;
  color: var(--primary);
}

.leaf-separator::before,
.leaf-separator::after {
  content: "";
  height: 1px;
  background-color: var(--primary);
  flex-grow: 1;
  max-width: 100px;
}

.leaf-separator svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.text-center { text-align: center; }

/* --- Elegant Shrinking Header --- */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-desktop);
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: height var(--transition-normal), background var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Middle logo grid navigation styling */
.nav-menu-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 40px;
  width: 100%;
}

.nav-item {
  display: flex;
  flex-direction: column;
}

.nav-item.logo-item {
  flex-shrink: 0;
  margin: 0 20px;
}

.nav-link {
  font-family: var(--font-family-title);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--dark);
  text-transform: uppercase;
  text-align: center;
  position: relative;
  padding-bottom: 4px;
}

.nav-link span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--secondary);
  text-transform: capitalize;
  margin-top: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 30px;
}

.logo-link img {
  height: 100px;
  width: auto;
  transition: height var(--transition-normal);
}

/* Scroll Animation classes (applied via native CSS or fallback JS) */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @keyframes shrink-header {
    to {
      height: var(--header-height-scroll);
      background-color: var(--white);
      box-shadow: var(--shadow-md);
    }
  }
  @keyframes shrink-logo {
    to {
      height: 60px;
    }
  }

  .header-wrapper {
    animation: shrink-header auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 150px;
  }
  
  .logo-link img {
    animation: shrink-logo auto linear both;
    animation-timeline: scroll(block root);
    animation-range: 0px 150px;
  }
}

/* --- Mobile Menu & Flyout --- */
.mobile-logo-wrapper {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
}

.mobile-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--dark);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

@media (max-width: 991px) {
  body {
    padding-top: 100px; /* Thinner static mobile header spacing */
  }
  
  .header-wrapper {
    height: 100px !important;
  }
  
  .logo-link img {
    height: 65px !important;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 120px 40px 40px 40px;
    gap: 30px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    align-items: flex-start;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item.logo-item {
    display: none; /* Logo is absolute in mobile header instead */
  }
  
  .header-container {
    justify-content: space-between;
  }
  
  .mobile-logo-wrapper {
    display: block;
    position: absolute;
    left: 24px;
  }
  
  /* Mobile menu active animation lines */
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* --- Hero Slider Section --- */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-height-desktop));
  min-height: 550px;
  background-color: var(--dark);
  overflow: hidden;
}

@media (max-width: 991px) {
  .hero-slider {
    height: calc(85vh - 100px);
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-slow) ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.slide.active .slide-bg {
  transform: scale(1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.slide-content {
  position: relative;
  z-index: 5;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.slide-content h1 {
  color: var(--white);
  margin-bottom: 15px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slide-content p {
  color: var(--light-darker);
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Custom Scroll Indicator down icon */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--white);
  font-size: 24px;
  animation: bounce 2s infinite;
  cursor: pointer;
  opacity: 0.8;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* --- Brand Marquee (Logo Carousel) --- */
.brand-carousel-section {
  padding: 40px 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--light-darker);
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-inner {
  display: inline-flex;
  gap: 80px;
  animation: marquee 25s linear infinite;
  align-items: center;
}

.marquee-inner img {
  height: 45px;
  width: auto;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
  filter: grayscale(1);
}

.marquee-inner img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Stand Showcase Gallery --- */
.gallery-section {
  padding: 100px 0;
  background-color: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid var(--light-darker);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 37, 42, 0.85);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 24px;
  text-align: center;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

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

.gallery-overlay h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 8px;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.gallery-overlay p {
  font-size: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateY(20px);
  transition: transform var(--transition-normal) 0.1s;
}

.gallery-item:hover .gallery-overlay h4,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(22, 23, 26, 0.95);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}

/* --- Intro / Blurb Section --- */
.intro-section {
  padding: 120px 0;
  background-color: var(--white);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--dark-light);
}

.intro-content h3 {
  font-size: 36px;
  margin-bottom: 10px;
}

.intro-subtitle {
  font-family: var(--font-family-title);
  color: var(--primary);
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
}

/* --- Section Dividers --- */
.half-circle-divider {
  width: 100%;
  height: 80px;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.half-circle-divider svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  fill: var(--light);
}

/* --- Page Titlebars --- */
.page-titlebar {
  background-color: var(--light);
  border-bottom: 1px solid var(--light-darker);
  padding: 60px 0;
  text-align: center;
}

.page-titlebar h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

/* --- About Page Layout --- */
.about-split-section {
  padding: 100px 0;
}

.about-split-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .about-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.about-image-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Parallax Banner Stats counters */
.parallax-stats-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 120px 0;
  color: var(--white);
  text-align: center;
}

.parallax-stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 37, 42, 0.75);
}

.stats-grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  width: 70px;
  height: 70px;
  border: 1px solid var(--primary);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.stat-number {
  font-family: var(--font-family-title);
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--light-darker);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Call to Action --- */
.cta-section {
  background-color: var(--primary);
  padding: 80px 0;
  color: var(--white);
  text-align: center;
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.cta-grid h3 {
  color: var(--white);
  font-size: 28px;
}

.cta-grid p {
  margin-bottom: 0;
  font-size: 18px;
  opacity: 0.9;
}

.cta-buttons {
  flex-shrink: 0;
}

.cta-btn {
  background-color: var(--white);
  color: var(--dark);
}

.cta-btn:hover {
  background-color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .cta-grid {
    flex-direction: column;
  }
}

/* --- References Grid Layout --- */
.references-section {
  padding: 100px 0;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
}

.reference-card {
  background-color: var(--light);
  border: 1px solid var(--light-darker);
  border-radius: var(--border-radius-md);
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2.2 / 1;
  transition: all var(--transition-normal);
}

.reference-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.reference-card:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.reference-card:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Contact Page Layout --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

.contact-card {
  background-color: var(--light);
  border: 1px solid var(--light-darker);
  border-radius: var(--border-radius-md);
  padding: 50px 40px;
}

.contact-card h3 {
  margin-bottom: 10px;
}

/* Custom form elements and validation */
.form-group {
  margin-bottom: 24px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-darker);
  background-color: var(--white);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family-body);
  font-size: 15px;
  color: var(--dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: hsl(0, 0%, 65%);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(185, 175, 161, 0.2);
}

/* Modern Validation Styling */
.form-control:user-invalid {
  border-color: #e54b4b;
}

.form-control:user-valid {
  border-color: #3aa655;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-detail-block {
  margin-bottom: 35px;
}

.contact-detail-block h3 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact-detail-block h3 a {
  color: var(--dark);
}

.contact-detail-block h3 a:hover {
  color: var(--primary);
}

.map-container {
  width: 100%;
  height: 450px;
  border: 1px solid var(--light-darker);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-top: 50px;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--light);
  border-top: 1px solid var(--light-darker);
  padding: 60px 0 40px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

@media (max-width: 767px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }
}

.footer-copy {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.footer-copy a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-sm);
  background-color: var(--light-darker);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Scroll Entrance Animation --- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fade-in-scale {
      from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
      }
    }

    .reveal-on-scroll {
      animation: fade-in-scale auto linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* Fallback for Scroll Entrance */
.reveal-visible {
  opacity: 1 !important;
  transform: none !important;
}
