

/* Global Responsive Fixes */
img, video {
  max-width: 100%;
  height: auto;
}

* {
  box-sizing: border-box;
}

/* Gradient Button */
.gradient-button {
  display: inline-block;
  background: linear-gradient(270deg, brown, white, gray);
  background-size: 500%;
  color: black;
  font-size: large;
  font-weight: bold;
  border: none;
  border-radius: 18px;
  width: 100%;
  max-width: 220px;
  height: 60px;
  animation: gradientAnimation 8s ease infinite;
}

.gradient-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav-item {
  padding: 5px;
  font-weight: bold;
  animation: gradientAnimation 8s ease infinite;
}

.nav-item:hover {
  background-image: linear-gradient(to bottom, blue,aqua);
  border-radius: 18px;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}


/* Footer */
.nav-item1 {
  padding: 5px;
  font-weight: bold;
}

.nav-item1:hover {
  background-image: linear-gradient(to bottom,gray,black);
  border-radius: 18px;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}
/* eng css*/
/* Card Styling */
.ENG {
  
  border-radius: 20px;
 
  background-size: 200% 200%;
  animation: gradientAnimation 10s ease infinite;
  transition: 0.5s ease;

}

/* Hover Effect */
.ENG:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px black;
}

/* IMAGE TRANSITION */
/* Page Centering */
.threeD-gallery {
    width: 320px;
    height:200px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: rotateGallery 20s linear infinite;
    cursor: pointer;
}

.threeD-gallery:hover {
    animation-play-state: paused;
}

/* Image Styling */
.threeD-gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);
}

/* Positioning the Images in 3D Circle */
.threeD-gallery span {
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

/* 5 Images → 360 / 5 = 72 degrees */
.threeD-gallery span:nth-child(1) {
    transform: rotateY(0deg) translateZ(300px);
}
.threeD-gallery span:nth-child(2) {
    transform: rotateY(72deg) translateZ(300px);
}
.threeD-gallery span:nth-child(3) {
    transform: rotateY(144deg) translateZ(300px);
}
.threeD-gallery span:nth-child(4) {
    transform: rotateY(216deg) translateZ(300px);
}
.threeD-gallery span:nth-child(5) {
    transform: rotateY(288deg) translateZ(300px);
}

/* Hover Pop Effect (same smooth effect style) */
.threeD-gallery span:hover {
    filter: drop-shadow(0 0 10px #000);
    transform: scale(1.1) !important;
    transition: 0.5s ease-in-out;
}

/* Rotation Animation */
@keyframes rotateGallery {
    from { transform: perspective(1000px) rotateY(0deg); }
    to   { transform: perspective(1000px) rotateY(360deg); }
}.cube-gallery {
    width: 220px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: rotate360 20s linear infinite;
    cursor: pointer;
}

.cube-gallery:hover {
    animation-play-state: paused;
}

.cube-gallery img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);
}

.cube-gallery span {
    position: absolute;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
}

/* 10 image → 360/10 = 36° gap */
.cube-gallery span:nth-child(1)  { transform: rotateY(0deg) translateZ(300px); }
.cube-gallery span:nth-child(2)  { transform: rotateY(36deg) translateZ(300px); }
.cube-gallery span:nth-child(3)  { transform: rotateY(72deg) translateZ(300px); }
.cube-gallery span:nth-child(4)  { transform: rotateY(108deg) translateZ(300px); }
.cube-gallery span:nth-child(5)  { transform: rotateY(144deg) translateZ(300px); }
.cube-gallery span:nth-child(6)  { transform: rotateY(180deg) translateZ(300px); }
.cube-gallery span:nth-child(7)  { transform: rotateY(216deg) translateZ(300px); }
.cube-gallery span:nth-child(8)  { transform: rotateY(252deg) translateZ(300px); }
.cube-gallery span:nth-child(9)  { transform: rotateY(288deg) translateZ(300px); }
.cube-gallery span:nth-child(10) { transform: rotateY(324deg) translateZ(300px); }

.cube-gallery span:hover {
    filter: drop-shadow(0 0 12px #000);
    transform: scale(1.12) !important;
    transition: 0.3s ease-in-out;
}

@keyframes rotate360 {
    from { transform: perspective(1000px) rotateY(0deg); }
    to   { transform: perspective(1000px) rotateY(360deg); }
}

/* Mobile Text + Layout Fix */
@media(max-width: 768px) {
  h1, .display-5, .display-4, .fs-4 {
    font-size: 1.5rem !important;
  }

  .container-fluid > .d-flex {
    flex-wrap: wrap;
    text-align: center;
  }

  .container-fluid img {
    margin: auto;
  }

  .nav {
    flex-wrap: wrap;
  }

  .home-courses-card {
    padding: 20px;
  }
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
}
.text1{   background: linear-gradient(90deg, #ff0000, #0000ff, #00cc00, #ff9900);
    -webkit-background-clip: text;
    background-clip: text; 
    color: transparent;

}
/*ghumna*/
.threD-gallery-section {
    padding: 20px;
    width: 100%;
}

/* Row container */
.threD-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
    perspective: 1500px;   /* Increased for mobile stability */
}

/* 3D image wrapper */
.img-box {
    width: 800px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3D 7s linear infinite;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    transition: transform .4s ease;
}

/* 3D Animation */
@keyframes rotate3D {
    0%   { transform: rotateY(0deg) rotateX(0deg); }
    25%  { transform: rotateY(90deg) rotateX(5deg); }
    50%  { transform: rotateY(180deg) rotateX(0deg); }
    75%  { transform: rotateY(270deg) rotateX(-5deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}
#chatbot-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #007bff;
  color: white;
  width: 60px;
  height: 60px;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

#chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
  z-index: 9999;
}

#chatbot-header {
  background: #007bff;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

#chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.bot-msg, .user-msg {
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.bot-msg {
  background: #e3f2fd;
}

.user-msg {
  background: #d1ffd1;
  margin-left: auto;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#chatbot-input {
  flex: 1;
  border: none;
  padding: 10px;
}

#send-btn {
  width: 60px;
  border: none;
  background: #007bff;
  color: white;
}
