@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

:root {
  /* Fireship Dark Mode (Default) */
  --bg: #0f0d0e;
  --bg-dark: #000000;
  --surface: #231f20;
  --surface-hover: #2a2526;
  --border: #231f20;
  --text: #f9f4da;
  --text-muted: #a09a82;
  --text-bright: #ffffff;
  --primary: #fcba28;
  /* Fireship Yellow */
  --primary-hover: #ffcc5c;
  --accent: #fc7428;
  /* Fireship Orange */
  --success: #00ff7f;
  --error: #ed203d;
  --shadow: #000000;
  --header-bg: rgba(15, 13, 14, 0.95);

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

[data-theme="light"] {
  --bg: #f7f7f7;
  --bg-dark: #eeeeee;
  --surface: #ffffff;
  --surface-hover: #fcfcfc;
  --border: #231f20;
  --text: #231f20;
  --text-muted: #57606a;
  --text-bright: #000000;
  --primary: #7b5ea7;
  /* Fireship Light Mode Purple */
  --primary-hover: #8e74b9;
  --accent: #ed203d;
  --shadow: #231f20;
  --header-bg: rgba(247, 247, 247, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  color: var(--text-bright);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4.5rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Logo Accent as seen on esnode.co */
.logo-accent {
  background-color: #fca311 !important;
  /* Gold/Orange accent */
  color: #fca311 !important;
}

.header-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 1rem !important;
}

/* Header */
header {
  height: 80px;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--border);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text-bright);
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--primary);
  transform: scale(1.02);
}

.logo:hover .logo-accent {
  background-color: var(--primary) !important;
  color: var(--primary) !important;
  box-shadow: 0 0 10px var(--primary);
}

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

.nav-links a {
  position: relative;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}


/* Theme Toggle */
#theme-toggle {
  background: var(--surface);
  border: 3px solid var(--border);
  color: var(--text-bright);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px var(--shadow);
  transition: transform 0.1s;
}

#theme-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--shadow);
}

.github-link {
  color: var(--text-muted);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 3px 3px 0px var(--shadow);
  background: var(--surface);
}

.github-link:hover {
  color: var(--primary);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--shadow);
}

.github-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--shadow);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 9999px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.1s;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0px var(--shadow);
}

.btn-primary {
  background-color: var(--primary);
  color: #000000;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--shadow);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--shadow);
}

.btn-outline {
  background-color: var(--surface);
  color: var(--text-bright);
}

/* Cards */
.card {
  background: var(--surface);
  border: 4px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.2s ease;
  box-shadow: 8px 8px 0px var(--shadow);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0px var(--shadow);
}

/* Custom Card Border Colors (Fireship Style) */
/* Custom Card Border Colors (Fireship Style) */
.grid .card:nth-child(1) {
  border-color: #00ff7f;
  /* Spring Green */
}

.grid .card:nth-child(2) {
  border-color: #00d4ff;
  /* Deep Sky Blue */
}

.grid .card:nth-child(3) {
  border-color: #ff00ff;
  /* Magenta */
}

.grid .card:nth-child(4) {
  border-color: #ffaa00;
  /* Amber/Orange */
}

.grid .card:nth-child(5) {
  border-color: #ff4444;
  /* Bright Red */
}

.grid .card:nth-child(6) {
  border-color: #FFE600;
  /* Vivid Yellow */
}

/* Card Window for Icons */
.card-window {
  background: #000;
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border: 2px solid var(--border);
}

.card-window .card-icon {
  font-size: 5rem !important;
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

/* Sections */
.hero {
  padding: 8rem 0;
  text-align: center;
}

.hero p {
  font-size: 1.5rem;
  max-width: 800px;
  margin: 2rem auto;
  font-weight: 600;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  padding: 3rem;
  border-radius: 20px;
  border: 4px solid var(--border);
  box-shadow: 10px 10px 0px var(--shadow);
}

/* Code block simulation */
pre {
  background: var(--bg-dark);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  overflow-x: auto;
  white-space: pre;
  /* Force horizontal scroll */
  margin: 1.5rem 0;
  box-shadow: inset 0 2px 4px 0 var(--shadow);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-dark);
  border: 3px solid var(--border);
  border-radius: 8px;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
footer {
  padding: 5rem 0;
  text-align: center;
  border-top: 3px solid var(--border);
  margin-top: 8rem;
  background: var(--bg-dark);
}

/* Animations */
@keyframes popIn {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.fade-in {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Successful Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.popup-content {
  background: var(--surface);
  border: 4px solid var(--primary);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  box-shadow: 10px 10px 0px var(--shadow);
  max-width: 400px;
  width: 90%;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* Delivery Timeline */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 800px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 31px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border);
  z-index: 1;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-badge {
  background: var(--surface);
  color: var(--primary);
  border: 3px solid var(--border);
  width: 66px;
  height: 66px;
  min-width: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  box-shadow: 4px 4px 0px var(--shadow);
}

.timeline-content {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: 5px 5px 0px var(--shadow);
  flex-grow: 1;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text-bright);
}

/* Service Detail Lists */
.bullet-list {
  list-style: none;
  margin-top: 1rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.bullet-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* Accent Badges */
.badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.badge {
  background: var(--bg-dark);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Custom Grid columns for services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}