:root {
  --primary: #003262;
  /* your main color */
  --primary-600: #00244a;
  --accent: #00a3ff;
  /* bright accent */
  --muted: #6b7280;
  --bg: #f7fbff;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color-scheme: light;
}

/* Make header sticky inside the container (recommended) */
header {
  position: sticky;
  top: 0; /* sticks to top of viewport when scrolled */
  z-index: 60; /* stay above other content */
  background: rgba(
    255,
    255,
    255,
    0.95
  ); /* slightly translucent so it feels smooth */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px; /* matches your site card style */
  padding: 12px 18px; /* adjust spacing if you want */
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(3, 12, 26, 0.04);
}

/* Dark-mode variant (if user switched to dark) */
body.dark #sde {
  color: var(--accent);
}

body.dark #lBtn {
  color: black;
}

body.dark #gBtn {
  color: #080705;
}
body.dark #vBtn {
  color: black;
}

body.dark .project-badge {
  color: var(--accent);
  background-color: #000000;
}

body.dark header {
  background: rgba(2, 6, 23, 0.7);
  box-shadow: 0 6px 22px rgba(2, 6, 23, 0.6);
  color: var(--primary-600);
}

html,
body {
  height: 100%;
  margin: 0;
}

/* default (light mode) background */
body {
  background: linear-gradient(180deg, var(--bg), #eef6ff);
}

/* Dark mode overrides */
body.dark {
  --primary: #e5f0ff;
  --primary-600: #cbd5f5;
  --accent: #38bdf8;
  --muted: #9ca3af;
  --bg: #020617;
  --card: #020617;
  --glass: rgba(15, 23, 42, 0.8);
  color-scheme: dark;
  background: radial-gradient(
    circle at top,
    #0b1120,
    #020617 55%,
    #000000 100%
  );
}

body.dark .logo {
  background-color: var(--accent);
  color: black;
}

body.dark .hero-card,
body.dark .card {
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.7);
}

body.dark .cta {
  color: white;
}

body.dark #hireMe {
  color: #00a3ff;
}

body.dark .small {
  color: black;
}
body.dark .project {
  border-color: rgba(148, 163, 184, 0.4);
}

body.dark #about {
  color: white;
}

body.dark #projects {
  color: white;
}

body.dark #section-title {
  color: white;
}

body.dark #section-subtitle {
  color: var(--accent);
}

body.dark .Contact {
  color: white;
}

body.dark button {
  background-color: var(--accent);
  color: black;
}

body.dark footer {
  color: white;
  /* background: var(--accent); */
}

/* nav CTA button in dark mode a bit brighter */
body.dark nav a.cta {
  background: var(--accent);
  color: #020617;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

/* layout */
.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--primary-600);
  font-weight: 600;
}

nav a.cta {
  background: var(--primary);
  color: white;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  margin-top: 26px;
}

.intro h1 {
  margin: 0;
  font-size: 34px;
  color: var(--primary);
}

.intro p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
}

.hero-card {
  background: linear-gradient(180deg, var(--card), #fcfeff);
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(3, 12, 26, 0.06);
}

.profile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  display: grid;
  place-items: center;
  color: white;
  font-size: 34px;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  border-radius: 10px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

/* sections */
section {
  margin-top: 34px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(3, 12, 26, 0.04);
}

/* projects */
/* Project card: hero + dark info panel */
.projects-list {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Card wrapper */
.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(3, 12, 26, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* hover lift */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(3, 12, 26, 0.12);
}

/* Hero (top) */
.project-hero {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: block;
}

/* soft gradient overlay so text/phones pop */
.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

/* Badge on hero */
.project-badge {
  position: absolute;
  left: 16px;
  top: 14px;
  z-index: 2;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 6px 16px rgba(3, 12, 26, 0.06);
}

/* Info panel (dark look like your reference) */
.project-info {
  background: linear-gradient(180deg, #0f1724, #0b1320); /* dark panel */
  color: #f8fafc;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* meta row */
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #9aa4b2;
  font-size: 13px;
}

/* title */
.project-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}
.project-title a {
  color: inherit;
  text-decoration: none;
}

/* description */
.project-desc {
  font-size: 14px;
  line-height: 1.45;
  color: #c3cbd6;
  margin: 0;
}

/* action buttons */
.project-actions {
  margin-top: 6px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* button styles */
#gBtn {
  background-color: #912f40;
  color: white;
}
#vBtn {
  background-color: red;
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 8px 20px rgba(0, 50, 98, 0.14);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* responsive adjustments */
@media (max-width: 880px) {
  .project-hero {
    height: 160px;
  }
  .project-title {
    font-size: 20px;
  }
  .projects-list {
    grid-template-columns: 1fr;
  }
}

/* //------------------------------------------------- */
.projects-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.project h4 {
  margin: 6px 0 8px;
  color: var(--primary);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 50, 98, 0.06);
  color: var(--primary);
}

/* Theme toggle button */
.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.8);
  padding: 6px 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

body.dark .theme-toggle {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.8);
  color: #e5e7eb;
}

/* skills */
/* .skill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0
}

.bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 99px;
    margin-left: 12px;
    overflow: hidden
}

.bar>span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 99px
} */

/* SKILL SECTION CSS */
#skills {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

#skills .section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #102a43;
}

#skills .section-subtitle {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 40px;
}

.skills-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: center;
  align-items: stretch;
}

.skill-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: #63b3ed;
  box-shadow: 0 6px 18px rgba(99, 179, 237, 0.2);
}

.skill-card h4 {
  font-size: 18px;
  color: #2d3748;
  margin-bottom: 12px;
  font-weight: 600;
}

.skill-card ul {
  list-style: none;
  padding: 0;
}

.skill-card li {
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1a202c;
}

/* Tags */
.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.tag.adv {
  background: #e6fffa;
  color: #0f766e;
}
.tag.mid {
  background: #ebf8ff;
  color: #2b6cb0;
}
.tag.new {
  background: #f0fff4;
  color: #166534;
}

/* Footer note */
#skills .note {
  margin-top: 30px;
  color: #718096;
  font-size: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* contact */

#contact {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}
.contact-form {
  display: grid;
  gap: 10px;
}

input,
textarea {
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: 14px;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

footer {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 0;
}

/* small screens */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .projects-list {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }
}

/* subtle helper */
.muted {
  color: var(--muted);
}
