html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0a0f17;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto; /* allow vertical scrolling */
}

.section.intro {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* or center if preferred */
  height: 100vh; /* full screen height */
  width: 100vw;  /* full screen width */
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  padding: 0;
}

#triangle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    padding-bottom: 3%;
    width: 100%;
    text-align: left;
    margin-left: 4%;
}

/* Text Styling */
.content h4 {
  font-size: 1.2rem;
  margin: 0px 0px -1.8em 1px;/* Small bottom space */
  color: #ff4ec8;
  line-height: 1.4;
}

.content h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0.2em 0; /* Smaller top margin */
  color: #f8fefe;
}

.content p {
  font-size: 1.3rem;
  margin-top: 0.5em;
  color: #ff4ec8;
  position: relative;
   padding-left: 0.3rem;
}

.typing {
  border-right: 2px solid #ff4ec8;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  color: #ff4ec8;
  font-weight: bold;
  animation: blink 0.7s infinite;
}

.fixed {
  color: #a0cfff;
  font-weight: normal;
}



.page-container {
  position: relative; /* Key: makes .resume-icon absolute to this */
}

.resume-icon {
  position:absolute;
  top: 20px;
  right: 30px;
  background-color: #1a1f29;
  color: #00eaff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
  z-index: 10;
  transition: background 0.3s, transform 0.2s;
}

.resume-icon:hover {
  background-color: #00eaff;
  color: #0a0f17;
  transform: scale(1.05);
}
.social-icons{
    position: absolute;
    right: 20px;
    transform: translateY(-50%);
    display: flex
;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    max-width: 40px;
    z-index: 10;
    margin: 0;
    margin-top: 27vh;
}


.social-icons a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s, filter 0.3s;
  filter: brightness(0) invert(1);
  border-radius: 20%;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px #00eaff);
}


/*2nd Section*/
.outer {
  padding: 2rem 1rem;
  box-sizing: border-box;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* <--- prevent sphere overflow */
}

.about {
  width: 97%;
  min-height: 70%; /* instead of fixed height */
  max-width: 1200px;
  display: flex;
  transform: translateX(-5px);
  flex-wrap: wrap;
  gap: 2rem;
  background-color: rgb(33, 41, 41);
  backdrop-filter: blur(4px);
  border-radius: 1%;
  padding: 2rem 1rem;
  box-sizing: border-box;
  justify-content: center; /* centers when stacked */
  align-items: center;  
  margin: 0 auto;   /* vertically center stacked */
}

.about-one {
  flex: 1 1 300px; /* Grows and shrinks, min 300px */
  min-width: 280px;
  color: #b0cde0;
}

.about h2 {
  font-size: 2rem;
  color: #00eaff;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: left;
  max-width: 100%;
}

.projectslink-button {
display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.2rem;
    color: #00eaff;
    font-weight: 600;
    border: 2px solid #00eaff;
    border-radius: 8px;
    text-decoration: none;
    background-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
}

.projectslink-button:hover {
  transform: scale(1.05);
}

.sphere {
  flex: 1 1 300px;
  min-width: 280px;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transform: translateX(-39px);
}

#sphere-container {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  transform-style: preserve-3d;
  perspective: 1000px;
}


.skill-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  padding: 6px 12px;
  background: rgba(0, 234, 255, 0.15);
  color: #00eaff;
  font-size: 0.95rem;
  border-radius: 8px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  text-align: center;
  transform-origin: center center;
}
.about-button {
    padding: 12px 28px;
    margin: 20px;
    left: -17px;
    position: absolute;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00eaff;
    background: transparent;
    border: 2px solid #00eaff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-button:hover {
  background: #00eaff;
  color: #0a0f17;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}

/*3rd section*/
#projects {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  padding: 5vh 4vw;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding-top: 5vh;
}

.projects {
  width: 100%;
  max-width: 1400px;
  padding: 2vh 2vw;
  background-color: transparent;
  text-align: center;
}

.projects h2 {
  font-size: 2.4rem;
  color: #00eaff;
  margin-bottom: 2rem;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-card {
  background: rgba(0, 234, 255, 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid #00eaff33;
  border-radius: 1rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 300px;
  flex: 1 1 250px;
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.4);
}

.project-card h3 {
  font-size: 1.5rem;
  color: #f8fefe;
  margin-bottom: 1rem;
}

.project-card p {
  font-size: 1rem;
  color: #b0cde0;
  margin-bottom: 1rem;
}

.project-card a {
  padding: 0.6em 1.2em;
  font-weight: bold;
  text-decoration: none;
  color: #00eaff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
  background: darkslategrey;
    border-radius: 1rem;
}

.project-card a:hover {
  border-color: #00eaff;
}
.card-footer {
  display: flex;
  justify-content:space-evenly;
  gap: 10px;
  flex-wrap: nowrap;
  margin-top: 1rem;
}

.hidden {
  display: none;
}

.view-more-btn {
  background: transparent;
  border: none;
  color: #00eaff;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
}

.contact-section {
    text-align: center;
    padding: 33px 20px;
    margin-top: -67px;
    background-color: transparent /* very light teal background */;
}

.contact-section h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color:  #00eaff; /* dark teal */
}

.contact-section p {
  font-size: 18px;
  margin-bottom: 30px;
  color:  #00eaff; /* slightly muted teal */
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.say-hello-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 16px;
  color: #14b8a6; /* teal */
  border: 2px solid #14b8a6;
  background-color: transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.say-hello-btn:hover {
  background-color: #14b8a6;
  color: white;
}
.site-footer {
  background-color:  #003b5b; /* dark teal */
  color: #ffffff;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/*
/* Responsive tweaks */
@media (max-width: 1024px) {
 /* .content {
    padding-right: 40px;
    max-width: 90%;
            right: 252px;
    margin: 0 auto;
  }

  .content h4 {
    right: 19px;
  }

  .social-icons {
    position: relative;
    bottom: 20px;
    right: 20px;
    flex-direction: column;
    gap: 10px;
    padding: 8px 12px;
            left: 840px;
        top: 485px;
  }
  .wrapper {
    height: 45vh;
    padding-top: 30px;
}
.about p {
    align-self: flex-start;
    color: #b0cde0;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 543px;
    text-align: left;
}

  .about {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    padding: 40px 20px;
    height: auto;
    height: 31vh;
  }
    .projects {
    padding: 80px 60px;
    background-color: transparent;
    text-align: left;
    height: 62vh;
    top: -70px;
    position: relative;
}
  .projects-container {
    margin-left: auto;
    justify-content: center;
  }*/
}

@media (max-width: 768px) {
  /*.content {
    top: 154px;
    right: 179px;
  }

  .content h1 {
    font-size: 2.4rem;
  }

  .content h4 {
    font-size: 1rem;
    left: -18px;
  }

  .content p {
    font-size: 1rem;
    position: relative;
    left: 3px;
    align-items: center;
    display: flex;
    width: 159px;
  }
  .social-icons {
        position: relative;
        bottom: 20px;
        right: 20px;
        flex-direction: column;
        gap: 10px;
        padding: 8px 12px;
        left: 622px;
        top: 101px;
    }
        .about {
        margin-left: auto;
        margin-right: auto;
        width: 72%;
        padding: 1px 20px;
        height: 83vh;
    }

  .fixed {
    white-space: nowrap;
  }

  .typing {
    display: inline-block;
    white-space: nowrap;
    text-align: left;
    position: relative;
    left: 3px;
  }
      .contact-section {
        text-align: center;
        margin-top: -104px;
        padding: 38px 20px;
        background-color: transparent; 
    }

  .about h2 {
    font-size: 2rem;
  }

        .about p {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 677px;
    }
  
         #projects {
        top: 55px;
        position: relative;
        height: 975px;
    }

  .projects {
        padding: 71px 20px;
        height: 948px;
    }

  .projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-left: 0;
}

.project-card {
  flex: 0 0 48%;
  box-sizing: border-box;
}


  .projectslink-button{
        position: relative;
        margin: 20px auto;
        display: inline-block;
        top: 2px;
        left: 151px;
    }
  
  .about-button {
    position: static;
    margin: 20px auto;
    display: inline-block;
    top: 15px;
  }

  .social-icons a img {
    width: 24px;
    height: 24px;
  }

  .resume-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

     #sphere-container {
        width: 280px;
        height: 280px;
        top: 497px;
        left: 255px;
    }
        .wrapper {
        height: 833px;
        padding-top: 30px;
    }*/
}

@media (max-width: 600px) {
 /* .content {
    left: -139px;
    padding-right: 20px !important;
    padding-left: 20px !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .content h4{
    position: relative;
        left: -36px;
  }

  .content p{
    position: relative;
        left: 4px;
  }



  .social-icons {
    position: relative !important;
    left: 413px;
    top: 4px;
    flex-direction: column !important;
    gap: 12px !important;
  }

  .about {
    width: 68% !important;
    margin-top: 5px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 1px 20px !important;
    height: 115vh !important;
  }

  .about-button {
    position: relative !important;
    left: -17px!important;
    top: -10px;
    margin: 20px auto !important;
    display: inline-block !important;
  }

  .projectslink-button {
    position: relative !important;
    left: 86px !important;
    top: -10px;
    margin: 20px auto !important;
    display: inline-block !important;
  }

  .projects-container {
    margin-left: 0 !important;
    justify-content: center !important;
    padding: 0 10px !important;
  }

  .project-card {
    width: 79% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  #sphere-container {
    position: absolute;
    top: 71%;
        left: 41%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    max-width: 400px;
    max-height: 400px;
    perspective: 1000px;
    transform-style: preserve-3d;
  }

  .contact-section {
    padding: 9px 39px;
    margin-top: 14px;
  }

  .wrapper {
    height: 141vh;
    margin-top: 28px;
  }*/
}

@media (max-width: 480px) {
     /* .about-button {
        position: relative !important;
        left: 7px !important;
        top: -14px;
        margin: 20px auto !important;
        display: inline-block !important;
        padding: 12px 28px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #00eaff;
        background: transparent;
        border: 2px solid #00eaff;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }
        .about {
        width: 72% !important;
        margin-top: 5px;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 1px 20px !important;
        height: 115vh !important;
    }
    .wrapper{ height: 115vh;
        margin-top: 28px;
    }
  .content h1 {
    font-size: 1.8rem;
    margin-left: 9px;
  }

  .content h4 {
    font-size: 0.9rem;
    left: -14px;
    position: relative;
  }

  .content p {
    font-size: 0.9rem;
    left: 18px;
  }
      .social-icons {
        position: relative !important;
        left: 356px;
        top: 4px;
        flex-direction: column !important;
        gap: 12px !important;
        display: flex;
    }
        .projectslink-button {
        position: relative !important;
        left: 45px !important;
        top: -10px;
        margin: 20px auto !important;
        display: inline-block !important;
    }

         .projects-container {
        margin-left: 0 !important;
        justify-content: center !important;
        padding: 0 10px !important;
        display: flex
;
        gap: 15px;
    }
    #projects {
        top: 55px;
        position: relative;
        height: 1391px;
    }
       .projects{
             padding: 71px 20px;
        height: 1315px;
    }
          .contact-section {
        padding: 9px 39px;
        margin-top: -41px;
    }

  .project-card {
    width: 79% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .say-hello-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .contact-section h2 {
    font-size: 24px;
  }

  .contact-section p {
    font-size: 16px;
  }

      #sphere-container {
        width: 200px;
        height: 200px;
        position: absolute;
        top: 75%;
        left: 39%;
        transform: translate(-50%, -50%);
        max-width: 327px;
        max-height: 400px;
        perspective: 1300px;
        transform-style: preserve-3d;
    }*/
}

@media (max-width: 411px) {
     /* .content {
        left: -93px;
        padding-right: 20px !important;
        padding-left: 20px !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
      .about-button {
        position: relative !important;
        left: 7px !important;
        top: -14px;
        margin: 20px auto !important;
        display: inline-block !important;
        padding: 12px 28px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #00eaff;
        background: transparent;
        border: 2px solid #00eaff;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }
        .about {
        width: 72% !important;
        margin-top: 5px;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 1px 20px !important;
        height: 115vh !important;
    }
    .wrapper{ height: 115vh;
        margin-top: 28px;
    }
  .content h1 {
    font-size: 1.8rem;
    margin-left: 9px;
  }

  .content h4 {
    font-size: 0.9rem;
    left: -14px;
    position: relative;
  }

  .content p {
    font-size: 0.9rem;
    left: 18px;
  }
      .social-icons {
        position: relative !important;
        left: 356px;
        top: 4px;
        flex-direction: column !important;
        gap: 12px !important;
        display: flex;
    }
        .projectslink-button {
        position: relative !important;
        left: 45px !important;
        top: -10px;
        margin: 20px auto !important;
        display: inline-block !important;
    }

         .projects-container {
        margin-left: 0 !important;
        justify-content: center !important;
        padding: 0 10px !important;
        display: flex
;
        gap: 15px;
    }
    #projects {
        top: 55px;
        position: relative;
        height: 1391px;
    }
       .projects{
             padding: 71px 20px;
        height: 1315px;
    }
          .contact-section {
        padding: 9px 39px;
        margin-top: -41px;
    }

  .project-card {
    width: 79% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
  }

  .say-hello-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .contact-section h2 {
    font-size: 24px;
  }

  .contact-section p {
    font-size: 16px;
  }

      #sphere-container {
        width: 200px;
        height: 200px;
        position: absolute;
        top: 75%;
        left: 39%;
        transform: translate(-50%, -50%);
        max-width: 327px;
        max-height: 400px;
        perspective: 1300px;
        transform-style: preserve-3d;
    }*/
}


/* Ultra-small phones (e.g. 320px to 360px wide) */
@media (max-width: 360px) {
      /*  .content{
          left: -80px;
        padding-right: 20px !important;
        padding-left: 20px !important;
        max-width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
     .content h1 {
        position: relative;
        font-size: 1.6rem;
        left: -1px;
    }

  .content h4{
    font-size: 0.8rem;
  }
  .content p {
    font-size: 0.8rem;
    left: 24px;
  }
      .about-button {
        position: relative !important;
        left: 14px !important;
        top: -14px;
        margin: 20px auto !important;
        display: inline-block !important;
        padding: 12px 28px;
        font-size: 1.1rem;
        font-weight: 600;
        color: #00eaff;
        background: transparent;
        border: 2px solid #00eaff;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .projectslink-button {
        position: relative !important;
        left: 43px !important;
        top: -10px;
        margin: 20px auto !important;
        display: inline-block !important;
    }
        .about h2 {
        font-size: 2rem;
        position: relative;
        left: -11px;
    }
          .about{
              width: 89% !important;
        margin-top: 5px;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 1px 20px !important;
        height: 120vh !important;
    }

  .project-card {
    width: 95% !important;
  }

  .social-icons {
    left: 145% !important;
  }

  #sphere-container {
            margin-top: -3px;
    width: 160px;
    height: 160px;
  }
          .project-card {
        left: 11px;
        position: relative;
        flex: 0 0 48%;
        box-sizing:unset;
    }
        .projects-container {
        margin-left: -36px !important;
        justify-content: center !important;
        padding: 0 10px !important;
        display: flex
;
        gap: 15px;
        width: 355px;
    }
        .projects {
        padding: 71px 20px;
        height: 2148px;
    }*/
}










