:root {
  --theme-color: #ff4d4d;
  --theme-text: #ffb3b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: url('https://gifdb.com/images/high/red-aesthetic-scenery-6hubzuosy2274ta2.gif') no-repeat center center fixed;
  background-size: cover;
  color: var(--theme-text);
  overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #000;
  border-bottom: 3px solid var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  z-index: 1000;
}

.top-left-images {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Reuse the SAME styling as social icons */
.top-left-images img {
  width: 60px;
  height: 55px;
  border: 2px solid var(--theme-color);
  border-radius: 0%;
  background-color: #000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.top-left-images img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 0, 0, 1);
  border-color: #ff3333;
}
/* Centered social buttons */
.social-buttons {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Site name (right side) */
.site-name {
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--theme-color);
  text-shadow: 0 0 10px var(--theme-color);
}

/* === Dropdown styling === */
.social-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.85);
  padding: 10px;
  border: 2px solid var(--theme-color);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
  z-index: 1000;
}

.dropdown-content img {
  width: 350px;
  border-radius: 8px;
}

.social-dropdown:hover .dropdown-content {
  display: block;
}

/* === Social button icons === */
.social-link img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--theme-color);
  border-radius: 50%;
  background-color: #000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.social-link img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 0, 0, 1);
  border-color: #ff3333;
}

/* ===== BOXES ===== */
.box {
  position: relative;
  z-index: 1;
  width: 30%;
  min-height: 450px;
  margin: 120px 1% 50px;
  padding: 40px 30px;
  border: 3px solid var(--theme-color);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.65);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: scale(1.04);
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.9);
  border-color: #ff3333;
}

.box h2 {
  font-size: 1.8rem;
  color: var(--theme-color);
  text-shadow: 0 0 20px rgba(255, 0, 0, 1);
  margin-bottom: 20px;
}

/* Make all boxes same height */
.box-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
}

/* === Carousel === */
.carousel-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none; /* Disable click for hidden slides */
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto; /* Enable click for active slide */
}

/* === Project images === */
.project-img {
  display: inline-block;             /* shrink-wraps to the image’s true size */
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;               /* keeps the full image visible */
  border: 2px solid var(--theme-color); /* outline now hugs image itself */
  border-radius: 10px;
  margin-bottom: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  vertical-align: middle;
}

.project-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px var(--theme-color);
}

/* === GitHub Button === */
.github-btn {
  display: inline-block;
  background-color: var(--theme-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  margin-top: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.github-btn:hover {
  background-color: #ff4d4d; /* a brighter red tone for hover */
  box-shadow: 0 0 12px var(--theme-color);
  transform: scale(1.05);
}

.top-left-images .social-dropdown {
  position: relative;
}

/* Bigger preview size for certs only */
.top-left-images .dropdown-content img {
  width: 95px;
  height: 95px;
}

/* Slight offset so it doesn’t overlap the bar */
.top-left-images .dropdown-content {
  top: 70px;
}


/* === Collaborator buttons === */
.project-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.project-buttons img {
  width: 40px;
  height: 40px;
  border: 2px solid var(--theme-color);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-buttons img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(255, 0, 0, 1);
  border-color: #ff3333;
}

/* === Responsive === */
@media (max-width: 768px) {
  .box {
    width: 85%;
    margin: 150px auto;
  }

  .box-row {
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content img {
    width: 280px;
  }
}
