/*  GENERAL STYLING  */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #111;
  color: #fff;
  scroll-behavior: smooth;
}

/* HEADER*/
header {
  position: relative;
  height: 300px;
  background: radial-gradient(circle, rgba(63, 251, 76, 1) 0%, rgba(70, 216, 252, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid #444;
  border-radius: 25px;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Header Text Glow Animation */
header h1 {
  font-size: 3rem;
  font-weight: bold;
  margin: 0;
  animation: glow 1.5s infinite alternate;
}

/*  NAVIGATION  */
nav {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  z-index: 1000;
  border-radius: 0 20px 20px 0;
  background: none;
  box-shadow: none;
}

/* Nav Buttons */
nav button {
  background: #555;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

/* Hover RGB glow effect */
nav button:hover {
  animation: rgbShadowFlow 2s linear infinite;
  transform: scale(1.05);
}

/*  SECTION BASE STYLES  */
section {
  padding: 4rem 2rem;
  border-bottom: 2px solid #333;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
}

/* CAROUSEL STYLING */
.carousel {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.carousel:hover {
  animation: rgbShadowFlow 2s linear infinite;
  transform: scale(1.05);
  border-radius: 50px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  border-radius: 50px;
}

/* Image Slides */
.carousel img {
  width: 800px;
  height: 450px;
  object-fit: cover;
  border-radius: 5px;
}

/* Carousel Prev/Next Buttons */
.carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.carousel-controls button {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
}

/*  3D MODEL VIEWER  */
model-viewer {
  width: 800px;
  height: 450px;
  background: #222;
  border-radius: 20px;
  margin: 0 auto;
}

/* CV SECTION  */
.cvContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.cvContainer:hover {
  animation: rgbShadowFlow 2s linear infinite;
}

/* CV Download Button */
.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #5f5f5f;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rgbShadowFlow 2s linear infinite;
}

.download-btn:hover {
  transform: scale(1.05);
}

/* SOCIAL ICONS  */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem;
}

.social-icons a img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px;
}

.social-icons a img:hover {
  transform: scale(1.1);
  animation: rgbShadowFlow 2s linear infinite;
}

/* MODAL VIEWER  */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 100%;
  max-height: 95vh;
  border: 2px solid #fff;
  border-radius: 10px;
  animation: rgbShadowFlow 2s linear infinite;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

/*  ABOUT SECTION  */
#about {
  padding: 6rem 2rem;
  background: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  animation: rgbShadowFlow 2s linear infinite;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

/* About Me Image */
.about-image img {
  width: 900px;
  height: 900px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  margin-left: -410px;
  animation: rgbShadowFlow 2s linear infinite;
}

/* About Text Box */
.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 700px;
  margin-top: -550px;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.8;
  background-color: #444;
  animation: rgbShadowFlow 2s linear infinite;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold, #aa8b27);
}

/*NEON HEADER TEXT  */
.neon-text {
  margin-left: 500px;
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #ff005e, 0 0 80px #ff005e;
  animation: glow 1.5s infinite alternate;
}


/* Text Glow Animation */
@keyframes glow {
  0% {
    text-shadow: 0 0 5px #ff005e, 0 0 10px #ff005e, 0 0 20px #ff005e, 0 0 40px #ff005e, 0 0 80px #ff005e;
  }
  100% {
    text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 40px #00d4ff, 0 0 80px #00d4ff, 0 0 160px #00d4ff;
  }
}

/* RGB Shadow Animation */
@keyframes rgbShadowFlow {
  0%   { box-shadow: 0 0 20px red; }
  14%  { box-shadow: 0 0 20px orange; }
  28%  { box-shadow: 0 0 20px yellow; }
  42%  { box-shadow: 0 0 20px green; }
  57%  { box-shadow: 0 0 20px blue; }
  71%  { box-shadow: 0 0 20px indigo; }
  85%  { box-shadow: 0 0 20px violet; }
  100% { box-shadow: 0 0 20px red; }
}

/*  OUTER CONTAINER BORDER  */
.site-border {
  border-radius: 20px;
  margin: 1rem;
  padding: 1rem;
  animation: rgbShadowFlow 2s linear infinite;
}

/*  RESPONSIVE DESIGN FOR MOBILE  */
@media (max-width: 768px) {
  /* Nav becomes bottom bar */
  nav {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    bottom: 0 !important;
    right: 0 !important;
    transform: none !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #222 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.8) !important;
    z-index: 10000 !important;
  }

  nav button {
    writing-mode: initial !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    font-size: 1rem !important;
    width: auto !important;
    flex-grow: 1 !important;
  }

  section,
  .neon-container {
    margin-left: 0 !important;
    padding-bottom: 80px !important;
  }

  .site-border {
    margin: 0.5rem;
    padding: 0.5rem;
    border-width: 4px;
  }

  .carousel,
  .carousel-track,
  .carousel img,
  model-viewer {
    width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
  }

  .about-container {
    flex-direction: column !important;
    align-items: center !important;
    max-width: 95vw !important;
    margin: 0 auto !important;
  }

  .about-image img {
    width: 90vw !important;
    height: auto !important;
    margin-left: 0 !important;
    border-radius: 15px !important;
  }

  .about-text {
    max-width: 90vw !important;
    margin-top: 1rem !important;
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .neon-text {
    font-size: 2.5rem !important;
    margin-left: 0 !important;
    text-align: center !important;
  }

  .cvContainer {
    justify-content: center !important;
    padding: 1rem !important;
  }

  .cvContainer img {
    max-width: 90vw !important;
    height: auto !important;
    border-radius: 15px !important;
  }

  .social-icons {
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
  }

  .social-icons a img {
    width: 50px !important;
    height: 50px !important;
  }
}

















