@font-face {
    font-family: "Inter";
    src: url("../fonts/Inter_18pt-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
}

:root {
    --bg-dark: #0b1220;
    --bg-light: #f1f5f9;
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --brand-1: #38bdf8;
    --brand-2: #818cf8;
    --muted-1: #94a3b8;
    --muted-2: #334155;
    --muted-3: #475569;
    --gray-border: #94a3b8;
    --border-dark: #1e293b;
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --bg-dark: color(display-p3 0.05 0.07 0.13);
    --bg-light: color(display-p3 0.95 0.96 0.98);
    --text-dark: color(display-p3 0.06 0.09 0.16);
    --text-light: color(display-p3 1 1 1);
    --brand-1: color(display-p3 0.24 0.73 0.96);
    --brand-2: color(display-p3 0.51 0.55 0.98);
    --muted-1: color(display-p3 0.58 0.64 0.72);
    --muted-2: color(display-p3 0.2 0.26 0.34);
    --muted-3: color(display-p3 0.29 0.35 0.42);
    --gray-border: color(display-p3 0.58 0.64 0.72);
    --border-dark: color(display-p3 0.12 0.16 0.23);
  }
}

html {
  font-size: 16px;
}

body {
    background: var(--bg-dark);
    color: var(--text-light);
    min-width: 300px;
    max-width: 2000px;
    margin: 0 auto;
}

body.light-theme {
    background: var(--bg-light);
    color: var(--text-dark);
}

.body-padding {
    padding: 60px 8%;
}

header {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-title {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.logo svg {
    position: relative;
    top: 2px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: sticky;
    top: 0;
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid #1e293b;
    backdrop-filter: blur(10px);
    z-index: 2000;
}

nav h1 {
    font-size: 1.6rem;
    margin: 0;
    /* line-height: 1; */
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

nav li {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--muted-1);
    font-size: 0.9rem;
}

nav a:hover {
    color: #ffffff;
}

.seo-intro h1 {
    margin: 0 0 8px 0;
    font-size: 1.9rem;
}

.seo-intro p {
    margin: 0;
    color: var(--muted-1);
}

.theme-btn {
    border: 1px solid rgba(56, 189, 248, 0.6);
    background: rgba(15, 23, 42, 0.7);
    color: var(--muted-1);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.12s, border-color 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    box-shadow: 0 8px 16px rgba(56, 189, 248, 0.22);
}

.theme-btn:hover,
.theme-btn:active {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--brand-1);
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 8px rgba(56, 189, 248, 0.16);
}

body.light-theme nav {
    background: rgba(248, 250, 252, 0.92);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

body.light-theme nav a {
    color: var(--muted-2);
}

body.light-theme nav a:hover {
    color: var(--text-dark);
}

body.light-theme .theme-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-color: rgba(100, 116, 139, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    box-shadow: 0 8px 14px rgba(148, 163, 184, 0.2);
}

body.light-theme .theme-btn:hover,
body.light-theme .theme-btn:active {
    background: rgba(226, 232, 240, 1);
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 8px rgba(148, 163, 184, 0.16);
}

.nav-mobile-menu {
  display: none;
  position: relative;
}

.menu-toggle {
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.84);
  border-radius: 10px;
  width: 44px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  color: #e2e8f0;
  -webkit-text-fill-color: #e2e8f0;
  transition: background 0.2s, border-color 0.2s, transform 0.12s, box-shadow 0.2s, color 0.2s;
}

.menu-icon {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
  pointer-events: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.menu-toggle:hover,
.menu-toggle:active {
  border-color: var(--brand-1);
  background: rgba(30, 41, 59, 0.94);
  transform: translateY(-2px);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 10px 18px rgba(56, 189, 248, 0.26), 0 2px 6px rgba(2, 6, 23, 0.35);
}

.menu-toggle:focus-visible {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3), 0 10px 18px rgba(56, 189, 248, 0.2);
}

.nav-mobile-menu.open .menu-toggle {
  border-color: var(--brand-1);
  background: rgba(30, 41, 59, 0.94);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 10px 18px rgba(56, 189, 248, 0.26), 0 2px 6px rgba(2, 6, 23, 0.35);
}

.menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  background: rgba(2, 6, 23, 0.985);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
  z-index: 2200;
}

.nav-mobile-menu:hover .menu-dropdown,
.nav-mobile-menu:focus-within .menu-dropdown,
.nav-mobile-menu.open .menu-dropdown {
  display: block;
}

.menu-dropdown a,
.menu-theme-btn {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  font-size: 0.92rem;
  border: 0;
  background: transparent;
  color: var(--muted-1);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.menu-dropdown a:hover,
.menu-theme-btn:hover,
.menu-dropdown a:active,
.menu-theme-btn:active {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

body.light-theme .menu-toggle {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(100, 116, 139, 0.45);
  background-image: none;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

body.light-theme .menu-toggle:hover,
body.light-theme .menu-toggle:active,
body.light-theme .nav-mobile-menu.open .menu-toggle {
  background: rgba(241, 245, 249, 0.995);
  border-color: #0ea5e9;
  box-shadow: 0 8px 14px rgba(148, 163, 184, 0.28);
  background-image: none;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

body.light-theme .menu-toggle:focus-visible {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22), 0 8px 14px rgba(148, 163, 184, 0.24);
}

body.light-theme .menu-dropdown {
  background: rgba(248, 250, 252, 0.995);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
}

body.light-theme .menu-dropdown a,
body.light-theme .menu-theme-btn {
  color: var(--muted-2);
}

body.light-theme .menu-dropdown a:hover,
body.light-theme .menu-theme-btn:hover,
body.light-theme .menu-dropdown a:active,
body.light-theme .menu-theme-btn:active {
  color: var(--text-dark);
  background: rgba(226, 232, 240, 0.9);
  transform: translateY(-1px);
}

button {
    display: inline-flex;       
    align-items: center;        
    justify-content: center;    
    border: none;
    line-height: 1;
    border-radius: 10px;
    padding: 12px 24px;          
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
button:hover,
button:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(90deg, #38bdf8, #818cf8); 
    color: white;
}



@media (max-width: 768px) {
  nav {
    padding: 16px 6%;
  }

  /* nav h1 {
    font-size: 1.3rem;
  } */

  .nav-right {
    display: none;
  }

  .nav-mobile-menu {
    display: block;
  }

  /* On touch screens, rely on explicit .open state so second tap can close reliably. */
  .nav-mobile-menu:hover .menu-dropdown,
  .nav-mobile-menu:focus-within .menu-dropdown {
    display: none;
  }

  .nav-mobile-menu.open .menu-dropdown {
    display: block;
  }

}

@media (max-width: 500px) {
  .logo {
    display: none;
  }
  nav h1 {
    font-size: 1.5rem;
  }
}
