@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222.2 84% 4.9%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(222.2 84% 4.9%);
  --primary: #26b4e4;
  --primary-foreground: hsl(210 40% 98%);
  --secondary: hsl(210 40% 96.1%);
  --secondary-foreground: hsl(222.2 47.4% 11.2%);
  --muted: hsl(210 40% 96.1%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);
  --accent: hsl(210 40% 96.1%);
  --accent-foreground: hsl(222.2 47.4% 11.2%);
  --destructive: hsl(0 84.2% 60.2%);
  --destructive-foreground: hsl(210 40% 98%);
  --border: hsl(214.3 31.8% 91.4%);
  --input: hsl(214.3 31.8% 91.4%);
  --ring: #26b4e4;
  --radius: 0.5rem;
}

.dark {
  --background: hsl(222.2 84% 4.9%);
  --foreground: hsl(210 40% 98%);
  --card: hsl(222.2 84% 4.9%);
  --card-foreground: hsl(210 40% 98%);
  --popover: hsl(222.2 84% 4.9%);
  --popover-foreground: hsl(210 40% 98%);
  --primary: #26b4e4;
  --primary-foreground: hsl(222.2 47.4% 11.2%);
  --secondary: hsl(217.2 32.6% 17.5%);
  --secondary-foreground: hsl(210 40% 98%);
  --muted: hsl(217.2 32.6% 17.5%);
  --muted-foreground: hsl(215 20.2% 65.1%);
  --accent: hsl(217.2 32.6% 17.5%);
  --accent-foreground: hsl(210 40% 98%);
  --destructive: hsl(0 62.8% 30.6%);
  --destructive-foreground: hsl(210 40% 98%);
  --border: hsl(217.2 32.6% 17.5%);
  --input: hsl(217.2 32.6% 17.5%);
  --ring: #26b4e4;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Navigation styles */
nav {
  display: flex;
  width: 100%;
  height: 4.4rem;
  position: fixed;
  top: 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--background);
  backdrop-filter: blur(8px);
  z-index: 50;
  padding: 0 1.1rem;
  align-items: center;
}

.logo-div {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.logo-div a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}

.logo-div span {
  color: var(--primary);
}

.options-div {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.options-div ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.options-div a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.55rem 0.825rem;
  border-radius: var(--radius);
}

.options-div a:hover {
  color: var(--foreground);
  background: var(--accent);
}

/* Button styles */
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  height: 2.75rem;
  width: 2.75rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hide menu button by default (for desktop) */
.menu {
  display: none;
  margin-right: 1rem;
}

.__toggle-theme {
  margin-left: auto;
  margin-right: 1rem;
}

.icon-button:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.icon-button:focus-visible {
  outline: none;

}

/* Mobile sidebar styles */
.container-sidebar {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
}

.container-sidebar .overlay {
  position: fixed;
  inset: 0;
  background-color: hsl(222.2 84% 4.9% / 0.8);
  backdrop-filter: blur(4px);
}

.mobile-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background: var(--background);
  border-right: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.mobile-sidebar ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-sidebar a {
  display: flex;
  padding: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.mobile-sidebar a:hover {
  color: var(--foreground);
  background: var(--accent);
}

.show-container-sidebar {
  display: block;
}

@media (max-width: 768px) {
  .menu {
    display: inline-flex;  /* Show menu button in mobile */
  }
  
  .options-div ul {
    display: none;  /* Hide navigation links in mobile */
  }
  
  .logo-div {
    flex: 1;  /* Allow logo to take remaining space */
  }
}

@media (max-width: 1229px) {
  nav {
    height: 4.4rem;
    justify-content: space-between;
  }

  .options-div {
    width: auto;
  }

  .options-div ul {
    display: none;
  }

  .menu {
    display: flex;
  }

  .logo-div {
    width: auto;
  }

  footer {
    margin: 0 1rem 3rem 1rem;
  }
}

@media (max-width: 600px) {
  .container-sidebar .mobile-sidebar {
    width: 80%;
  }
}

main {
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 6.0755rem);
  display: flex;
  padding: 0 1rem;
  font-size: 1.475rem;
}

main h1 span {
  color: var(--primary);
}

a span {
  color: var(--primary);
}

footer {
  padding-top: 1.5rem;
  margin: 0 4rem 3rem 4rem;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  padding: 0.75rem 0;
  text-align: right;
}

/* Theme toggle styles */
.__toggle-theme {
  margin-left: auto;
}

.__toggle-theme svg {
  width: 1.25rem;
  height: 1.25rem;
}

.__toggle-theme.dark .to-light-theme-icon {
  display: none;
}

.__toggle-theme .to-light-theme-icon {
  display: block;
}

.__toggle-theme.dark .to-dark-theme-icon {
  display: block;
}

.__toggle-theme .to-dark-theme-icon {
  display: none;
}

/* Hero section styles */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1560px;
  margin: 7rem auto 0;
  padding: 2rem;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-content span {
  color: var(--primary);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.primary-button:hover {
  opacity: 0.9;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.secondary-button:hover {
  background-color: var(--accent);
}

.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cards-stack {
  position: relative;
  width: 300px;
  height: 400px;
}

.cards-stack .card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.cards-stack .card:nth-child(1) {
  transform: rotate(-15deg) translateX(-10%) scale(0.85);
  opacity: 0.3;
}

.cards-stack .card:nth-child(2) {
  transform: rotate(-10deg) translateX(-5%) scale(0.9);
  opacity: 0.5;
}

.cards-stack .card:nth-child(3) {
  transform: rotate(-5deg) scale(0.95);
  opacity: 0.7;
}

.cards-stack .card:nth-child(4) {
  transform: rotate(0deg) scale(1);
}

@media (max-width: 800px) {
  .hero-section {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    margin-top: 5rem;
    padding: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .subtitle {
    font-size: 1.1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .cta-buttons {
    justify-content: flex-start;
  }

  .cards-stack {
    width: 250px;
    height: 320px;
  }
}

@media (max-width: 600px) {
  .hero-section {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-illustration {
    display: none;
  }
}
