/* ============================================
   KRAFT KOMMYUNIKEISHNS — Deep Glassmorphism
   ============================================ */

:root {
  --page-bg: #e2dfd8;
  --page-bg-warm: #ebe8e2;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #6b7280;
  --amber-400: #d97706;
  --amber-500: #b45309;
  --burnt-orange: #c2410c;
  --amber-glow: rgba(217, 119, 6, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--page-bg);
  color: var(--text-primary);
  position: relative;
  min-height: 100vh;
}

/* Page background — multi-layer mesh gradients */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.mesh-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.mesh-gradient-1 {
  width: 80vw;
  height: 80vw;
  max-width: 800px;
  max-height: 800px;
  top: -20%;
  right: -20%;
  background: radial-gradient(circle, rgba(251, 191, 133, 0.4) 0%, rgba(253, 186, 116, 0.2) 40%, transparent 70%);
  animation: float 15s ease-in-out infinite;
}

.mesh-gradient-2 {
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  bottom: -10%;
  left: -15%;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.5) 0%, rgba(253, 230, 138, 0.25) 50%, transparent 70%);
  animation: float 18s ease-in-out infinite reverse;
}

.mesh-gradient-3 {
  width: 50vw;
  height: 50vw;
  max-width: 500px;
  max-height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(254, 215, 170, 0.3) 0%, transparent 60%);
  animation: float 20s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -3%) scale(1.02); }
  66% { transform: translate(-2%, 2%) scale(0.98); }
}

/* Hero background media — abstract 3D/dark glass */
.hero-bg-media {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: brightness(1.1) contrast(0.95) saturate(0.7);
}

/* Hero vignette — soft light edges */
.hero-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(226, 223, 216, 0.6) 80%, rgba(226, 223, 216, 0.95) 100%);
}

/* Stars canvas — subtle on light bg */
.stars-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
}

/* Light theme image filter */
.img-dark-theme {
  filter: brightness(1) contrast(1.05);
  transition: filter 0.4s ease, transform 0.5s ease;
}

/* Header — glassmorphism light */
.header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.brand {
  text-decoration: none;
  transition: opacity 0.3s;
}

.brand:hover {
  opacity: 0.9;
}

.nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--amber-500);
}

.nav-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* neu-glass-card — Light glassmorphism */
.neu-glass-card {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.neu-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(0,0,0,0.02) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.neu-glass-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 8px 32px rgba(0, 0, 0, 0.08);
}

/* deep-glow — soft amber glow on hover */
.deep-glow:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 1),
    0 0 40px rgba(217, 119, 6, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Icon gem capsule — light theme */
.icon-gem-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.icon-gem-capsule::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40%;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 70%);
  filter: blur(8px);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.icon-gem-capsule:hover {
  border-color: rgba(217, 119, 6, 0.25);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.15);
}

.icon-gem-capsule:hover::after {
  opacity: 1;
  background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.35) 0%, transparent 70%);
}

.icon-gem-capsule--sm {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
}

.icon-gem {
  width: 24px;
  height: 24px;
  color: var(--amber-500);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
  transition: transform 0.3s ease;
}

.icon-gem-capsule--sm .icon-gem {
  width: 20px;
  height: 20px;
}

.icon-gem-capsule:hover .icon-gem {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.2));
}

/* Floating objects in hero */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-obj {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
  animation: floatObj 12s ease-in-out infinite;
}

.float-obj-1 { width: 120px; height: 120px; top: 15%; left: 10%; animation-delay: 0s; }
.float-obj-2 { width: 80px; height: 80px; top: 60%; right: 15%; animation-delay: -3s; }
.float-obj-3 { width: 60px; height: 60px; bottom: 25%; left: 25%; animation-delay: -6s; }
.float-obj-4 { width: 100px; height: 100px; top: 35%; right: 30%; animation-delay: -9s; }

@keyframes floatObj {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(15px, -20px) scale(1.1); opacity: 1; }
}

/* Hero section */
.hero-title {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* Buttons */
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-primary);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.12);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(180, 83, 9, 0.1) 100%);
  border-color: rgba(217, 119, 6, 0.4);
  color: var(--amber-500);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(180, 83, 9, 0.2) 100%);
  border-color: rgba(217, 119, 6, 0.6);
  box-shadow: 0 4px 24px rgba(217, 119, 6, 0.2);
}

/* Contact cards as links */
.contact-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.contact-card .font-mono {
  max-width: 100%;
  padding: 0 0.5rem;
  font-size: clamp(0.6875rem, 2.2vw, 0.95rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Service cards with preview images — hover scale + sharper */
.service-card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
  filter: brightness(1.02) contrast(1.05);
}

/* About split layout 50/50 */
.about-split {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-img-wrap {
  padding: 0;
}

.about-img-wrap .img-wrap {
  aspect-ratio: 4 / 3;
}

.about-content .neu-glass-card {
  padding: 1rem 1.25rem;
}

/* Bento grid — Apple/Bento style */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-cell {
  padding: 1.5rem;
  min-height: 220px;
}

.bento-cell--img {
  padding: 0;
}

.bento-cell--text:nth-child(1) { grid-column: span 1; grid-row: span 1; }
.bento-cell--img:nth-child(2) { grid-column: span 1; grid-row: span 2; }
.bento-cell--img:nth-child(3) { grid-column: span 1; grid-row: span 2; }
.bento-cell--text:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.bento-cell--text:nth-child(5) { grid-column: span 1; grid-row: span 1; }
.bento-cell--img:nth-child(6) { grid-column: span 2; grid-row: span 1; min-height: 280px; }

.bento-img-wrap {
  position: relative;
}

.bento-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(217, 119, 6, 0.06);
  pointer-events: none;
}

.bento-img {
  min-height: 220px;
}

@media (max-width: 767px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-cell--img:nth-child(2),
  .bento-cell--img:nth-child(3),
  .bento-cell--img:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-cell {
    min-height: 200px;
  }

  .bento-cell--img {
    min-height: 220px;
  }
}

/* Footer background image + blend mode — light */
.footer-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(226, 223, 216, 0.92) 0%, rgba(235, 232, 226, 0.96) 100%),
    url('https://images.unsplash.com/photo-1514565131-fce0801e5785?w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(1.2) saturate(0.6);
  background-blend-mode: overlay, normal;
}


.section-title {
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Tilt cards — Vanilla Tilt target */
.tilt-card {
  transform-style: preserve-3d;
}

.tilt-card .icon-gem-capsule,
.tilt-card h3,
.tilt-card p,
.tilt-card span {
  transform: translateZ(20px);
}

/* Footer */
.footer {
  position: relative;
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.footer .footer-content {
  position: relative;
  z-index: 1;
}

/* AOS adjustments */
[data-aos] {
  pointer-events: auto;
}

/* FAQ details — chevron rotate when open */
.faq-details summary .chevron-icon {
  transition: transform 0.3s ease;
}

details[open].faq-details summary .chevron-icon {
  transform: rotate(180deg);
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }

  .nav-list.open {
    display: flex;
  }
}
