/* ========================================
   3db.dk - Styles
   Creative, Playful, Modern, Minimal
   ======================================== */

/* CSS Custom Properties */
:root {
  /* Colors - Light Mode */
  --color-bg: #FAFAFA;
  --color-text: #1A1A1A;
  --color-accent: #FF6B4A;
  --color-accent-hover: #FF5233;
  --color-muted: #6B7280;
  --color-border: #E5E7EB;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --container-padding: 1.5rem;
  --section-spacing: 6rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0F0F0F;
    --color-text: #F5F5F5;
    --color-accent: #FF8066;
    --color-accent-hover: #FF6B4A;
    --color-muted: #9CA3AF;
    --color-border: #2D2D2D;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}

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

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-accent-hover);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Logo */
.logo {
  font-size: clamp(4rem, 20vw, 12rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  animation: float 4s ease-in-out infinite;
  cursor: default;
  user-select: none;
}

.logo-3 {
  color: var(--color-accent);
}

.logo-db {
  color: var(--color-text);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Tagline */
.tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--color-muted);
  max-width: 400px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  color: var(--color-muted);
  transition: color var(--transition-fast), transform var(--transition-fast);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: var(--color-accent);
  transform: translateY(4px);
}

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

/* ========================================
   About Section
   ======================================== */
.about {
  padding: var(--section-spacing) 0;
  border-top: 1px solid var(--color-border);
}

.about-content {
  max-width: 600px;
}

.about-content p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--color-muted);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: var(--section-spacing) 0;
  border-top: 1px solid var(--color-border);
}

.contact-content {
  max-width: 600px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.contact-link svg {
  flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 768px) {
  :root {
    --container-padding: 3rem;
    --section-spacing: 8rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: 4rem;
    --section-spacing: 10rem;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
