/* =================================
  THEME TOKENS
  Centralized colors, surfaces,
  and shared visual constants.
================================= */
:root {
  --bg-1: #02060d;
  --bg-2: #060d18;
  --bg-3: #0a1422;
  --surface: rgba(6, 11, 20, 0.86);
  --surface-strong: rgba(3, 7, 13, 0.94);
  --border: rgba(114, 141, 173, 0.32);
  --text-main: #edf3fb;
  --text-muted: #aebccc;
  --accent: #4db7ff;
  --accent-strong: #2d9ce6;
  --accent-warm: #8dc7ff;
  --shadow: 0 22px 42px rgba(0, 0, 0, 0.58);
}

html {
  scroll-behavior: smooth;
}

/* Apply consistent box model sizing */
* {
  box-sizing: border-box;
}

/* =================================
   PAGE BACKDROP + BASE TYPE
================================= */
body {
  margin: 0;
  padding: 22px 14px;
  color: var(--text-main);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 16%, rgba(77, 183, 255, 0.16), transparent 45%),
    radial-gradient(circle at 86% 8%, rgba(120, 146, 198, 0.14), transparent 42%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 92%);
}

/* Main content container */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 4px;
}

/* =================================
  TYPOGRAPHY
================================= */
h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  line-height: 1.2;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

h3 {
  margin: 18px 0 8px;
  font-size: 1.12rem;
  color: #e8f7ff;
}

p {
  margin: 14px 0;
  color: var(--text-muted);
}

a {
  color: var(--accent-warm);
  margin: 7px;
  font-weight: 700;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

a:hover {
  color: #d8e9ff;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 14px;
}

#myProjects li {
  margin-bottom: 24px;
}

/* =================================
   SHARED SECTION CARD STYLE
   Applies to all major page blocks.
================================= */
header,
footer,
#feedback,
#NavigationBar,
#aboutMe,
#skills,
#certifications,
#myProjects,
#workingOn,
#myResume {
  max-width: 960px;
  margin: 16px auto;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-main);
  background: linear-gradient(180deg, rgba(10, 19, 35, 0.76), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

header:hover,
footer:hover,
#feedback:hover,
#NavigationBar:hover,
#aboutMe:hover,
#skills:hover,
#certifications:hover,
.project-card:hover,
.cert-card:hover,
#myProjects:hover,
#workingOn:hover,
#myResume:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 178, 230, 0.6);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.62);
}

/* Header-specific tweaks */
header {
  text-align: center;
  padding: 30px 22px;
}

header p {
  margin-top: 10px;
  color: #e7f4fc;
  font-weight: 500;
}

footer {
  text-align: center;
  font-size: 1.1rem;
}

/* =================================
   NAVIGATION
================================= */
nav {
  margin: 12px 0 6px;
}

#NavigationBar {
  text-align: left;
}

#NavigationBar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

#NavigationBar nav a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(170, 196, 231, 0.2);
  background: rgba(137, 169, 218, 0.09);
  color: #a5d3ff;
  font-size: 0.91rem;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

#NavigationBar nav a:hover {
  transform: translateY(-2px);
  background: rgba(77, 183, 255, 0.22);
  border-color: rgba(77, 183, 255, 0.52);
}

dt,
dd {
  margin-left: 14px;
}

dt {
  margin-top: 12px;
}

dd {
  margin-bottom: 12px;
}

/* =================================
   SKILLS + TAGS
================================= */
.skill-bar {
  margin: 13px 0;
}

.skill-bar span {
  display: inline-block;
  font-weight: 700;
  color: #f2f9ff;
}

.bar {
  height: 11px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(180, 202, 238, 0.2);
  background: rgba(109, 138, 184, 0.2);
}

.fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
  box-shadow: 0 0 16px rgba(77, 183, 255, 0.36);
}

.tag-container {
  margin-top: 12px;
}

.tag {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(185, 207, 245, 0.18);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ebfbff;
  background: rgba(103, 128, 167, 0.17);
  transition: transform 0.18s ease, background 0.18s ease;
}

.tag:hover {
  background: rgba(77, 183, 255, 0.25);
  transform: translateY(-1px);
}

/* =================================
   CARD GRID SETTINGS
================================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.project-card,
.cert-card {
  padding: 16px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(143, 172, 219, 0.14), rgba(5, 12, 22, 0.78));
  border: 1px solid rgba(162, 192, 236, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.project-card h3,
.cert-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.cert-meta {
  margin: 6px 0;
  font-size: 0.9rem;
  color: #b8c5d6;
}

.cert-tags {
  margin: 10px 0;
}

.cert-tag {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(158, 188, 231, 0.16);
}

/* =================================
   SOCIAL ICONS
================================= */
.socialWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.socialcard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: fit-content;
  height: fit-content;
  padding: 16px;
  border-radius: 14px;
  background: var(--surface-strong);
  border: 1px solid rgba(167, 194, 235, 0.14);
}

.socialContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(166, 194, 235, 0.2);
  background-color: rgba(135, 164, 208, 0.12);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.socialContainer:active {
  transform: scale(0.95);
}

.linkedin:hover {
  background-color: #0072b1;
  border-color: #34a6e0;
}

.github:hover {
  background-color: #171515;
  border-color: #5f5f5f;
}

.email:hover {
  background-color: #d44638;
  border-color: #f06d60;
}

.socialSvg {
  width: 20px;
}

.socialSvg path {
  fill: #ffffff;
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.26s both;
}

/* Icon slide entrance on hover */
@keyframes slide-in-top {
  0% {
    transform: translateY(-12px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =================================
  FEEDBACK FORM
================================= */
#feedback input,
#feedback textarea {
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(166, 190, 225, 0.28);
  border-radius: 10px;
  outline: none;
  color: #f5fbff;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: rgba(3, 8, 15, 0.78);
}

#feedback input:focus,
#feedback textarea:focus {
  border-color: rgba(77, 183, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(77, 183, 255, 0.24);
}

#feedback button {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(120deg, var(--accent), var(--accent-warm));
  color: #04101c;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

#feedback button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

iframe {
  background: #ffffff;
}

/* Responsive spacing + one-column cards */
@media (max-width: 760px) {
  body {
    padding: 14px 10px;
  }

  header,
  footer,
  #feedback,
  #NavigationBar,
  #aboutMe,
  #skills,
  #certifications,
  #myProjects,
  #workingOn,
  #myResume {
    margin: 12px auto;
    padding: 17px;
    border-radius: 16px;
  }

  .project-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .socialcard {
    gap: 12px;
    padding: 12px;
  }
}

/* Respect reduced-motion user preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}