/* ====================================================
   Pure Digital — Business Card
   Modern Digital Design · 2025
   ==================================================== */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === CUSTOM PROPERTIES === */
:root {
  /* Dark (hero, footer) */
  --dark:          #06080f;
  --dark-2:        #0b0e1a;
  --dark-border:   rgba(255, 255, 255, 0.08);
  --dark-surface:  rgba(255, 255, 255, 0.05);
  --on-dark:       #f0f2ff;
  --on-dark-muted: rgba(200, 210, 255, 0.6);

  /* Light (contact section) */
  --light:    #f2f2f8;
  --white:    #ffffff;
  --border:   #e3e3ef;
  --text:     #0c0d1a;
  --muted:    #6a6a7e;
  --subtle:   #a0a0b8;

  /* Brand — violet → blue → cyan */
  --violet:   #7c3aed;
  --blue:     #2563eb;
  --cyan:     #0891b2;

  /* Gradients */
  --grad:      linear-gradient(135deg, #7c3aed 0%, #2563eb 55%, #0891b2 100%);
  --grad-text: linear-gradient(140deg, #c4b5fd 10%, #93c5fd 55%, #67e8f9 100%);

  /* Feedback */
  --success:  #10b981;
  --error:    #ef4444;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w: 1080px;
  --pad:   clamp(1.25rem, 5vw, 3rem);

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Transitions */
  --t:      0.2s ease;
  --t-slow: 0.45s ease;
}

/* === BASE === */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--on-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* === HEADER === */
#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background var(--t), box-shadow var(--t);
}

#header.scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--dark-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.04em;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  transition: opacity var(--t);
}

.logo:hover { opacity: 0.8; }

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  display: inline-block;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-active { color: var(--on-dark); }
.lang-sep    { color: var(--on-dark-muted); font-weight: 400; margin: 0 0.05rem; }
.lang-other  { color: var(--on-dark-muted); transition: color var(--t); }
.lang-other:hover { color: var(--on-dark); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}

.btn-grad {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.btn-grad:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.35);
}

.btn-grad:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

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

.btn-outline:hover {
  border-color: var(--muted);
  background: var(--light);
}

/* === HERO === */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 64px var(--pad) 5rem;
  text-align: center;
}

/* Gradient mesh background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(124, 58, 237, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(6, 182, 212, 0.22) 0%, transparent 70%),
    radial-gradient(ellipse 45% 55% at 50% 90%, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
  animation: meshShift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshShift {
  0%   { opacity: 0.9; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1.05) rotate(1deg); }
  100% { opacity: 0.85; transform: scale(1) rotate(-0.5deg); }
}

/* Fine grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Interactive canvas overlay */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

/* Pill badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* Huge company name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: calc(0.18em + 8px);
  margin-bottom: calc(3rem - 0.18em);
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.hero-sro {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards;
}

/* Quick contact pills */
.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-size: 0.875rem;
  color: var(--on-dark-muted);
  transition: all var(--t);
  text-decoration: none;
}

.hero-contact-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-dark);
}

.hero-contact-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  opacity: 0.7;
}

/* CTA — scroll arrow */
.hero-cta {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.hero-scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(200, 210, 255, 0.7);
  transition: all var(--t);
  animation: arrowBounce 2s ease-in-out infinite;
  backdrop-filter: blur(4px);
}

.hero-scroll-arrow svg {
  width: 20px;
  height: 20px;
}

.hero-scroll-arrow:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.25));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* === CONTACT SECTION === */
.contact-section {
  background: var(--white);
  padding: 5.5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

/* Section labels */
.label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  margin-bottom: 0.625rem;
}

.contact-form-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.form-label .req  { color: var(--violet); margin-left: 2px; }
.form-label .opt  { color: var(--subtle); font-weight: 400; }

.form-input {
  width: 100%;
  padding: 0.8125rem 1rem;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  -webkit-appearance: none;
}

.form-input::placeholder { color: var(--subtle); }

.form-input:focus {
  border-color: var(--violet);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-input.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit { width: 100%; margin-top: 0.25rem; }

.form-message {
  padding: 0.875rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  animation: fadeUp 0.35s ease forwards;
}

.form-message--success {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #065f46;
}

.form-message--error {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

/* === CONTACT DETAILS CARD === */
.details-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  position: sticky;
  top: 80px;
}

.details-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.detail-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--violet);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-body {}

.detail-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 0.2rem;
}

.detail-value {
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  transition: color var(--t);
}

a.detail-value:hover { color: var(--violet); }

.details-divider {
  height: 1px;
  background: var(--border);
  margin: 0.25rem 0;
}


/* === MAP SECTION === */
.map-section {
  background: var(--light);
  border-top: 1px solid var(--border);
}

.map-wrapper {
  position: relative;
  height: 420px;
  overflow: hidden;
}

#map-canvas {
  width: 100%;
  height: 100%;
}

/* Custom branded map marker */
.map-pin-icon {
  background: transparent !important;
  border: none !important;
}

.map-pin-svg {
  display: block;
  filter: drop-shadow(0 4px 16px rgba(124, 58, 237, 0.5));
}

/* Leaflet zoom controls */
.leaflet-control-zoom a {
  color: var(--text) !important;
  background: var(--white) !important;
  border-color: var(--border) !important;
  font-size: 16px !important;
  line-height: 28px !important;
}

.leaflet-control-zoom a:hover {
  background: var(--light) !important;
}

.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(255,255,255,0.8) !important;
}

.map-overlay-label {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.75rem 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  pointer-events: none;
  z-index: 2;
}

.map-overlay-label svg {
  width: 16px;
  height: 16px;
  stroke: var(--violet);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.map-open-link {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all var(--t);
  z-index: 2;
}

.map-open-link:hover {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.map-open-link svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* === FOOTER === */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-border);
  padding: 2.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-meta {
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-meta span {
  opacity: 0.7;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.footer-rights {
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
  opacity: 0.55;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  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; }

/* === KEYFRAMES === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 0.5; }
}

/* === RESPONSIVE === */
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .details-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .contact-section { padding: 4rem 0; }
  .menu-toggle { display: flex; }

  .header-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(6, 8, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem var(--pad) 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--dark-border);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.3s ease;
    pointer-events: none;
  }

  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .lang-switcher {
    padding-top: 0.75rem;
    border-top: 1px solid var(--dark-border);
    width: 100%;
  }

  .form-row { grid-template-columns: 1fr; }

  .map-wrapper { height: 320px; }

  .hero-contacts { gap: 0.5rem; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-left { justify-content: center; }
  .footer-right { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: clamp(3rem, 16vw, 4.5rem); }

  .hero-contact-pill { font-size: 0.8125rem; padding: 0.4375rem 0.875rem; }

  .map-wrapper { height: 260px; }
}
