/* Global Styles */
:root {
  /* Default Dark Theme */
  --bg-color: #0a0a0a;
  --text-color: #f0f0f0;
  --accent-color: #00d4ff;
  --secondary-accent: #007bff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: "Inter", sans-serif;
  --hero-overlay: rgba(0, 0, 0, 0.6);
  /* Overlay for readability on images */
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #1a1a1a;
  --accent-color: #007bff;
  --secondary-accent: #00d4ff;
  --glass-bg: rgba(0, 0, 0, 0.05);
  /* Darker tint for light mode */
  --glass-border: rgba(0, 0, 0, 0.1);
  --hero-overlay: rgba(255, 255, 255, 0.4);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right,
      var(--accent-color),
      var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

p {
  font-size: 1.1rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-color);
  /* Adaptive background */
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-color);
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
}

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

/* Theme Toggle Button */
#theme-toggle {
  background: none;
  border: 1px solid var(--glass-border);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#theme-toggle:hover {
  background: var(--glass-bg);
  color: var(--accent-color);
}

/* Hero Section with Sea Background */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  /* Sea Background Image */
  background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=2073&auto=format&fit=crop') no-repeat center center/cover;
}

/* Add an overlay to make text readable on the sea image */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  /* Dark overlay for dark mode, light for light mode */
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  /* Bring content above overlay */
}

/* Adjust text color in hero explicitly for visibility if needed, 
   but variables should handle it with the overlay */
.hero-content h1 {
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(45deg,
      var(--secondary-accent),
      var(--accent-color));
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
}

/* Grid Layouts */
.container {
  padding: 5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Cards */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

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

/* Footer */
footer {
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
  color: var(--text-color);
  opacity: 0.7;
}

/* Documentation/Guide Specific Styles */
.guide-content {
  max-width: 800px;
  margin: 80px auto 5rem;
  padding: 0 5%;
}

.guide-step {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.guide-step h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.guide-step img {
  width: 100%;
  border-radius: 10px;
  margin-top: 1rem;
  border: 1px solid var(--glass-border);
}

.code-block {
  background: rgba(0, 0, 0, 0.8);
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  color: #00ff9d;
  margin: 1rem 0;
  overflow-x: auto;
  border: 1px solid var(--glass-border);
}

.guide-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}