/* ========================== Font Imports ========================== */
@font-face {
  font-family: robot;
  src: url(fonts/Robot_Font.otf);
}
/* ========================== Base Reset ========================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000 url('images/loader.gif') no-repeat center center;
  z-index: 9999;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  transition: all 0.2s ease-in-out;
}

body {
  background-color: #141414;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  overflow-x: hidden;
  width: 100vw;
  position: relative;
}

/* ========================== NAV SECTION ========================== */
nav {
  height: 10vh;
  width: 100vw;
  display: flex;
  position: sticky;
  top: 0;
  background: rgba(88, 79, 79, 0.226);
  backdrop-filter: blur(10px);
  z-index: 1000;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

nav .logo h4 {
  font-family: robot;
  font-size: 1.5rem;
  font-weight: 100;
  color: white;
  text-shadow: 0px 0px 5px;
}

nav a {
  text-decoration: none;
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav li {
  margin: 0 15px;
  padding: 10px;
  cursor: pointer;
}

nav li:hover {
  box-shadow: 0px 0px 10px;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.toggle-btn {
  display: none;
  font-size: 1.5rem;
}

/* ========================== HERO SECTION ========================== */
#hero-section {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
#anime{
  height: 100%;
  width: 100%;
}
#hero-img {
  width: 100%;
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
}
.hero-text h2{
  position: absolute;
  bottom: -10px;
  width: max-content;
}
.hero-text {
  position: absolute;
  left: 50px;
  bottom: 100px;
  font-size: 1.5rem;
  z-index: 10;
}
.text span {
  color: rgb(131, 131, 224);
}

.icons {
  position: absolute;
  bottom: 20px;
  left: 50px;
  font-size: 2.5rem;
  display: flex;
  flex-direction: row;
  gap: 10px;
  z-index: 10;
}

.icons i {
  margin: 5px;
  text-shadow: 0px 0px 10px rgb(131, 131, 224);
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.icons i:hover {
  text-shadow: 0px 0px 50px rgb(0, 172, 240);
  transform: translateY(-10px);
}

.icons a {
  color: white;
}

.rect{
  height: 20vh;
  width: 20vw;
  background-color: #141414;
  position:absolute;
  bottom: 40px;
  right: 0px;
  z-index: 3;
}
@media (max-width:1400px) {
  .rect{
    width: 15vw;
    bottom: 0px;
  }
  
}

/* ========================== ABOUT SECTION ========================== */
#About {
  width: 100%;
  padding: 60px 20px;
  overflow-x: hidden;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 100%;
  margin: auto;
  padding: 0 10px;
  box-sizing: border-box;
  overflow-x: hidden;
}
.about-image{
      border-radius: 20px;
        transition: all 0.5s;
}
.about-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.about-image:hover{
  transform: translateY(-10px);
  box-shadow:10px 10px 0px rgba(39, 255, 255, 0.712),20px 20px 0px rgba(255, 217, 0, 0.527),30px 30px 0px rgba(73, 132, 241, 0.466),40px 40px 100px whitesmoke;
}

.about-content {
  max-width: 600px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.about-content h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.btn {
  padding: 10px 20px;
  background: rgba(201, 223, 255, 0.226);
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 20px;
}

/* ========================== AI Tools Animation ========================== */
.ai-tools-animation {
  height: 30px;
  overflow: hidden;
  background: #141414;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  padding-left: 10px;

}

.scrolling-text {
  animation: scrollUp 9s ease infinite;
  font-size: 14px;
  white-space: nowrap;
}

@keyframes scrollUp {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}

/* ========================== EXPERIENCE & WORKS ========================== */
#Experience,
#Works {
  width: 100%;
  padding: 60px 20px;
  overflow-x: hidden;
}

#Experience h4,
#Works h4 {
  background: rgba(184, 180, 180, 0.164);
  backdrop-filter: blur(5px);
  text-align: center;
  font-size: 24px;
  padding: 15px 25px;
  border-radius: 25px;
  color: white;
  margin: auto;
  margin-bottom: 40px;
  width: fit-content;
  z-index: 10;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card1 {
  background-color: white;
  color: black;
  border-radius: 20px;
  padding: 20px;
  width: 300px;
  min-width: 280px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.card1:hover {
  transform: translateY(-10px);
  transform: scale(150%);
  box-shadow:10px 10px 0px rgba(39, 255, 255, 0.712),20px 20px 0px rgba(72, 178, 248, 0.527),30px 30px 0px rgba(29, 7, 26, 0.466),0px 0px 100px whitesmoke;
}

.card-body {
  background-color: rgba(206, 200, 189, 0.13);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 10px;
}

.cardImg {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 10px;
}

.cardImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.card1:hover .cardImg img {
  transform: scale(1.05);
}
  
.visit-btn {
  display: inline-block;
  padding: 10px 15px;
  background: rgba(119, 121, 126, 0.178);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  text-decoration: none;
  color: black;
  transition: all 0.4s ease-in-out;
  margin-top: 10px;
  font-family: robot;
}

.visit-btn:hover {
  box-shadow: 0px 0px 10px rgb(34, 30, 30),3px 3px 0px rgba(49, 255, 238, 0.678),6px 6px 0px rgba(255, 217, 0, 0.493);
}

/* ========================== CONTACT SECTION ========================== */
#Contact {
  width: 100%;
  padding: 60px 20px;
  background: #1f1f1f;
  overflow-x: hidden;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-left,
.contact-right {
  width: 48%;
}

.contact-left p {
  margin-top: 30px;
}

.contact-left i {
  text-shadow: 0px 0px 10px rgb(131, 131, 224);
}

.contact-left a {
  text-decoration: none;
  color: white;
}

.social-icons {
  margin-top: 30px;
}

.social-icons a {
  text-decoration: none;
  font-size: 30px;
  margin-right: 15px;
  display: inline-block;
  transition: transform 0.5s;
}

.social-icons a:hover {
  text-shadow: 0px 0px 10px rgb(131, 131, 224);
  transform: translateY(-5px);
}

form input,
form textarea {
  width: 100%;
  background: #262626;
  padding: 15px;
  margin: 15px 0;
  color: white;
  font-size: 18px;
  border-radius: 6px;
  border: none;
}

.btn2 {
  padding: 14px 60px;
  font-size: 18px;
  cursor: pointer;
  text-shadow: 0px 0px 10px rgb(131, 131, 224);
}
/* .btn2 {
  background: linear-gradient(270deg, #3bcec2, rgba(29, 20, 161, 0.6), rgba(68, 68, 218, 0.7), black);
  background-size: 750% 750%;
  transition: all 0.5s ease;
} */

.btn2:hover {
  background: linear-gradient(270deg, #3bcec2, rgba(29, 20, 161, 0.6), rgba(68, 68, 218, 0.7), black);
  background-size: 800% 800%;
  animation: neonFlow 5s ease infinite;
  border: 1px solid white;
  box-shadow: 0 0 10px #00ffe1, 0 0 20px #0077ff, 0 0 30px #8a2be2;
}

/* Neon gradient animation */
@keyframes neonFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


/* ========================== FOOTER ========================== */
footer {
  width: 100%;
  background-color: #111;
  text-align: center;
  padding: 20px 10px;
  margin-top: 0;
  clear: both;
  position: relative;
  z-index: 1;
}

footer p {
  color: white;
  font-size: 14px;
}

/* ========================== MEDIA QUERIES ========================== */
@media (max-width: 1024px) {
  .toggle-btn {
    display: block;
  }

  nav ul {
    display: none;
  }
  .rect{
    bottom: 30px;
    width: 20vw;
  }

  .contact-left,
  .contact-right {
    width: 100%;
  }

  footer {
    bottom: 0px;
  }
}

@media (max-width: 768px) {
  .rect{
    bottom: 3%;
    width: 20vw;
    right: 2px;
    height: 10vh;
    /* background:linear-gradient(to top,#141414,#0c3259,#141414,#141414,#141414); */
    border-radius:25px ;
  }
  #hero-img{
    z-index: 6;
  }
  .hero-text {
    font-size: 1.2rem;
    left: 20px;
  }

  .icons {
    font-size: 1.8rem;
    left: 10px;
    bottom: 10px;
  }

  .about-container {
    flex-direction: column;
    padding: 0 10px;
  }

  .card1 {
    width: 90%;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  #Experience h4,
  #Works h4 {
    margin-top: 20px;
  }

  #Experience,
  #Works,
  #Contact,
  footer {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 575px) {
  #anime{
    height: 60%;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .rect{
    bottom: 20%;
  }

  .hero-text{
        top: 50px;
      }
  .text{
        top: 50px;
      }
}
@media (max-width: 480px) {
  #hero-section{
    margin-top: -40px;
  }
  .rect{
    bottom: 27%;
    display: block;
    z-index: 3;
    border: none;
 }
  .hero-text {
    left: 10px;
    top: 50px;
    font-size: 1rem;
  }
  #anime{
    height: 50%;
    top: -10px;
  }
  #hero-img{
    z-index: 4;
    scale: 1.15;
  }
  .icons{
  flex-direction: column;
  }
.text{
  position: absolute;
  width: max-content;
  top: 35px;
}
  .scrolling-content {
    flex-direction: column;
    overflow-x: hidden;
  }

  .icons {
    bottom: 10px;
    left: 10px;
    font-size: 1.5rem;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    overflow-x: hidden;
  }

  .about-content {
    width: 100%;
    padding: 10px;
  }

  .about-image img {
    width: 90vw;
    max-width: 95%;
  }
}



nav ul.active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 10vh;
  right: 0;
  background-color: rgba(20, 20, 20, 0.95);
  width: 100%;
  padding: 20px 0;
  z-index: 999;
  text-align: center;
}

@media (max-width: 1024px) {
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.9);
    position: absolute;
    top: 10vh;
    left: 0;
    padding: 20px 0;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* REVELIING EFFECT */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-in-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}



/* ===================== HERO VIDEO POPUP ===================== */

.hero-video {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.9); /* Dark semi-transparent background */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  padding: 20px;
  box-sizing: border-box;
}

.hero-video video {
  width: 80%;
  max-height: 80vh;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  outline: none;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 3rem;
  background: none;
  color: #ffffff;
  border: none;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #ff4b5c;
}

/* Optional: Image cursor pointer */
#uday {
  cursor: pointer;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .hero-video video {
    width: 95%;
    max-height: 70vh;
  }

  .close-btn {
    font-size: 2.5rem;
    top: 15px;
    right: 20px;
  }
}
