* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: Angerstyles;
  src: url(./Assets/AngerStyles.ttf);
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
}

/* Navigation Styles */
.navbar-custom {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.nav-link {
  color: #ffffff !important;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #00ff88 !important;
}

/* Section Styles */
.section {
  min-height: 100vh;
  padding: 80px 0;
  position: relative;
}

.section h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #ffffff;
  text-align: center;
}

/* Home Section */
#home {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  min-height: 100vh;
  background: rgba(0, 0, 0, 0.3);
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
}

.home-text h2 {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
  text-align: left;
}

.home-text h1 {
  font-family: "Quicksand", sans-serif;
  font-size: 3.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.character-text {
  font-size: 2rem;
  color: rgb(13, 255, 0);
  font-family: "Courier New", monospace;
  margin: 2rem 0;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.3s ease;
}

.char.animate {
  opacity: 1;
  transform: translateX(0);
}

.home-text p {
  font-size: 1.1rem;
  color: #e7e7e7;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: justify;
}

.home-image img {
  width: 100%;
  max-width: 500px;
  height: 500px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(13, 255, 0, 0.3);
}

/* About Section */
#about {
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #e7e7e7;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-item i {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

/* Tech Stack Section */
#tech-stack {
  background: rgba(10, 10, 10, 0.9);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 1rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: scale(1.05);
  border-color: #00ff88;
}

.tech-item i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.tech-item h4 {
  color: #ffffff;
  font-size: 1.1rem;
}

/* Projects Section */
#projects {
  background: rgba(5, 5, 5, 0.9);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  height: 200px;
  background: linear-gradient(45deg, #00ff88, #0066ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}


.project-image img{
  width: 350px;
}

.project-content {
  padding: 2rem;
}

.project-content h4 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  color: #e7e7e7;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-links a {
  color: #00ff88;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 500;
}

.project-links a:hover {
  text-decoration: underline;
}



/* Certificates Section */

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.certificate-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem 0.5rem;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.certificate-item:hover {
  transform: scale(1.05);
  border-color: #00ff88;
}

.certificate-item img {
  font-size: 4rem;
  margin-bottom: 1rem;
  width: 400px;
}

.certificate-item h4 {
  color: #ffffff;
  font-size: 1.1rem;
}



/* Contact Section */
#contact {
  background: rgba(0, 0, 0, 0.9);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item i {
  font-size: 3rem;
  color: #00ff88;
  margin-bottom: 1rem;
}

.contact-item h4 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-item p {
  color: #e7e7e7;
}

.contact-item a {
  color: #00ff88;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Button Styles */
.btn-custom {
  background: linear-gradient(45deg, #00ff88, #0066ff);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
  color: white;
}

/* Background Animation */
.bg {
  background: #151515d4 url("/Assets/bg.jpg") no-repeat;
  background-size: 100px 100px;
  position: fixed;
  background-size: cover; /* stretches image to fill */ 
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
}



/* Star field animation */
@keyframes sf-fly-by-1 {
  from {
    transform: translateZ(-600px);
    opacity: 0.5;
  }
  to {
    transform: translateZ(0);
    opacity: 0.5;
  }
}

@keyframes sf-fly-by-2 {
  from {
    transform: translateZ(-1200px);
    opacity: 0.5;
  }
  to {
    transform: translateZ(-600px);
    opacity: 0.5;
  }
}

@keyframes sf-fly-by-3 {
  from {
    transform: translateZ(-1800px);
    opacity: 0.5;
  }
  to {
    transform: translateZ(-1200px);
    opacity: 0.5;
  }
}

@keyframes sf-fly-by-4 {
  from {
    transform: translateZ(-100px);
    opacity: 0.5;
  }
  to {
    transform: translateZ(-1900px);
    opacity: 0.5;
  }
}

@keyframes sf-fly-by-5 {
  from {
    transform: translateZ(-2550px);
    opacity: 0.5;
  }
  to {
    transform: translateZ(-1260px);
    opacity: 0.5;
  }
}

@keyframes sf-fly-by-6 {
  from {
    transform: translateZ(-660px);
    opacity: 0.5;
  }
  to {
    transform: translateZ(-1770px);
    opacity: 0.5;
  }
}

.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 600px;
  -webkit-perspective: 600px;
  z-index: -2;
}

.star-field .layer {
  box-shadow: -411px -476px #cccccc, 777px -407px #d4d4d4, -387px -477px #fcfcfc,
    -91px -235px #d4d4d4, 491px -460px #f7f7f7, 892px -128px #f7f7f7,
    758px -277px #ededed, 596px 378px #cccccc, 647px 423px whitesmoke,
    183px 389px #c7c7c7, 524px -237px #f0f0f0, 679px -535px #e3e3e3;
  transform-style: preserve-3d;
  position: absolute;
  top: 50%;
  left: 50%;
  height: 4px;
  width: 4px;
  border-radius: 2px;
}

.star-field .layer:nth-child(1) {
  animation: sf-fly-by-1 5s linear infinite;
}

.star-field .layer:nth-child(2) {
  animation: sf-fly-by-2 5s linear infinite;
}

.star-field .layer:nth-child(3) {
  animation: sf-fly-by-3 5s linear infinite;
}
.star-field .layer:nth-child(4) {
  animation: sf-fly-by-4 5s linear infinite;
}
.star-field .layer:nth-child(5) {
  animation: sf-fly-by-5 5s linear infinite;
}
.star-field .layer:nth-child(6) {
  animation: sf-fly-by-6 5s linear infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .navbar-toggler {
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    z-index: 1050 ;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .offcanvas {
    width: 300px !important;
    height: 500px !important;
    z-index: 9999 !important;
    background: rgba(0, 0, 0, 0.95) !important;
  }
  .section {
    padding: 40px 15px;
    min-height: 100vh;
  }

  .section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .home-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 0 1rem;
    max-width: 100%;
  }

  .home-text {
    order: 2;
  }

  .home-text h2 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  #home > div > div > div.home-text > p {
    text-align: justify;
  }

  .home-text h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .character-text {
    font-size: 1.2rem;
    margin: 1rem 0;
    text-align: center;
  }

  .home-text p {
    font-size: 1rem;
    text-align: center;
    padding: 0 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .home-image {
    order: 1;
    display: flex;
    justify-content: center;
    margin-top: 80px;
  }

  .home-image img {
    width: 250px;
    height: 250px;
    max-width: 80vw;
    max-height: 80vw;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .project-card {
    margin-bottom: 1rem;
  }

  .project-image img {
    width: 250px;
  }

  .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
  }

  .tech-item {
    padding: 1.5rem 0.5rem;
  }

  .tech-item i {
    font-size: 2.5rem;
  }

  .tech-item h4 {
    font-size: 0.9rem;
  }


.certificate-item img {
  width: 250px ;
}

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .about-content {
    padding: 0 1rem;
  }

  .about-content p {
    font-size: 1rem;
    text-align: center;
    text-align: justify;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .contact-content {
    padding: 0 1rem;
  }

  .contact-content p {
    font-size: 1rem;
    text-align: center;
  }

  .navbar-nav {
    text-align: center;
  }

  .btn-custom {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  /* Fix navbar spacing on mobile */
  .navbar-custom {
    padding: 0.5rem 1rem;
  }

  /* Ensure sections don't overlap with fixed navbar */
  #home {
    padding-top: 80px;
  }

  .low-button{
    width: 300px;
  }

}

/* Extra small devices */
@media (max-width: 480px) {

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
  }

  .section h2 {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  #home > div > div > div.home-text > p {
    text-align: justify;
  }

  .home-text h1 {
    font-size: 1.2rem;
  }

  .character-text {
    font-size: 1rem;
  }

  .home-text p {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .home-image img {
    width: 200px;
    height: 200px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .tech-item {
    padding: 1rem 0.3rem;
  }

  .tech-item i {
    font-size: 2rem;
  }

  .tech-item h4 {
    font-size: 0.8rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-content h4 {
    font-size: 1.3rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .skill-item {
    padding: 1.5rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .btn-custom {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .section {
    min-height: auto;
    padding: 40px 15px;
  }

  #home {
    padding-top: 60px;
    min-height: 100vh;
  }

  .home-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .home-text {
    order: 1;
    text-align: left;
  }

  .home-text h2 {
    text-align: left;
    font-size: 1rem;
  }

  .home-text h1 {
    font-size: 1.5rem;
  }

  .character-text {
    font-size: 1rem;
    text-align: left;
  }

  .home-text p {
    text-align: left;
    font-size: 0.8rem;
    padding: 0;
  }

  .home-image {
    order: 2;
    margin-top: 0;
  }

  .home-image img {
    width: 200px;
    height: 200px;
  }
}

/* Mobile Offcanvas Styles */
#offcanvasNavbar {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
}

#offcanvasNavbarLabel {
  color: #ffffff;
}

.offcanvas-body .nav-link {
  padding: 1rem 0;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
