/* =================================
   GLOBAL PAGE SETTINGS
   Controls the page background,
   smooth scrolling, and base font.
================================= */
html {
  border: 5px solid rgba(255, 255, 255, 0.831);
  background-color: rgb(44, 44, 44);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Roboto, sans-serif;
}

/* Centers the main content area */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}

/* =================================
   TEXT / TYPOGRAPHY
================================= */
h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 1px;
}

h2 {
  margin: 0 0 10px 0;
  font-size: 26px;
  border-left: 4px solid rgb(66, 165, 240);
  padding-left: 10px;
}

p {
  margin: 15px 0;
}

a {
  color: rgb(238, 167, 52);
  margin: 7px;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* =================================
   SHARED SECTION CARD STYLING
   Applied to header, footer, and
   all major content sections.
================================= */
header,
footer,
#feedback,
#NavigationBar,
#aboutMe,
#skills,
#myProjects,
#workingOn,
#myResume {
  max-width: 900px;
  margin: 15px auto;
  padding: 18px;
  background-color: rgb(30, 50, 80);
  color: white;
  border-radius: 14px;
  box-shadow: -7px 7px 14px rgb(66, 165, 240);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover animation for main content boxes */
header:hover,
footer:hover,
#feedback:hover,
#NavigationBar:hover,
#aboutMe:hover,
#skills:hover,
#myProjects:hover,
#workingOn:hover,
#myResume:hover {
  transform: translateY(-4px);
  box-shadow: -10px 10px 20px rgba(66, 165, 240, 0.35);
}

/* Header stays centered */
header {
  text-align: center;
}

/* Footer text formatting */
footer {
  text-align: center;
  font-size: 20px;
}

/* =================================
   NAVIGATION
================================= */
nav {
  margin-top: 12px;
  margin-bottom: 10px;
}

/* Top header buttons */
header nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

header nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.03);
  transition: 0.15s ease;
}

/* Website directory section */
#NavigationBar {
  text-align: left;
}

#NavigationBar nav {
  text-align: center;
}

#NavigationBar nav a {
  display: inline-block;
  padding: 6px 12px;
  margin: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  transition: all 0.15s ease;
}

#NavigationBar nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* =================================
   PROJECT SECTION FORMATTING
================================= */
dt,
dd {
  margin-left: 15px;
}

dt {
  margin-top: 12px;
}

dd {
  margin-bottom: 12px;
}

/* =================================
   SKILL BARS
   Used for spoken/coding language
   proficiency bars.
================================= */
.skill-bar {
  margin: 12px 0;
}

.skill-bar span {
  font-weight: 600;
}

.bar {
  height: 10px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
}

.fill {
  height: 100%;
  border-radius: 10px;
  background: rgb(238, 167, 52);
}

/* =================================
   PACKAGE TAGS
   Small badge-style labels for
   Python libraries / tools.
================================= */
.tag-container {
  margin-top: 10px;
}

.tag {
  display: inline-block;
  margin: 6px 6px 0 0;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.12);
}

.tag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  transition: 0.15s ease;
}

/* =================================
   SOCIAL ICONS
   Used in the header and footer.
================================= */
.socialWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.socialcard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  height: fit-content;
  padding: 25px;
  background-color: rgb(30, 50, 80);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.055);
}

.socialContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background-color: rgb(44, 44, 44);
  transition-duration: 0.3s;
}

.socialContainer:active {
  transform: scale(0.9);
}

/* Social icon hover colors */
.linkedin:hover {
  background-color: #0072b1;
}

.github:hover {
  background-color: #333;
}

.email:hover {
  background-color: #d44638;
}

/* SVG icon styling */
.socialSvg {
  width: 20px;
}

.socialSvg path {
  fill: white;
}

.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

/* Social icon slide animation */
@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

#feedback input,
#feedback textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  margin-bottom: 12px;
  border: none;
  border-radius: 8px;
  font-family: Roboto, sans-serif;
  box-sizing: border-box;
}

#feedback button {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: rgb(238, 167, 52);
  color: black;
  font-weight: 600;
  cursor: pointer;
}

#feedback button:hover {
  opacity: 0.9;
}