/* ===== Color Palette ===== */
body {
    --background: rgb(16, 20, 28);
    --foreground: rgb(247, 249, 252);
    --card: rgb(26, 29, 35);
    --primary: rgb(39, 205, 138);
    --muted-foreground: rgb(139, 151, 171);
    --border: rgb(39, 43, 52);
}

/* ===== Global Styles ===== */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
header {
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    top: 0;
    z-index: 10;
    /* width: 100%; */
    border-bottom: 1px solid var(--border);
    background-color: rgba(16, 20, 28, 0.95);
    backdrop-filter: blur(8px);
}

/* Navbar Download button (smaller, sleek) */
#navdown {
    background-color: hsl(152, 68%, 48%);
    color: white;
    border: 1px solid hsl(152, 68%, 48%);
    border-radius: 8px;
    padding: 8px 18px;
    /* more breathing room */
    font-size: 0.9rem;
    /* tiny bit bigger */
    font-weight: 600;
    line-height: 1;
    /* prevents squish from default browser line height */
    cursor: pointer;
    transition: .2s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

#navdown:hover {
    background-color: hsl(152, 68%, 42%);
    border-color: hsl(152, 68%, 42%);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 3px;
}

#logoofapp {
    width: 64px;
    height: auto;
}

.headerkeandar {
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links a.active:hover {
    color: var(--foreground);
    /* margin-right: 0px; */
}

.logo {
    display: flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--foreground);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(39, 205, 138, 0.1);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.nav-links{
    /* margin-right: 25px; */
    gap: 1.8rem;
    display: flex;
    flex-flow: row;
    align-items: center;
}

.nav-links a {
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    /* margin-left: 10px;
    margin-right: 10px; */
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: var(--primary);
    margin-right: 0px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
    text-decoration-line: none;
}

.btn-primary:hover {
    background-color: rgb(35, 184, 124);
}

/* ===== Main ===== */
.main-content {
    padding: 64px 0;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 64px;
}

.hero-icon {
    background-color: rgba(100, 180, 255, 0.1);
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.hero h1 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 16px;
}

.hero p {
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards & Sections */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 48px;
    transition: 0.3s;
}

.hoverable:hover {
    border-color: rgba(39, 205, 138, 0.5);
    box-shadow: 0 0 12px rgba(39, 205, 138, 0.2);
}

.icon-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.iconens {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: rgba(39, 205, 138, 0.1);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2 {
    font-size: 28px;
    font-weight: bold;
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.tag {
    border: 1px solid rgba(39, 205, 138, 0.3);
    background-color: rgba(39, 205, 138, 0.1);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

/* Developer Section */
.text-center {
    text-align: center;
}

.dev-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(39, 205, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    /* font-weight: 600; */
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

p{
    color: rgb(139, 151, 171);
    line-height: 1.6;
}

/* ===== MODAL ===== */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: rgb(28, 32, 40);
  padding: 40px 60px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  transform: scale(0.9);
  opacity: 0;
  transition: .3s;
}

#overlay.active .modal {
  transform: scale(1);
  opacity: 1;
}

.windows-btn {
  background-color: hsl(152, 68%, 48%);
  color: white;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  font-weight: 500;
  transition: .2s;
  text-decoration: none;
}

.windows-btn:hover {
  background-color: hsl(152, 68%, 38%);
  color: #000;
  transform: scale(1.05);
}

.windows-logo {
  width: 22px;
  height: 22px;
  filter: brightness(10);
}

.windows-btn:hover .windows-logo {
  filter: brightness(0);
}

#overlay.hidden {
  display: none;
}

/* Blur background when modal active */
content.blurred {
  filter: blur(8px);
  pointer-events: none;
  /* prevents clicking behind modal */
}

/* Keep modal itself sharp */
#overlay,
#overlay * {
  filter: none !important;
  pointer-events: auto;
}

.os-btn {
  width: 100%;
  background: hsl(152, 68%, 48%);
  border: 1px solid hsl(152, 68%, 48%);
  padding: 12px 18px;
  margin: 10px 0;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: 0.2s ease;
  justify-content: center;
}

.os-btn:hover:not(.disabled) {
  background: #2a8657;
  border-color: #2a8657;
  transform: scale(1.04);
}

.os-btn.active {
  background: hsl(152, 68%, 48%);
  border-color: hsl(152, 68%, 38%);
}

.os-btn.active:hover {
  background: hsl(152, 68%, 38%);
}

.os-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.os-logo {
  width: 22px;
  height: 22px;
  pointer-events: none;
  filter: brightness(1);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 280px;
}

.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgb(39, 44, 53);
  transition: all 0.2s ease;
}

.btn-primary {
  background: rgb(39, 206, 128);
  color: rgb(255, 255, 255);
  border-color: rgb(39, 206, 128);
}

.btn-primary:hover {
  background: rgba(39, 206, 128, 0.9);
}

.btn-disabled {
  background: rgb(26, 29, 35);
  color: rgb(152, 164, 179);
  cursor: not-allowed;
  opacity: 0.5;
  border-color: rgb(39, 44, 53);
}

.icon {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}
