/* ============================
   DESIGN TOKENS & VARIABLES
   ============================ */
:root {
  /* Colors - Minimalist Neutral (Preset B) */
  --bg-dark: #000000;
  --bg-darker: #050505;
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  
  --accent-primary: #ffffff; /* Pure White */
  --accent-secondary: #a3a3a3; /* Neutral Gray */
  --accent-glow: rgba(255, 255, 255, 0.15);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(16px);

  /* Typography */
  --font-family: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================
   RESET & BASE STYLES
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography Classes */
.serif-heading {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Background Blobs for Atmosphere - Neutralized */
.blob-bg {
  position: absolute;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.1;
  border-radius: 50%;
  animation: float 20s infinite alternate linear;
}

.blob-1 {
  top: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, #ffffff 0%, transparent 70%);
}

.blob-2 {
  bottom: 10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #888888 0%, transparent 70%);
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Layout Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* Utilities */
.text-gradient {
  background: linear-gradient(135deg, #ffffff, #888888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(3rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ============================
   COMPONENTS
   ============================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
  border: none;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  background: #e5e5e5;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.9rem; }
.btn-block { width: 100%; display: block; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem;}

/* Navbar */
.navbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1200px;
  z-index: 100;
  border-radius: 100px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-logo-main {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav-links a:not(.btn) {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--accent-secondary);
}

/* Navbar Responsive */
@media (max-width: 900px) {
  .nav-content {
    padding: 0.75rem 1.5rem;
  }
  
  .nav-logo-main {
    height: 38px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none; /* HARD FIX: Remove from DOM when not active */
    position: fixed;
    top: 5rem;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 99;
  }

  .nav-links.active {
    display: flex; /* Show only when toggled */
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Animations */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-fade.animate-play {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpFade {
  to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

/* Hero Wrapper Dribbble Inspired */
.hero-wrapper {
  position: relative;
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-glow-blob {
  position: absolute;
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  animation: pulse-glow-bg 6s infinite alternate;
}

@keyframes pulse-glow-bg {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8;}
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1;}
}

.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.hero-text-content {
  text-align: left;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-main);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
}
.badge i { width: 16px; height: 16px; color: var(--accent-main); }

.animated-badge {
  animation: float-badge 3s ease-in-out infinite alternate;
}

@keyframes float-badge {
  0% { transform: translateY(0); box-shadow: 0 4px 15px rgba(255,255,255,0.02); }
  100% { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255,255,255,0.05); }
}

.hero-subtitle {
  margin-bottom: 2.5rem;
  font-size: 1.25rem;
  max-width: 800px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* 3D Mockup Container */
.hero-3d-container {
  perspective: 1200px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-mockup-card {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2.5rem;
  transform: rotateX(15deg) rotateY(-5deg) translateY(0);
  transform-style: preserve-3d;
  animation: float3d 8s ease-in-out infinite alternate;
  box-shadow: 0 50px 100px -20px rgba(255,255,255,0.05);
  position: relative;
}

@keyframes float3d {
  0% { transform: rotateX(12deg) rotateY(-3deg) translateY(0); }
  100% { transform: rotateX(16deg) rotateY(3deg) translateY(-20px); box-shadow: 0 60px 120px -20px rgba(255,255,255,0.08); }
}

.mockup-ui {
  transform: translateZ(30px);
}

.mockup-header-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.mockup-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
}

.mockup-graph {
  padding: 1.5rem;
  grid-column: 1 / -1;
  border-radius: 16px;
  background: rgba(0,0,0,0.4);
}
.mockup-graph span { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;}
.trend-line { height: 4px; background: linear-gradient(90deg, #333, #fff); margin: 1rem 0; border-radius: 4px;}
.mockup-graph h3 { font-size: 2.5rem; margin: 0; }

.mockup-stat-box {
  padding: 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(0,0,0,0.4);
}
.mockup-stat-box p { margin: 0; font-size: 0.85rem; color: var(--text-muted);}
.mockup-stat-box h4 { margin: 0; font-size: 1.15rem;}

/* Floating abstract widgets */
.floating-widget {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.widget-1 {
  top: -20px;
  right: -30px;
  transform: translateZ(60px);
  animation: float-widget-1 5s ease-in-out infinite alternate;
}
@keyframes float-widget-1 {
  0% { transform: translateZ(60px) translateY(0); }
  100% { transform: translateZ(60px) translateY(-15px); }
}

.widget-2 {
  bottom: 40px;
  left: -40px;
  transform: translateZ(80px);
  animation: float-widget-2 4s ease-in-out infinite alternate-reverse;
}
@keyframes float-widget-2 {
  0% { transform: translateZ(80px) translateY(0); }
  100% { transform: translateZ(80px) translateY(-10px); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 3rem; padding-top: 9rem; padding-bottom: 2rem;}
  .hero-text-content { text-align: center; }
  .hero-actions { 
    flex-direction: column;
    gap: 1rem;
    align-items: center; 
  }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  
  .hero-mockup-card { 
    transform: none !important; 
    animation: none; 
    padding: 1.25rem;
    width: 100%;
    margin-top: 2rem;
  }
  
  .badge {
     margin-bottom: 1.5rem;
     padding: 0.35rem 0.75rem;
     font-size: 0.75rem;
     transform: scale(0.9);
  }

  .floating-widget { 
    display: none; 
  }
  
  .mockup-content { 
    grid-template-columns: 1fr; 
    gap: 0.75rem;
  }
  
  .nav-logo-main {
    height: 32px; /* Smaller logo in mobile header */
  }
  
  .nav-content {
    padding: 0.5rem 1rem; /* Slimmer navbar pill */
  }
}

/* Logo Grid Section */
.logo-grid-section {
  padding: 4.5rem 1rem;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.logo-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: 0.6;
  margin-top: 2rem;
}

.logo-grid i { 
  width: 44px; 
  height: 44px; 
  color: #fff;
  transition: var(--transition);
}

.logo-grid i:hover {
  transform: scale(1.1);
  color: #fff;
}


/* Services Section */
.services {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}

.service-icon-wrapper {
  display: inline-flex;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

.service-icon { color: var(--accent-primary); width: 32px; height: 32px; }

.service-benefit {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #333;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.service-benefit span {
  color: var(--accent-secondary);
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 4rem 0 8rem;
}

.flex-row {
  display: flex;
  gap: 4rem;
  padding: 4rem;
}

.contact-info { flex: 1; }
.contact-form-container { flex: 1; }

.box-glow {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 1rem 1rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.highlight-icon { color: var(--accent-primary); width: 40px; height: 40px; flex-shrink: 0; }

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

.form-row {
  display: flex;
  gap: 1rem;
}
.form-row > * { flex: 1; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  color: white;
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

/* Responsive */
@media (max-width: 900px) {
  .flex-row { padding: 2rem; flex-direction: column; gap: 2rem; }
  .form-row { flex-direction: column; }
}
