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

:root {
  /* HSL Color Palette */
  --primary: hsl(240, 100%, 65%);
  --primary-light: hsl(240, 100%, 80%);
  --secondary: hsl(320, 100%, 60%);
  --accent: hsl(45, 100%, 55%);
  --background: hsl(220, 20%, 97%);
  --surface: hsl(0, 0%, 100%);
  --text-main: hsl(220, 30%, 15%);
  --text-muted: hsl(220, 15%, 40%);
  --success: hsl(150, 100%, 40%);
  --danger: hsl(350, 100%, 60%);

  --glass-bg: hsla(0, 0%, 100%, 0.7);
  --glass-border: hsla(0, 0%, 100%, 0.4);
  --glass-shadow: 0 8px 32px 0 hsla(230, 20%, 30%, 0.1);
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.2;
}

/* Glassmorphism Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.navbar .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

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

/* Premium Hero Section */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, hsla(240, 100%, 95%, 1), hsla(320, 100%, 95%, 1));
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: 0 10px 40px hsla(240, 50%, 50%, 0.05);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
}

/* Sections */
.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  bottom: -10px;
  left: 0;
  background: var(--accent);
  border-radius: 2px;
}

.content-section {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px hsla(0, 0%, 0%, 0.03);
  margin-bottom: 3rem;
}

/* CSS Grid for Methods */
.grid-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.method-card {
  background: var(--background);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid hsla(220, 20%, 90%, 1);
  transition: var(--transition);
  cursor: default;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px hsla(240, 50%, 50%, 0.1);
  border-color: var(--primary-light);
}

.method-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* Styled Tables */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 15px hsla(0,0%,0%,0.05);
}

.styled-table thead tr {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: left;
}

.styled-table th, .styled-table td {
  padding: 1rem 1.5rem;
}

.styled-table tbody tr {
  border-bottom: 1px solid hsla(220, 20%, 90%, 1);
  background: var(--surface);
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: hsla(220, 20%, 98%, 1);
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 15px hsla(240, 100%, 65%, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(240, 100%, 65%, 0.4);
}

/* Animations */
@keyframes pulse-anim {
  0% { transform: scale(1); box-shadow: 0 0 0 0 hsla(150, 100%, 40%, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 10px hsla(150, 100%, 40%, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 hsla(150, 100%, 40%, 0); }
}

.pulse {
  animation: pulse-anim 0.5s ease-in-out;
  border-color: var(--success) !important;
  background-color: hsla(150, 100%, 95%, 1) !important;
}

@keyframes shake-anim {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  50% { transform: translateX(5px) rotate(1deg); }
  75% { transform: translateX(-5px) rotate(-1deg); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake-anim 0.4s ease-in-out;
  border-color: var(--danger) !important;
  background-color: hsla(350, 100%, 95%, 1) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav hide for now */
  }
  .hero h1 {
    font-size: 2rem;
  }
  .styled-table {
    display: block;
    overflow-x: auto;
  }
}
