/* =========================================================================
   Selin Kırtasiye - Design System & Styles
   ========================================================================= */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors - Modern Corporate & Navy Highlights (Forced Light Mode) */
  --color-bg: #f8fafc;
  --color-bg-secondary: #ffffff;
  --color-accent: #021533;
  --color-accent-hover: #042152;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: rgba(0, 0, 0, 0.1);
  --color-glass-bg: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(0, 0, 0, 0.05);

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Spacing & Sizes */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --container-max: 1200px;

  /* Transitions & Radii */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.container-sm {
  max-width: 800px;
}

.center {
  text-align: center;
}

/* --- Topography Utilities --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.section-subtitle {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: var(--spacing-xs);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-main);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 21, 51, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 21, 51, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: #fff;
  color: #000;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-glass {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-family: var(--font-main);
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-transform: translateZ(0);
  /* For Safari rendering bug */
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateZ(0) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Glassmorphism Components --- */
.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: var(--spacing-md);
}

.glass-card-solid {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

/* --- Header & Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1rem 0;
}

.header.scrolled {
  background: var(--color-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  padding: 0 3rem;
}

.nav-logo {
  width: 105px;
  height: 75px;
  background-color: var(--color-text);
  -webkit-mask: url('assets/logoselin.svg') no-repeat left center / contain;
  mask: url('assets/logoselin.svg') no-repeat left center / contain;
  transition: var(--transition);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list a:not(.btn-primary) {
  font-weight: 500;
  color: var(--color-text);
  opacity: 0.8;
  position: relative;
}

.nav-list a:not(.btn-primary):hover {
  opacity: 1;
}

.nav-list a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-list a:not(.btn-primary):hover::after {
  width: 100%;
}

.header:not(.scrolled) .nav-logo {
  background-color: #ffffff;
}

.header:not(.scrolled) .nav-list a.btn-primary {
  background-color: #ffffff;
  color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.header:not(.scrolled) .nav-list a.btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.header:not(.scrolled) .nav-list a:not(.btn-primary),
.header:not(.scrolled) .mobile-toggle {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
  .header:not(.scrolled) .nav-list.active a:not(.btn-primary) {
    color: var(--color-text);
    text-shadow: none;
  }

  .header:not(.scrolled) .nav-list.active a.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 21, 51, 0.3);
  }
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Slider --- */
.hero {
  position: relative;
  height: 82vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10rem;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.4);
}

.slide-content {
  position: relative;
  z-index: 10;
  width: 100%;
}

.slide-text {
  max-width: 700px;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.3s;
  color: #fff;
  will-change: transform, opacity;
}

.slide.active .slide-text {
  transform: translateY(0);
  opacity: 1;
}

.slide-features {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.slide-features span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.slide-features span i {
  color: #34d399;
  /* emerald-400 */
  font-size: 1.2rem;
}

.slide-text h1,
.slide-text h2 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slide-text p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  max-width: 500px;
}

.slider-controls {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 20;
}

.slider-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-controls button:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: #ffffff;
  width: 30px;
  border-radius: 5px;
}

/* --- Brands Marquee --- */
.brands {
  padding: var(--spacing-xl) 0 0;
  background: var(--color-bg);
  overflow: hidden;
}

.brands .section-header {
  margin-bottom: 1.2rem;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  padding: 0.8rem 0;
  display: flex;
  overflow: hidden;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  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);
}

.marquee {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  padding-right: 3rem;
  /* Same as gap */
  align-items: center;
}

.brand-logo {
  height: 20px;
  width: auto;
  max-width: none;
  opacity: 0.85;
  transition: var(--transition);
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo[alt="Epson Logo"] {
  height: 110px;
}

.brand-logo[alt="Faber-Castell Logo"] {
  height: 40px;
}

.brand-logo[alt="Rotring Logo"] {
  height: 40px;
}

.brand-logo[alt="Logitech Logo"] {
  height: 30px;
}

.brand-logo[alt="Play-Doh Logo"] {
  height: 50px;
}

.brand-logo[alt="Stabilo Logo"] {
  height: 110px;
}

.brand-logo[alt="Adel Logo"] {
  height: 60px;
}

.brand-logo[alt="Vege Logo"] {
  height: 80px;
}

.brand-logo[alt="HP Logo"] {
  height: 60px;
}

.brand-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

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

  to {
    transform: translateX(-25%);
  }

  /* Shift exactly 1 of the 4 blocks */
}

/* --- About Section --- */
.about {
  padding: var(--spacing-xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  border-radius: var(--radius-lg);
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.image-wrapper:hover img {
  transform: scale(1);
}

.experience-badge {
  position: absolute;
  bottom: -1rem;
  right: 1.5rem;
  background: var(--color-accent);
  color: #fff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 15px 35px rgba(2, 21, 51, 0.4);
}

.experience-badge .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.9rem;
  font-weight: 500;
}

.about-text {
  margin-bottom: 2rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.about-text strong {
  color: var(--color-text);
  font-weight: 500;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.feature-list i {
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* --- Services Section --- */
.services {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg-secondary);
  position: relative;
  z-index: 1;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/background.webp') center/cover no-repeat fixed;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2rem;
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-10px);
  border-color: var(--color-accent);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: rgba(2, 21, 51, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--color-accent);
  color: #fff;
}

.service-card h3 {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --- Contact Intro --- */
.contact-intro {
  margin-bottom: 3rem;
}

.contact-intro p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  background: var(--color-accent);
  color: #fff;
  padding: 2.5rem 0 1rem;
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand h2 span {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--color-glass-border);
}

.social-links a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-contact ul li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact ul li i {
  color: #fff;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* --- Contact & Map Section --- */
.contact-map {
  padding: var(--spacing-xl) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.contact-map-wrapper {
  width: 120%;
  margin-left: -15%;
  height: 600px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-info-wrapper {
  background: var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 125%;
  margin-right: -25%;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 15px 40px rgba(2, 21, 51, 0.2);
}

.contact-info-wrapper h3 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #fff;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 2rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  height: max-content;
}

.info-item strong {
  display: block;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.info-item p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  font-size: 0.95rem;
}

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

  .contact-map-wrapper {
    height: 300px;
    width: 100%;
    margin-left: 0;
  }

  .contact-info-wrapper {
    width: 100%;
    margin-right: 0;
  }
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  /* Official WhatsApp color */
  color: white;
  height: 60px;
  padding: 0 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
}

.floating-whatsapp i {
  font-size: 1.8rem;
}

.floating-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: white;
}

/* --- Scroll Animations Utilities --- */
.scroll-reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.up {
  transform: translateY(40px);
}

.scroll-reveal.left {
  transform: translateX(-40px);
}

.scroll-reveal.right {
  transform: translateX(40px);
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translate(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

.delay-6 {
  transition-delay: 0.6s;
}

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
  .about-grid {
    gap: 2rem;
  }

  .experience-badge {
    right: 0;
    bottom: 0;
  }

  .slide-text h1,
  .slide-text h2 {
    font-size: 2.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -60%;
    left: auto;
    width: 60%;
    height: 100vh;
    padding: 6rem 2rem 2rem;
    background: var(--color-bg-secondary);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-list.active {
    right: 0;
  }

  .mobile-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }

  .nav-list.active~.mobile-toggle {
    color: var(--color-text) !important;
    text-shadow: none !important;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: 2;
    margin-top: 2rem;
  }

  .about-content {
    order: 1;
  }

  .slide-text h1,
  .slide-text h2 {
    font-size: 2.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .slider-controls {
    right: 50%;
    transform: translateX(50%);
    bottom: 4rem;
  }

  .slider-dots {
    bottom: 1.5rem;
  }
}