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

body,
html {
  height: 100%;
  overflow: auto;
  font-family: "Courier New", Courier, monospace;
  background: #000;
}
.scroll-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-section {
  scroll-snap-align: start;
  height: 100vh;
  width: 100%;
  position: relative;
}

::selection {
  color: black;
}

/* Navbar styling */
.navbar {
  position: fixed;
  width: 100%;
  background: transparent;
  color: #00fff7;
  padding: 10px 20px;
  top: 0;
  left: 0;
  z-index: 1000;
}

.glow-text {
  color: #00fff7;
  text-shadow: 0 0 5px #00fff7, 0 0 10px #00fff7;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  color: #00f0ff;
  font-family: "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 100;
  text-decoration: none;
}

.nav-links li a:hover {
  color: #ff4ddb;
  text-shadow: 0 0 8px #ff4ddb;
}

.navbar-logo {
  border-radius: 50%;
  width: 10%;
  height: 10%;
}

.menu-icon {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  font-size: 28px;
  color: #00f0ff;
}
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide links initially */
    position: absolute;
    top: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.85);
    flex-direction: column;
    width: 180px;
    padding: 15px 10px;
    border-radius: 10px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex; /* Show links when toggled */
  }

  .nav-links li {
    margin: 12px 0;
  }

  .menu-icon {
    display: block; /* Show hamburger on mobile */
  }
}

/* Hero section with background image */
.hero-section {
  background: radial-gradient(circle at top left, #1a1a1a, #0f0f0f);
  background-image: url(images/bgrobo.jpg);
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  padding-top: 60px; /* Offset for navbar height */
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-section .content {
  padding: 20px;
  position: relative;
  z-index: 0;
}

.right-image {
  position: relative;
  right: -350px;
  top: -90px;
  z-index: 0;
  width: 50%;
}

.typewriter {
  position: absolute;
  top: 110px;
  left: 40px;
  /* height: 70px; */
  /* width: 650px; */
  /* width: 60px; */
  /* from with center texting effect triggers or without text start from left */
  padding: 15px 25px;
  font-size: 25px;
  font-weight: 500;
  font-family: "space age";
  color: #00fff7;

  /* border-radius: 12px;
  backdrop-filter: blur(3px);
  background: rgba(255, 255, 255, 0.1);
  background: transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 5px solid rgba(0, 0, 0, 0.2); */

  animation: fadeIn 1.5s ease forwards;
}
.cursor {
  display: inline-block;
  animation: blink 0.8s step-end infinite;
  font-weight: bold;
  color: #ff4ddb;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Subtitle styling - visible on mobile only */
.subtitle {
  display: none;
}

/* Hero Section Mobile Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px; /* navbar space */
    background-position: center center;
  }

  .hero-section .right-image {
    display: none;
  }

  .hero-section .typewriter {
    position: static;
    top: auto;
    left: auto;
    padding: 10px 20px;
    font-size: 18px;
    text-align: center;
    width: 100%;
    /* width: 100px; */
    height: 100px;
    animation: none;
  }

  /* Show subtitle on mobile */
  .subtitle {
    display: block;
    color: #00fff7;
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
    text-align: center;
    margin-top: 12px;
    padding: 0 15px;
  }
}

/* bottom */
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  height: 30vh;
  left: 70px;
  width: 90%;
  backdrop-filter: blur(10px);
  background: rgba(20, 20, 20, 0.75);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-radius: 30px 30px 0 0;
  padding: 20px;
  /* background-image: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.3),
    rgba(0, 0, 0, 0.2)
  ); */
  /* background-size: 30px 30px; */
}

.toggle-btn {
  position: absolute;
  top: -37.5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  padding: 5px 30px;
  background: rgba(30, 30, 30, 0.85);
  border: none;
  border-radius: 20% 20% 0 0;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.toggle-btn:hover {
  background: rgba(50, 50, 50, 0.9);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.bottom.hidden {
  animation: slidedown 2s forwards;
}

.bottom.shown {
  animation: slideup 2s forwards;
}

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

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

.bottom-content {
  display: flex;
  position: absolute;
  /* border: 1px solid black; */
  align-items: center;
  justify-content: space-evenly;
  /* padding: 10px; */
  width: 95.5%;
  height: 96%;
  top: 8px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  /* background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 20px rgba(0, 255, 247, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08); */
  border-radius: 12px;
  margin: 12px px;
  padding: 16px;
  width: 45%;
  height: 110%;
  text-align: center;
  color: white;
}
.card img {
  width: 50%;
  height: 95%;
  border-radius: 8px;
  margin-right: 8px;
}

/* bottom multiple images part starts */

/* .image-container img{
  width: 50%;
  border-radius: 10px;
  transition: transform 0.5s ease-in-out;
}

.text-container{
  margin-top: 12px;
  height: 40px;
  overflow: hidden;
  position: relative;
}
.text-container p{
  transition: transform 0.5s ease-in-out;
  margin: 0;
} */

/* bottom multiple images part ends */



@media screen and (max-width:768px) {
  #bottomTab{
    display: none;
  }
}

/* ========== About Section Container ========== */
.about-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  background: #000;
  padding-top: 60px;
  scroll-snap-align: start;
}

/* ========== Title Styling ========== */
.about-title {
  color: #00fff7;
  font-family: "Orbitron", sans-serif;
  font-size: 2.2rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 0 10px #00fff7;
  /* margin-bottom: 40px; */
  margin-bottom: 200px;
}

/* ========== Cube Layout ========== */
.cube-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 200px; /* Wider gap between cubes */
  flex-wrap: wrap;
}

/* ========== Cube Base Styles ========== */
.cube {
  width: 150px;
  height: 150px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 12s infinite linear;
  transition: transform 0.5s;
}

.cube:hover {
  animation-play-state: paused;
}

.face {
  position: absolute;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 10px;
}

/* ========== Cube Face Positions ========== */
.face1 {
  transform: rotateY(0deg) translateZ(75px);
}
.face2 {
  transform: rotateY(90deg) translateZ(75px);
}
.face3 {
  transform: rotateY(180deg) translateZ(75px);
}
.face4 {
  transform: rotateY(-90deg) translateZ(75px);
}
.face5 {
  transform: rotateX(90deg) translateZ(75px);
}
.face6 {
  transform: rotateX(-90deg) translateZ(75px);
}

/* ========== Cube Animation ========== */
@keyframes rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* ========== Glassmorphism Cube ========== */
.cube.glass .face {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #00fff7;
  box-shadow: 0 0 15px rgba(0, 255, 247, 0.2);
}

/* ========== Neumorphism Cube ========== */
.cube.neu .face {
  background: #e0e0e0;
  color: #333;
  box-shadow: 8px 8px 15px #bebebe, -8px -8px 15px #ffffff;
}

/* ========== Gradient/Vibrant Cube ========== */
.cube.gradient .face {
  background: linear-gradient(135deg, #00f0ff, #ff00c8);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 255, 247, 0.2);
}

/* ========== Responsive Styling ========== */
@media screen and (max-width: 768px) {
  .cube-container {
    flex-direction: column;
    /* gap: 30px; */ /* smaller size for stacked layout */
    gap: 90px;
  }

  .cube {
    width: 120px;
    height: 120px;
  }

  .face {
    width: 120px;
    height: 120px;
    font-size: 12px;
  }

  .about-title {
    font-size: 1.6rem;
    margin-bottom: 50px; /* original*/
    /* margin-bottom: 100px; */
  }
}

/* ==============contact section=================== */

a {
  text-decoration: none;
  color: #0c0c0c;
}
.icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px #00fff7;
}

.icon:hover i,
span {
  color: #fff;
}
.icon:nth-child(1) {
  /* color: #0c0c0c; */
  color: white;
}
.git:hover {
  background: #0e0e0f;
}

.icon:hover i {
  color: #9dc39c;
}
.icon:nth-child(2) {
  /* color: #100f0f; */
  color: white;
}
.insta:hover {
  background: #d81a63;
}

.icon:hover i {
  color: #fff;
}
.icon:nth-child(3) {
  /* color: #191717; */
  color: white;
}
.yt:hover {
  background: #d81a1a;
}
.icon:nth-child(4) {
  /* color: #060606; */
  color: white;
}
.li:hover {
  background: #6e18a4;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 60px 40px;
  gap: 2rem;
  position: relative;
  background: #000;
}

.contact-left {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  /* align-items: flex-start; */
  align-items: center;
  z-index: 2;
}

.contact-right {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  margin-top: 55px;
}

.contact-image {
  width: 100%;
  max-width: 308px;
  height: auto;
  object-fit: contain;
}

.speech-bubble-contact {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 30px;
  max-width: 350px;
  width: 100%;
  color: #e5f7f8;
  box-shadow: 0 0 15px rgba(0, 255, 247, 0.08);
  position: relative;
  margin-bottom: 20px;
}

.speech-bubble-contact::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 30px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: none;
}

.speech-bubble-contact h2 {
  font-family: orbitron;
  text-transform: uppercase;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.speech-bubble-contact p {
  color: #ccc;
  font-family: "Courier New", Courier, monospace;
  line-height: 1.6;
  font-size: 1rem;
}

.social-icons {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  margin-left: 5px;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00fff7;
  transition: all 0.3s ease;
  font-size: 1.6rem;
}

a {
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .contact-section {
    display: block;
    align-items: center;
    text-align: center;
    /* padding: 40px 20px; */
  }

  .contact-left {
    width: 100%;
    margin-bottom: 30px;
  }
  .contact-right {
    width: 100%;
    /* margin-top: 190px; */
  }

  .speech-bubble-contact {
    padding: 20px;
    margin: 0 auto;
    width: 90%;
    max-width: 500px;
  }

  .speech-bubble-contact::after {
    display: none;
  }

  .speech-bubble-contact h2 {
    font-size: 1.5rem;
  }

  .speech-bubble-contact p {
    font-size: 0.95rem;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
  }

  .contact-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    transform: translateY(30px);
    /* margin: 0 auto; */
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #444444;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #666666;
}

/* ============Project section=================== */

.project-section {
  padding: 60px 10px;
  background: #0f0f0f;
  color: #fff;
  font-family: "Segoe UI", sans-serif;
  min-height: 100vh;
  /* overflow: hidden; */
}

.project-heading {
  display: flex;
  width: 100%;
  height: 80px;
  justify-content: center;
  align-items: center;
}

.project-heading h1 {
  font-size: 70px;
  font-family: orbitron;
  font-weight: 700;
  letter-spacing: 8px;
}
.glow-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  letter-spacing: 2px;
  /* text-align: center; */
  background: linear-gradient(90deg, #00f0ff, #7a00ff, #ff00c8);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowShift 5s ease infinite;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.4), 0 0 20px rgba(122, 0, 255, 0.3),
    0 0 30px rgba(255, 0, 255, 0.2);
}
@keyframes glowShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.cards-container {
  width: 100%;
  height: calc(100dvh - 80px);
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: hidden;
  overflow-x: auto;
  align-items: center;
  padding: 30px;
  gap: 50px;
}
.cards-container::-webkit-scrollbar {
 display: none;
}
.project-card {
  width: 400px;
  height: 270px;
  background-color:  rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.3s ;
  overflow: hidden;
  clip-path: path("M 0,0 L 120,0 L 170,40 L 390,40 A 10,10 0,0,1 400,50 L 400,270 L 0,270 Z");
}
.project-card img {
  width: 400px;
  height: 170px;
  object-fit: cover;
}
.project-card:hover {
  transform: translateY(-10px);
}

.card-info {
  width: 400px;
  height: 100px;
  padding: 15px;
  background-color:rgba(0, 0, 0, 0.7) ;
  color: #e0f7fa;
}
.card-info h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 5px;
  font-family: orbitron;
  color: #ccc;
}
.card-info p {
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
  font-family: "Courier New", Courier, monospace;
}
.links {
  width: 100%;
  height: 30px;
  display: flex;
  color: #00f0ff;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  padding: 5px;
  font-family: "Courier New", Courier, monospace;
}
.links a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #ff4ddb;
}
.links i {
  margin-right: 5px;
  margin-top: 5px;
  color: #00ffff;
  transition: all 0.3s ease;
}
.links a:hover i {
  color: #00f0ff;
  transform: scale(1.2);
  filter: drop-shadow(0,0,5px #00ffff);
  text-shadow: 0 0 10px #00f0ff,
               0 0 20px #00f0ff,
               0 0 30px #00f0ff;
}


@media screen and (max-width: 768px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .project-card {
    width: 90%;
    height: auto;
    margin-left: 10px;
  }
  .project-card img {
    width: 100%;
    height: auto;
  }
  .links a{
    font-size: 14px;
  }
  .card-info {
    width: 100%;
    padding-top: 2px;
  }
    
  .project-heading h1 {
    font-size: 40px;
    letter-spacing: 4px;
  }
}





@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .snap-section {
    height: auto !important;
  }

  .project-card img,
  .contact-image,
  .right-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .project-section .cards-container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-section,
  .about-section,
  .project-section,
  .contact-section {
    padding: 30px 20px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}
