/* General & Layout */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #07081A;
  color: #f3f3f3;
}

.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* Hamburger styles */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  overflow: hidden;
  background: transparent;
  border: none;
  cursor: pointer; /* <- Was 'none' */
  padding: 0;
  z-index: 11000;
}


#hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #0ffbd3;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Show hamburger on small screens and hide nav by default */
@media (max-width: 768px) {
  #hamburger {
    display: flex;
  }

  #navbar {
    display: none;
    position: absolute;
    top: 70px; /* adjust based on header height */
    left: 0;
    width: 100%;
    background-color: #07081a;
    box-shadow: 0 2px 10px rgba(0, 255, 211, 0.15);
  }

  #navbar.active {
    display: block;
  }

  #navbar ul {
    flex-direction: column;
    gap: 0;
  }

  #navbar li {
    border-bottom: 1px solid #0ffbd333;
  }

  #navbar li a {
    display: block;
    padding: 15px 20px;
  }
}

/* Hide custom cursor on screens narrower than 768px (mobile/tablet) */
@media (max-width: 768px) {
  #custom-cursor {
    display: none !important;
  }
}

.center-content {
  text-align: center;
}

#site-header {
  position: sticky;      /* keeps header visible at top while scrolling */
  top: 0;
  background-color: #07081a;  /* dark theme background */
  padding: 20px 40px;    /* breathing space around menu */
  box-shadow: 0 2px 10px rgba(0, 255, 211, 0.15);
  z-index: 10000;
}

#navbar ul {
  display: flex;
  gap: 30px;
  list-style: none;
  justify-content: center;  /* center the menu items */
  margin: 0;
  padding: 0;
  align-items: center;
}

#navbar li a {
  text-decoration: none;
  color: #0ffbd3;
  font-weight: 600;
  font-size: 1.1em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
  background: linear-gradient(90deg, #0ffbd3, #00c3b7);
  color: #07081a;
  box-shadow: 0 0 8px #0ffbd3;
}

.full-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero,
#profile {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

#hero.hidden,
#profile.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-60px) scale(0.96);
}

#hero:not(.hidden),
#profile:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#code-background {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: #0a0a14; /* dark space shade */
}


.main-img {
  width: 260px;
  height: 260px;
  border: 4px solid #0ffbd3;
  box-shadow: 0 0 60px #0ffbd366;
  margin-bottom: 18px;
  transition: transform 1s;
  object-fit: cover;
  clip-path: polygon(
    50% 0%, 85% 17%, 100% 50%,
    84% 85%, 50% 100%, 16% 85%,
    0% 50%, 16% 15%
  );
}
/* Remove large bottom margin from the hero section */
#hero {
  margin-bottom: 0;
  padding-bottom: 10px; /* Small padding to separate from next section */
}

/* Remove top margin of the personal-content section */
#personal-content {
  margin-top: 0;
  padding-top: 0;
}

/* Adjust margins on the typed intro so it creates only minimal spacing */
#typing-intro {
  margin: 8px 0 12px 0; /* top 8px, bottom 12px */
  padding: 0;
  white-space: normal;  /* ensure wrapped text */
  overflow: visible;
  line-height: 1.4em;
  max-width: 600px;
  border-right: 3px solid #0ffbd3;
  animation: blink-caret 0.7s step-end infinite;
  font-weight: 500;
  font-size: 1.2em;
  color: #0ffbd3;
}


.main-img:hover {
  transform: zoom(1.1);
  box-shadow: 0 0 80px #0ffbd3;
}
h1 {
  font-size: 3.5em; /* larger text */
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 0;
  margin-bottom: 22px;
}

.scroll-indicator {
  display: block;
  margin-top: 24px;
  .scroll-indicator {
  cursor: pointer;
}  font-size: 2em;
  color: #0ffbd3a3;
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}


.profile-card {
  display: flex;
  align-items: center;
  background: rgba(32,32,48,0.78);
  border-radius: 18px;
  box-shadow: 0 0 30px #0ffbd390;
  padding: 36px;
  gap: 32px;
  max-width: 650px;
  margin: auto;
  animation: fadeIn 1s;
}
.profile-img {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 3px solid #0ffbd3;
  box-shadow: 0 0 28px #0ffbd380;
  margin-right: 20px;
}
.profile-card h2 {
  margin: 2px 0;
  font-size: 2em;
  color: #0ffbd3;
}
.profile-card h3 {
  margin: 0 0 7px;
  color: #ffffffc0;
}
.profile-card p {
  color: #d6e6ee;
}

.content-section {
  max-width: 700px;
  margin: 105px auto 30px;
  padding: 22px 20px 36px;
  background: rgba(32,36,56,0.86);
  border-radius: 14px;
  box-shadow: 0 0 50px #0ffbd315;
  animation: slideIn 1s;
}
.content-section h2 { color: #0ffbd3; letter-spacing: 2px; }
.content-section ul { margin: 0 0 0 20px; padding: 0; }
.content-section li { margin: 8px 0; line-height: 1.7; }
.content-section strong { color: #0ffbd3; }

.hidden {
  display: none;
}

/* Animation keyframes */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(100px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(180deg, #0ffbd3, #00c3b7);
  border: none;
  padding: 14px 18px;
  border-radius: 50%;
  font-size: 26px;
  color: #07081a;
  cursor: pointer;
  box-shadow: 0 0 12px #0ffbd3aa;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 10000;
}

#back-to-top:hover {
  opacity: 1;
}

#back-to-top.show {
  visibility: visible;
  opacity: 0.9;
}



/* Responsive Design */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .main-img {
    width: 180px;
    height: 180px;
  }
  h1 {
    font-size: 2.3em;
  }
  h2#typing-text {
    font-size: 1.3em;
  }
  #navbar ul {
    flex-direction: column;
  }
  #navbar li {
    margin: 8px 0;
  }
  .content-section {
    margin: 90px 15px 30px 15px;
    padding: 20px;
  }
  .profile-card {
    flex-direction: column;
    align-items: center;
  }
  .profile-img {
    margin-bottom: 12px;
  }
}
body, a, button {
  cursor: none; /* hide the default cursor */
}

#custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  margin-left: -18px; /* center the circle on pointer */
  margin-top: -18px;
  border: 2px solid #0ffbd3;
  border-radius: 50%;
  pointer-events: none;
  z-index: 11001;
  transition: transform 0.15s ease;
  box-shadow: 0 0 8px #0ffbd3;
  display: flex;
  align-items: center;
  justify-content: center;
}
#custom-cursor::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #0ffbd3;
  border-radius: 50%;
}
#typing-intro {
  font-weight: 500;
  font-size: 1.2em;
  color: #0ffbd3;
  border-right: 3px solid #0ffbd3;
  animation: blink-caret 0.7s step-end infinite;
  max-width: 600px; /* controls max line width */
  margin-top: 10px;
  padding-bottom: 0;

  white-space: normal; /* enable wrapping */
  overflow: visible;   /* show wrapped lines */
  height: auto;        /* let height adjust dynamically */
  line-height: 1.4em;  /* improve readability */
  word-wrap: break-word; /* wrap long words */
  display: inline-block; /* shrink to content width */
}


@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #0ffbd3; }
}


@media (max-width: 480px) {
  .main-img {
    width: 140px;
    height: 140px;
  }
  h1 {
    font-size: 1.9em;
  }
  h2#typing-text {
    font-size: 1.1em;
  }
}
