/* Font Import */
@import url("https://use.typekit.net/xhk7npq.css");

/* CSS Reset and Box Sizing */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS Variables/Custom Properties */
:root {
  /* Colors */
  --color-black: #231F20;      /* Neutral Black */
  --color-white: #FFFFFF;      /* White */
  --color-neutral-gray: #3A3637; /* Secondary - Neutral Gray */
  --color-mid-gray: #828282;   /* Secondary - Mid Gray */
  --color-light-gray: #CCCCCC; /* Secondary - Light Gray */
  --color-off-white: #EFEFEF;  /* Secondary - Off White */
  --color-soft-teal: #6ec9e8;  /* Accent - Soft Teal */
  --color-deep-teal: #3adeee;  /* Accent - Deep Teal */  
  /* Functional Colors */
  --color-primary: var(--color-black);
  --color-secondary: var(--color-white);
  --color-text: var(--color-neutral-gray);
  --color-text-light: var(--color-mid-gray);
  --color-background: var(--color-white);
  --color-background-alt: var(--color-off-white);
  --color-accent: var(--color-soft-teal);
  
  /* Typography */
  --font-heading: "erbaum", serif;
  --font-body: "rubik", sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  
  /* Spacing */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2rem;     /* 32px */
  --spacing-xl: 3rem;     /* 48px */
  --spacing-2xl: 4rem;    /* 64px */
  --spacing-3xl: 6rem;    /* 96px */
  --spacing-4xl: 8rem;    /* 96px */
  --spacing-5xl: 10rem;    /* 96px */
  
  /* Layout */
  --container-padding: 2rem;
  --container-width: 1400px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Z-index layers */
  --z-negative: -1;
  --z-elevated: 1;
  --z-header: 1000;
  --z-overlay: 1500;
  --z-modal: 2000;
  --z-popover: 3000;
  --z-tooltip: 4000;
}

/* Dark Mode Colors */
body.dark-mode {
  /* Invert colors for dark mode */
  --color-primary: var(--color-white);
  --color-secondary: var(--color-black);
  --color-text: var(--color-light-gray);
  --color-text-light: var(--color-off-white);
  --color-background: #121212; /* Dark background */
  --color-background-alt: #1e1e1e; /* Slightly lighter dark background */
  --color-accent: var(--color-deep-teal);
  
  /* Additional dark mode specific colors */
  --color-dark-surface: #1f1f1f;
  --color-dark-border: #333333;
  --color-dark-hover: #2c2c2c;
}

/* Base Styles */
html {
  overflow-x: hidden;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  transition: color var(--transition-base);
}

h1 {
  font-size: var(--text-5xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-4xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--spacing-md);
  transition: color var(--transition-base);
}


/* Sections */
section {
  padding: var(--spacing-3xl) 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-header);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
  transition: all var(--transition-base);
}

.dark-mode-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle i {
  font-size: var(--text-xl);
}

.dark-mode-toggle .fa-sun {
  display: none;
}

.dark-mode-toggle .fa-moon {
  display: block;
}

body.dark-mode .dark-mode-toggle .fa-sun {
  display: block;
}

body.dark-mode .dark-mode-toggle .fa-moon {
  display: none;
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.75rem;
    --text-2xl: 1.5rem;
    --text-xl: 1.25rem;
    --container-padding: 1rem;
  }
  
  .dark-mode-toggle {
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 45px;
    height: 45px;
  }
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }


