/* ==========================================
   MAIN LANDING PAGE STYLES
   VienDraft.optikl.ink
   UPDATED: Softer colors, better spacing
   ========================================== */

/* ==========================================
   CSS Variables
   ========================================== */
:root {
  /* Softer Primary Colors - Blue/Teal/Mint */
  --primary-blue: #4facfe;
  --primary-teal: #00f2fe;
  --primary-mint: #43e97b;
  --primary-purple-soft: #667eea;
  
  /* Box Themes - Softer versions */
  --love-light: #fff0f3;
  --love-dark: #ffe4e9;
  --love-accent: #ff6b9d;
  
  --portfolio-light: #e8f4ff;
  --portfolio-dark: #d1e7ff;
  --portfolio-accent: #4facfe;
  
  --coffee-light: #fff9e6;
  --coffee-dark: #ffeed6;
  --coffee-accent: #ff9a56;
  
  /* Neutrals */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --white: #ffffff;
  --black: #000000;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #4facfe 50%, #43e97b 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   Floating Particles Background
   ========================================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: floatParticle 20s infinite;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translateY(-100vh) translateX(var(--drift, 50px));
  }
}

/* ==========================================
   Navigation (Logo Only)
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s var(--transition-smooth);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav.scrolled .nav-logo {
  color: var(--primary-blue);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.3s ease;
}

/* ==========================================
   Hero Section - REDUCED HEIGHT
   ========================================== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1s var(--transition-smooth);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.8rem;
}

.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  cursor: pointer;
  animation: bounce 2s infinite;
  transition: transform 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateY(5px);
}

.scroll-indicator span {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================
   Boxes Section - BETTER SPACING
   ========================================== */
.boxes {
  min-height: auto;
  padding: 2rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.boxes-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* ==========================================
   Box Cards
   ========================================== */
.box {
  background: var(--white);
  border-radius: 30px;
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 400px;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.box:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* Box Badge */
.box-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 1;
}

/* Box Icon */
.box-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
  animation: pulse 3s ease-in-out infinite;
  transition: transform 0.4s ease;
}

.box:hover .box-icon {
  transform: scale(1.1);
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Box Title */
.box-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  z-index: 1;
  position: relative;
}

/* Box Description */
.box-description {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  z-index: 1;
  position: relative;
}

/* Box Subtitle */
.box-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.6;
  z-index: 1;
  position: relative;
}

/* ==========================================
   Box Theme: For Love (Pink)
   ========================================== */
.box-love {
  background: linear-gradient(135deg, var(--love-light) 0%, var(--love-dark) 100%);
}

.box-love::before {
  background: linear-gradient(135deg, #ffe8f0 0%, #ffd6e0 100%);
}

.box-love:hover::before {
  opacity: 1;
}

.box-love .box-badge {
  background: rgba(255, 107, 157, 0.2);
  color: var(--love-accent);
  border: 1px solid var(--love-accent);
}

.box-love .box-title {
  color: var(--love-accent);
}

/* ==========================================
   Box Theme: Portfolio (Blue)
   ========================================== */
.box-portfolio {
  background: linear-gradient(135deg, var(--portfolio-light) 0%, var(--portfolio-dark) 100%);
}

.box-portfolio::before {
  background: linear-gradient(135deg, #d4ebff 0%, #c2deff 100%);
}

.box-portfolio:hover::before {
  opacity: 1;
}

.box-portfolio .box-badge {
  background: rgba(79, 172, 254, 0.2);
  color: var(--portfolio-accent);
  border: 1px solid var(--portfolio-accent);
}

.box-portfolio .box-title {
  color: var(--portfolio-accent);
}

/* ==========================================
   Box Theme: Coffee (Orange)
   ========================================== */
.box-coffee {
  background: linear-gradient(135deg, var(--coffee-light) 0%, var(--coffee-dark) 100%);
}

.box-coffee::before {
  background: linear-gradient(135deg, #fff2db 0%, #ffe8c7 100%);
}

.box-coffee:hover::before {
  opacity: 1;
}

.box-coffee .box-badge {
  background: rgba(255, 154, 86, 0.2);
  color: var(--coffee-accent);
  border: 1px solid var(--coffee-accent);
}

.box-coffee .box-title {
  color: var(--coffee-accent);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: rgba(45, 55, 72, 0.95);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-location {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
  .boxes-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .box {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .hero {
    min-height: 50vh;
    padding: 6rem 1.5rem 3rem;
  }
  
  .boxes {
    padding: 2rem 1.5rem 3rem;
  }
  
  .boxes-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .box {
    min-height: 360px;
    padding: 2rem 1.5rem;
  }
  
  .box-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
  }
  
  .box-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.3rem;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
  }
  
  .box {
    min-height: 340px;
    padding: 2rem 1.5rem;
  }
  
  .box-icon {
    font-size: 3rem;
  }
  
  .box-title {
    font-size: 1.5rem;
  }
  
  .box-description {
    font-size: 0.95rem;
  }
  
  .box-subtitle {
    font-size: 0.85rem;
  }
}
