html{
  scroll-behavior: smooth;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background-color: #0f1923;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
}


.navbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #0f1923;
  border-bottom: 3px solid #ff4655;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  color: white;
  text-decoration: none;
}

.navlogo{
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.navlinks{
  display: flex;
  list-style: none;
  gap: 25px;
}

.navlinks a{
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
}

.navlinks a:hover{
  color: #ff4655;
}

.themebtn{
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #1a1013, #0d0709);
  color: white;
  border: 3px solid #ff4655;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.themebtn-mark{
  width: 8px;
  height: 8px;
  background-color: #ff4655;
  transform: rotate(45deg);
}

.themebtn:hover{
  background: #ff4655;
  color: #0d0709;
}

.themebtn:hover .themebtn-mark{
  background-color: #0d0709;
}

.introsection{
  position: relative;
  min-height: 600px;
  padding: 60px 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.introbg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
}

.profilepic{
  position: absolute;
  bottom: 0;
  left: 20%;
  height: 550px;
  width: auto;
  object-fit: contain;
  z-index: 2;
}

.introsection::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #0f1923 40%, rgba(15,25,35,0.4) 70%, transparent 100%);
  z-index: 1;
}

.introtext{
  position: relative;
  z-index: 2;
  max-width: 360px;
}

.introlabel{
  color: #ff4655;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.introtext h1{
  font-size: 68px;
  line-height: 1.1;
  margin-bottom: 15px;
}

.introtagline{
  font-size: 16px;
  letter-spacing: 1px;
  color: #cccccc;
  margin-bottom: 20px;
}

.introsocial{
  display: flex;
  gap: 12px;
}

.introsocial a{
  background-color: #1f2a35;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.introsocial a:hover{
  background-color: #ff4655;
}

.welcomesection,
.gallerysection{
  padding: 60px 40px;
}

.welcomesection h2,
.gallerysection h2{
  font-size: 38px;
  margin-bottom: 20px;
}

.bodytext{
  max-width: 700px;
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 30px;
}

.navbtns{
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbtns{
  display: flex;
  align-items: center;
  gap: 15px;
}

.group-link{
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1013, #0d0709);
  color: white;
  border: 3px solid #ff4655;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.group-link:hover{
  background: #ff4655;
  color: #0d0709;
}

.redbutton{
  display: inline-block;
  margin-top: 10px;
  background-color: #ff4655;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}

.quotebtn{
  display: inline-block;
  margin-top: 10px;
  background-color: transparent;
  color: #ff4655;
  border: 2px solid #ff4655;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
}

.quotebtn:hover{
  background-color: #ff4655;
  color: white;
}

.quotetext{
  max-width: 600px;
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: white;
  margin-top: 20px;
  opacity: 0;
}

.quotetext.show{
  animation: fadein 0.6s ease forwards;
}

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

body.redtheme{
  background-color: #000000;
  color: #ffffff;
}
body.redtheme .navbar{
  background-color: #000000;
  border-bottom: 3px solid #ff0000;
}
body.redtheme .navlinks a{
  color: #ffffff;
}
body.redtheme .navlinks a:hover{
  color: #ff0000;
}
body.redtheme .introsection::before{
  background: linear-gradient(to right, #000000 40%, rgba(0,0,0,0.5) 70%, transparent 100%);
}
body.redtheme .introlabel{
  color: #ff0000;
}

body.redtheme .redbutton{
  background-color: #ff0000;
}

body.redtheme .quotebtn{
  color: #ff0000;
  border: 2px solid #ff0000;
}

body.redtheme .quotebtn:hover{
  background-color: #ff0000;
}

body.redtheme .themebtn{
  background: linear-gradient(135deg, #1a0000, #0a0000);
  border: 3px solid #ff0000;
}

body.redtheme .themebtn:hover{
  background: #ff0000;
  color: #0a0000;
}

body.redtheme .themebtn:hover .themebtn-mark{
  background-color: #0a0000;
}

body.redtheme .introsocial a{
  background-color: #1a1a1a;
}

body.redtheme .introsocial a:hover{
  background-color: #ff0000;
}

body.redtheme .skillitem,
body.redtheme .contactlist a{
  background-color: #1a1a1a;
}

.portfoliosection{
  padding: 100px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.portfoliosection h2{
  font-size: 38px;
  margin-bottom: 10px;
}

.aboutpic{
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 50%;
  margin: 30px auto;
  border: 4px solid #ff4655;
  transition: transform 0.3s, box-shadow 0.3s;
}

.aboutpic:hover{
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 70, 85, 0.7);
}

.badgegrid{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1100px;
  margin: 50px auto 0;
}

.badgegrid img{
  width: 320px;
  height: 320px;
  object-fit: cover;
  background-color: #1f2a35;
  border: 3px solid #ff4655;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.badgegrid img:hover{
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 70, 85, 0.7);
}

.tourneygrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: 30px auto 0;
}

.tourneygrid video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #ff4655;
}

.tourneytopright,
.tourneybottomrow{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #ff4655;
  transition: transform 0.3s;
}

.tourneytopright:hover,
.tourneybottomrow:hover{
  transform: scale(1.04);
}

.tourneybottomrow{
  grid-column: 1 / span 2;
}

.artgrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 30px auto 0;
}

.artgrid img{
  width: 100%;
  height: 400px;
  object-fit: cover;
  border: 2px solid #ff4655;
  transition: transform 0.3s;
}

.artgrid img:hover{
  transform: scale(1.04);
}

.contactlist{
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 30px auto 0;
}

.contactlist a{
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #1f2a35;
  padding: 20px;
  text-decoration: none;
  color: white;
  border-radius: 6px;
}

.contactlist img{
  width: 400px;
  height: 220px;
  object-fit: contain;
  background-color: #0f1923;
  border-radius: 8px;
  border: 3px solid #ff4655;
  box-shadow: 0 0 15px rgba(255, 70, 85, 0.6);
  transition: transform 0.3s;
}

.contactlist a:hover img{
  transform: scale(1.05);
}

.contactlist span{
  font-size: 18px;
  letter-spacing: 1px;
}

.skilllist{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 700px;
  margin: 30px auto 0;
}

.skillitem{
  background-color: #1f2a35;
  color: #ff4655;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 4px;
}

body.redtheme .skillitem{
  color: #ff0000;
}

.pagetitle{
  text-align: center;
  font-size: 42px;
  padding-top: 60px;
  margin-bottom: 10px;
}

#about,
#achievements,
#contact{
  position: relative;
  border-top: 5px solid #ff4655;
}

#about::before,
#achievements::before,
#contact::before{
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 70px;
  height: 5px;
  background-color: #ffffff;
}

#about{
  background-color: #15212c;
}

#achievements{
  background-color: #101b26;
}

#contact{
  background-color: #0c151d;
}

body.redtheme #about{
  background-color: #1a0000;
}

body.redtheme #achievements{
  background-color: #120000;
}

body.redtheme #contact{
  background-color: #0a0000;
}

body.redtheme #about,
body.redtheme #achievements,
body.redtheme #contact{
  border-top: 5px solid #ff0000;
}

body.redtheme .group-link{
  background: linear-gradient(135deg, #1a0000, #0a0000);
  border: 3px solid #ff0000;
}

body.redtheme .group-link:hover{
  background: #ff0000;
  color: #0a0000;
}