body, p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', Arial, sans-serif; /* Fallback fonts */
}


/* HERO FUTURISTIC DESIGN */
.hero-futuristic {
  position: relative;
  overflow: hidden;
}

/* TEXT GRADIENT + SOFT GLOW EFFECT */
.text-gradient-glow {
  background: linear-gradient(90deg, #00ffea, #00bfff, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: shimmerText 4s infinite linear;
  font-weight: bold;
}

.hero-subtitle {
    min-height: 60px; /* Reserve space to prevent layout shift */
    line-height: 1.4; /* Consistent text height */
}

.text-gradient-glow-soft {
  background: linear-gradient(90deg, #00eaff, #00bfff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerText 5s infinite linear;
}

/* SHIMMER ANIMATION */
@keyframes shimmerText {
  0% { background-position: -500px 0; }
  100% { background-position: 500px 0; }
}

/* BUTTONS */
.hero-btn {
  border-radius:50px;
  padding:0.8rem 2rem;
  transition: all 0.4s ease;
}
.hero-btn:hover {
  transform: translateY(-7px) scale(1.05);
  box-shadow: 0 20px 40px rgba(255, 204, 0,0.5);
}

.hero-btn-outline {
  border-radius:50px;
  border:2px solid #fff;
  color:#fff;
  padding:0.8rem 2rem;
  transition: all 0.4s ease;
}
.hero-btn-outline:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255,255,255,0.15);
}

/* HERO IMAGE */
.hero-img-wrapper {
  position: relative;
}
.hero-img {
    transform: rotateY(0deg) rotateX(0deg); /* default no rotation */
    transition: transform 0.3s ease; /* optional animation on hover only */
}
.hero-img-wrapper:hover .hero-img {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
}

/* SHAPES FLOATING */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 8s infinite alternate;
}
.shape-1 { width:50px; height:50px; background:#ffcc00; top:10%; left:20%; animation-delay:0s;}
.shape-2 { width:70px; height:70px; background:#00ffff; top:40%; left:70%; animation-delay:2s;}
.shape-3 { width:40px; height:40px; background:#ff00ff; top:60%; left:35%; animation-delay:4s;}
@keyframes float {
  0% { transform: translateY(0px) translateX(0px) rotate(0deg);}
  50% { transform: translateY(-20px) translateX(15px) rotate(20deg);}
  100% { transform: translateY(0px) translateX(0px) rotate(0deg);}
}

/* BACKGROUND LAYERS */
.hero-bg-layers {
  position:absolute;
  top:0; left:0; width:100%; height:100%; overflow:hidden; z-index:0;
}
.bg-layer {
  position:absolute;
  width:200%; height:200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  animation: rotateLayer 60s linear infinite;
}
.layer-2 { animation-duration: 80s; background: radial-gradient(circle, rgba(255,204,0,0.05), transparent 70%);}
.layer-3 { animation-duration: 100s; background: radial-gradient(circle, rgba(0,255,255,0.05), transparent 70%);}
@keyframes rotateLayer { from{ transform:rotate(0deg);} to{transform:rotate(360deg);} }

/* RESPONSIVE */
@media(max-width:991px){
  .hero-title { font-size:2.8rem;}
  .hero-subtitle { font-size:1.2rem;}
}
@media(max-width:575px){
  .hero-title { font-size:2rem; text-align:center;}
  .hero-subtitle { text-align:center;}
  .hero-buttons a { width:100%; margin-bottom:0.5rem;}
}


/* 3D BUTTONS ***********************************************/
.btn-3d {
    position: relative;
    display: inline-block;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    color: #004aad;
    background: linear-gradient(145deg,#ffffff,#cce6ff);
    border-radius: 50px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50px;
    background: linear-gradient(145deg,#ffcc00,#00ffff);
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.3s;
}
.btn-3d:hover {
    transform: translateY(-4px) scale(1.05) rotateX(3deg);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
    color:#ff6600;
}
.btn-3d:hover::before { opacity:0.4; }

/* 3D CARD EFFECT */
.card.shadow-3d {
    background: linear-gradient(145deg,#ffffff,#cce6ff);
    border-radius: 20px;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
}
.card.shadow-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.card.shadow-3d h2 {
    font-size:2.2rem;
    font-weight:700;
    color:#004aad;
    text-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.card.shadow-3d p {
    font-size:1.1rem;
    font-weight:500;
    color:#003366;
}

/* RESPONSIVE + CLS FIX */
@media(max-width:991px){
    .btn-3d { 
        width:100%; 
        text-align:center; 
    }
    .stats-3d .card { 
        margin:auto; 
        margin-bottom:1rem; 
        min-height: 180px; /* Reserve space to prevent layout shift */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}



/* COURSES SECTION BACKGROUND ********************************************/
.registration-3d{
  background:linear-gradient(135deg,#e6fffa,#ccf7f0);
  perspective:1200px;
}

/* TITLE */
.reg-title{
  color:#0f5132;
  text-shadow:0 4px 15px rgba(0,0,0,0.15);
  font-size:2.2rem;
}

/* CARD STYLE */
.reg-card{
  padding:25px 15px;
  border-radius:18px;
  background:linear-gradient(145deg,#ffffff,#e9f7ff);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  transition:all 0.35s ease;
  cursor:pointer;
  min-height:130px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  position:relative;
}

/* 3D SHADOW HOVER */
.shadow-3d{
  background:linear-gradient(145deg,#ffffff,#cce6ff);
  border-radius:18px;
  box-shadow:0 8px 25px rgba(0,0,0,0.15);
  transition: transform 0.4s, box-shadow 0.4s;
}
.shadow-3d:hover{
  transform: rotateX(6deg) rotateY(6deg) translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

/* COURSE TEXT */
.year-text{
  font-size:1rem;
  color:#004aad;
  margin-bottom:12px;
  font-weight:700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ENROLL BUTTON */
.reg-btn{
  display:inline-block;
  padding:8px 20px;
  border-radius:40px;
  font-weight:600;
  font-size:14px;
  background:linear-gradient(145deg,#ffffff,#cce6ff);
  color:#004aad;
  box-shadow:0 6px 15px rgba(0,0,0,0.2);
  transition:all .3s ease;
  text-decoration:none;
  position:relative;
  z-index:2; /* so button is above card link */
}
.reg-btn:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 10px 25px rgba(0,0,0,0.35);
  color:#ff6600;
  background:linear-gradient(145deg,#fffcf0,#ffeb99);
}

/* Make entire card clickable link */
.course-card-link{
  display:block;
}
.course-card-link:hover .reg-card{
  transform: rotateX(6deg) rotateY(6deg) translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media(max-width:768px){
  .reg-card{
    padding:18px 10px;
    min-height:110px;
  }
  .year-text{
    font-size:0.9rem;
  }
  .reg-btn{
    font-size:13px;
    padding:6px 14px;
  }
  .reg-title{
    font-size:1.8rem;
  }
}


/* Testimonials Wrapper *********************************************/
.testimonials-wrapper {
    overflow: hidden;
    position: relative;
}

/* Track for horizontal scrolling */
.testimonials-track {
    display: flex;
    gap: 20px;
    animation: scroll-left 25s linear infinite;
}

/* Individual testimonial cards */
.testimonial-card {
    flex: 0 0 300px;
    border-radius: 20px;
    background: linear-gradient(145deg,#ffffff,#e0f0ff);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.5s, box-shadow 0.5s;
}

.testimonial-card p {
    font-size: 0.95rem;
    margin-bottom: 10px;
    color: #003366;
}

.testimonial-card strong {
    font-size: 1rem;
    color: #004aad;
}

/* 3D Hover effect */
.hover-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Horizontal scrolling animation */
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive */
@media(max-width:991px){
    .testimonial-card {
        flex: 0 0 250px;
    }
}
@media(max-width:576px){
    .testimonial-card {
        flex: 0 0 200px;
    }
}




/* Hover 3D for testimonials ********************************************/
.hover-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Shadow and gradient for cards */
.shadow-3d {
    background: linear-gradient(145deg,#ffffff,#e0e7ff);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    cursor: pointer;
}

/* 3D Buttons */
.btn-3d {
    position: relative;
    display: inline-block;
    padding: 0.6rem 1.6rem;
    font-weight:600;
    color:#004aad;
    background: linear-gradient(145deg,#ffffff,#cce6ff);
    border-radius:50px;
    box-shadow:0 6px 15px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s, color 0.3s;
}
.btn-3d:hover {
    transform: translateY(-4px) scale(1.05) rotateX(3deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    color:#ff6600;
}

/* Responsive */
@media(max-width:991px){
    .testimonials-3d .col-md-4 { margin:auto; margin-bottom:1rem; }
    .cta-3d h2 { font-size:2rem; }
    .cta-3d p { font-size:1rem; }
}


/* About us details*******************************************/
.why-smartedu{
    padding:90px 20px;
    background:linear-gradient(180deg,#f8fafc,#eef2f7);
    text-align:center;
}

.section-title{
    font-size:38px;
    font-weight:700;
    margin-bottom:60px;
    color:#0a2540;
    letter-spacing:0.5px;
}

.features-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
    max-width:1200px;
    margin:auto;
}

/* CARD */

.feature-card{
    background:#ffffff;
    padding:38px 25px;
    border-radius:18px;
    box-shadow:0 8px 18px rgba(0,0,0,0.06);
    transition:transform .35s ease, box-shadow .35s ease;
    transform:translateZ(0);
    will-change:transform;
    position:relative;
    overflow:hidden;
}

/* subtle glow */

.feature-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent,rgba(255,255,255,0.35),transparent);
    opacity:0;
    transition:opacity .35s ease;
}

/* hover */

.feature-card:hover{
    transform:translateY(-8px) scale(1.02);
    box-shadow:0 18px 35px rgba(0,0,0,0.12);
}

.feature-card:hover::before{
    opacity:1;
}

/* ICON */

.feature-card .icon{
    font-size:42px;
    margin-bottom:18px;
    display:inline-block;
    transform:translateZ(0);
}

/* TEXT */

.feature-card h3{
    font-size:20px;
    margin-bottom:12px;
    color:#0a2540;
    font-weight:600;
}

.feature-card p{
    font-size:15px;
    color:#6b7280;
    line-height:1.6;
}

/* TABLET */

@media (max-width:1000px){

.features-grid{
    grid-template-columns:repeat(2,1fr);
}

}

/* MOBILE */

@media (max-width:600px){

.features-grid{
    grid-template-columns:1fr;
}

.section-title{
    font-size:30px;
}

.feature-card{
    padding:32px 22px;
}

}



/*Collaboration Section***********************************/
.collaboration-section{
padding:70px 0;
background:#f7fbff;
overflow:hidden;
}

.title{
text-align:center;
font-weight:700;
font-size:32px;
margin-bottom:40px;
}

.title span{
color:#0d6efd;
}

.logo-slider{
width:100%;
overflow:hidden;
position:relative;
}

.logo-track{
display:flex;
width:fit-content;
animation:scroll 30s linear infinite;
}

.logo{
height:120px;
width:220px;
display:flex;
align-items:center;
justify-content:center;
background:#fff;
margin:0 15px;
border-radius:12px;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
transition:0.4s;
flex-shrink:0;
}

.logo:hover{
transform:scale(1.1) rotateY(15deg);
}

.logo img{
max-width:120px;
opacity:0.8;
}

.logo:hover img{
opacity:1;
}

@keyframes scroll{

0%{
transform:translateX(0);
}

100%{
transform:translateX(-50%);
}

}


/* MOBILE RESPONSIVE */

@media(max-width:768px){

.title{
font-size:22px;
}

.logo{
width:160px;
height:90px;
margin:0 10px;
}

.logo img{
max-width:90px;
}

}


/*Diploma Design start here *******************************/
/* SECTION BACKGROUND - MATCH WEBSITE */
.diploma-3d-section {
    background: linear-gradient(135deg, #0f4c81, #1a73e8);
    color: #fff;
}

/* HEADING */
.diploma-3d-section h1 {
    color: #ffffff;
    font-weight: 700;
}

.diploma-3d-section p.lead {
    color: #dbeafe;
}

/* CARD STYLE */
.diploma-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 30px;
    border-radius: 18px;
    text-align: center;
    transition: 0.4s;
    backdrop-filter: blur(10px);
    transform: perspective(1000px) rotateX(4deg) rotateY(-4deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* CARD HOVER */
.diploma-card:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1.05);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* CARD TEXT */
.diploma-card h3 {
    color: #ffffff;
    font-weight: 600;
}

.diploma-card p {
    color: #e0f2fe;
}

/* FEATURE BOX */
.diploma-feature {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.diploma-feature h2 {
    color: #ffffff;
}

.diploma-feature p {
    color: #dbeafe;
}

.diploma-feature:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.18);
}

/* BUTTON (MATCH SITE CTA STYLE) */
.enroll-btn {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    padding: 14px 32px;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.enroll-btn:hover {
    transform: scale(1.07);
    background: linear-gradient(45deg, #009ffd, #0056d2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
