@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #1f242d;
  color: #fff;
}

.header {
  position: fixed;
  width: 100%;
  background: #1f242d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 100px;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  color: #0ef;
  text-decoration: none;
  font-weight: 600;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 35px;
  font-size: 1.1rem;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #0ef;
}

.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 10%;
  min-height: 100vh;
  background: #182028; /* 🔁 Changed from #1f242d */
  background: linear-gradient(to bottom right, #0e1923, #182028);
}

.home-content h3 {
  font-size: 2.2rem;
}

.home-content h1 {
  font-size: 3.5rem;
  color: #0ef;
}

.home-content .multiple-text {
  color: #0ef;
}

.home-img img {
  max-width: 400px;
  border-radius: 50%;
}

.social-media a {
  color: #0ef;
  font-size: 1.5rem;
  margin-right: 20px;
}

/* ==== Sections (New Full-width style like homepage) ==== */
.about,
.education,
.projects,
.contact,
.thankyou {
  padding: 100px 10%;
  background: #1f242d;
  
}

.section-title {
  font-size: 2rem;
  color: #0ef;
  margin-bottom: 20px;
}

.section-content {
  font-size: 1rem;
  line-height: 1.8;
}

/* ==== Projects (Featured Alternating Layout) ==== */
.fp-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 0;
}

.featured-project {
  display: flex; /* Switched to flex to easily center and align items */
  align-items: center;
  justify-content: space-between;
}

.fp-content {
  position: relative;
  z-index: 2;
  width: 50%;
}

.featured-project:nth-of-type(odd) {
  flex-direction: row; /* Text Left, Image Right */
}
.featured-project:nth-of-type(odd) .fp-content {
  text-align: left;
}

.featured-project:nth-of-type(even) {
  flex-direction: row-reverse; /* Image Left, Text Right */
}
.featured-project:nth-of-type(even) .fp-content {
  text-align: right;
}

.fp-image {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.7);
  transition: all 0.3s ease;
  width: 50%; /* Take up half the flex space */
  max-width: 450px; /* Reduced max width constraint as requested */
}

.featured-project:nth-of-type(odd) .fp-image {
  margin-left: -50px; /* Overlap effect text over image */
}

.featured-project:nth-of-type(even) .fp-image {
  margin-right: -50px; /* Overlap effect text over image */
}

.fp-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 255, 255, 0.2); /* Cyan tint */
  z-index: 3;
  transition: all 0.3s ease;
  pointer-events: none;
}

.featured-project:hover .fp-image::before {
  background-color: transparent;
}

.featured-project:hover .fp-image {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -15px rgba(0, 255, 255, 0.2);
}

.fp-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.fp-subtitle {
  color: #c778dd; /* Neon purple */
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: 1px;
  font-family: monospace;
}

.fp-title {
  color: #e6f1ff;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: 0.3s;
}

.fp-title:hover {
  color: #0ef;
}

.fp-description {
  background: rgba(17, 34, 64, 0.95); /* Make the box distinct and readable */
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 10px;
  color: #a8b2d1;
  font-size: 1.05rem;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.7);
  margin-bottom: 20px;
  max-width: 420px;
  width: 100%;
}

.featured-project:nth-of-type(even) .fp-description {
  margin-left: auto; /* Push text to the right on even projects */
}

.fp-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin-bottom: 20px;
  color: #a8b2d1;
  font-size: 0.85rem;
  font-family: monospace;
}

.featured-project:nth-of-type(odd) .fp-tech {
  justify-content: flex-start;
}

.featured-project:nth-of-type(even) .fp-tech {
  justify-content: flex-end;
}

.fp-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.featured-project:nth-of-type(odd) .fp-links {
  justify-content: flex-start;
}

.featured-project:nth-of-type(even) .fp-links {
  justify-content: flex-end;
}

.fp-links a {
  color: #e6f1ff;
  font-size: 1.3rem;
  transition: 0.3s;
}

.fp-links a:hover {
  color: #0ef;
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fp-container {
    gap: 70px;
  }
  .featured-project:nth-of-type(odd),
  .featured-project:nth-of-type(even) {
    flex-direction: column !important; /* Stack vertically on mobile */
    align-items: center;
  }
  
  .fp-image {
    width: 100%;
    max-width: 100%;
    margin: 0 !important; /* Remove negative overlap margins */
  }
  
  .fp-content {
    width: 100%;
    padding: 30px 20px 0 20px;
    text-align: left !important; /* Reset text alignments */
  }

  .fp-description {
    background: rgba(17, 34, 64, 0.95);
    padding: 20px;
    max-width: 100%;
    margin-left: 0 !important;
  }

  .featured-project:nth-of-type(even) .fp-tech,
  .featured-project:nth-of-type(even) .fp-links {
    justify-content: flex-start;
  }
}


/* ==== Professional Development ==== */
.pro-dev-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pro-dev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.pro-dev-card {
  background: rgba(17, 34, 64, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(0, 255, 255, 0.1);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.7);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pro-dev-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 20px 40px -15px rgba(0,255,255,0.2);
}

.pro-dev-img-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px; /* Fixed height wrapper to ensure alignment across cards */
}

.pd-img {
  max-height: 80px; /* Kept image height small as requested */
  max-width: 100%;
  object-fit: contain; /* Prevents stretching */
  transition: transform 0.3s ease;
}

.pro-dev-card:hover .pd-img {
  transform: scale(1.05); /* Subtle scale up on hover */
}

.pro-dev-content h3 {
  color: #e6f1ff;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.pro-dev-org {
  display: block;
  color: #c778dd;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.pro-dev-content p {
  color: #a8b2d1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.pro-dev-btn {
  display: inline-block;
  color: #0ef;
  background: transparent;
  border: 1px solid #0ef;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: 0.3s;
  text-decoration: none;
}

.pro-dev-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .pro-dev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .pro-dev-grid {
    grid-template-columns: 1fr;
  }
}

/* ==== Contact ==== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form input,
form textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.btn {
  background: #0ef;
  border: none;
  padding: 10px;
  color: #000;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* ==== Footer ==== */
.footer {
  text-align: center;
  padding: 20px;
  background: #1f242d;
}
.section-title {
  font-size: 2rem;
  color: #0ef;
  margin-bottom: 20px;
  text-align: center;
}

.section-content {
  font-size: 1rem;
  line-height: 1.8;
}

.social-contacts p {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.social-contacts i {
  color: #0ef;
  margin-right: 10px;
  font-size: 1.3rem;
}

.social-contacts a {
  color: #fff;
  text-decoration: none;
}

.social-contacts a:hover {
  text-decoration: underline;
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media (max-width: 768px) {
  /* Global padding */
  .home, .about, .education, .projects, .contact, .thankyou, .pro-dev-section {
    padding: 80px 5%;
  }

  /* Header */
  .header {
    padding: 15px 5%;
  }

  /* Home Section */
  .home {
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
    padding-top: 140px;
  }
  
  .home-content h1 {
    font-size: 2.5rem;
  }
  
  .home-content h3 {
    font-size: 1.5rem;
  }
  
  .social-media {
    justify-content: center;
  }
  
  .flex.flex-wrap.gap-4 {
    justify-content: center;
  }
  
  .home-img {
    margin-top: 40px;
  }
  
  .home-img img {
    max-width: 250px;
  }

  /* About Section */
  .flip-card-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .about-fast-facts {
    flex-direction: column;
    gap: 15px;
  }
  
  .skill-pies {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  /* Education Section */
  .education-grid {
    grid-template-columns: 1fr;
  }

  /* Contact Section */
  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .max-w-xl {
    padding: 0;
  }
}

@media (max-width: 480px) {
  /* Extra small devices */
  .section-title, .section-heading {
    font-size: 1.8rem;
  }
  
  .home-content h1 {
    font-size: 2rem;
  }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-slide-up {
  animation: slide-up 1.2s ease-out forwards;
}
@keyframes fall {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.fall-animate section {
  animation: fall 0.6s ease-out;
}
.hidden {
  display: none;
}

@keyframes fall {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fall-in section {
  animation: fall 0.8s ease-out forwards;
}
/* Reveal container from button */
.reveal-container {
  overflow: hidden;
  transform-origin: top;
  animation: drop-expand 1s ease-out forwards;
}

@keyframes drop-expand {
  0% {
    opacity: 0;
    max-height: 0;
    transform: scaleY(0.2) translateY(-20px);
  }
  100% {
    opacity: 1;
    max-height: 5000px;
    transform: scaleY(1) translateY(0);
  }
}

/* Animate each section inside the reveal */
.reveal-container section {
  opacity: 0;
  transform: translateY(-30px);
  animation: fall-in-section 0.8s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes fall-in-section {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==== Hover effect for all section boxes ==== */
.about:hover .section-content,
.education:hover .section-content,
.projects:hover .section-content,
.contact:hover .section-content,
.thankyou:hover .section-content {
  transform: scale(1.02);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  transition: all 0.3s ease;
}
/* Hover effect only on section-content */
.section-content {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-content:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}
.section-content:hover {
  background-color: #222831;
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}
.navbar {
  display: none;
}
#extra-sections.fall-in {
  animation: fall 0.8s ease-out forwards;
  position: relative;
}
/* Navbar animation */
@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar.fade-in {
  animation: fadeSlideDown 0.8s ease forwards;
}
/* Fall-from-button animation */
@keyframes fall {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fall-in section {
  animation: fall 0.6s ease-out forwards;
}

/* Fade-in for navbar */
.navbar.fade-in {
  animation: fade-in-navbar 0.6s ease-in-out forwards;
}

@keyframes fade-in-navbar {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Slide-in Navbar */
@keyframes slide-in-top {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

.navbar-slide-in {
  animation: slide-in-top 0.8s ease-out forwards;
}

/* Space between home and falling sections */
#extra-sections {
  margin-top: 60px; /* prevents being too close */
}

/* Fall animation for each section */
.fall-in section {
  animation: fall 0.6s ease-out forwards;
}

/* Optional: add hover effect to each section */

.footer {
  text-align: center;
  padding: 20px;
  background: #1f242d;
  margin-top: 80px;
}

.about,
.education,
.projects,
.contact,
.thankyou {
  background: #232f3b;
}
.section-content {
  box-shadow: inset 0 1px 0 rgba(0,255,255,0.1);
}
.footer {
  background: #182028;
}
.header {
  background: #182028;
}
body {
  background: #182028; /* Same as homepage */
  margin: 0;
  padding: 0;
}
.section-projects {
  background: #1f242d; /* Darker background for projects */
  padding: 50px 10%;
   box-shadow: inset 0 1px 0 #232f3b;
}
main {
  background: transparent;
  margin: 0;
  padding: 0;
}

section {
  margin: 0;
  padding: 0;
  border: none;
}
.home-section {
  background: #182028;
  padding-bottom: 0; /* If too much padding below */
  margin-bottom: 0;
}

.about-section {
  background: #232f3b; /* Your desired color */
  padding-top: 40px; /* Add space only if needed */
  margin-top: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.about-content {
  padding: 2rem;
  max-width: 1100px;
  margin: auto;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.7;
  background: #182028;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s;
}

.about-content:hover {
  transform: translateY(-5px);
}

.about-intro {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.skills-list {
  list-style: none;
  padding: 0;
}

.skills-list li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-list i {
  color: #00ffff;
}
.about-intro-typing {
  font-size: 1.5rem;
  text-align: center;
  color: #00ffff;
  margin-bottom: 2rem;
  min-height: 40px;
}

.skills-flip-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.flip-card {
  background: transparent;
  width: 150px;
  height: 150px;
  perspective: 1000px;
}

.flip-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: #1b2a3a;
  color: #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

.flip-back {
  transform: rotateY(180deg);
  background: #263849;
}

.skills-bars {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bar {
  background: #1b2a3a;
  padding: 0.5rem;
  border-radius: 8px;
  position: relative;
  color: #00ffff;
}

.bar span {
  position: absolute;
  top: -1.2rem;
  left: 0;
  font-size: 0.9rem;
}

.progress {
  height: 8px;
  background: #00ffff;
  border-radius: 8px;
  transition: width 1s ease-in-out;
}
/* Divider line below Home section */
#home-divider {
  display: none;
  height: 2px;
  background-color: #00d4ff;
  margin: 40px auto;
  width: 85%;
  border-radius: 5px;
}

/* Fall-in animation */
@keyframes fallIn {
  0% {
    transform: translateY(-80px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.fall-in {
  animation: fallIn 0.9s ease-out forwards;
}

/* Navbar Slide-in */
@keyframes navbarSlide {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.navbar-slide-in {
  animation: navbarSlide 0.7s ease-out forwards;
}

/* Footer Fade-in */
@keyframes fadeInFooter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fade-in-footer {
  animation: fadeInFooter 1s ease-out forwards;
}
.hidden {
  display: none;
}

.fall-in {
  animation: fallIn 1.2s ease forwards;
}

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

.navbar-slide-in {
  animation: slideIn 0.8s ease forwards;
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.about-section {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  background-color: #263239;
}

.about-card {
  max-width: 900px;
  background: rgba(38, 50, 56, 0.6);
  border-radius: 20px;
  padding: 40px;
  color: #fff;
  box-shadow: 0 0 40px rgba(0, 247, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 2.5rem;
  color: #00f7ff;
  margin-bottom: 10px;
  text-align: center;
}

.typing-intro {
  text-align: center;
  font-size: 1.3rem;
  font-style: italic;
  color: #ccc;
}

.gradient-divider {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, #00f7ff, #007a84);
  margin: 20px 0;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: #e0f7fa;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.about-list li {
  margin: 10px 0;
  font-size: 1rem;
}

.about-list i {
  color: #00f7ff;
  margin-right: 10px;
}

.skills-container {
  margin-top: 20px;
}

.skill-bar {
  margin-bottom: 20px;
}

.skill-label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.bar {
  background: #39464e;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: #00f7ff;
  border-radius: 5px;
  text-align: right;
  padding-right: 10px;
  font-size: 0.8rem;
  color: #000;
  font-weight: bold;
}
/* ========== Glassmorphism Card Style ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  margin: 30px auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 1200px;
  color: #fff;
}

/* ========== Vertical Skill Bars ========== */
.vertical-skill-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 25px;
  height: 200px;
  margin: 40px 0;
}

.v-skill {
  width: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.v-bar {
  width: 100%;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 10px;
  color: white;
  border-radius: 12px 12px 0 0;
  transition: height 1s ease-in-out;
}

/* ========== Flip Cards ========== */
.flip-card-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.flip-card {
  background: transparent;
  width: 160px;
  height: 160px;
  perspective: 1000px;
}

.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.flip-card-back {
  background: rgba(0, 174, 255, 0.25);
  transform: rotateY(180deg);
  color: #fff;
}

/* ========== Circular Pie Skill Charts ========== */
.skill-pies {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 50px;
}

.pie-chart {
  width: 100px;
  height: 100px;
  position: relative;
}

.pie-chart svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.pie-chart circle {
  fill: none;
  stroke: #00b4db;
  stroke-width: 10;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s ease-in-out;
}

.pie-chart[data-percent="95"] circle { stroke-dashoffset: calc(283 - (283 * 95 / 100)); }
.pie-chart[data-percent="90"] circle { stroke-dashoffset: calc(283 - (283 * 90 / 100)); }
.pie-chart[data-percent="85"] circle { stroke-dashoffset: calc(283 - (283 * 85 / 100)); }
.pie-chart[data-percent="80"] circle { stroke-dashoffset: calc(283 - (283 * 80 / 100)); }

.pie-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}
.animated-fade,
.animated-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}
#about {
  padding: 40px 20px;
  min-height: auto;        /* Remove unnecessary height */
  margin-top: 60px;        /* Adds a bit of spacing below the Home section */
}
#about {
  padding: 40px 20px;
  margin-top: 60px;
}

/* Add spacing between heading and paragraph */
.about-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 8px;
}

.about-subline {
  width: 60px;
  height: 4px;
  background-color: #00ADB5;
  margin: 0 auto 25px auto; /* <-- more space under heading */
}

/* Reduce spacing between intro and next section (like flip cards) */
.about-container .intro {
  max-width: 800px;
  margin: 0 auto 10px auto; /* Reduced bottom margin */
  text-align: center;
  font-size: 1rem;
  color: #ddd;
}
#about {
  padding: 40px 20px;
  margin-top: 60px;
}

/* Heading */
.about-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

/* Underline below heading */
.about-subline {
  width: 60px;
  height: 4px;
  background-color: #00ADB5;
  margin: 0 auto 25px auto;  /* Added space between heading and paragraph */
}

/* Intro paragraph spacing reduced below */
.about-container .intro {
  max-width: 800px;
  margin: 0 auto 10px auto; /* Reduced bottom margin */
  text-align: center;
  font-size: 1rem;
  color: #ddd;
}

/* Flip card container tighter to paragraph */
.flip-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 5px; /* Less space from intro */
}
#about {
  padding: 40px 20px;
  margin-top: 30px; /* Reduced from 60px */
}

/* Heading */
.about-heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 5px; /* Less space between heading and underline */
  color: #00fff7;
}

/* Underline below heading */
.about-subline {
  width: 60px;
  height: 4px;
  background-color: #00ADB5;
  margin: 0 auto 10px auto; /* Reduced bottom margin */
}

/* Paragraph spacing */
.about-container .intro {
  max-width: 850px;
  margin: 0 auto 5px auto; /* Shrink space below paragraph */
  text-align: center;
  font-size: 1.05rem;
  color: #ddd;
}

/* Flip card spacing */
.flip-card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 0px; /* Removed excess space */
}
.about-fast-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
}

.fact-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 20px 30px;
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 247, 0.1);
  font-family: 'Poppins', sans-serif;
}

.fact-box strong {
  display: block;
  font-size: 2rem;
  color: #00fff7;
  margin-bottom: 8px;
}
.about-fast-facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0 10px 0;  /* reduce bottom margin */
}
.flip-card-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px; /* reduce from 50px or more */
}
.intro {
  margin-top: 20px; /* spacing below heading */
  margin-bottom: 0px; /* removes gap above fast-facts */
}
.about-section {
  padding: 30px 20px;
}
.about-description {
  margin-top: 10px;
  margin-bottom: 20px;
}
.stats-container {
  margin-bottom: 20px;
}
.flip-card-container {
  margin-bottom: 25px;
}
.bar.vertical {
  height: 100px;
}
.education-section {
  padding: 50px 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  margin-top: 60px;
  text-align: center;
}

.education-section .section-heading {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.education-section .section-subheading {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 40px;
}

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

.edu-card {
  width: 300px;
  padding: 25px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #fff;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.edu-icon {
  font-size: 2.5rem;
  color: #4fc3f7;
  margin-bottom: 15px;
}

.edu-duration {
  font-style: italic;
  color: #ccc;
  margin-bottom: 10px;
}

.edu-card ul {
  padding-left: 20px;
}

.edu-card ul li {
  margin-bottom: 6px;
  line-height: 1.5;
}

/* Animation on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .education-cards {
    flex-direction: column;
    align-items: center;
  }

  .edu-card {
    width: 90%;
  }
}
.education-section {
  padding: 80px 60px;
  /* background-color: #1c222b; dark theme */
  color: #fff;
  text-align: center;
}

.section-heading {
  font-size: 3rem;
  margin-bottom: 10px;
}

.section-subheading {
  font-size: 1.2rem;
  color: #b0bec5;
  margin-bottom: 50px;
}

.education-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.edu-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px 20px;
  width: 280px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 255, 255, 0.2);
}

.edu-card h3 {
  font-size: 1.3rem;
  color: #00ffff;
  margin-bottom: 10px;
}

.edu-card p {
  font-size: 1rem;
  color: #eceff1;
  margin-bottom: 8px;
}

.edu-card span {
  font-size: 0.9rem;
  color: #90a4ae;
}
/* Update heading color */
.education-section .section-heading {
  font-size: 3rem;
  color: #00ffff; /* Cyan */
  margin-bottom: 10px;
}

/* Optional tweak: Subtitle color */
.education-section .section-subheading {
  color: #cfcfcf;
}

/* Card animation using keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.edu-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px 20px;
  width: 280px;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Add delay to cards for staggered animation */
.edu-card:nth-child(1) {
  animation-delay: 0.2s;
}
.edu-card:nth-child(2) {
  animation-delay: 0.4s;
}
.edu-card:nth-child(3) {
  animation-delay: 0.6s;
}

/* Hover effect */
.edu-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 255, 255, 0.3);
}
.about-section {
  background: linear-gradient(to bottom right, #0e1923, #182028);
  /* other styles */
}

.projects-section {
  padding: 80px 60px;
  text-align: center;
  background: #0e1923;
}

.section-heading {
  font-size: 3rem;
  color: #00ffff;
  margin-bottom: 10px;
}

.section-subheading {
  font-size: 1.2rem;
  color: #b0bec5;
  margin-bottom: 50px;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;   /* 🔥 Increased gap between boxes */
}

.project-card.creative-card {
  width: 280px;
  padding: 25px;
  border-radius: 15px;
  background: linear-gradient(145deg, #1c2b34, #26343f);
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card.creative-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 255, 255, 0.3);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.project-card h3 {
  font-size: 1.4rem;
  color: #00ffff;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  color: #ddd;
  margin-bottom: 15px;
}

/* 🔥 UPDATED BUTTON STYLES */
.project-btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(90deg, #00ffff, #00bcd4);
  color: #ffffff !important;   /* ✅ Force white text */
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.project-btn:hover {
  background: linear-gradient(90deg, #00e0e0, #00a3a3);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
  color: #ffffff !important;   /* ✅ Keep text white on hover */
}

.project-btn a {
  color: #ffffff !important;
  text-decoration: none;
}
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;   /* 🔥 Increased gap between cards */
  padding: 40px 0;
}
.education-section {
  padding: 80px 60px;
  background: transparent;  /* ✅ Remove the lighter box */
  margin-top: 60px;
  text-align: center;
}
.projects-section {
  padding: 80px 60px;
  background: transparent;  /* ✅ Remove the lighter box */
  margin-top: 60px;
  text-align: center;
}
/* 📦 Contact Section Layout */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 40px 0;
  flex-wrap: wrap; /* ✅ Makes it responsive on small screens */
}

/* 🎈 Info Cards */
.info-card {
  flex: 1 1 250px; /* ✅ Ensures cards shrink & expand evenly */
  max-width: 280px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
  text-align: center;
  color: #fff;
  animation: floaty 3.5s ease-in-out infinite;
}

/* ✨ Info Card Hover Glow */
.info-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 255, 255, 0.35);
}

/* ✅ Icons in Cards */
.info-card i {
  font-size: 2rem;
  color: #00ffff;
  margin-bottom: 12px;
}

/* ✅ Fix Email Overflow */
.info-card p a {
  color: #00ffff;
  word-break: break-word; /* ✅ breaks long emails nicely */
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 5px;
}

/* 📮 Contact Form Styling */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.contact-form button {
  padding: 15px;
  background: #00ffff;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-form button:hover {
  background: #00cccc;
  transform: scale(1.05);
}

/* 🌐 Social Links */
.social-links {
  margin-top: 40px;
  text-align: center;
}

.social-links a {
  font-size: 2.3rem;
  margin: 0 20px;
  color: #cccccc;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.3);
  color: #00ffff;
}
/* 🎈 Floating Animation */
@keyframes floaty {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}
#get-in-touch {
  text-align: center;
}

/* Force the entire section content to center */
#get-in-touch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Heading styling */
.section-heading h2 {
  font-size: 2.5rem;
  color: #00fff7;
  margin-bottom: 10px;
  width: 100%;
  text-align: center;
}

/* Subheading styling */
#section-subheading p {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 40px;
  width: 100%;
  text-align: center;
}
.contact-section .section-heading {
  text-align: center;
}
.contact-section .section-subheading {
  text-align: center;
}
/* Thank You Section Styles */
.thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0e1923, #182028);
  color: #00ffff;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  margin-top: 60px;
  transition: box-shadow 0.3s ease;
}

.thankyou:hover {
  box-shadow: 0 0 40px 10px rgba(0, 255, 255, 0.6);
}

/* Floating emoji icon */
.thankyou-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #00ffff;
  animation: floaty 3s ease-in-out infinite;
}

/* Animations */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease forwards;
}

.section-content {
  font-size: 1.2rem;
  max-width: 600px;
  background: rgba(0, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

/* Fade in + slide up animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Me button */
.thankyou-btn {
  margin-top: 25px;
  padding: 12px 25px;
  background: linear-gradient(90deg, #00ffff, #00bcd4);
  color: #000;
  font-weight: bold;
  border-radius: 10px;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.thankyou-btn:hover {
  background: linear-gradient(90deg, #00e0e0, #00a3a3);
  transform: scale(1.05);
  color: #000;
}
.thankyou-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #00ffff;
  animation: floaty 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.thankyou {
  padding: 40px 20px;
  text-align: center;
  background: transparent; /* or your site's background color */
}

.thankyou .section-content {
  background: #1a1f2b; /* dark box */
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: none; /* No shadow or glow */
  transition: none;
}
.thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0e1923, #182028);
  color: #00ffff;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5); /* 🔥 REMOVE THIS LINE */
  margin-top: 60px;
  transition: box-shadow 0.3s ease;
}
#thankyou .section-content {
  box-shadow: none !important;
  background: transparent !important;
}
.thankyou {
  box-shadow: none !important;
  transition: none !important;
}

.thankyou:hover {
  box-shadow: none !important;
}
@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-image {
  animation: floaty 3s ease-in-out infinite;
}
body {
  background-image: url('bg.webp'); /* adjust path based on your structure */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white; /* Optional: ensures all text remains readable */
}

.home,
.thankyou {
  background-color: transparent !important;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('./bg.jpg'); adjust path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  opacity: 1; /* adjust to 0.5–0.8 if too bright */
}
#home,
#thankyou {
  background: transparent !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9999;
  background-image: url('./bg.webp'); /* ✅ update path if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(10px); /* ✅ adjust blur level */
  opacity: 1;
  pointer-events: none; /* makes sure it doesn't block clicks */
}
/* Base styles for mobile (default) */

/* ================== Responsive ================== */
@media (min-width: 640px) {
  /* Small tablets and above */
  .home-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .home-img img {
    width: 240px;
    height: 240px;
  }

  .navbar {
    flex-direction: row;
    gap: 1.5rem;
  }
}

@media (min-width: 768px) {
  /* Tablets and small laptops */
  .section-title {
    font-size: 2rem;
  }

  .intro {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
  }

  .thankyou {
    padding: 4rem;
  }
}

@media (min-width: 1024px) {
  /* Desktops */
  .home-content {
    flex-direction: row;
  }

  .home-img img {
    width: 300px;
    height: 300px;
  }

  .navbar {
    justify-content: space-evenly;
  }
}
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .home {
    flex-direction: row;
    justify-content: space-between;
  }
}
.hamburger {
  display: none;
  font-size: 2rem;
  color: #0ef;
  cursor: pointer;
  z-index: 999;
}

@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 100;
  }

  .navbar a {
    margin: 10px 0;
    color: white;
  }

  .navbar.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
