/* @import url('https://fonts.googleapis.com/css2?family=Alike:wght@300;400;600&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Alice&family=Bebas+Neue&family=Special+Gothic+Expanded+One&display=swap');

/* Theme Variables */
:root {
  /* Light Mode Variables */
  --background-light: #fafafa;
  --surface-light: #f8f9fa;
  --surface-elevated-light: #fdfdfd;
  --foreground-light: #11120D;
  --foreground-weak-light: hsl(0, 45%, 11%);
  --border-light: rgba(0, 0, 0, 0.1);
  --border-strong-light: rgba(0, 0, 0, 0.2);
  
  /* Dark Mode Variables */
  --background-dark: #0a0a0a;
  --surface-dark: #111317;
  --surface-elevated-dark: #1a1d23;
  --foreground-dark: #f2f0ef;
  --foreground-weak-dark: #f2f0ef;
  --border-dark: rgba(255, 255, 255, 0.1);
  --border-strong-dark: rgba(255, 255, 255, 0.2);
  
  /* Default to dark mode */
  --background: var(--background-dark);
  --surface: var(--surface-dark);
  --surface-elevated: var(--surface-elevated-dark);
  --foreground: var(--foreground-dark);
  --foreground-weak: var(--foreground-weak-dark);
  --border: var(--border-dark);
  --border-strong: var(--border-strong-dark);
  
  /*Grid Variable */

  --grid-size: 1em;
  --grid-line: 1px;
  --grid-offset: 0.5px;

  --grid-color-light:var(--border-light);
  --grid-color-dark: #f2f0ef;

  --grid-color: var(--grid-color-dark);

  /* Accent Colors (Same for both modes) */
  --accent-amber: #e4373a;
  --accent-violet: hsla(217 100% 56% / 1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(255, 204, 51, 0.3);
}

body.light-mode {
  --background: var(--background-light);
  --surface: var(--surface-light);
  --surface-elevated: var(--surface-elevated-light);
  --foreground: var(--foreground-light);
  --foreground-weak: var(--foreground-weak-light);
  --border: var(--border-light);
  --border-strong: var(--border-strong-light);
  --grid-color: var(var(--grid-color-light));
}

body.dark-mode {
  --background: var(--background-dark);
  --surface: var(--surface-dark);
  --surface-elevated: var(--surface-elevated-dark);
  --foreground: var(--foreground-dark);
  --foreground-weak: var(--foreground-weak-dark);
  --border: var(--border-dark);
  --border-strong: var(--border-strong-dark);
  --grid-color: var(--grid-color-dark);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Bebas Neue', -apple-system, BlinkMacSystemFont, 'Alike', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  background-image: conic-gradient(from 90deg at var(--grid-line) var(--grid-line),
    var(--grid-color) 100%),
    linear-gradient(
      45deg,
      transparent calc(50% - var(--grid-offset)),
      var(--grid-color) 0 calc(50% + var(--grid-offset)),
      transparent 0
    ),
    /* secondary diagonal */
    linear-gradient(
      -45deg,
      transparent calc(50% - var(--grid-offset)),
      var(--grid-color) 0 calc(50% + var(--grid-offset)),
      transparent 0
    );
    background-size:
    var(--grid-size) var(--grid-size),
    calc(2 * var(--grid-size)) calc(2 * var(--grid-size)),
    calc(2 * var(--grid-size)) calc(2 * var(--grid-size));

  background-position:
    calc(-1 * var(--grid-offset)) calc(-1 * var(--grid-offset)),
    0 0,
    0 0;
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  background: radial-gradient(ellipse at top, rgba(255, 204, 51, 0.05), transparent 50%), var(--background);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.text-balance {
  text-wrap: balance;
}

.flex {
  display: flex;
}

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

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: var(--foreground);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.5rem;
  color: var(--foreground);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.75rem;
  color: var(--foreground);
  margin-bottom: var(--space-sm);
}

p {
  font-family: 'Alike';
  font-weight: 200;
  font-size: 1.125rem;
  color: var(--foreground-weak);
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
   display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  gap: 0.5rem;
}


.btn-primary {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: hsla(194 100% 69% / 1);
  --btn-bg-2: hsla(217 100% 56% / 1);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  padding: 0.9em 1.4em;
  min-width: 120px;
  min-height: 44px;
  font-size: var(--size, 1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(71, 184, 255, 0.5),
    0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

.btn-primary:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: hsla(194 100% 69% / 1);
  --btn-bg-2: hsla(217 100% 56% / 1);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  padding: 0.9em 1.4em;
  min-width: 120px;
  min-height: 44px;
  font-size: var(--size, 1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(71, 184, 255, 0.5),
    0px 5px 5px -1px rgba(58, 125, 233, 0.25),
    inset 4px 4px 8px rgba(175, 230, 255, 0.5),
    inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}



.btn-secondary:hover {
  background-position: right top;
}

.btn-ter {
  --clr-font-main: hsla(0 0% 20% / 100);
  --btn-bg-1: rgb(124, 63, 63);
  --btn-bg-2: rgb(255, 31, 31);
  --btn-bg-color: hsla(360 100% 100% / 1);
  --radii: 0.5em;
  cursor: pointer;
  padding: 0.9em 1.4em;
  min-width: 120px;
  min-height: 44px;
  font-size: var(--size, 1rem);
  font-weight: 500;
  transition: 0.8s;
  background-size: 280% auto;
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  border: none;
  border-radius: var(--radii);
  color: var(--btn-bg-color);
  box-shadow:
    0px 0px 20px rgba(255, 71, 71, 0.5),
    0px 5px 5px -1px rgba(233, 58, 58, 0.25),
    inset 4px 4px 8px rgba(255, 175, 175, 0.5),
    inset -4px -4px 8px rgba(216, 19, 19, 0.35);
}



.btn-ter:hover {
  background-position: right top;
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  padding: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-ghost:hover {
  background-color: var(--surface);
}

/* Cards */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-amber);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #2596be;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}