/* ============================================
   DZINR GLOBAL - Responsive (Mobile, Tablet, Desktop)
   ============================================ */

:root {
  --page-padding: clamp(16px, 4vw, 32px);
  --section-margin: clamp(24px, 5vw, 80px);
  --section-padding: clamp(24px, 5vw, 60px);
  --hero-padding: clamp(28px, 6vw, 70px);
  --gap-sm: clamp(12px, 3vw, 20px);
  --gap-md: clamp(20px, 4vw, 30px);
  --gap-lg: clamp(24px, 5vw, 40px);
  --radius: clamp(12px, 2.5vw, 18px);
  --font-h1: clamp(28px, 6vw, 46px);
  --font-h2: clamp(24px, 5vw, 34px);
  --font-h3: clamp(18px, 3.5vw, 22px);
  --font-body: clamp(15px, 2vw, 18px);
  --font-small: clamp(13px, 1.5vw, 14px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #0c0a0c, #1a131f, #09080a);
  color: #ffffff;
  overflow-x: hidden;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* Ambient background depth */
.ambient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(165,140,93,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(130,101,46,0.06), transparent 45%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* Animated Network Canvas */
.network-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
  pointer-events: none;
}

/* Glass base */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 10;
}

/* LOGO HEADER */
.logo-header {
  position: relative;
  z-index: 15;
  text-align: center;
  padding: clamp(32px, 6vw, 60px) var(--page-padding) clamp(8px, 2vw, -20px);
  animation: fadeInDown 0.8s ease-out;
}

.main-logo {
  width: clamp(140px, 25vw, 220px);
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(165, 140, 93, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 20px rgba(165, 140, 93, 0.5));
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */
.hero {
  margin: var(--section-margin) auto;
  padding: var(--hero-padding) var(--section-padding);
  max-width: 900px;
  text-align: center;
}

.hero h1 {
  font-size: var(--font-h1);
  font-weight: 600;
  margin-bottom: clamp(12px, 2.5vw, 20px);
  line-height: 1.2;
}

.subtitle {
  font-size: var(--font-body);
  opacity: 0.85;
  line-height: 1.7;
}

/* Launch box */
.launch-box {
  margin-top: var(--gap-lg);
  padding: var(--gap-md);
}

.launch-box span {
  display: block;
  font-weight: 600;
  color: #a58c5d;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.launch-box p {
  font-size: var(--font-body);
}

/* ABOUT */
.about {
  max-width: 1100px;
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
}

.about h2 {
  font-size: var(--font-h2);
  margin-bottom: clamp(12px, 2.5vw, 20px);
}

.about p {
  opacity: 0.85;
  line-height: 1.8;
  font-size: var(--font-body);
}

.about-grid {
  margin-top: var(--gap-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--gap-md);
}

.about-card {
  padding: var(--gap-md);
  min-height: 0;
}

.about-card h3 {
  color: #a58c5d;
  margin-bottom: 10px;
  font-size: var(--font-h3);
}

/* SERVICES */
.services {
  max-width: 1100px;
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
}

.services h2 {
  font-size: var(--font-h2);
  margin-bottom: var(--gap-md);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-sm);
}

.service-card {
  padding: var(--gap-md);
  text-align: center;
  font-weight: 500;
  font-size: var(--font-body);
  background: linear-gradient(
    135deg,
    rgba(165,140,93,0.08),
    rgba(130,101,46,0.04)
  );
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTACT / GET IN TOUCH */
.contact {
  max-width: 800px;
  margin: var(--section-margin) auto;
  padding: var(--section-padding);
  text-align: center;
}

.contact h2 {
  font-size: var(--font-h2);
  margin-bottom: clamp(8px, 2vw, 12px);
}

.contact-desc {
  font-size: var(--font-body);
  opacity: 0.8;
  margin-bottom: var(--gap-lg);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  justify-content: center;
  margin-bottom: var(--gap-lg);
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: var(--font-body);
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 52px;
}

.contact-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.contact-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
}

.contact-btn.whatsapp svg {
  color: #25D366;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}

.social-label {
  font-size: var(--font-small);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.social-icons {
  display: flex;
  gap: var(--gap-sm);
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  color: #a58c5d;
}

/* FOOTER */
footer {
  max-width: 1100px;
  margin: var(--section-margin) auto clamp(24px, 4vw, 40px);
  padding: var(--gap-md);
  text-align: center;
  font-size: var(--font-small);
  opacity: 0.7;
}

footer p {
  margin: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile (small phones) */
@media (max-width: 380px) {
  :root {
    --page-padding: 12px;
  }
  .logo-header {
    padding-top: 24px;
    padding-bottom: 4px;
  }
  .main-logo {
    width: 120px;
  }
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .about, .services, .contact {
    padding-left: 20px;
    padding-right: 20px;
  }
  .contact-btn {
    padding: 12px 16px;
  }
  .social-icon {
    width: 44px;
    height: 44px;
  }
}

/* Mobile & Tablet: reduce top margin for first section */
@media (max-width: 767px) {
  .logo-header {
    padding-top: 28px;
    padding-bottom: 6px;
  }
  .hero {
    margin-top: clamp(8px, 2vw, 16px);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  /* Contact section responsive */
  .contact-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-btn {
    justify-content: center;
  }
  .contact-btn span {
    font-size: clamp(14px, 3.5vw, 16px);
  }
}

/* Tablet portrait and up: ensure comfortable reading width */
@media (min-width: 768px) and (max-width: 1023px) {
  body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: center content, max 1100px */
@media (min-width: 1024px) {
  body {
    padding-left: max(var(--page-padding), calc((100vw - 1100px) / 2));
    padding-right: max(var(--page-padding), calc((100vw - 1100px) / 2));
  }
}

/* Safe area for notched devices (iPhone X+, etc.) */
@supports (padding: max(0px)) {
  body {
    padding-left: max(var(--page-padding), env(safe-area-inset-left));
    padding-right: max(var(--page-padding), env(safe-area-inset-right));
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
