* {
  box-sizing: border-box;
}

body,html {
  overflow-x: hidden;
}
h1{
    text-align: center;
    font-size: 70px;
    color: white;
    font-family: Quicksand, sans-serif;
}
h2{
    text-align: center;
    font-family: verdana,sans-serif;
    font-size: 50px;
}
.tagline {
  text-align: center;
  font-size: 1.5rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  font-family: 'Quicksand', sans-serif;
}
a {
  position: relative;
  z-index: 10;
}
@media (max-width: 768px) {
  .img-fluid {
    margin-bottom: 20px;
  }
}

/* SPINNER - INDEX.HTML */
#spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.custom-spinner{
    color:#15a413;
    width: 12rem;
    height: 12rem;
    border-width: 1rem;

}

/* BG VIDEO - INDEX.HTML */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}
.content-overlay {
  position: relative;
  z-index: 1;
}
.tagline {
  margin-bottom: 3rem; 
}


/* ICONS - INDEX.HTML */
.language-icons {
  display: flex;
  flex-wrap: wrap; 
  justify-content:center;
  gap: 10px; 
  margin-bottom: 30px;
}
.lang-icon {
  width: 60px;
  height: auto;
  margin: 0 10px;
  vertical-align: middle;
}


/* ACCORDION - Q&A.HTML */
.accordion-item{
  border-top: 1px solid black;
  margin: 0;
  padding: 0;
}
#accordionExample{
  border: 5px solid black;
  border-radius: 8px;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}
.accordion-item:last-child {
  border-bottom: 1px solid black;
}
.accordion-button {
  background-color: #9e53db !important; /*custom colour accordion*/
  color: white !important;
  font-weight: 50;
}
.accordion-body {
  background-color: #fef2fd;
  color: #333;
}
.accordion-button:focus {
  box-shadow: none;
  outline: none;
}

/* LINEAR GRADIENTS - ALL PAGES EXCEPT INDEX.HTML */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
body.qna-page {
  background: linear-gradient(-45deg, #c31432, #240b36, #3a0d40, #c31432);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  min-height: 100vh;
  margin: 0;
}
body.projects-page {
  background: linear-gradient(45deg,#000000,#0f9b0f);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
  min-height: 100vh;
  margin: 0;
}
body.contact-page {
  background: linear-gradient(120deg,#fc00ff,#00dbde);
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
  min-height: 100vh;
  margin: 0;
}
body.timeline-page {
  background: linear-gradient(-60deg,#00b09b,#00b09b,#1cb783,#39bd6a,#5dc452,	#7ccb44,	#96c93d);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  min-height: 100vh;
  margin: 0;
}
body.experiences-page {
  background: linear-gradient(-45deg,#333333,#4a2c2c,#602626,#762020,#8d1a1a,#a31414,#ba0f0f,#dd1818);
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  min-height: 100vh;
  margin: 0;
  color: white;
  font-family: 'Quicksand', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
  margin: 0;
}


/* CARDS - INDEX.HTML */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 20px;
  padding: 20px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.card-1 { /* Card 1 - Solid Red with diagonal pattern */
  background: repeating-linear-gradient(
    45deg,
    #e63946,
    #e63946 10px,
    #d62828 10px,
    #d62828 20px
  );
}
.card-2 { /* Card 2 - Solid Blue with subtle dots */
  background-color: #457b9d;
  background-image: radial-gradient(#ffffff20 1px, transparent 1px);
  background-size: 10px 10px;
}
.card {
  border: none;
  border-radius: 14px;
  height: 150px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-align: center;
}
.card:hover { /* Hover scale */
  transform: scale(1.05);
}
.card-3 { /* Card 3 – Deep Purple with wave texture */
  background-color: #5f0f40;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 4px,
    transparent 4px,
    transparent 8px
  );
}
.card-4 { /* Card 4 – Forest Green with grid texture */
  background-color: #1b4332;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}
.card-5 { /* Card 5 – Midnight Blue with diagonal lines */
  background-color: #1b263b;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 6px
  );
}
.card-6 { /* Card 6 – Dark Orange with horizontal lines */
  background-color: #e76f51;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px,
    transparent 6px
  );
}



/* CONTACT BUTTONS - CONTACT.HTML */
.contact-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  border-radius: 10px;
  text-decoration: none;
  width: fit-content;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.contact-btn i {
  font-size: 1.5rem;
}
/* Platform-specific colors */
.linkedin {
  background-color: #0077b5;
}
.github {
  background-color: #333;
}
.leetcode {
  background-color: #ffa116;
  color: black;
}
.email {
  background-color: #6c757d;
  cursor: default;
}
.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%,
              #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.instagram:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}
.contact-btn:hover:not(.email) {/* Hover effect */
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* BACK TO HOME BUTTON - ALL PAGES EXCEPT INDEX.HTML */
.back-btn {
  margin-top: 30px;
  padding: 10px 20px;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
}
.back-btn:hover {
  background-color: white;
  color: #2c5364;
}
.back-to-home {
  text-align: center;
  margin: 50px 0 20px;
}
.back-to-home a {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 25px;
  transition: background 0.3s ease, color 0.3s ease;
}
.back-to-home a:hover {
  background: white;
  color: black;
}

/* TIMELINE - TIMELINE.HTML */
.timeline-vertical {
  position: relative;
  margin: 60px auto;
  max-width: 900px;
  padding: 0 40px;
}
.timeline-vertical::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background-color: white;
}
.timeline-event {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}
.timeline-event .timeline-dot {
  position: absolute;
  top: 15px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  border: 3px solid white;
  z-index: 1;
}
.timeline-event.left {
  left: 0;
  text-align: right;
}
.timeline-event.left .timeline-dot {
  right: -10px;
}
.timeline-event.left .timeline-content {
  margin-right: 60px;
}
.timeline-event.right {
  left: 50%;
  text-align: left;
}
.timeline-event.right .timeline-dot {
  left: -10px;
}
.timeline-event.right .timeline-content {
  margin-left: 60px;
}
.timeline-content {
  color: white;
  font-family: 'Quicksand', sans-serif;
}
.timeline-content h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.timeline-content p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Responsive fallback: vertical */
@media (max-width: 768px) {
  .timeline-vertical::before {
    left: 20px;
    transform: none;
  }

  .timeline-event {
    width: 100%;
    left: 0 !important;
    padding-left: 60px;
    text-align: left !important;
  }

  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }

  .timeline-content {
    margin: 0 !important;
  }
}

/* PROJECT CARDS - PROJECT.HTML */

/* Flip Card Container */
.flip-card {
  width: 300px;
  height: 350px;
  perspective: 1000px;
  margin: 20px auto;
}

/* Flip Inner */
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease;
  transform-style: preserve-3d;
}

/* Shared styles for front and back */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}
/* Flip on hover (desktop) or .flipped (mobile) */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}



/* FRONT */

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);


}

/* Blurred image on front */
.blurred-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.7);
  z-index: 0;
  top: 0;
  left: 0;
}

/* Overlay text */
.overlay-text {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide overlay text on flip (mobile-safe) */
.flip-card:hover .overlay-text,
.flip-card.flipped .overlay-text {
  display: none;
}

/* Project Title */
.project-title {
  color: white;
  font-size: 1.6rem;
  font-family: 'Quicksand', sans-serif;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  text-shadow: 1px 1px 4px #000;
}

/* BACK */

.flip-card-back {
  transform: rotateY(180deg);
  background-color: #222;
  color: white;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 1;
}

/* Image at the back */
.back-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Tech badges */
.tech-stack .badge {
  margin: 3px;
}
