/* styles.css - Professional Portfolio for Manvir Singh */
/* Refined color palette: deep navy, steel blue, warm neutrals */

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #1a2c3e;  /* Darker navy background */
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: #e8f0f8;  /* Lighter text for dark backgrounds */
  line-height: 1.6;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.8rem;
  background: rgba(30, 45, 60, 0.85);  /* Darker semi-transparent background */
  backdrop-filter: blur(4px);
  border-radius: 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- HEADER ---------- */
#pageheader {
  background: linear-gradient(145deg, #0a1a28 0%, #1a3347 70%, #23495f 100%);
  padding: 0.8rem 0.2rem 0.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

#pageheader .container {
  background: rgba(10, 25, 35, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem 2rem;
  border-radius: 40px;
  min-height: auto;
}

#logo {
  width: 6.5rem;
  height: 6.5rem;
  background: url(Photoshop/Logo/M.SLogo.png) no-repeat center;
  background-size: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: transform 3s ease;
}

#logo:hover {
  transform: scale(1.02);
  transform: rotate(360deg) ;
}

#pageheader nav {
  min-width: 85%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.3rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(20, 35, 50, 0.5);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#pageheader nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 40px;
  transition: all 0.15s ease;
  font-size: 1.15rem;
}

#pageheader nav a:hover {
  background: rgba(60, 100, 140, 0.4);
  color: #ffffff;
}

#pipes {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

/* ---------- MEDIA / HERO ---------- */
#media {
  background: linear-gradient(115deg, #0f1e2b, #1a3443);
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url("Images/Heroimagehorse.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

#media::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 30, 0.4);  /* Dark overlay for better text contrast */
}

#media .container {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  width: 100%;
  position: relative;
  z-index: 1;
}

#hero-content {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#hero-content h1 {
  color: #ffffff;
  font-size: 3.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.2rem;
  padding: 0.6rem 1.2rem;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#hero-content h2 {
  font-size: 2rem;
  font-weight: 350;
  color: #ffffff;
  margin: 0.4rem 0;
  padding: 0.4rem 1rem;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

#hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 1.2rem auto 2rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  background: #2c5778;
  color: #ffffff;
  padding: 0.9rem 2.6rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn:hover {
  background: #346f96;
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ---------- MAIN CONTENT ---------- */
#pagecontent {
  background: #1e3347;
  padding: 2.5rem 0;
}

#pagecontent .container {
  background: rgba(30, 45, 60, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

#pagecontent h1 {
  color: #ffffff;
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#pagecontent h2 {
  color: #b8d4f0;
  font-weight: 400;
  border-bottom: 2px solid #2f4960;
  padding-bottom: 0.6rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

blockquote {
  border-left: 6px solid #3c6e94;
  background: #1f3447;
  padding: 1.6rem 2.4rem;
  margin: 2.8rem auto;
  max-width: 850px;
  font-size: 1.5rem;
  font-weight: 380;
  font-style: italic;
  color: #e0edff;
  border-radius: 0 36px 36px 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

blockquote + span {
  display: block;
  text-align: right;
  max-width: 850px;
  margin: -1.5rem auto 2rem;
  font-weight: 500;
  color: #a0c0e0;
  padding-right: 2rem;
  font-size: 1.2rem;
}

.portfolio-paragraph, #portofoliparagraph {
  background: #1f3548;
  padding: 1.5rem 2rem;
  border-radius: 24px;
  margin: 1.5rem 0;
  border-left: 4px solid #3c6e94;
  font-size: 1.08rem;
  color: #e0ecfa;
  text-indent: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---------- CAREER & SEMESTER SECTIONS ---------- */
#career {
  background: #1a2d3e;
  padding: 2.5rem 0;
}

#semester1 {
  background: #1c3144;
  padding: 2.5rem 0;
}

#semester2 {
  background: #1f3549;
  padding: 2.5rem 0;
}

#career .container,
#semester1 .container,
#semester2 .container {
  background: rgba(25, 40, 55, 0.95);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

#career h2,
#semester1 h2,
#semester2 h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#career .container ul,
#semester1 .container ul,
#semester2 .container ul {
  list-style: disc inside;
  display: block;
  padding-left: 1.5rem;
  margin: 1.5rem 0 0.5rem;
}

.container ul li {
  background: #1f3549;
  padding: 0.7rem 1.8rem;
  border-radius: 60px;
  font-weight: 450;
  border: 1px solid rgba(70, 130, 180, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.15s ease;
  color: #e0ecfa;
  margin-bottom: 0.5rem;
}

.container ul li:hover {
  border-color: #3e7eb0;
  background: #254e6e;
  transform: translateX(3px);
}

.container ul a {
  text-decoration: none;
  color: #a0c9ff;
  font-weight: 500;
}

.container ul a:hover {
  color: #ffffff;
}

/* ---------- FOOTERS ---------- */
#pagefooter {
  background: #152b3c;
  padding: 2rem 0;
}

#aifooter {
  background: #132635;
  padding: 1.8rem 0;
}

#subfooter {
  background: #102231;
  padding: 2rem 0;
}

#pagefooter nav,
#aifooter nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: center;
  align-items: center;
}

#pagefooter nav a,
#aifooter nav a {
  color: #b0d0f0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
  padding: 0.2rem 0;
}

#pagefooter nav a:hover,
#aifooter nav a:hover {
  border-bottom-color: #5b9bd5;
  color: #ffffff;
}

#subfooter .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

#subfooter p {
  color: #c0dcff;
  font-weight: 450;
}

.audio-container audio {
  width: 280px;
  border-radius: 40px;
  opacity: 0.9;
  background: rgba(30, 50, 70, 0.6);
}

/* ---------- AI CHAT BUBBLE & WINDOW ---------- */
#ai-bubble {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 62px;
  height: 62px;
  background: #1e4b6e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#ai-bubble:hover {
  transform: scale(1.08);
  background: #256792;
}

#ai-window {
  position: fixed;
  bottom: 100px;
  right: 25px;
  width: 350px;
  max-width: 85vw;
  height: 500px;
  background: #1a2f42;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

#ai-window.hidden {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  pointer-events: none;
}

.ai-header {
  background: #0d2638;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.ai-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #132433;
}

.msg {
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  max-width: 80%;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: slideUp 0.3s ease-out forwards;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-msg {
  align-self: flex-end;
  background: #1e4b6e;
  color: white;
  border-bottom-right-radius: 4px;
}

.bot-msg {
  align-self: flex-start;
  background: #1f374e;
  color: #e0ecfa;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#try-section {
  padding: 0.6rem 1rem;
  background: #0e2537;
  border-top: 1px solid #1a3a52;
  border-bottom: 1px solid #1a3a52;
  font-size: 0.85rem;
  color: #9fc9ff;
  text-align: left;
}

.ai-input-area {
  padding: 0.8rem;
  border-top: 1px solid #1e3a4f;
  display: flex;
  gap: 8px;
  background: #0f2639;
}

.ai-input-area input {
  flex: 1;
  border: 1px solid #1f405a;
  padding: 0.7rem 1.2rem;
  background: #1b3349;
  border-radius: 40px;
  outline: none;
  font-size: 0.95rem;
  color: #ffffff;
}

.ai-input-area input:focus {
  border-color: #3a7bb5;
  background: #1f3d58;
}

.ai-input-area input::placeholder {
  color: #7f9bbf;
}

.ai-input-area button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: #1e4b6e;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-input-area button:hover {
  background: #2c608a;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-dots .dot {
  width: 8px;
  height: 8px;
  background: #7f9bbf;
  border-radius: 50%;
  animation: typingPulse 1.2s infinite;
}

.typing-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingPulse {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 999px) {
  .container {
    margin: 0 1rem;
    padding: 1.5rem;
  }

  #pageheader .container {
    flex-direction: column;
    gap: 1rem;
  }

  #pageheader nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #pageheader nav a {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  #pipes {
    display: none;
  }

  #hero-content h1 {
    font-size: 2.8rem;
  }

  #hero-content h2 {
    font-size: 1.6rem;
  }

  blockquote {
    width: 95%;
    font-size: 1.2rem;
    padding: 1.2rem;
  }

  blockquote + span {
    width: 95%;
  }

  #mediabtn {
    display: inline-block;
  }
}

@media (min-width: 1000px) {
  #pipes {
    display: inline;
  }

  #mediabtn {
    display: inline-block;
  }
}