/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

.hero-section .back-vid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
  background-image: url("images/galaxy-fallback.jpg");
  background-size: cover;
  background-position: center;
}

/* Navbar */
nav {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

nav .left a {
  font-size: 24px;
  font-weight: bold;
  color: #00fff7;
  text-decoration: none;
}

nav .right a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav .right a i {
  margin-right: 6px;
}

nav .right a:hover {
  color: #00fff7;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.hero-info {
  flex: 1;
  max-width: 600px;
}

.hero-info h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.hero-info h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #00fff7;
  animation: fadeIn 2s ease-in-out infinite alternate;
}

.hero-info p {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
}

.hero-img img {
  width: 300px;
  border-radius: 20px;
  border: 2px solid #00fff7;
}

.btn {
  padding: 10px 24px;
  background-color: #00fff7;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #00d1c4;
}

/* Icon List */
.ul-icons {
  list-style: none;
  display: flex;
  margin-top: 20px;
  padding: 0;
  gap: 16px;
  justify-content: center;
}

.ul-icons li a {
  color: #00fff7;
  font-size: 24px;
  transition: transform 0.3s;
}

.ul-icons li a:hover {
  transform: scale(1.2);
}

/* Info Section */
.info-sec {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00fff7;
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
}

.info-card h1 {
  font-size: 32px;
  color: #00fff7;
}

.info-card p {
  font-size: 14px;
  color: #ddd;
}

/* Section Titles */
section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #00fff7;
  text-align: center;
}

/* Skills */
.skills-section {
  padding: 80px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.skills-section .text {
  max-width: 700px;
  margin: auto;
  margin-bottom: 40px;
  color: #ccc;
}

.skills-section .cells {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.skills-section .cell {
  background: #111;
  padding: 16px;
  border-radius: 12px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #00fff7;
  transition: transform 0.3s;
}

.skills-section .cell img {
  width: 48px;
  height: auto;
  margin-bottom: 10px;
}

.skills-section .cell span {
  color: #fff;
  font-size: 14px;
}

.skills-section .cell:hover {
  transform: scale(1.05);
}

.view-more {
  text-align: center;
  margin-top: 1.5rem;
}
.view-more .btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background-color: #00fff7;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.view-more .btn:hover {
  background-color: #00fff7;
}

.testimony-section .view-more {
  position: relative;
  z-index: 2;
}

.bouncing-arrow {
  text-align: center;
  margin-bottom: 10px;
  animation: bounce 2s infinite;
  font-size: 24px;
  color: #00fff7;
}

.scroll-more {
  text-align: center;
  margin-top: 2rem;
  font-size: 1rem;
  color: #00fff7;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25d366;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.whatsapp-link:hover {
  transform: scale(1.05);
  color: #128c7e;
}

/* Education, Interests, Projects */
#education,
#interests,
#projects {
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.02);
}

#education ul {
  max-width: 600px;
  margin: auto;
  list-style: disc;
  padding-left: 20px;
  color: #ccc;
}

#interests p {
  max-width: 700px;
  margin: auto;
  color: #ccc;
  text-align: center;
}

#projects .project {
  background: #111;
  border: 1px solid #00fff7;
  border-radius: 10px;
  padding: 20px;
  max-width: 700px;
  margin: 20px auto;
  text-align: left;
}

#projects .project h3 {
  color: #00fff7;
}

#projects .project a {
  color: #00fff7;
  text-decoration: underline;
}

.blog-section {
  padding: 60px 20px;
  background-color: #0e0e0e;
  color: #fff;
  text-align: center;
  border-top: 1px solid #00fff7;
}

.blog-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #00fff7;
}

.blog-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.blog-post {
  background-color: #111;
  border: 1px solid #00fff7;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 255, 247, 0.15);
}

.post-title {
  font-size: 22px;
  color: #00fff7;
  margin-bottom: 10px;
}

.post-snippet {
  font-size: 16px;
  color: #ccc;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  margin-top: 15px;
  color: #00fff7;
  text-decoration: underline;
  font-weight: 600;
}

.read-more:hover {
  color: #00d1c4;
}

/* Testimonial */
.testimony-section {
  padding: 80px 40px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.testimony-section .slides {
  position: relative;
  max-width: 700px;
  margin: auto;
  height: 350px;
}

.slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
  box-sizing: border-box;
}

.slide .person-details {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #00fff7;
  border-radius: 12px;
  padding: 30px;
  color: #ccc;
}

.slide img {
  border-radius: 50%;
  width: 120px;
  height: 120px;
  border: 2px solid #00fff7;
  margin-bottom: 16px;
}

#slide1:checked ~ .slides .slide-1,
#slide2:checked ~ .slides .slide-2,
#slide3:checked ~ .slides .slide-3,
#slide4:checked ~ .slides .slide-4 {
  opacity: 1;
  position: relative;
  z-index: 1;
}

.slider-nav {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.slider-nav label {
  width: 14px;
  height: 14px;
  background-color: #ccc;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#slide1:checked ~ .slider-nav label[for="slide1"],
#slide2:checked ~ .slider-nav label[for="slide2"],
#slide3:checked ~ .slider-nav label[for="slide3"],
#slide4:checked ~ .slider-nav label[for="slide4"] {
  background-color: #00fff7;
}

/* Contact */
.contact-section {
  padding: 60px 20px;
  background-color: #0e0e0e;
  color: #fff;
  text-align: center;
  border-top: 1px solid #00fff7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contact-form label {
  font-size: 14px;
  color: #ccc;
}

.contact-form input,
.contact-form textarea {
  background-color: #1c1c1c;
  border: 1px solid #333;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 15px;
  color: #fff;
  transition: border 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #00fff7;
  background-color: #1a1a1a;
  outline: none;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #00fff7;
  pointer-events: none;
}

.thank-you-message {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #00fff7;
  border-radius: 8px;
  color: #00fff7;
  background-color: #1c1c1c;
  display: none;
}

#thankyou:target {
  display: block;
}

.input-icon input,
.input-icon textarea {
  width: 100%;
  padding-left: 36px; /* space for icon */
}

.contact-form button {
  align-self: flex-start;
}

.contact-section .group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 700px;
  margin: auto;
}

.contact-section .text {
  color: #ccc;
  text-align: center;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
}

.contact-section input,
.contact-section textarea {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background-color: #222;
  color: #fff;
  resize: vertical;
}

.contact-section button {
  background-color: #00fff7;
  color: #000;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.contact-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #00fff7;
}

.contact-card {
  max-width: 600px;
  margin: auto;
  padding: 30px;
  background-color: #111;
  border: 1px solid #00fff7;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 255, 247, 0.1);
}

/* Hamburger icon */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #00fff7;
  z-index: 1100;
}

/* Footer Section */
.footer-section {
  background: rgba(0, 0, 0, 0.8);
  padding: 40px 20px;
  text-align: center;
  color: #ccc;
  border-top: 1px solid #00fff7;
}

.footer-content p {
  margin-bottom: 16px;
  font-size: 14px;
  color: #aaa;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links li a {
  color: #00fff7;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-links li a:hover {
  color: #fff;
}

.footer-social {
  margin-bottom: 20px;
}

.footer-social a {
  margin: 0 10px;
  color: #00fff7;
  font-size: 22px;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  color: #fff;
  transform: scale(1.2);
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #00fff7;
  color: #000;
  padding: 10px 12px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  z-index: 1000;
  opacity: 0.8;
  animation: bounce 1.5s infinite;
  transition: all 0.3s ease;
}

/* Hide all slides by default */
.slides .slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  width: 100%;
}

/* Position all slides in the same place */
.slides {
  position: relative;
  height: 300px; /* adjust to fit your content */
}

/* Show the active slide based on the checked input */
#slide1:checked ~ .slides .slide-1,
#slide2:checked ~ .slides .slide-2,
#slide3:checked ~ .slides .slide-3,
#slide4:checked ~ .slides .slide-4 {
  display: block;
  opacity: 1;
  position: relative;
}

/* Style the slider nav dots */
.slider-nav {
  text-align: center;
  margin-top: 1rem;
}

.slider-nav label {
  cursor: pointer;
  height: 12px;
  width: 12px;
  background-color: #bbb;
  display: inline-block;
  border-radius: 50%;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

/* Highlight the active dot */
#slide1:checked ~ .slider-nav label[for="slide1"],
#slide2:checked ~ .slider-nav label[for="slide2"],
#slide3:checked ~ .slider-nav label[for="slide3"],
#slide4:checked ~ .slider-nav label[for="slide4"] {
  background-color: #333;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade.delay-1 {
  animation-delay: 0.3s;
}
.animate-fade.delay-2 {
  animation-delay: 0.6s;
}
.animate-fade.delay-3 {
  animation-delay: 0.9s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade {
  animation: fadeInUp 1s ease forwards;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.back-to-top:hover {
  background-color: #00d1c4;
  opacity: 1;
  transform: scale(1.5);
}

html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  nav {
    flex-direction: column;
    padding: 16px;
  }

  nav .right {
    margin-top: 10px;
  }

  .hero-img img {
    width: 200px;
  }

  .info-sec {
    gap: 12px;
  }

  .info-card {
    padding: 12px;
    min-width: 100px;
  }
}

/* Hamburger icon */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #00fff7;
  z-index: 1100;
}

#skills,
#education,
#projects,
#contact,
#blog {
  border-top: 1px solid #00fff7;
  border-bottom: 1px solid #00fff7;
  padding-top: 80px;
  padding-bottom: 80px;
}

#interests {
  background: linear-gradient(145deg, #0a0a0a 0%, #111111 100%);
}

/* Responsive Nav */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .hamburger {
    display: block;
  }

  .right {
    position: absolute;
    top: 70px;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    transition: max-height 0.3s ease;
  }

  .right a {
    width: 100%;
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid #00fff7;
  }

  .right.show {
    max-height: 1000px;
    padding: 20px;
  }
}

/* Animation */
@keyframes fadeIn {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}
