
:root {
  --bs-bodyc: #01183b;
  --bs-blue: #0d6efd;
  --bs-indigo: #6610f2;
  --bs-purple: #6f42c1;
  --bs-pink: #d63384;
  --bs-red: #dc3545;
  --bs-orange: #fd7e14;
  --bs-yellow: #ffc107;
  --bs-green: #198754;
  --bs-teal: #20c997;
  --bs-cyan: #0dcaf0;
  --bs-white: #fff;
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --bs-gradient: linear-gradient(180deg, rgb(32, 7, 90), rgba(255, 255, 255, 0));
}

html {
  scroll-behavior: smooth;
}


/* Navbar base */
#navberA {
  background-color: var(--bs-primary); /* fallback */
  transition: background-color 0.3s ease-in-out;
}

/* Navbar brand */
#navberA .navbar-brand {
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff !important;
  transition: color 0.3s ease;
}
#navberA .navbar-brand:hover {
  color: #ffd700 !important; /* gold hover */
}

/* Navbar links */
#navberA .nav-link {
  color: #f8f9fa !important;
  padding: 8px 15px;
  transition: all 0.3s ease;
  border-radius: 5px;
}
#navberA .nav-link:hover {
  background-color: rgba(255,255,255,0.1);
  color: #ffd700 !important;
  transform: translateY(-2px);
}

/* Active link */
#navberA .nav-link.active {
  background-color: #0d6efd;
  color: #fff !important;
}

/* Mobile bottom navbar */
#navberB {
  background-color: #212529;
}
#navberB .nav-link {
  color: #f8f9fa;
  font-size: 14px;
  transition: color 0.3s ease;
}
#navberB .nav-link:hover {
  color: #ffd700;
}




#fast {
  width: 100%;
  padding: 0; /* optional: remove default padding */
  margin: 0;  /* optional: remove margin */
}

#fast img {
  opacity: 0;
  transition: opacity 1s ease-in;
}
#fast img.show {
  opacity: 1;
}
/* Add perspective to the parent container */
.col-md-6 {
  perspective: 800px;
}

/* Apply 3D transform and animation to the image */
.col-md-6 img {
  transform: rotateY(0deg) rotateX(0deg);
  transition: transform 0.5s ease;
  animation: float3D 6s ease-in-out infinite;
}

/* Hover effect for interactive tilt */
.col-md-6 img:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

/* Keyframes for subtle floating motion */
@keyframes float3D {
  0%   { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
  25%  { transform: rotateY(5deg) rotateX(3deg) translateY(-5px); }
  50%  { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
  75%  { transform: rotateY(-5deg) rotateX(-3deg) translateY(5px); }
  100% { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
}


#home{
  border: 1px solid rgba(207, 203, 203, 0.247);
  box-shadow: 0 0 0 0 2px rgb(230, 227, 227);
}

/* Frame container */
.frame {
  position: relative; /* allow absolute positioning inside */
  display: inline-block;
  padding: 10px;
  border: 4px solid transparent;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff6ec4, #7873f5, #4ade80, #facc15);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  perspective: 800px;
}

/* Image inside frame */
.frame img {
   width: 100%;          /* fill the column width */
  max-width: 400px;     /* optional: limit max width */
  height: 300px;        /* fixed height */
  object-fit: cover;    /* crop/scale to fit nicely */
  display: none;        /* start hidden for slideshow */
  margin: 0 auto;  
  border-radius: 8px;
  transform: rotateY(0deg) rotateX(0deg);
  transition: transform 0.5s ease;
  animation: float3D 6s ease-in-out infinite;
  
}

.frame .slide {
  position: relative;
  display: none; /* hidden by default */
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}


.caption {
  position: absolute;
  top: 40px;             /* moves it above image */
  left: -30%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  animation: fadeText 1s ease;
  z-index: 2; 
   border: 4px solid #333;
  clip-path: polygon(
    20px 0, calc(100% - 20px) 0, 100% 20px,
    100% calc(100% - 20px), calc(100% - 20px) 100%, 
    20px 100%, 0 calc(100% - 20px), 0 20px
  );
   box-shadow: 0 4px 10px rgba(0,0,0,0.); /* soft shadow */
}

/* Speech bubble tail */
.caption::after {
  content: "";
  position: absolute;
  bottom: -15px; /* tail below bubble */
  left: -50px;    /* adjust horizontally */
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top-color: #ffffff; /* border matches bubble outline */
}

.caption::before {
  content: "";
  position: absolute;
  bottom: -13px;
  left: -50px;
  width: 0;
  height: 0;
  border: 9px solid transparent;
  border-top-color: #fff; /* inner tail matches bubble background */
}

/* Fade-in animation */
@keyframes fadeText {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hover tilt effect */
.frame img:hover {
  transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

/* Gradient animation for frame */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating 3D animation */
@keyframes float3D {
  0%   { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
  25%  { transform: rotateY(5deg) rotateX(3deg) translateY(-5px); }
  50%  { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
  75%  { transform: rotateY(-5deg) rotateX(-3deg) translateY(5px); }
  100% { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
}

.timeline {
  position: relative;
  margin: 0 auto;
  padding: 10px 0;
  width: 80%;
}
/* Base trunk line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #007bff;
  transform: translateX(-50%);
}

/* Node dots */
.timeline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  box-shadow: 0 0 10px #007bff; /* glowing effect */
  transform: translateY(-50%);
}

/* Position dots depending on side */
.timeline-item.left::before {
  right: -10px; /* connect to trunk */
}
.timeline-item.right::before {
  left: -10px; /* connect to trunk */
}

/* Mobile view */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 20px; /* trunk line moves left */
  }
  .timeline-item {
    width: 100%;
    margin: 0;
    padding: 20px 0 20px 40px;
    text-align: left;
    border: none;
  }
  .timeline-item.left,
  .timeline-item.right {
    margin-left: 0;
    left: 0;
  }
  .timeline-item::before {
    left: 0; /* dots align with trunk */
    right: auto;
  }
}

.timeline-item {
  display: flex;
  justify-content: flex-end; /* default left side */
  width: 50%;
  padding: 20px;
  opacity: 0; /* hidden initially */
}
.timeline-item.right {
  margin-left: 50%; /* push to right side */
  justify-content: flex-start;
}
.timeline-item img {
  border: 3px solid #007bff;
}

@media screen and (max-width: 768px) {
  .timeline::before {
    left: 20px; /* move trunk line to left edge */
  }
  .timeline-item {
    width: 100%;
    margin: 0;          /* reset margins */
    padding: 20px 0 20px 40px; /* spacing from trunk line */
    text-align: left;
    border: none;       /* remove branch borders */
  }
  .timeline-item.left,
  .timeline-item.right {
    margin-left: 0;     /* reset right-side offset */
    left: 0;            /* reset positioning */
  }
}


/* information */

.tick-list {
  list-style: none; /* remove default bullets */
  padding: 0;
}
.tick-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.tick-list li::before {
  content: "✔"; /* tick mark */
  position: absolute;
  left: 0;
  color: #28a745; /* green tick */
  font-weight: bold;
}

.toggle-btn {
  cursor: pointer;
  color: #007bff;
}
.toggle-content {
  display: none; /* hidden initially */
  margin-top: 10px;
}


#school-awards.active {
  background-color: #f8f9fa;
  box-shadow: 0 0 15px rgba(0,123,255,0.5);
  transition: all 0.5s ease;
}

#navberA.nav-link.active {
  color: #007bff !important;
  font-weight: bold;
  border-bottom: 2px solid #007bff;
  transition: all 0.3s ease;
}

.carousel {
  perspective: 1200px;
}

.carousel-item {
  transform-style: preserve-3d;
  transition: transform 1s ease;
  width: 100%;
  height: 600px;
  object-fit: cover;
}
.carousel-item.active {
  transform: rotateY(0deg) scale(1);
}
.carousel-item-next {
  transform: rotateY(45deg) scale(0.9);
  
}
.carousel-item-prev {
  transform: rotateY(-45deg) scale(0.9);
}

/* Active slide (front-facing) */
.carousel-item.active {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}

/* Next slide (angled right) */
.carousel-item-next {
  transform: rotateY(45deg) scale(0.9);
  opacity: 0.7;
}

/* Previous slide (angled left) */
.carousel-item-prev {
  transform: rotateY(-45deg) scale(0.9);
  opacity: 0.7;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) drop-shadow(0 0 2px rgba(0,0,0,0.5));
}


.carousel-item img {
  box-shadow: 0 10px 25px rgba(100, 100, 100, 0.3);
  border-radius: 10px;
   width: 100%;
  height: 500px;
  object-fit: contain;
  background: #f7f7f7ab; /* adds black bars if aspect ratio differs */
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  transition: 0.3s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

marquee {
  font-weight: bold;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 300px;
  }
}


#history h3 {
  color: #0d6efd;
}

#history img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#history img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}



.parallax {
  background-image: url('pralaxbg.jpg');
  min-height: 400px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}



/* Text styling */
.parallax h2 {
  font-size: 2.5rem;
  font-weight: bold;
}

.parallax p {
  max-width: 700px;
  margin: auto;
  font-size: 1.2rem;
}

/* Image polish */
#history img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

#history img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
