/* ===================================================== */
/* =============== GLOBAL & RESET ====================== */
/* ===================================================== */

html {
  scroll-behavior: smooth;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Courier New", monospace;
  background: #0a0013;
  color: #eee;
  line-height: 1.6;
}

/* CSS Variables: Neon Accent Colors */
:root {
  --neon-pink: #ff00ff;
  --neon-cyan: #00eaff;
  --neon-purple: #9d4edd;
}


/* ===================================================== */
/* ================= HEADER & NAV ====================== */
/* ===================================================== */

.header {
  background: #120022;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid var(--neon-pink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan), 0 0 15px var(--neon-cyan);
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: #eee;
  text-decoration: none;
  transition: 0.3s;
}

.nav a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

/* Note: This is the base menu button style; a more detailed
   responsive variant appears later and may override some props. */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  background: none;
  border: none;
}


/* ===================================================== */
/* ==================== HERO =========================== */
/* ===================================================== */

.hero {
  padding: 5rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top, #1a0033, #0a0013);
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.hero p {
  color: #ccc;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}


/* ===================================================== */
/* =================== BUTTONS ========================= */
/* ===================================================== */

.btn-primary,
.btn-secondary {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: var(--neon-cyan);
  color: #0a0013;
}

.btn-primary:hover {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 15px var(--neon-pink);
}

.btn-secondary {
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
}

.btn-secondary:hover {
  background: var(--neon-cyan);
  color: #0a0013;
  box-shadow: 0 0 15px var(--neon-cyan);
}
/* ===================================================== */
/* ================== SECTION LAYOUTS ================== */
/* ===================================================== */

.section {
  padding: 3rem 2rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: var(--neon-cyan);
  margin-bottom: 2rem;
  text-shadow: 0 0 8px var(--neon-cyan);
}

.section p {
  max-width: 800px;
  margin: 0 auto 1rem auto;
  color: #ddd;
}


/* ===================================================== */
/* ==================== GRID CARDS ===================== */
/* ===================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #1a002b;
  border: 1px solid var(--neon-pink);
  border-radius: 10px;
  padding: 1rem;
  transition: 0.3s;
  color: #eee;
}

.card h3 {
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--neon-pink);
}


/* ===================================================== */
/* ===================== TIMELINE ====================== */
/* ===================================================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-item {
  background: #1a002b;
  border-left: 4px solid var(--neon-cyan);
  padding: 1rem;
  text-align: left;
  transition: 0.3s;
}

.timeline-item:hover {
  border-left: 4px solid var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink);
}


/* ===================================================== */
/* ===================== CONTACT ======================= */
/* ===================================================== */

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-links a {
  color: var(--neon-cyan);
  text-decoration: none;
  border: 1px solid var(--neon-cyan);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: 0.3s;
}

.contact-links a:hover {
  background: var(--neon-pink);
  border-color: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 10px var(--neon-pink);
}


/* ===================================================== */
/* ====================== FOOTER ======================= */
/* ===================================================== */

.footer {
  background: #120022;
  padding: 1rem;
  text-align: center;
  color: #aaa;
  border-top: 2px solid var(--neon-pink);
  font-size: 0.9rem;
}


/* ===================================================== */
/* ======= RESPONSIVE (INITIAL SIMPLE VERSION) ========= */
/* ===================================================== */
/* Note: A more advanced responsive nav appears later and
   overrides these rules due to cascade order. */

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #1a002b;
    border: 1px solid var(--neon-pink);
    padding: 1rem;
  }

  .menu-btn {
    display: block;
  }
}
/* ===================================================== */
/* ================= PROJECTS SECTION ================== */
/* ===================================================== */

.section-one-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 2rem 0;
  text-align: center;
}

.section-one {
  position: relative;
  display: flex;
  flex-direction: row;
}

.cardContainer {
  width: 33.33%;
  padding: 1rem;
}

.cardContainer .card {
  text-align: center;
  background: transparent;
  padding: 5rem;
  font-size: 0.95rem;
  color: #ccc;
  flex: 0 0 auto; /* prevent it from stretching */
  margin-left: 0; /* hug the left */
}


/* ===================================================== */
/* ============= LOTTIE STICKY WRAPPERS ================ */
/* ===================================================== */
/* Sticky 1: center of Card1 to center of Card3 */
.lottieBoxOne {
  position: absolute;
  top: 0vh;            /* Start at center of Card 1 */
  left: 33.33%;
  width: 33.33%;
  height: 120vh;       /* Finish */
  z-index: 2;
  pointer-events: none;
}

/* Sticky 2: center of Card2 to center of Card3 */
.lottieBoxTwo {
  position: absolute;
  top: 40vh;           /* Start at center of Card 2 */
  left: 33.33%;
  width: 33.33%;
  height: 80vh;        /* Ends at center of Card 3 */
  z-index: 3;
  pointer-events: none;
}

.sticky1,
.sticky2 {
  position: sticky;
  top: calc(50vh - 150px);
  width: 300px;
  height: 300px;
  margin: 0 auto;
  display: block;
}


/* ===================================================== */
/* ============ PROJECTS: MOBILE ADJUSTMENTS =========== */
/* ===================================================== */

@media screen and (max-width: 768px) {
  .section-one {
    flex-direction: column;
    align-items: center;
  }

  .lottieBoxOne,
  .lottieBoxTwo {
    position: absolute;
    width: 100%;
    left: 0%;
    order: 1;
  }

  .cardContainer {
    width: 100%;
    padding: 1rem;
    order: 2;
  }

  .sticky1,
  .sticky2 {
    position: sticky;                 /* keep sticky! */
    top: calc(50vh - 150px);          /* center in viewport */
    width: 300px;
    height: 300px;
  }
}


/* ===================================================== */
/* ============ (OPTIONAL) TESTING OUTLINES ============ */
/* ===================================================== */
/*FOR TESTING 
.lottieBoxTwo {
  outline: 2px dashed #ff0000;
}

.lottieBoxOne {
  outline: 2px dashed #66ff00;
}
*/


/* ===================================================== */
/* ================= VIEW BUTTON STYLES ================ */
/* ===================================================== */

.view-button {
  position: relative;
  display: inline-block;
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  z-index: 1;
  overflow: visible;
  background: transparent;
  color: #b464ff;
  text-shadow: 0 0 6px #b464ff;
  transition: all 0.3s ease-in-out;
}

.view-button:hover {
  background: #b464ff;
  color: black;
  text-shadow: none;
  box-shadow:
    0 0 15px #b464ff,
    0 0 40px #b464ff,
    0 0 80px #b464ff;
  transform: scale(1.05);
}

.view-button::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding-top: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #b464ff;
  opacity: 0;
  transform: scaleY(-1);
  pointer-events: none;
  filter: blur(1px);
  text-shadow: 0 0 10px #b464ff;
  transition: opacity 0.3s ease-in-out;
}

.view-button:hover::after {
  opacity: 0.25;
}
/* ===================================================== */
/* ===================== MODAL ========================= */
/* ===================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(10, 0, 19, 0.95);
  backdrop-filter: blur(6px);
}

.modal-content {
  background: #1a002b;
  margin: 10% auto;
  padding: 2rem;
  border: 2px solid var(--neon-pink);
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-cyan);
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content h2 {
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan);
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--neon-cyan);
  background: #0a0013;
  color: #eee;
  font-family: inherit;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}
/* Close Button */
.close-btn {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.8rem;
  color: var(--neon-pink);
  cursor: pointer;
  transition: 0.3s;
}
.close-btn:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* ===================================================== */
/* =================== KEYFRAMES ======================= */
/* ===================================================== */

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
/* ===================================================== */
/* ================= RESPONSIVE NAV ==================== */
/* ===================================================== */

/* Mobile hamburger button (overrides base .menu-btn above) */
.menu-btn {
  display: none; /* hidden on desktop */
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--neon-pink);
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: rgba(10, 0, 19, 0.95);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 20px var(--neon-cyan);
  }

  .nav.active {
    right: 0; /* slide in */
  }

  .nav a {
    margin: 1rem 0;
    font-size: 1.5rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
  }

  .menu-btn {
    display: block; /* visible on mobile */
  }
}
/* ===================================================== */
/* ================= EMAIL POPUP CONF ================== */
/* ===================================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 0, 19, 0.9);
  backdrop-filter: blur(6px);
}

.modal-content {
  background: #1a002b;
  margin: 15% auto;
  padding: 2rem;
  border: 2px solid #ff00ff;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  text-align: center;
  color: #eee;
  font-family: "Courier New", monospace;
  box-shadow: 0 0 20px #ff00ff, 0 0 40px #00eaff;
  position: relative;
}

.modal-content h2 {
  color: #00eaff;
  text-shadow: 0 0 8px #00eaff;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #ff00ff;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #00eaff;
  text-shadow: 0 0 8px #00eaff;
}
/* ===================================================== */
/* ================= LIB MODAL ========================= */
/* ===================================================== */
/* === Base Modal === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(10, 0, 19, 0.92);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

.modal-content {
  background: #1a002b;
  margin: 8% auto;
  padding: 2rem;
  border: 2px solid var(--neon-pink);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  text-align: center;
  color: #eee;
  font-family: "Courier New", monospace;
  box-shadow: 0 0 20px var(--neon-pink), 0 0 40px var(--neon-cyan);
  animation: fadeIn 0.4s ease-in-out;
  position: relative;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 1.8rem;
  color: var(--neon-pink);
  cursor: pointer;
  transition: 0.3s;
}
.close-btn:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px var(--neon-cyan);
}

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

/* === Gallery === */
.gallery-content {
  max-width: 800px;
}
.gallery-wrapper {
  position: relative;
  margin-top: 1.5rem;
}
.gallery-wrapper img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 15px var(--neon-cyan);
  max-height: 70vh;
  object-fit: cover;
}

/* Nav arrows */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: bold;
  background: rgba(26, 0, 43, 0.8);
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: 0.3s;
  user-select: none;
}
.gallery-nav:hover {
  background: var(--neon-pink);
  color: #0a0013;
  box-shadow: 0 0 15px var(--neon-pink);
}
.gallery-nav.left { left: -15px; }
.gallery-nav.right { right: -15px; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    padding: 1.5rem;
  }
  .gallery-nav {
    font-size: 1.5rem;
    padding: 0.3rem 0.6rem;
    top: 55%;
  }
  .gallery-nav.left { left: 5px; }
  .gallery-nav.right { right: 5px; }
}

