/* 
  ========================================
  Digitalbits 64 - Premium Stylesheet
  Focus: Dark, Minimalistic, Futuristic
  ========================================
*/

:root {
  /* Color Palette - Deep, Expensive Dark Mode */
  --bg-color: #050505;
  --bg-elevated: rgba(20, 20, 25, 0.4);
  --text-main: #f0f0f5;
  --text-muted: #8e8e9e;

  /* Accent: Striking Neon Blue/Cyan */
  --accent-color: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.3);
  --accent-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);

  /* Glassmorphism settings */
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-family: 'Outfit', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --spacing-base: 1rem;
  --spacing-section: 6rem;
  --border-radius-lg: 24px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Futuristic Background Effects */
.bg-glow {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  animation: floatOrb 20s ease-in-out infinite alternate;
  pointer-events: none;
}

.bg-glow-secondary {
  top: auto;
  bottom: -20%;
  left: auto;
  right: -10%;
  background: radial-gradient(circle, rgba(58, 123, 213, 0.15) 0%, transparent 60%);
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(10%, 5%) scale(1.2);
  }
}

/* Utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.highlight {
  color: var(--accent-color);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--bg-elevated);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--container-max);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  border-radius: 50px;
  /* Pill shape for navbar */
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 35px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--accent-color);
  color: var(--text-main);
  background: transparent;
  padding: 0.6rem 1.5rem;
  /* slightly smaller for nav */
}

.btn-outline:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 15px var(--accent-glow);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  font-family: inherit;
  margin-top: 1rem;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 5rem;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.glow-badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.hero-cta {
  margin-top: 2rem;
}

/* Section Shared */
section {
  padding: var(--spacing-section) 0;
}

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

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Services Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(250px, auto);
  gap: 1.5rem;
}

.bento-card {
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8),
    inset 0 0 20px rgba(0, 210, 255, 0.05);
}

.card-tall {
  grid-row: span 2;
}

.card-wide {
  grid-column: span 2;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-metric {
  margin-top: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.5rem;
}

.layout-flex {
  display: flex;
  gap: 2rem;
  height: 100%;
}

.layout-flex>div:first-child {
  flex: 1;
}

.tech-stack-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pulse-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.2);
  border: 1px solid var(--accent-color);
  position: relative;
}

.pulse-node::after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 1px dashed var(--accent-color);
  animation: rotateNode 10s linear infinite;
  opacity: 0.5;
}

@keyframes rotateNode {
  100% {
    transform: rotate(360deg);
  }
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.philosophy-text h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.philosophy-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.link-arrow {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.link-arrow:hover {
  transform: translateX(10px);
  text-shadow: 0 0 10px var(--accent-glow);
}

.philosophy-visual {
  height: 500px;
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.abstract-shape {
  width: 200px;
  height: 200px;
  background: var(--accent-gradient);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morphShape 8s ease-in-out infinite alternate;
  filter: blur(2px);
  opacity: 0.8;
}

@keyframes morphShape {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: scale(1) rotate(0deg);
  }

  100% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    transform: scale(1.1) rotate(45deg);
  }
}

/* Contact */
.contact-container {
  max-width: 600px;
  padding: 4rem;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-container p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

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

.input-glass {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
  outline: none;
}

.input-glass::placeholder {
  color: rgba(142, 142, 158, 0.5);
}

.input-glass:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.1);
}

textarea.input-glass {
  resize: vertical;
  min-height: 120px;
}

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

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

.crypto-text {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 1px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 2rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Base Reveal Animation Classes (JS triggers these) */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .card-tall {
    grid-row: span 1;
  }

  .card-wide {
    grid-column: span 1;
  }

  .layout-flex {
    flex-direction: column;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .philosophy-visual {
    height: 300px;
    order: -1;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    /* simple hidden for mobile, can add hamburger later if needed */
  }

  .navbar {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .contact-container {
    padding: 2rem 1.5rem;
  }
}