/* ==================== COMMON STYLES ==================== */
/* Shared styles for index.html and about.html */

/* ==================== CSS VARIABLES ==================== */
:root {
  --color-background: #000000;
  --color-text: #ffffff;
  --color-text-header: #ffffff;
  --color-accent: #a742eb;
  --overlay-color: rgba(98, 48, 166, 0.9);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: "Raleway", sans-serif;
  position: relative;
  overflow-x: hidden;
}

img {
  pointer-events: none;
}

.background-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  pointer-events: none;
}

.background-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== HEADER ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 0 23px 0;
  z-index: 1000;
  transition: transform 0.4s ease-out, background-color 0.3s ease;
  color: var(--color-text-header);
}

header.scrolled {
  background-color: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(5px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-container .logo-initial {
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  font-weight: bold;
}

.logo-container .logo-scrolled {
  display: none;
  height: 25px;
  transition: opacity 0.3s ease;
  opacity: 0;
}

header.scrolled .logo-initial {
  display: none;
}

header.scrolled .logo-scrolled {
  display: block;
  opacity: 1;
}

/* ==================== NAVIGATION ==================== */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: var(--color-text-header);
  text-decoration: none;
  font-size: 1.1rem;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-menu svg {
  width: 28px;
  height: 28px;
  fill: var(--color-text);
}

/* ==================== MAIN ==================== */
main {
  padding-top: 15vh;
}

/* ==================== FILTER BUTTONS ==================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 50px 0;
}

.filter-btn {
  padding: 10px 25px;
  color: var(--color-text-header);
  cursor: pointer;
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border-radius: 50px;
  background-clip: padding-box;
  background: linear-gradient(#000, #000) padding-box,
    url("Media/Backgrounds/gradient.png") center / cover border-box;
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("Media/Backgrounds/gradient.png") center / 100% 100%;
  transform: scaleX(0);
  transform-origin: center;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  transform: scaleX(1);
}

/* ==================== FOOTER ==================== */
footer {
  padding: 30px 0 15px 0;
  background: url("Media/Backgrounds/gradient.png") center/cover;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 0 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left .footer-logo {
  height: 50px;
}

.footer-middle {
  text-align: left;
}

.footer-middle p {
  margin: 5px 0;
}

.footer-middle .icon {
  height: 14px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-middle a#copy-email-link {
  color: var(--color-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.copyright-text {
  text-align: center;
  color: var(--color-text);
  font-size: 0.7rem;
  margin-top: 20px;
  padding-top: 15px;
}

/* ==================== COPY EMAIL ==================== */
#copy-email-link .original-text,
#copy-email-link .copied-text {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

#copy-email-link .copied-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

#copy-email-link.copied .original-text {
  opacity: 0;
}

#copy-email-link.copied .copied-text {
  opacity: 1;
}

.email-paragraph {
  padding-left: 27px;
}

/* ==================== SOCIAL ICONS ==================== */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a img {
  height: 32px;
  transition: transform 0.2s ease;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* ==================== ANIMATED GRADIENT BACKGROUND ==================== */
.gradient-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.gradient-main {
  position: absolute;
  width: 250%;
  height: 250%;
  top: -75%;
  left: -75%;
  will-change: transform, opacity;
  background: radial-gradient(
      ellipse 80% 70% at 35% 30%,
      rgba(135, 23, 233, 0.7) 0%,
      rgba(80, 20, 140, 0.4) 20%,
      rgba(60, 10, 100, 0.15) 40%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 90% 80% at 55% 25%,
      rgba(40, 100, 200, 0.5) 0%,
      rgba(20, 140, 220, 0.3) 25%,
      rgba(0, 160, 240, 0.15) 45%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 85% 75% at 72% 22%,
      rgba(0, 200, 255, 0.6) 0%,
      rgba(0, 180, 240, 0.35) 20%,
      rgba(0, 150, 200, 0.15) 40%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 100% 90% at 78% 50%,
      rgba(0, 180, 170, 0.5) 0%,
      rgba(0, 160, 150, 0.3) 25%,
      rgba(0, 130, 120, 0.12) 45%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 90% 85% at 70% 75%,
      rgba(0, 160, 130, 0.45) 0%,
      rgba(0, 140, 115, 0.25) 25%,
      rgba(0, 110, 95, 0.1) 45%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 60% 70% at 18% 55%,
      rgba(70, 20, 120, 0.35) 0%,
      rgba(50, 10, 90, 0.15) 35%,
      transparent 60%
    );
}

.gradient-blend {
  position: absolute;
  width: 250%;
  height: 250%;
  top: -75%;
  left: -75%;
  will-change: transform, opacity;
  mix-blend-mode: screen;
  background: radial-gradient(
      ellipse 120% 100% at 50% 35%,
      rgba(60, 80, 180, 0.25) 0%,
      rgba(40, 120, 160, 0.15) 30%,
      rgba(20, 100, 140, 0.05) 50%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 100% 120% at 65% 60%,
      rgba(0, 140, 160, 0.2) 0%,
      rgba(0, 120, 140, 0.1) 35%,
      transparent 60%
    );
}

.fade-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  will-change: opacity;
}

.glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse 70% 50% at 65% 20%,
    rgba(100, 200, 255, 0.08) 0%,
    transparent 60%
  );
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* ==================== RESPONSIVE - COMMON ==================== */
@media (max-width: 768px) {
  main {
    padding-top: 10vh;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 20px;
  }

  .footer-left .footer-logo {
    height: 40px;
    padding-left: 0;
  }

  .footer-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .social-icons a img {
    height: 36px;
  }

  .hamburger-menu {
    display: block;
  }

  .email-paragraph {
    padding-left: 0;
  }
}
