/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
}

body {
  line-height: 1.6;
  background-color: #fff;
  color: #000000;
  transition: background-color 0.3s, color 0.3s;
}

.dark-theme {
  background-color: #111;
  color: #242424;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Navbar */
header.navbar {
  position: sticky;
  top: 0;
  background: #464646;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  transition: top 0.3s;
  border-bottom: 1px solid #5f5f5f;
}

header.hide {
  top: -100px;
}

header.navbar h1 {
  font-weight: bold;
}

header .tabs {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.about-image-slider {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
}

.about-image-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  width: 100%;
  text-align: center;
  padding: 5px;
  opacity: 0;
  transition: 0.3s;
}

.about-image-slider:hover .overlay-text {
  opacity: 1;
}

.intro-text {
  flex: 1;
  min-width: 250px;
}

.typing {
  color: #8b8b8b;
  font-weight: bold;
}

/* Tabs */
.tabs-buttons {
  margin: 2rem 0 1rem;
  text-align: center;
}

.tab-button {
  padding: 0.5rem 1.5rem;
  margin: 0 0.5rem;
  border: none;
  background-color: #ddd;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.tab-button.active,
.tab-button:hover {
  background-color: #2b2b2b;
  color: #fff;
}

/* Tab content */
.tab-content {
  display: none;
  margin-top: 1rem;
}

.tab-content.active {
  display: block;
}

/* Projects Section - Grid Overlay */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  justify-items: center;
}

.grid-item {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  background-color: #1e1e1e;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease; /* smooth zoom */
}

.grid-item:hover img {
  transform: scale(1.1); /* zoom in */
}


.grid-item .overlay {
  position: absolute;
  top: 0; /* fix */
  left: 0;
  width: 100%; /* fix */
  height: 100%; /* fix */
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex; /* center the text */
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  text-align: center;
  padding: 10px;
}

.grid-item:hover .overlay {
  opacity: 1;
}


/* Services - Scrollable Image Overlay */
.scroll-gallery {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 1rem;
}

.scroll-item {
  position: relative;
  width: 200px;          /* smaller 1:1 size */
  height: 200px;         /* same as width = 1:1 */
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1e1e1e; /* fallback background */
}

.scroll-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}


.scroll-item:hover img {
  transform: scale(1.1);
}

.scroll-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  width: 100%;
  color: white;
  text-align: center;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.scroll-item:hover .scroll-overlay {
  opacity: 1;
}


/* Contact Section */
.contact {
  margin-top: 3rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact input,
.contact textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

.contact button {
  background-color: #3f3f3f;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact button:hover {
  background-color: #0056b3;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid #1b1b1b;
  font-size: 0.9rem;
}

/* Dark Theme Overrides */
.dark-theme header,
.dark-theme footer {
  background-color: #111;
  border-color: #444;
}

.dark-theme .tab-button {
  background-color: #333;
  color: #1b1b1b;
}

.dark-theme .tab-button.active,
.dark-theme .tab-button:hover {
  background-color: #007bff;
  color: rgb(34, 34, 34);
}

/* This is for buttons for Discord, Email, and Instagram */
.contact-icons {
  text-align: center;
  padding: 2rem 1rem;
}

.icon-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.icon-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1e1e1e;
  transition: transform 0.3s ease;
}

.icon-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease;
}

.icon-item .overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.icon-item:hover img {
  transform: scale(1.1);
}

.icon-item:hover .overlay-text {
  opacity: 1;
}

.email-button {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.email-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.3s ease;
}

.email-button:hover img {
  transform: scale(1.1);
}

.email-button .overlay-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.email-button:hover .overlay-text {
  opacity: 1;
}
