/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f0f0f0;

  
}

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 4px solid rgba(255, 255, 255);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body.loaded .loading-overlay {
  display: none;
}

/* NAVBAR STYLES */
.custom-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 10vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: rgba(14, 17, 23, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  color: white;
  
}

.logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #00f7ff;
  text-shadow: 0 0 5px #00f7ff, 0 0 10px #00cfff, 0 0 20px #009eff;
}

.nav-links {
  list-style: none;
  display: flex;
  transition: right 0.4s ease, opacity 0.4s ease;
}


.nav-links li {
  margin-left: 30px;
  position: relative;
  margin-top: 3%;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #00f7ff;
  transform: scale(1.05);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00f7ff, #00b2ff);
  left: 0;
  bottom: -5px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.4s ease;
}

/* MOBILE NAVBAR */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    background-color: rgba(14, 17, 23, 0.95);
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    opacity: 0;
    display: flex;
    transition: right 0.4s ease, opacity 0.4s ease;
  }

  .nav-links.active {
    right: 0;
    opacity: 1;
  }

  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(-10px);
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
}

/* BUBBLE ANIMATION */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(236, 236, 16, 0.453);
  z-index: 500;
  pointer-events: none;
  animation: bubbleAnimation 1.5s ease-out forwards;
}

@keyframes bubbleAnimation {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
    top: -50px;
  }
}

/* HERO SECTION */


#typed-name {
  font-weight: bold;
}

#typed-titles {
  color: #555;
}

.rotate-btn {
  position: relative;
  width: 150px;
  height: 50px;
  transition: 1.5s;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg);
  display: block;
  margin-top: 20px;
}

.rotate-btn:hover {
  transform: perspective(1000px) rotateX(360deg);
}

.rotate-btn span {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: rgba(255, 255, 255, 0.9);
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: 1px;
  transition: 0.5s;
  border: 2px solid #000;
  box-sizing: border-box;
}

.rotate-btn:hover span {
  color: #fff;
  background: rgba(3, 169, 244, 0.8);
}

.rotate-btn span:nth-child(1) {
  transform: rotateX(0deg) translateZ(25px);
}

.rotate-btn span:nth-child(2) {
  transform: rotateX(90deg) translateZ(25px);
}

.rotate-btn span:nth-child(3) {
  transform: rotateX(180deg) translateZ(25px);
}

.rotate-btn span:nth-child(4) {
  transform: rotateX(270deg) translateZ(25px);
}

.round {
  position: absolute;
  animation: rotate 15s linear infinite;
  z-index: 2;
  opacity: 0.8;
}
.person{
  z-index: 50;
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* EDUCATION SECTION */
/* Section Layout */
.education {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 900;
  padding-bottom: 30px;
  margin-bottom: 0; 
}

.education h1 {
  text-align: center;
  font-size: 2.5rem;
}

.col h2,
.col p {
  text-align: center;
}

/* Card Styles */
.edu-card {
  border: none;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.edu-card .card-body {
  padding: 2rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1rem;
  color: #555;
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Optional staggered delays */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}

.skill-bars-section {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 60px 15px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.skills-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skill-circle {
  --circle-size: 130px;
  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  background: transparent;
  cursor: default;
  user-select: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px;
  --fg-color: #f6bd60;
  --bg-color: rgba(255 255 255 / 0.15);

  /* Remove animation from default */
  opacity: 1;
  transform: translateY(0);
  animation: none;
}

/* Background circle */
.circle-bg,
.circle-fg {
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  top: 0; 
  left: 0;
}

.circle-bg {
  background: var(--bg-color);
}

/* Foreground circle fill with rotation based on skill percent */
.circle-fg {
  clip: rect(0, var(--circle-size), var(--circle-size), calc(var(--circle-size) / 2));
  background: var(--fg-color);
  transform: rotate(calc((var(--skill-percent) / 100) * 360deg));
  transition: transform 1.2s ease;
  z-index: 1;
}

/* Hover effect */
.skill-circle:hover .circle-fg {
  --fg-color: #f8e71c;
  filter: drop-shadow(0 0 8px #f8e71c);
}

/* Skill text in center */
.skill-text {
  position: relative;
  z-index: 10;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
  user-select: none;
  text-align: center;
}

.skill-text span {
  font-size: 1.6rem;
  font-weight: 900;
  display: block;
  margin-top: 4px;
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.9);
}

/* Hidden state before reveal */
.skill-circle.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When revealed, animate fill and fade-in */
.skill-circle.revealed {
  animation: fillCircle 1.5s ease forwards;
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays */
.skill-circle.revealed:nth-child(1) { animation-delay: 0.3s; }
.skill-circle.revealed:nth-child(2) { animation-delay: 0.5s; }
.skill-circle.revealed:nth-child(3) { animation-delay: 0.7s; }
.skill-circle.revealed:nth-child(4) { animation-delay: 0.9s; }
.skill-circle.revealed:nth-child(5) { animation-delay: 1.1s; }

@keyframes fillCircle {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.project-card-light {
  height:230px;
  position: relative;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.project-card-light:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card-light:hover .project-img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.project-overlay-light {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card-light:hover .project-overlay-light {
  opacity: 1;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
}

.project-desc {
  font-size: 0.95rem;
  color: #333;
}
#projects .container h4{
  color: black !important;
}
.section-title {
  font-size: 2rem !important;
}

.footer-form {
  background: linear-gradient(135deg, #1e1e2f, #34344e);
  color: #fff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-form a {
  color: #fff;
  transition: color 0.3s ease;
}

.footer-form a:hover {
  color: #0d6efd;
}

.footer-form .social-icon {
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-form .social-icon:hover {
  transform: scale(1.2);
  color: #0d6efd;
}

.footer-form input,
.footer-form textarea {
  background-color: #2c2c3a;
  border: 1px solid #444;
  color: #fff;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
  color: #bbb;
}

.footer-form input:focus,
.footer-form textarea:focus {
  background-color: #2c2c3a;
  border-color: #0d6efd;
  box-shadow: none;
  color: #fff;
}
