@import url('https://fonts.googleapis.com/css2?family=Fira+Code&family=Inter&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: black;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Twinkling stars */
.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    width: 4px;
    height: 4px;
    opacity: 0;
    animation: twinkle 2s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


/* Profile Section */
.profile {
    background-color: #0f758a;
    padding: 50px 0 20px;
    text-align: center;
    position: relative;
    height: 15vw;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    transition: opacity 0.5s ease;
}

.profile-pic {
  width: 20vw;
  height: 20vw;
  background-image: url('images/profile.jpg');
  background-size: cover;        /* Ensures the image covers the circle */
  background-position: center;   /* Centers the image inside the circle */
  background-repeat: no-repeat;  /* Prevents image repetition */
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid black;
  box-shadow: 0 0 15px #00ffff;  /* Optional: glow effect */
  bottom: -70%;
}


.profile-text {
    margin-top: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    font-weight: bold;
    margin-bottom: 5vw;
}

.name {
    font-size: 3rem;
    color: white;
    margin-left: 5vw;
    filter: drop-shadow(0 0 3px cyan);
    transition: transform 0.2s ease;

}

.name:hover
{
    transform: scale(1.2);
}

.icons {
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 35%;
}

a
{
    color: white;
    text-decoration: none;
}

.icons i {
    padding: 8px;
    border-radius: 10px;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 0 3px cyan);
}

.icons i:hover {
    transform: scale(1.2);
}

/* Scroll Navigation Bar */
.scroll-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    border-bottom-right-radius: 30px;
    border-bottom-left-radius: 30px;
    background-color: #0f758a;
    padding: 15px 20px;
    text-align: center;
    transition: top 0.3s ease-in-out;
    border-bottom-right-radius: 30px;
    color: white;
    z-index: 9999;
}


.nav-links
{
    width: 60%;
    margin-right: 20px;
}

.scroll-nav ul {
    list-style: none;
    margin: 0;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    gap: 2.5vw;
}

.scroll-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s;
    transition: transform 0.2s ease;
    font-family: 'Fira Code', monospace;
}

.scroll-nav ul li a:hover {
    font-size: small;
    color: #00ffff;
}

.top-name
{
  transition: transform 0.2s ease;
}

.top-name:hover
{
  transform: scale(1.2);
}
section, 
div[id] {
    scroll-margin-top: 50px;
}

footer {
  border-top: #0f758a 1px solid;
  color: #00ffff;
  text-align: center;
  padding: 5px;
  font-size: 5px;
  margin-top: 2rem;
}

@media screen and (max-width: 768px) {
  .profile {
    height: auto;
    padding: 30px 0 40px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
  }

  .profile-pic {
    width: 35vw;
    height: 35vw;
    bottom: -50px;
  }

  .profile-text {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  .name {
    font-size: 2rem;
    margin-left: 0;
    margin-bottom: 10px;
  }

  .icons {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.5rem;
  }

  .scroll-nav {
    display: none;
  }

  .nav-links {
    display: none;
  }

  footer {
    font-size: 10px;
    padding: 10px 5px;
  }
}


/* About Section -- Terminal */
.about{
    background-color: black;
    color: #66fcf1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Fira Code', monospace;
    padding-top: 50px;
}

.terminal {
    background-color: #111;
    border: 5px double #66fcf1;
    border-radius: 20px;
    width: 75%;
    box-shadow: 0 0 15px #00ffcc;
}

.title {
    font-weight: bold;
    background-color: #66fcf1;
    color: black;
    padding: 10px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    justify-content: space-between;
}

.code pre {
    white-space: pre-wrap;
    font-size: 16px;
    line-height: 1.7;
    padding: 10px;
}

/* Resume Button */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: black
}

.resume-btn:hover {
  transform: translateY(-2px);
}

/* Button to top */

#scrollTopBtn {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 22px;
  background-color: #00ffff;
  color: black;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  transform: scale(1.1);
  background-color: #00cccc;
}

.projects , .edu , .skills
{   
    background-color: black;
    color: #66fcf1;
    font-family: 'Fira Code', monospace;
    padding-top: 50px;
}
.sections
{ 
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 0 5px cyan);
    text-align: center;
}

@media screen and (max-width: 768px) {
  .about {
    flex-direction: column;
    padding: 30px 10px 0;
    text-align: center;
  }

  .terminal {
    width: 95%;
    border-width: 3px;
    border-radius: 12px;
  }

  .title {
    font-size: 0.9rem;
    flex-direction: column;
    align-items: center;
    padding: 8px;
  }

  .code pre {
    font-size: 14px;
    line-height: 1.5;
    padding: 8px;
  }

  .resume-btn {
    flex-direction: row;
    justify-content: center;
    font-size: 0.9rem;
    margin-top: 10px;
  }

  #scrollTopBtn {
    bottom: 20px;
    right: 20px;
    font-size: 18px;
    padding: 8px 12px;
  }

  .projects, .edu, .skills {
    padding: 30px 10px 0;
  }

  .sections {
    font-size: 2rem;
    padding: 0 10px;
  }
}


/* Project Section */
.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 25rem;
}

.arrow {
  font-size: 22px;
  background-color: #00ffff;
  color: black;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
  50% { box-shadow: 0 0 20px #00ffff, 0 0 30px #00ffff; }
  100% { box-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff; }
}


.arrow:hover {
  transform: scale(1.1);
  background-color: #00cccc;
}

.carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 75%;
  height: 30rem;
  perspective: 2000px;
}

.card {
  position: absolute;
  width: 40%;
  height: fit-content;
  background: black;
  border: 4px solid #66fcf1;
  box-shadow: 0 0 15px #00ffcc;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  opacity: 0;
  pointer-events: none;
  display: block;
  align-items: center;
  justify-content: center;
  color: white;
}

.card-header {
    font-weight: bold;
    background-color: #66fcf1;
    color: black;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-image {
  height: fit-content;
  margin: 10px 0;
  border: 4px solid #aee4f8;

}

.card-desc {
  font-style: italic;
  font-size: 0.8rem;
}

.card-link {
  color: #0f758a;
  font-weight: bold;
  text-decoration: none;
  transform: translateX(0) scale(1.1);
}

.card-link:hover
{
  transform: scale(1.15);
}

/* Positioning the visible cards */
.card.active {
  transform: translateX(0) scale(1.1);
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.card:hover {
  transform: scale(1.15) !important;
  box-shadow: 0 0 35px cyan;
}

.card.left {
  transform: translateX(-300px) rotateY(30deg) scale(0.9);
  z-index: 2;
  opacity: 0.7;
}
.card.right {
  transform: translateX(300px) rotateY(-30deg) scale(0.9);
  z-index: 2;
  opacity: 0.7;
}

@media screen and (max-width: 768px) {
  .carousel-wrapper {
    flex-direction: column;
    height: auto;
    padding: 20px 10px;
  }

  .arrow {
    font-size: 18px;
    padding: 8px 10px;
    margin: 10px;
  }

  .carousel {
    flex-direction: column;
    width: 100%;
    height: auto;
  }
.card {
  position: relative;
  width: 90%;
  height: auto;
  margin: 15px auto;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  box-shadow: 0 0 10px #00ffcc;
  transition: transform 0 ease, opacity 0 ease, filter 0 ease;
  filter: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
}

.card.left,
.card.right,
.card.active {
  transform: translateX(0) scale(1.1);
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  box-shadow: none;
}


  .card:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 25px cyan;
  }

  .card-header {
    font-size: 1rem;
    padding: 8px;
  }

  .card-desc {
    font-size: 0.75rem;
  }

  .card-link {
    font-size: 0.85rem;
  }
  .arrow{
    display: none;
  }
}


/* Education section */
:root {
  font-size: 22px; /* Base rem size */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Container */
.container {
  max-width: 43.75rem; /* 700px */
  margin: 3rem auto;
  padding: 0 1.5rem 3rem;
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.timeline-line-dotted {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  border-top: 0.125rem dotted #0ff;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.3;
}

.timeline-line-progress {
  position: absolute;
  top: 50%;
  left: 8%;
  height: 0.125rem;
  background-color: cyan;
  border-radius: 0.0625rem;
  transform: translateY(-50%);
  z-index: 2;
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 0.9375rem cyan;
}

/* Timeline Items */
.timeline-item {
  position: relative;
  z-index: 3;
  flex: 1 1 0;
  min-width: 6rem;
  max-width: 6rem;
  height: 4.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

/* Circle */
.circle {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: black;
  border: 0.1875rem solid cyan;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 0.5rem;
  transition: all 0.4s ease;
  box-shadow: 0 0 1.25rem cyan;
  overflow: hidden;
  font-weight: bold;
}

.circle::before {
  content: "";
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  right: -0.75rem;
  bottom: -0.75rem;
  border-radius: 50%;
  background: cyan;
  filter: blur(1.25rem);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-item.active .circle::before {
  opacity: 1;
}

.timeline-item:focus {
  outline: none;
}

/* Active Ring Animation */
.circle.active-ring::after {
  content: "";
  position: absolute;
  top: -0.625rem;
  left: -0.625rem;
  right: -0.625rem;
  bottom: -0.625rem;
  border: 0.125rem solid cyan;
  border-radius: 50%;
  border-top-color: transparent;
  border-right-color: transparent;
  animation: rotate-ring 2s linear infinite;
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Text inside Circle */
.circle-text {
  font-weight: 600;
  font-size: 0.875rem;
  color: black;
  text-align: center;
  white-space: normal;
  padding: 0.25rem;
  z-index: 2;
  transition: all 0.3s ease;
  user-select: none;
  text-shadow: 0 0 0.3125rem #0ff, 0 0 0.625rem #0ff;
}

.timeline-item.active .circle-text {
  color: cyan;
}

/* Nav Buttons */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0.75rem 0 2rem;
}

button.nav-btn {
  all: unset;
  cursor: pointer;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background-color: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 0.75rem cyan;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

button.nav-btn:hover {
  transform: scale(1.1);
  background-color: rgba(0, 255, 255, 0.2);
}

button.nav-btn:focus {
  outline: 0.125rem solid cyan;
}

button.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.material-icons {
  font-size: 1.75rem;
  color: cyan;
}

/* Content Box */
.content-box {
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
  color: cyan;
  line-height: 1.5;
  border: 0.125rem solid cyan;
  box-shadow: 0 0 0.9375rem cyan;
  white-space: pre-line;
}

/* Responsive */
@media (max-width: 460px) {
  .container {
    padding: 0 1rem;
  }

  .timeline-item {
    max-width: 5rem;
    min-width: 5rem;
    height: 4.25rem;
  }

  .circle {
    width: 4rem;
    height: 4rem;
  }

  .circle-text {
    font-size: 0.8125rem;
  }

  button.nav-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .material-icons {
    font-size: 1.5rem;
  }

  .content-box {
    font-size: 1rem;
    padding: 1.25rem 1rem;
  }
}

/* Achievements bar section*/
.achievements {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.notice-board {
  width: 100%;
  max-width: 1300px;
  border: 4px double #66fcf1;
  border-radius: 5px;
  margin-left: 0;
  height: auto;
}

@media screen and (max-width: 768px) {
  .notice-board {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.pin{
  color: transparent;
}

.note {
  background: white;
  border: 1px solid #ddd;
  padding: 1px;
  border-radius: 8px;
  white-space: pre-line;
  transform: rotate(var(--rotate));
  transition: transform 0.2s;
  position: relative;
  width: fit-content;
}

.note-content
{
  padding: 16px;
}

.note:hover {
  transform: scale(1.02) rotate(var(--rotate));
  z-index: 1;
}

.note img { 
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.note-text {
  font-size: 0.9rem;
  color: #444;
  text-align: left;
}

.notice-title
{
  text-align: center;
  margin-top: 0;
  background-color: #00ffff;
  font-weight: bold;
}

.graph-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 20rem;
  margin-top: 40px;
  gap: 3rem;
  position: relative;
  width: 50%;
}

.bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border-bottom: 2px solid cyan;
}

.bar {
  width: 60px;
  background: cyan;
  border-radius: 10px 10px 0 0;
  transition: transform 0.2s;
  position: relative;
}

.bar:hover {
  transform: scale(1.05);
}

.hover-text {
  position: absolute;
  top: -30px;
  font-size: 0.75rem;
  background-color: #222;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.bar-wrapper:hover .hover-text {
  opacity: 1;
}

.label {
  margin-top: 10px;
  font-size: 0.9rem;
  color: white;
  text-align: center;
}

.info {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #aaa;
  max-width: 80px;
  word-wrap: break-word;
  text-align: center;
}

/* Skill Section*/
/* Filter Buttons */
.filters {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-left: 40px;
}

.filters button {
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid cyan;
  border-radius: 6px;
  background: transparent;
  color: cyan;
  cursor: pointer;
  transition: 0.3s ease;
}

.filters button:hover {
  background-color: cyan;
  color: black;
}

@media screen and (max-width: 768px) {
  .achievements {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .notice-board, .graph-container {
    width: 90%;
    margin: 0 auto;
  }

  .notice-board {
    height: auto;
    padding: 10px;
  }

  .board {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 10px;
  }

  .note img {
    height: 100px;
  }

  .note-text {
    font-size: 0.85rem;
  }

  .graph-container {
    flex-wrap: wrap;
    height: auto;
    padding: 20px 0;
  }

  .bar-wrapper {
    width: 60px;
    margin-bottom: 20px;
  }

  .label {
    font-size: 0.8rem;
  }

  .info {
    font-size: 0.75rem;
  }

  .filters {
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px 10px 0;
    gap: 8px;
  }

  .filters button {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}

/* Skill & Certificate Cards */
.skill-card {
  background: rgba(255, 255, 255, 0.05);
  color: cyan;
  border: 1px solid cyan;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
  padding: 16px;
  width: 180px;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(6px);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px cyan;
}

/* Skill Bar */
.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  margin-top: 10px;
}

.skill-fill {
  height: 8px;
  border-radius: 4px;
  background: cyan;
}

/* Certificate Image */
.certificate-box img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid cyan;
  margin-bottom: 10px;
}

/* Responsive Grid (optional if needed) */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px cyan;
  transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
  .grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 10px;
  }

  .skill-card {
    width: 90%;
    max-width: 300px;
    padding: 12px;
  }

  .certificate-box img {
    width: 90%;
    max-width: 300px;
  }

  .modal img {
    max-width: 95%;
    max-height: 70vh;
  }
}
.what-i-do {
  background-color: black;
  color: #66fcf1;
  font-family: 'Fira Code', monospace;
  padding: 50px 40px 0;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.what-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid cyan;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.what-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px cyan;
}

.what-card h3 {
  margin-top: 0;
  color: #00ffff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.what-card p {
  font-size: 0.85rem;
  color: #e0ffff;
}

@media screen and (max-width: 768px) {
  .what-i-do {
    padding: 30px 10px 0;
  }
}
