/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #F5F9FF, #D0E8F2);
  color: #1B4965;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  cursor: none;/* Hide default cursor */
}

/* Fix cursor on touch devices */
@media  screen and (max-width: 768px), (hover: none), (pointer: coarse) {
  body {
    cursor: auto !important;
  }
  #custom-cursor, #cursor-trail {
    display: none !important;
  }
}

/* Main cursor ring */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2.5px solid #AF9EDC;  /* Soft lilac ring */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s ease, transform 0.1s ease;
  z-index: 9999;
  box-shadow: 0 0 8px rgba(175, 158, 220, 0.7);
  background: transparent; /* No fill */
}

/* Smaller trailing ring */
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid #2D9CDB;   /* Vibrant blue ring */
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  filter: blur(2.5px);
  z-index: 9998;
  transition: opacity 0.3s ease;
  background: transparent; /* No fill */
  box-shadow: 0 0 6px rgba(45, 156, 219, 0.6);
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto; /* restore default cursor on touch devices */
  }
}

/* Floating Blobs Background */
#blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(60px);
  animation: floatBlob 5s ease-in-out infinite;
}
.blob1 {
  width: 400px;
  height: 400px;
  background: #AF9EDC;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.blob2 {
  width: 350px;
  height: 350px;
  background: #C3B1E1;
  top: 60%;
  left: 70%;
  animation-delay: 5s;
}
.blob3 {
  width: 300px;
  height: 300px;
  background: #8C7AB7;
  top: 40%;
  left: 30%;
  animation-delay: 10s;
}

@keyframes floatBlob {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-30px) translateX(20px); }
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: rgba(245, 249, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 1001;
}

.logo {
  font-size: 2.8rem;
  font-weight: 700;
  font-style: italic;
  color: #AF9EDC;
  letter-spacing: 5px;
  animation: slowZoom 2s ease-in-out infinite;
  user-select: none;
  cursor: default;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #1F2937;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
nav a:hover {
  background-color: #E4D1F7;
  color: #2D9CDB;
  box-shadow: 0 4px 10px rgba(175, 158, 220, 0.3);
}
@media screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
  }

  nav {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  nav a {
    margin: 8px 0;
    font-size: 1.1rem;
  }
}

#hero {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;     /* Center vertically */
  padding: 120px 80px 0;
  height: 100vh;
  gap: 0; /* No gap needed */
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  text-align: center; /* center text inside */
  flex-direction: column; /* Stack vertically if needed */
}

.hero-left {
  max-width: 600px; /* Optional max width */
}

.hero-left h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}
.typing {
  font-size: 1.3rem;
  color: #256D85;
  height: 1.5em;
  margin-bottom: 10px;
  position: relative;
}.typing::after {
  content: '|';
  animation: blinkCursor 1s step-start infinite;
  color: #256D85;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.tagline {
  font-size: 1rem;
  color: #5D7A8A;
  margin-bottom: 30px;
  font-style: italic;
}
/* Button */
.btn {
  background-color: #2D9CDB;
  color: white;
  padding: 14px 28px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  animation: bounce 2s infinite;
  transition: 0.3s ease;
  box-shadow: 0 4px 8px rgba(45, 156, 219, 0.5);
}
.btn:hover {
  background-color: #AF9EDC;
  box-shadow: 0 0 20px #C3B1E1;
  color: #1B4965;
}

/* Scroll Arrow */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: #2D9CDB;
  animation: bounceArrow 2s infinite;
  cursor: pointer;
  z-index: 2;
}
@keyframes bounceArrow {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

/* Animations */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes slowZoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* About Section */
#about {
  background: #E4D1F7;
  border-radius: 20px;
  margin: 60px 80px;
  padding: 80px 60px;
  box-shadow: 0 0 30px #C3B1E1AA;
  position: relative;
  z-index: 1;
}
#about h1 {
  font-size: 2.6rem;
  color: #1B4965;
  font-weight: 700;
  margin-bottom: 30px;
}

#about p {
  font-size: 1.2rem;
  color: #3F3D56;
  max-width: 700px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.see-work-btn {
  background-color: #5D4B8B;
  color: white;
  padding: 12px 28px;
  font-size: 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(93, 75, 139, 0.6);
  transition: 0.3s ease;
}
.see-work-btn:hover {
  background-color: #AF9EDC;
  box-shadow: 0 8px 18px rgba(175, 158, 220, 0.8);
  color: #1B4965;
}/* Keep your existing styles, just add/replace these */
.about-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch; /* ensure children stretch vertically */
  min-height: 500px; /* or use your #about min-height */
}

.about-left {
  flex: 2;
  min-width: 280px;
}

.about-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  /* Center vertically but stretch edu-column */
  justify-content: center;
  align-items: stretch;
  padding-left: 20px; /* optional spacing */
}

.edu-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spread evenly top to bottom */
  height: 100%;
  /* Optional: control max height if needed */
  max-height: 100%;
}

.edu-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edu-step img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

.edu-step div strong {
  font-weight: 700;
  color: #3F3D56;
  font-size: 1.05rem;
}
/* Skills Section */
.skills-section {
  margin: 60px 80px;
  padding: 50px 60px;
  background: #E8F2FA; /* Light blue background */
  border-radius: 20px;
  box-shadow: 0 0 30px #A6C8FF44;
  color: #1B4965;
  scroll-margin-top: 80px;
  user-select: none;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.skills-section h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 48px;
  color: #2D9CDB; /* Your vibrant blue */
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}



.skill-card:focus-visible {
  box-shadow: 0 0 0 4px #2D9CDBAA;
}

.skill-card {
  width: 180px;
  height: 180px;
  perspective: 1000px;
  margin: 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #D0E8F2;
  box-shadow: 0 0 10px rgba(45, 156, 219, 0.3);
}


.skill-card.flipped .skill-card-inner {
  transform: rotateY(180deg);
}

/* Separate front and back */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  box-sizing: border-box;
}

/* Front styling */
.card-front {
  background: linear-gradient(135deg, #BFDFFF, #9CC4FF);
  color: #154C79;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  user-select: none;
  position: relative;
  box-shadow: inset 0 0 12px #7FAFFFAA;
}

.card-front span {
  z-index: 1;
  pointer-events: none;
}

/* Hover hint */
.hover-hint {
  font-size: 0.75rem;
  color: #2D9CDBCC;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  pointer-events: none;
}

.skill-card:hover .hover-hint,
.skill-card:focus-visible .hover-hint {
  opacity: 1;
}

/* Back styling */
.card-back {
  background: white;
  color: #1B4965;
  font-weight: 500;
  font-size: 0.9rem;
  transform: rotateY(180deg);
  text-align: left;
  box-shadow: inset 0 0 12px #7FAFFF44;
  overflow-y: auto;
}

.card-back ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.card-back li {
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Scrollbar for overflow if needed */
.card-back::-webkit-scrollbar {
  width: 6px;
}
.card-back::-webkit-scrollbar-thumb {
  background: #2D9CDBAA;
  border-radius: 3px;
}

/* Responsive */
@media screen and (max-width: 700px) {
  .skills-section {
    margin: 40px 30px;
    padding: 40px 30px;
  }
  .skill-card {
    width: 130px;
    height: 130px;
  }
  .card-front {
    font-size: 1rem;
  }
  .card-back {
    font-size: 0.85rem;
  }
}


/* Responsive */
@media screen and (max-width: 768px) {
  .about-container {
    flex-direction: column;
    min-height: auto;
  }
  .about-left,
  .about-right {
    min-width: 100%;
  }
  .about-right {
    padding-left: 0;
    margin-top: 40px;
    position: relative;
    justify-content: flex-start;
  }
  .edu-column {
    height: auto;
    justify-content: flex-start;
    gap: 24px;
  }
  .edu-step {
    justify-content: flex-start;
  }
}
.dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: #1B4965;   /* same as h1 color */
  border-radius: 50%;
  opacity: 0.8;
  box-shadow: 0 0 8px #1B4965;
  transition: transform 1.5s ease, opacity 1.5s ease;
}
#projects {
  background: #F5F9FF;
  padding: 60px 80px;
}

.section-heading {
  font-size: 2.6rem;
  color: #1B4965;
  text-align: center;
  margin: 80px 0 40px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.project-card {
  background-color: #E4D1F7;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(195, 177, 225, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.project-card h2 {
  color: #1B4965;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.project-card p {
  color: #3F3D56;
  font-size: 1rem;
  line-height: 1.6;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(93, 75, 139, 0.4);
}

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 1s ease;
}

@media screen and (max-width: 768px) {
  #projects {
    padding: 40px 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .project-card {
    padding: 20px;
  }
}

/* Skills Section */

/* Contact Section */
#contact {
  background: #D0E8F2;
  padding: 60px 20px 60px; /* More vertical padding, smaller side padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 80px; /* smooth scroll offset for fixed header */
}

#contact h2 {
  color: #1B4965;
  font-size: 2.6rem;
  margin-bottom: 30px;
  font-weight: 700;
  user-select: none;
}

.contact-bar {
  background-color: transparent; /* Remove white box */
  padding: 0; /* remove padding so no big white square */
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: none; /* remove shadow */
}

/* Contact links stay the same */
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1B4965;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.contact-link:hover {
  color: #2D9CDB;
  background-color: rgba(45, 156, 219, 0.1);
}

.contact-link img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.contact-link:hover img {
  filter: grayscale(0%);
}

/* Responsive tweaks */
@media screen and (max-width: 600px) {
  #contact {
    padding: 40px 15px 40px;
  }
  .contact-bar {
    flex-direction: column;
    gap: 20px;
  }
}




/* Responsive */
@media screen and (max-width: 768px) {
  #hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 100px 30px;
    height: auto;
  }
  .hero-left, .hero-right {
    max-width: 100%;
  }
  .hero-left h1 {
    font-size: 2rem;
  }
  .typing {
    font-size: 1rem;
  }
  .hero-right img {
    width: 280px;
    transform: none;
  }
  .scroll-down {
    bottom: 10px;
  }
  #about {
    margin: 40px 30px;
    padding: 40px 30px;
  }
  #about h2 {
    font-size: 2.2rem;
  }
  #about p {
    font-size: 1rem;
  }
  .see-work-btn {
    font-size: 1rem;
    padding: 10px 22px;
  }
}


/* Skills section heading same as About Me */
.skills-section h2 {
  font-size: 2.6rem;
  color: #1B4965;
  font-weight: 700;
  margin-bottom: 30px;
  user-select: none;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Card back content: keep font size, just improve spacing and alignment */
.card-back {
  background: white;
  color: #1B4965;
  font-weight: 500;
  font-size: 0.9rem; /* keep as before */
  line-height: 1.6;
  transform: rotateY(180deg);
  text-align: left;
  box-shadow: inset 0 0 12px #7FAFFF44;
  overflow-y: auto;
  padding: 20px 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Neater list inside the card */
.card-back ul {
  list-style-type: disc;
  padding-left: 18px;
  margin: 0;
  max-width: 150px;
  width: 100%;
}

/* Margin between list items */
.card-back li {
  margin-bottom: 10px;
}

/* Scrollbar */
.card-back::-webkit-scrollbar {
  width: 6px;
}
.card-back::-webkit-scrollbar-thumb {
  background: #2D9CDBAA;
  border-radius: 3px;
}

/* Front text size same as before */
.card-front span {
  font-weight: 700;
  color: #154C79;
  user-select: none;
}

/* Hover hint styling */
.hover-hint {
  font-size: 0.75rem;
  color: #2D9CDBCC;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
  pointer-events: none;
}

.skill-card:hover .hover-hint,
.skill-card:focus-visible .hover-hint {
  opacity: 1;
}

/* Responsive tweaks */
@media screen and (max-width: 700px) {
  .card-back {
    font-size: 0.85rem;
    max-width: 120px;
    padding: 15px 12px;
  }
  .card-back li {
    margin-bottom: 8px;
  }
  .skills-section h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
  }
}

@media screen and (max-width: 768px) {
  header {
    display: none !important;
  }

  #hero {
    padding-top: 0 !important;
    height: 100svh !important; /* Use small viewport height unit */
  }
}



