/* Reset & Global Settings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Fira Code", monospace;
  color: #c9d1d9;
  background: #000;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Matrix Canvas Background - DO NOT MODIFY */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Container for Main Content */
.container {
  width: 90%;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(22, 27, 34, 0.95);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 1;
}

/* Header Styles */
header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

header img {
  border-radius: 50%;
  border: 3px solid #026f71;
  margin-bottom: 1rem;
}

header h1 {
  font-size: 2.8rem;
  color: #026f71;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

header nav {
  margin-top: 1rem;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  header nav ul {
    flex-direction: column;
    align-items: center;
  }
}

header nav ul li a {
  color: #8b949e;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

header nav ul li a:hover {
  background: #026f71;
  color: #fff;
}

/* Section Styles */
section {
  margin-bottom: 2rem;
  padding: 1rem;
  border-bottom: 1px solid #30363d;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

section:last-of-type {
  border-bottom: none;
}

section.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: 1.8rem;
  color: #026f71;
  margin-bottom: 1rem;
}

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

.skills-grid h3 {
  margin-bottom: 0.5rem;
  color: #026f71;
}

/* Experience Section */
.experience .job {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.experience .job h3 {
  color: #026f71;
  margin-bottom: 0.3rem;
}

.experience .job span {
  font-size: 0.9rem;
  color: #8b949e;
  margin-bottom: 0.5rem;
  display: block;
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

form label {
  font-size: 1rem;
  color: #8b949e;
}

form input,
form textarea {
  padding: 8px;
  border: none;
  border-radius: 5px;
  background: #1d2228;
  color: #c9d1d9;
  font-family: inherit;
}

form input:focus,
form textarea:focus {
  outline: 2px solid #026f71;
}

form button {
  align-self: flex-start;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  background: #026f71;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #035d64;
}

/* Public Releases Links */
section#public ul {
  list-style: none;
  padding: 0;
}

section#public ul li a {
  color: #026f71;
  text-decoration: underline;
  transition: color 0.3s;
}

section#public ul li a:hover {
  color: #035d64;
}

/* Footer Styles */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #6e7681;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #30363d;
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Tech Skills Icons */
.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 1rem;
}

.icon-grid img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
}

.icon-grid img:hover {
  transform: scale(1.2);
}

/* Skills Icons Text */
.tooltip {
  position: relative;
  display: inline-block;
  margin: 10px;
}

.tooltip img {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}

.tooltip:hover img {
  transform: scale(1.1);
}

.tooltip-text {
  visibility: hidden;
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}