* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Electrolize', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
  
  }
  
  h1, h2, h3, h4 {
    font-family: 'Russo One', sans-serif;
    color: #ff3131;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  section {
    scroll-snap-align: start;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    margin-right: 1rem;
    background: #ff3131;
    border: none;
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
  }
  
  .btn:hover {
    background: #ff5151;
  }
  
  .btn.secondary {
    background: transparent;
    border: 2px solid #ff3131;
  }
  
  .btn.secondary:hover {
    background: #ff3131;
  }
  

  header#hero {
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    height: 100vh;
  
  }
  
  .logo {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: #ff3131;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;   
    z-index: 2;           
    padding: 1rem 2rem;
}

  
  nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
  }
  
  nav a {
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  nav a:hover {
    color: #ff3131;
  }
  
  .hero-content {
    margin-top: 10vh;
    text-align: center;
    position: relative;
    z-index: 2; 
  }
  
  .hero-content h2 {
    font-size: 2rem;
    max-width: 700px;
    margin: 1rem auto;
  }
  
  .hero-buttons {
    margin-top: 2rem;
  }
  
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
  }
  
  [data-aos].aos-animate {
    opacity: 1;
  }
  
  .project-card a {
    display: inline-block;
    margin-top: 1rem;
    color: #ff4141;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .project-card a:hover {
    color: #fff;
  }
  
  .video-banner {
    position: absolute;
    top: 0;
    left: 0;
    height: 27vh;
    width: 100%;
    overflow: hidden;
    z-index: 0; 
  }
  
  .video-banner video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
  }
  
  .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
  }
  
  .theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 9999;
  }
  
  .theme-toggle input[type="checkbox"] {
    display: none;
  }
  
  .toggle-btn {
    cursor: pointer;
    font-size: 1.5rem;
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 49, 49, 0.4);
  }
  
  .toggle-btn:hover {
    background: #ff3131;
    color: #000;
  }
  
body.light-theme {
    background-color: #fdfdfd;
    color: #121212;
  }
  
  body.light-theme nav {
    background-color: transparent;
    border-bottom: none;
  }
  
  body.light-theme .video-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
  }
  
body.light-theme .project-card {
    background: #fdfdfd; 
    color: #111;
    border: none !important;

  }
  
  
  body.light-theme .slider {
    background: #ddd;
    box-shadow: 0 0 10px rgba(255, 49, 49, 0.3);
  }
  
  body.light-theme .ball {
    background: #ff3131;
  }
  

  .theme-toggle input[type="checkbox"] {
    display: none;
  }
  .theme-image {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 1rem;
    right: 1.5rem;
    z-index: 9998;
    transition: opacity 0.3s ease;
  }
  
  .theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 9999;
  }
  
  .theme-toggle input[type="checkbox"] {
    display: none;
  }
  
  .slider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    width: 63px;
    height: 32px;
    border-radius: 20px;
    position: relative;
    padding: 0 6px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 49, 49, 0.3);
  }
  
  .slider .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
  }
  
  .slider img {
    width: 18px;
    height: 18px;
  }
  
  .slider .ball {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #ff3131;
    border-radius: 50%;
    transition: transform 0.4s ease;
    z-index: 1;
  }
  
  #toggleDark:checked + .slider .ball {
    transform: translateX(32px);
  }
  
  #toggleDark:checked + .slider .moon {
    opacity: 0.2;
  }
  
  #toggleDark:checked + .slider .sun {
    opacity: 1;
  }
  
  .slider .moon {
    opacity: 1;
  }
  
  .slider .sun {
    opacity: 0.2;
  }
  
  /* Force all text to be dark in light mode */
body.light-theme,
body.light-theme p,
body.light-theme span,
body.light-theme li,
body.light-theme a,
body.light-theme .hero-content h2,
body.light-theme .project-card p,
body.light-theme .project-card a {
  color: #111 !important;
}

body.light-theme .project-card a:hover {
  color: #ff3131 !important;
}


body.light-theme .btn.secondary {
  color: #ff3131 !important;
  border-color: #ff3131 !important;
}

body.light-theme .btn.secondary:hover {
  background-color: #ff3131 !important;
  color: #fff !important;
}

.vertical-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 3rem;
  z-index: 9999;
  justify-content: space-between; 
  padding: 2.5rem 0; 
}

.vertical-nav .logo-vertical img {
  width: 48px;
  height: auto;
  margin-bottom: 2rem;
}

.vertical-nav .nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.65rem;
  padding: 0;
  margin: 0;
}

.vertical-nav .nav-links li a {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg); /* Flip text upright while vertical */
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.vertical-nav .nav-links li a:hover {
  color: #ff3131;
}

/* Light theme support */
body.light-theme .vertical-nav .nav-links li a {
  color: #111;
}

body.light-theme .vertical-nav .nav-links li a:hover {
  color: #ff3131;
}
/* Hero Section Styling */
.hero-content h2 {
  font-size: 4rem; 
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.highlight-red {
  color: #ff3131;
}

.white-add {
  color: #fff;
  font-family: 'Russo One', sans-serif;
}

.typewriter-text {
  display: inline;
  white-space: nowrap;
  border-right: 2px solid #fff;
  animation: blink 0.7s infinite;
  font-family: 'Russo One', sans-serif;
}

@keyframes blink {
  0% { border-color: #fff; }
  50% { border-color: transparent; }
  100% { border-color: #fff; }
}

.thin-name {
  font-family: 'Electrolize', sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  margin-top: 1rem;
  text-align: center;
  color: #ccc;
}

.scroll-mouse-wrapper {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 1px solid rgb(196, 196, 196);
  background-color: transparent;
  border-radius: 13px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
}

.scroll {
  width: 3px;
  height: 10px;
  background-color: rgb(196, 196, 196);
  border-radius: 2px;
  position: absolute;
  bottom: 9px;
  animation: move_918 1.5s linear infinite;
}

@keyframes move_918 {
  0% {
    bottom: 9px;
  }

  50% {
    bottom: 5px;
  }

  100% {
    bottom: 9px;
  }
}

/* about sec */
.about-section {
  padding: 6.5rem 2rem;
  background: transparent;
}

.about-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.about-text {
  flex: 0 0 70%;
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.8;
  text-align: justify;           
  padding-left: 2rem;  
}

.about-text h2 {
  font-size: 2.5rem;
  color: #ff3131;
  margin-bottom: 1.5rem;
}

.about-photo {
  flex: 0 0 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}


@media (max-width: 991px) {
  .about-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-text,
  .about-photo {
    flex: 0 0 100%;
  }
}


.wrapper {
  width: 100%;
  padding: 0 2rem;
  text-align: center;
}
.polaroid {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 0.2rem 1.2rem rgba(0,0,0,0.2);
  
}
.polaroid > img{
  max-width: 100%;
  height: auto;
}
.caption {
  font-size: 1.8rem;
  text-align: center;
  line-height: 2em;
}
.item {
  width: 50vh;
  height: auto;
  display: inline-block;
  margin-top: 2rem;
  filter: grayscale(100%);
}
.item .polaroid:before {
  content: '';
  position: absolute;
  z-index: -1;
  transition: all 0.35s;
}
.item:nth-of-type(4n+1) {
  transform: scale(0.8, 0.8) rotate(5deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+1) .polaroid:before {
  transform: rotate(6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
}
.item:nth-of-type(4n+2) {
  transform: scale(0.8, 0.8) rotate(-5deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+2) .polaroid:before {
  transform: rotate(-6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.4);
}
.item:nth-of-type(4n+4) {
  transform: scale(0.8, 0.8) rotate(3deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+4) .polaroid:before {
  transform: rotate(4deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
}
.item:nth-of-type(4n+3) {
  transform: scale(0.8, 0.8) rotate(-3deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+3) .polaroid:before {
  transform: rotate(-4deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0,0,0,0.3);
}
.item:hover {
  filter: none;
  transform: scale(1, 1) rotate(0deg) !important;
  transition: all 0.35s;
}
.item:hover .polaroid:before {
  content: '';
  position: absolute;
  z-index: -1;
  transform: rotate(0deg);
  height: 90%;
  width: 90%;
  bottom: 0%;
  right: 5%;
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.2);
  transition: all 0.35s;
}

.skills-section {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  gap: 3rem;
  flex-wrap: wrap;
}

.skills-image {
  width: 30%;
  display: flex;
  justify-content: center;
}

.skills-image img {
  max-width: 105%;
  height: auto
}

.skills-text {
  width: 65%;
  padding-left: 4rem;
}

.skills-text h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.skill-group {
  margin-bottom: 1.5rem;
}

.skill-group h3 {
  font-size: 1.5rem;
  color: #ff3131;
  margin-bottom: 0.5rem;
}

.skill-group p {
  font-size: 1.1rem;
  color: #ccc;
}

.skills-content {
  flex: 0 0 70%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: left;
}

.skill-block h3 {
  color: #ff3131;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.skills-columns {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.skills-left{
  flex: 1;
  min-width: 250px;
}

.skills-right {
  flex: 1;
  min-width: 250px;
  margin-top: 1rem;
}

.skills-right .skill-group p {
  margin-bottom: 0.6rem;
}

.projects-section {
  padding: 5rem 2rem;
  color: white;
  position: relative;
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 2rem;
}
.projects-section {
  padding: 5rem 2rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ff3131;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  gap: 2rem;
  justify-content: center;
  align-items: center;
}

.project-card {
  width: 400px;
  min-width: 260px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  background: #1b1b1b;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  opacity: 0.5;
  transform: scale(0.85);
  transition: all 0.5s ease;
  flex-shrink: 0;
}

.project-card.active {
  opacity: 1;
  transform: scale(1.05);
  z-index: 1;
}

.card-image img {
  width: 100%;
  height: 40%;
  object-fit: cover;
  transition: 0.4s ease-in-out;
}

.card-content {
  padding: 1rem;
  text-align: left;
  height: 60%;
  display: flex;
  flex-direction: column;
}
.card-content .btn {
  margin-top: 0.8rem; 
}

.card-content h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
}

.card-content .red {
  color: #ff3131;
}

.card-content p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

.card-content .btn {
  background: #ff3131;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  align-self: start;
  transition: background 0.3s;
}

.card-content .btn:hover {
  background: white;
  color: #ff3131;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: none;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0 1rem;
}

.carousel-btn.prev {
  left: 0;
}

.carousel-btn.next {
  right: 0;
}

.carousel-btn {
  color: white;
}

body.light-theme .carousel-btn {
  color: black;
}

.publications-section {
  padding: 5rem 2rem;
  color: white;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #ff3131;
}

.publications-container {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  flex-wrap: wrap;
}

.publication {
  flex: 1 1 45%;
  padding: 2rem;
  border-radius: 12px;
}

.publication h3 {
  font-size: 1.5rem;
  color: #ff3131;
  margin-bottom: 1rem;
}

.publication p {
  font-size: 1.05rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.publication .btn {
  background: #ff3131;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.publication .btn:hover {
  background: white;
  color: #ff3131;
}

.contact-section {
  padding: 5rem 2rem 2rem 2rem 2rem 2rem;
  text-align: center;
  max-width: 700px;
  margin: auto;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: #ff3131;
  margin-bottom: 1rem;
}

.contact-intro {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  background: #2c2c2c;
  color: white;
  font-size: 1rem;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  background: #ff3131;
  color: white;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: white;
  color: #ff3131;
}
::selection {
  background: #ff3131; 
  color: white;       
}
