/* ===========================
   Core Reset & Base
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-image: url('../assets/images/BG.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Optional parallax */
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden !important;
}

/* ===========================
   Navbar
=========================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(19, 19, 19);
  padding: 20px 40px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2000;
}

.navbar .active {
  color: #00c9c8;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  animation: rainbowText 7s linear infinite;
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #00c9c8;
}

.burger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
}
/* ensure burger sits above other elements */
.burger { position: relative; z-index: 2001; padding: 6px 8px; }

/* ===========================
   Layout
=========================== */
.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  gap: 40px;
  height: 80vh;
}

/* ===========================
   Left Column
=========================== */
.left-column {
  color: azure;
  flex: 1;
  padding: 20px;
  font-family: Arial, sans-serif;
}

.left-column h3 {
  color: rgb(101, 223, 223);
  font-size: 2em;
}

.left-column h1 {
  font-size: 6rem;
}

.left-column p {
  font-size: 1.2rem;
}

.left-column p a {
  text-decoration: none;
  color: rgb(255, 232, 232);
}

/* ===========================
   Right Column
=========================== */
.right-column {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-top: 5%;
  height: 700px;

}

.right-column img {
  overflow: hidden;
  max-width: 100%;
  max-height: 100vh;
  border-radius: 12px;
  height: auto;
  animation: rainbowDropShadow 7s linear infinite;
}

/* ===========================
   Typing Effect
=========================== */
.typing-container {
  font-family: "Courier New", monospace;
  border-right: 2px solid #00c9c8;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.color-web-dev {
  color: rgb(101, 223, 223);
}
.color-graphics {
  color: hotpink;
}
.color-analyst {
  color: rgb(238, 215, 130);
}

/* ===========================
   Animations
=========================== */
@keyframes rainbowText {
  0% {
    color: hsl(0, 100%, 70%);
  }
  16% {
    color: hsl(60, 100%, 70%);
  }
  33% {
    color: hsl(120, 100%, 70%);
  }
  50% {
    color: hsl(180, 100%, 70%);
  }
  66% {
    color: hsl(240, 100%, 70%);
  }
  83% {
    color: hsl(300, 100%, 70%);
  }
  100% {
    color: hsl(360, 100%, 70%);
  }
}

@keyframes rainbowDropShadow {
  0% {
    filter: drop-shadow(20px 0px 30px hsl(0, 100%, 60%));
  }
  16% {
    filter: drop-shadow(20px 0px 30px hsl(60, 100%, 60%));
  }
  33% {
    filter: drop-shadow(20px 0px 30px hsl(120, 100%, 60%));
  }
  50% {
    filter: drop-shadow(20px 0px 30px hsl(180, 100%, 60%));
  }
  66% {
    filter: drop-shadow(20px 0px 30px hsl(240, 100%, 60%));
  }
  83% {
    filter: drop-shadow(20px 0px 30px hsl(300, 100%, 60%));
  }
  100% {
    filter: drop-shadow(20px 0px 30px hsl(360, 100%, 60%));
  }
}

/* ===========================
   Responsive Styles
=========================== */

/* Tablet */
@media (max-width: 1024px) {
  .left-column h1 {
    font-size: 4rem;
  }
  .left-column h3 {
    font-size: 1.5rem;
  }
  .left-column p {
    font-size: 1rem;
  }
}

/* Mobile*/
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgb(19, 19, 19);
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0; /* Start collapsed */
    z-index: 10;

    /* Animation setup */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      max-height 0.5s ease,
      opacity 0.5s ease,
      transform 0.5s ease;
  }

  .nav-links.open {
    max-height: 300px; /* enough space for menu items */
    opacity: 1;
    transform: translateY(0);
    padding: 20px 0;
  }

  .flex-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    height: auto;
  }

  .left-column h1 {
    font-size: 2.5rem;
    text-align: center;
  }

  .left-column h3 {
    font-size: 1.2rem;
    text-align: center;
  }

  .left-column p {
    font-size: 1rem;
    text-align: center;
  }

  .right-column {
    margin-top: 20px;
  }

  .right-column img {
    max-height: 55vh;
  }
}
