/* --- GLOBAL SETTINGS --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.bg-anim-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;

  background-image: url("IMAGE/Warhammer\ 40K.jpg");
  background-size: 120% 120%;
  background-position: center;
  background-repeat: no-repeat;
  animation: driftBackground 60s linear infinite alternate;
}

/* Dark overlay to ensure text readability */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.65);
  background: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

@keyframes driftBackground {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.05) translate(-2%, -2%);
  }
}

.hero-section {
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  position: relative;
}

.hero-content {
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #000000;
  font-family: "abduction2002", sans-serif;
  text-shadow: 0px 2px 5px rgba(255, 255, 255, 0.9);
}

.enter-btn {
  padding: 15px 40px;
  background-color: #ffffff;
  color: #000000;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.enter-btn:hover {
  background-color: #000000;
  color: white;
  transform: scale(1.05);
}

#portfolio-wrapper {
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding-top: 40px;
}

:root {
  --primary-color: #000000;
  --secondary-color: #f8f9fa;
  --dark-color: #343a40;
  --light-color: #ffffff;
  --font-family: "poppy", sans-serif;
  --shadow: 0 10px 15px rgba(0, 0, 0, 0.9);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-image: url("IMAGE/Warhammer\ 40K.jpg");
  color: var(--dark-color);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* --- Welcome Header --- */
.welcome-header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0e1642 0%, #000000 100%);
  color: var(--light-color);
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.welcome-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
  pointer-events: none;
}

.welcome-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  pointer-events: none;
}

@font-face {
  font-family: "ledlight";
  src: url("LEDLIGHT.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.welcome-header h1 {
  font-family: "ledlight", sans-serif;
  text-shadow: 1px 2px 4px rgba(167, 85, 85, 0.9);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.welcome-header p {
  font-size: 1.2rem;
  font-weight: 400;
}

/* --- Tab Navigation --- */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background-color: var(--light-color);
  color: var(--dark-color);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.9);
}

.tab-button:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.tab-button.active {
  background-color: var(--primary-color);
  color: var(--light-color);
  box-shadow: var(--shadow);
}

/* --- Content Area --- */
.content-area {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  min-height: 500px;
}

.tab-content {
  display: none;
}

.tab-content.active-content {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Profile Section --- */
.profile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: auto;
}

.profile-content img {
  width: 15rem;
  height: 18rem;
  border-radius: 50%;
  object-fit: scale-down;
  border: 5px solid #ffffff;
  justify-content: center;
  align-items: center;
}

.profile-content ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.profile-content ul li {
  background-color: var(--secondary-color);
  padding: 8px 15px;
  margin-bottom: 5px;
  border-radius: 5px;
}

/* --- Projects Section --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.project-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3,
.project-card p {
  padding: 0 15px;
}

.project-card h3 {
  margin-top: 15px;
}

.project-card p {
  margin-bottom: 15px;
  color: #6c757d;
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  transition: transform 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0 40px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: #000;
}

.contact-item p {
  margin: 0;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form label {
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-family);
  font-size: 1rem;
}

.contact-form button {
  padding: 12px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #ff0000;
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .welcome-header {
    padding: 40px 15px;
  }

  .welcome-header h1 {
    font-size: 2.2rem;
  }

  .welcome-header p {
    font-size: 1rem;
  }

  .tab-nav {
    gap: 8px;
  }

  .tab-button {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
  }

  .content-area {
    padding: 25px 20px;
  }

  .profile-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-content img {
    width: 180px;
    height: 180px;
  }

  .profile-content ul {
    margin-top: 20px;
  }

  .project-card img {
    height: 180px;
  }

  .gallery-grid img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .welcome-header h1 {
    font-size: 1.8rem;
  }

  .tab-button {
    font-size: 0.85rem;
    padding: 8px;
  }

  .contact-form {
    width: 100%;
  }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  cursor: pointer;
  margin: 0 auto 20px;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background-color: #000;
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .tab-nav {
    display: none;
    flex-direction: column;
    gap: 10px;
  }

  .tab-nav.open {
    display: flex;
  }

  .tab-button {
    width: 100%;
    border-radius: 10px;
  }
}
