/* ===================================================================
   GÜVEN MATBAA — Custom Styles
   =================================================================== */

/* ── Custom Properties ──────────────────────────────────────────── */
:root {
  --navy-900: #0a1628;
  --navy-800: #0f2140;
  --navy-700: #152d55;
  --cyan: #00bcd4;
  --magenta: #e91e90;
  --yellow-accent: #ffc107;
  --white: #ffffff;
  --gray-100: #f8fafc;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
}

/* ── Base ───────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  border-radius: 3px;
}

/* ── Navbar ─────────────────────────────────────────────────────── */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.92) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero-bg {
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 22, 40, 0.70) 0%,
      rgba(10, 22, 40, 0.82) 50%,
      rgba(10, 22, 40, 0.96) 100%
    ),
    url('hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

/* ── Glassmorphism ──────────────────────────────────────────────── */
.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(10, 22, 40, 0.06);
}

/* ── Service Cards — CMYK Glow ──────────────────────────────────── */
.service-card {
  position: relative;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan), var(--magenta), var(--yellow-accent));
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: -1;
  filter: blur(18px);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 188, 212, 0.12);
}

.service-card:hover::before {
  opacity: 0.55;
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(233, 30, 144, 0.08));
  color: var(--cyan);
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: white;
  transform: scale(1.1) rotate(-5deg);
}

/* ── CTA Buttons ────────────────────────────────────────────────── */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cyan), #0097a7);
  transition: all 0.35s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 188, 212, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0, 188, 212, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 188, 212, 0.2);
}

/* ── Section Title ──────────────────────────────────────────────── */
.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  border-radius: 2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Stats ──────────────────────────────────────────────────────── */
.stats-bg {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.stats-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 188, 212, 0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stats-bg::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(233, 30, 144, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ── Portfolio / Masonry ────────────────────────────────────────── */
.masonry-grid {
  columns: 1;
  column-gap: 1.5rem;
}

@media (min-width: 640px) {
  .masonry-grid { columns: 2; }
}

@media (min-width: 1024px) {
  .masonry-grid { columns: 3; }
}

.portfolio-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  cursor: pointer;
}

.portfolio-item img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.92) 0%, rgba(10, 22, 40, 0.3) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

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

/* ── Testimonials ───────────────────────────────────────────────── */
.testimonial-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--cyan), var(--magenta)) 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(10, 22, 40, 0.1);
}

.quote-icon {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Floating Label Form ────────────────────────────────────────── */
.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
  color: var(--navy-900);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.form-group label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  background: white;
  padding: 0 6px;
}

.form-group textarea ~ label {
  top: 22px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── WhatsApp Float Button ──────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  animation: pulse-wp 2s ease-in-out infinite;
}

@keyframes pulse-wp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50%      { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ── Scroll Reveal Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Mobile Menu ────────────────────────────────────────────────── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Hamburger ──────────────────────────────────────────────────── */
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── Contact Info Icons ─────────────────────────────────────────── */
.contact-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(233, 30, 144, 0.06));
  color: var(--cyan);
  flex-shrink: 0;
}

/* ── Footer Social Icons ───────────────────────────────────────── */
.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.35s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

/* ── Logo Container — Okunabilirlik ────────────────────────────── */
.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 4px 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled .logo-container {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.logo-container-footer {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* ── Mektup Zarfı — Kahverengi Renk ────────────────────────────── */
.product-envelope .aspect-square {
  background: #d4a76a !important;
  position: relative;
}

.product-envelope .aspect-square img {
  mix-blend-mode: multiply;
  filter: sepia(60%) saturate(120%) hue-rotate(-10deg) brightness(0.85);
}

/* ── Tutkal — Marka Gizleme ────────────────────────────────────── */
.product-glue .aspect-square img {
  /* Markayı bulanıklaştır değil, object-fit ile kırp */
}

/* ── Misc Utilities ─────────────────────────────────────────────── */
.text-balance {
  text-wrap: balance;
}
