/* Profile Image - Circular with Gradient Border */
.profile-img-wrapper {
  width: 250px;
  height: 250px;
  margin: 0 auto;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(45deg, #002de2, #ff00c4, #158eff);
  background-size: 300%;
  animation: borderFlow 6s ease infinite;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease;
}

.profile-img-wrapper:hover .profile-img {
  transform: scale(1.08);
}

.about-paragraph {
  text-align: justify;

}

/* Responsive */
@media (max-width: 768px) {
  .profile-img-wrapper {
    width: 200px;
    height: 200px;
  }

  h1 {
    font-size: 3rem;
    text-align: center;
  }

  .subheading {
    font-size: 1.3rem;
  }

  .about-paragraph {
    text-align: justify;
  }

  .list-social-icons {
    justify-content: center;
  }
}

.edu-logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  border-radius: 50%;
  margin-right: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s ease-in-out;
  /* ← NEW */
}

.edu-logo:hover {
  transform: rotate(360deg);
  /* ← NEW */
}

.edu-row {
  display: flex;
  align-items: top;
}

@media (max-width: 767px) {
  .edu-row {
    flex-direction: column;
    text-align: left;
  }

  .edu-logo {
    margin: 10px 0;
  }
}

/* slide SLIDER - PERFECT FULL-WIDTH */
.slide-stack {
  overflow: hidden;
  padding: 15px 0;
  width: 75vw;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.slide-track {
  display: flex;
  gap: 24px;
  animation: scroll 18s linear infinite;
  white-space: nowrap;
  padding: 0 10px;
}

.slide-item {
  background: rgba(76, 56, 255, 0.15);
  color: #0066ff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  flex-shrink: 0;
  border: 1px solid rgba(76, 56, 255, 0.3);
  transition: all 0.3s ease;
}

.slide-item:hover {
  background: #0066ff;
  color: white;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(76, 56, 255, 0.6);
}

.slide-stack:hover .slide-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Mobile fix */
@media (max-width: 768px) {
  .slide-item {
    font-size: 12px;
    padding: 8px 16px;
  }

  .slide-stack {
    width: 90vw;
  }
}

/* Glassmorphism Card */
.achievement-card {
  perspective: 1000px;
  height: 100%;
  cursor: pointer;
}

.card-inner {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

/* 3D Tilt on Hover */
.achievement-card:hover .card-inner {
  transform: translateY(-12px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(68, 0, 255, 0.2);
  border-color: #0066ff;
}

.achievement-card:hover .card-inner::before {
  opacity: 1;
}

/* Trophy */
.trophy-container {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #ffd700, #ffb800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.trophy-container i {
  color: white;
  font-size: 28px;
  transition: transform 0.6s ease;
}

.achievement-card:hover .trophy-container i {
  transform: rotate(360deg) scale(1.2);
}

/* Text */
.card-inner h5 {
  margin: 0 0 12px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.1rem;
  text-transform: none !important;
}

.card-inner .issuer {
  color: #0066ff;
  font-weight: 600;
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.card-inner .date {
  color: #7f8c8d;
  font-size: 0.75rem;
}

/* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0; top: 0;
            width: 100%; height: 100%;
            background-color: rgba(0,0,0,0.9);
            align-items: center;
            justify-content: center;
            padding: 20px;
            box-sizing: border-box;
        }
        .modal img {
            max-width: 90%;
            max-height: 90vh;
            border: 4px solid white;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(2, 0, 99, 0.5);
        }
        .close {
            position: absolute;
            top: 25px;
            right: 35px;
            color: #fff;
            font-size: 50px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
        }
        .close:hover {
            color: #0066ff;
        }

/* === ROW GAP FIX === */
.row.g-4>[class*="col-"] {
  margin-bottom: 2rem !important;
  /* Forces proper row spacing */
}

@media (max-width: 768px) {
  .card-inner {
    padding: 20px;
  }

  .trophy-container {
    width: 50px;
    height: 50px;
  }

  .trophy-container i {
    font-size: 24px;
  }

  .row.g-4>[class*="col-"] {
    margin-bottom: 1.5rem !important;
  }
}

.heading {
  background: linear-gradient(90deg, #002de2, #ff00c4, #158eff, #002de2);
  background-size: 400%;
  word-spacing: 5px;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: animate 10s linear infinite;
}

@keyframes animate {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

/*FULL PORTFOLIO LOADER WITH LOGO*/

#portfolio-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #002147;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  overflow: hidden;
}

.loader-container {
  text-align: center;
}

/* LOGO ORB WITH ANIMATED GRADIENT BORDER */
.loader-orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto 24px;
  overflow: hidden;
  background: linear-gradient(45deg, #002de2, #ff00c4, #158eff, #002de2);
  background-size: 300%;
  animation: gradientFlow 4s ease infinite;
  box-shadow: 0 0 50px rgba(255, 107, 74, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  animation: logoPulse 2s infinite ease-in-out;
  z-index: 2;
}

/* GLOW EFFECT AROUND ORB */
.loader-orb::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
  z-index: -1;
}

/* LOADING TEXT WITH SHIMMER + DOTS */
.loader-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.loader-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shimmer 1.5s infinite;
  transform: translateX(-100%);
}

.dots::after {
  content: '...';
  animation: dots 1.5s infinite;
}

/* ANIMATIONS */
@keyframes gradientFlow {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes dots {

  0%,
  100% {
    content: '.';
  }

  33% {
    content: '..';
  }

  66% {
    content: '...';
  }
}

/* HIDE LOADER WHEN PAGE LOADS */
.loaded #portfolio-loader {
  opacity: 0;
  visibility: hidden;
}

/* MOBILE RESPONSIVE */
@media (max-width: 576px) {
  .loader-orb {
    width: 80px;
    height: 80px;
  }

  .loader-logo {
    width: 55%;
    height: 55%;
  }

  .loader-text {
    font-size: 1.1rem;
  }
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px 0;
  margin-bottom: 30px;
}

.icon-box {
  text-align: center;
  font-size: 14px;
  padding: 10px;
  border: 1px solid #0066ff;
  border-radius: 10px;
  transition: transform 0.3s, color 0.3s;
  color: rgb(122, 122, 122);
}

.icon-box img {
  min-width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 5px;
  filter: grayscale(0%);
  transition: transform 0.3s, filter 0.3s ease-in-out;
}

.icon-box:hover img {
  filter: grayscale(100%);
}

.icon-box:hover {
  color: #0066ff;
  transform: translateY(-5px);
}

/* Project Card */
.project-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(255, 107, 74, 0.15);
}

.project-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ensures image fills the square nicely */
  transition: transform 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  background: #fff;
  color: #0066ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #0066ff;
  color: white;
  transform: scale(1.15);
}

.project-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h5 {
  margin: 0 0 10px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.2rem;
}

.project-content p {
  flex-grow: 1;
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-pill {
  background: rgba(74, 122, 255, 0.1);
  color: #0066ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(74, 77, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .project-content {
    padding: 16px;
  }
}


/* SOCIAL MEDIA ROW */
.social-media-row {
  padding: 20px 0;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border-radius: 12px;
  color: #002147;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: solid 1px #002147;
}

.social-link i {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.social-link:hover {
  background: linear-gradient(135deg, #0066ff, #002147);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 107, 74, 0.2);
  border: none;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #fff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0066ff, #002147);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h6 {
  margin: 0 0 4px;
  color: #2c3e50;
  font-weight: 600;
}

.contact-item p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* CONTACT FORM */
.contact-form {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 45px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #0066ff;
  box-shadow: 0 0 0 4px rgba(92, 74, 255, 0.1);
}

.form-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #003f88;
  font-size: 1.1rem;
}

textarea.form-control {
  resize: none;
}

.submit-btn {
  background: linear-gradient(135deg, #0066ff, #002147);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

.form-message p {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.success-msg {
  background: #d4edda;
  color: #00851f;
  border: 1px solid #c3e6cb;
}

.error-msg {
  background: #f8d7da;
  color: #b90013;
  border: 1px solid #f5c6cb;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .social-link {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .contact-item {
    padding: 14px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}


.site-footer {
  background: #f0f0f0;
  padding: 20px 0;
  margin-top: 60px;
  font-size: 0.9rem;
  color: #6c757d;
  border-top: 1px solid #e9ecef;
}

@keyframes beat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

@media (max-width: 576px) {
  .site-footer {
    padding: 16px 0;
    font-size: 0.85rem;
  }
}


.project-img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* ensures image fills the square nicely */
  transition: transform 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}

.highlight-box {
  border-color: #0d6efd !important;
}

.subheading_home {
  text-transform: uppercase;
  font-weight: 500;
  font-family: 'Saira Extra Condensed', serif;
  font-size: 1.35rem;
}

/* Responsive */
@media (max-width: 768px) {
  .subheading_home {
    text-align: center;
    font-size: 1.3rem;
  }
}

.medal-slider {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    margin-bottom: 80px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.medal-track {
    display: flex;
    gap: 40px;
    animation: medalScroll 18s linear infinite;
}

.medal-item img {
    width: 230px;         
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 3px 5px rgba(0,0,0,0.25));
    transition: transform 0.3s ease;
}

.medal-item img:hover {
    transform: scale(1.07);
}

.medal-slider:hover .medal-track {
  animation-play-state: paused;
}

@keyframes medalScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}



