:root {
    --primary-color: #040036;
    --secondary-color: #06a2e2;
    --tertiary-color: #fff;
}

/* ============================================================ */
body {
    font-family: 'roboto slab', serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ============================================================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-img {
    height: 100vh;
    object-fit: cover;
    transform: scale(1.2);
    opacity: 0;
    transition: transform 6s ease-in-out, opacity 1s ease-in-out;
}


@media screen and (max-width: 768px) {
    .hero-img {
        height: 50vh;
    }
    .hero{
        height: 50vh;
    }
    
}

.carousel-item.active .hero-img {
    transform: scale(1);
    opacity: 1;
}

/* Caption animations */
.carousel-caption {
    bottom: 20%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-in-out;
}

.carousel-item.active .carousel-caption {
    opacity: 1;
    transform: translateY(0);
}

.carousel-caption h2 {
    font-size: 3rem;
    font-weight: 700;
    animation: fadeInDown 1.5s ease-in-out;
    text-shadow: 2px 6px 9px rgba(0, 0, 0, 7);
    color: var(--tertiary-color);
}

/* Overlay for images */
.carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* adjust opacity 0.3 - 0.6 */
    z-index: 1;
}

/* Make sure caption stays above overlay */
.carousel-caption {
    position: absolute;
    z-index: 2;
}

.carousel-caption p {
    font-size: 1.25rem;
    animation: fadeInUp 2s ease-in-out;
    text-shadow: 2px 6px 8px rgba(0, 0, 0, 1.6);
}

@media screen and (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }

}

/* Keyframes for extra effect */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================== */
.head-title span {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* ====================================== */
.head-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: var(--primary-color);
}

/* ===================================== */

/* ===== About Us Section ===== */
.about-us img {
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    animation: floatScale 3s ease-in-out infinite;
    /* 👈 Infinite animation */
}

.about-us .position-relative {
    padding-right: 20px;
}

.about-us .position-relative img:first-child {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
}

/* Second Image Overlay + Different Animation Delay */
.about-us .position-relative img:last-child {
    width: 60%;
    bottom: -20px;
    right: -20px;
    border: 5px solid var(--secondary-color);
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation-delay: 3s;
    /* 👈 starts later for stagger effect */
}

/* Keyframes for Floating + Scaling Animation */
@keyframes floatScale {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* Responsive fix for small screens */
@media (max-width: 767.98px) {
    .about-us .position-relative img:last-child {
        position: static !important;
        width: 100%;
        margin-top: 15px;
    }
}

/* =============================================== */

.text-justify {
    text-align: justify;
}

/* =============================================== */
.courses {
    background: linear-gradient(rgba(4, 0, 54, 0.8), rgba(4, 0, 54, 0.8)), url('../images/background/1.jpg') no-repeat center center/cover;
    /* color: var(--tertiary-color); */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.courses .card img {
    height: 200px;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.6s ease;
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
}

.courses .card:hover img {
    transform: translateY(-10px);
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 1); */
    transition: all 0.5s ease;
    opacity: 1;
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
}

/* ================================================== */
.title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 3px 6px rgba(0, 0, 0, 0.4);
    font-size: 1.25rem;
}

/* ================================================ */
.why-choose-us img {
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    height: 500px;
    object-fit: cover;
    transition: all 0.5s ease;
    width: 100%;
    border: 5px solid var(--secondary-color);
    opacity: 0.70;
}

.why-choose-us:hover img {
    opacity: 1;
    transition: all 0.5s ease;
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
    border: 5px solid var(--tertiary-color);
}

.why-choose-us .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.7s ease;
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
    background-color: var(--tertiary-color);
    padding: 20px;
    text-align: center;
}

.why-choose-us .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.8s ease;
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
}

/* =================================================== */
.services {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
        url('../images/background/2.jpg') no-repeat center center/cover;
    color: var(--tertiary-color);
    /* border-radius: 0 10% 10% 0 / 0% 0% 40% 0; */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background-attachment: fixed;
    padding: 60px 0;
    position: relative;
}

/* Overlay glow effect */
.services::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.services .card {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Card hover effect */
.services .card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Image styling */
.services .card img {
    height: 200px;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.6s ease;
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
}

.services .card:hover img {
    transform: scale(.99);
    opacity: 1;
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
}

/* Title + text animation */
.services .card h5 {
    color: #222;
    transition: color 0.4s ease;
}

.services .card p {
    color: #444;
    transition: color 0.4s ease;
}

.services .card:hover h5,
.services .card:hover p {
    color: #1285a8;
}

/* ==================================== */

.breadcrumb-box {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.breadcrumb-box h1 {
    font-size: 22px;
    color: var(--tertiary-color);
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list .breadcrumb-item {
    font-size: 15px;
    color: var(--tertiary-color);
}

.breadcrumb-list .breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    color: var(--tertiary-color);
    padding: 0 6px;
}

.breadcrumb-list .breadcrumb-item a {
    text-decoration: none;
    color: var(--tertiary-color);
    font-weight: 500;
}

.breadcrumb-list .breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-list .active {
    font-weight: 500;
    color: var(--tertiary-color);
}

/* ============================================================== */
.mission-section {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.8)), url('../images/about/mission-vission.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.mission-section ul li {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--tertiary-color);
    background: var(--primary-color);
    padding: 6px 10px;
}

.mission-section img {
    width: 100%;
    /* height: 300px; */
    object-fit: cover;
    border-radius: 10% 20% 10% 20% / 10% 20% 10% 20%;
}

/* =======================================================   */
.course-details {
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.8)), url('../images/about/mission-vission.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0% 10% 0% 0% / 0% 0% 10% 10%;
    background-attachment: fixed;
}

.course-details img {
    max-height: 350px;
    object-fit: cover;
    opacity: 0.9;
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
    transition: transform 0.3s, opacity 0.3s, border-radius 0.3s;
    border: 5px solid var(--primary-color);
}

.course-details img:hover {
    transform: scale(.99);
    opacity: 1;
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
    transition: transform 0.3s, opacity 0.3s, border-radius 0.3s;
    border: 5px solid var(--secondary-color);
}

/* ============================================================== */
.services-details {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/background/1.jpg') no-repeat center center/cover;
    /* color: var(--tertiary-color); */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 40px;
    background-attachment: fixed;
}

.services-details img {
    object-fit: cover;
    border-radius: 10% 40% 10% 40% / 40% 10% 40% 10%;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
}

.services-details img:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    border-radius: 40% 10% 40% 10% / 10% 40% 10% 40%;
    border: 5px solid var(--primary-color);
}

/* =============================================== */

.pulse {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    /* smoother funky radius */
    padding: 0.5rem 0.6rem;
    font-weight: 500;
    /* letter-spacing: 0.5px; */
    background: transparent;
    cursor: pointer;
    transition: all 0.35s ease-in-out;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Pulse Hover */
.pulse:hover,
.pulse:focus {
    animation: pulse 1s;
    border-color: var(--tertiary-color);
    background: var(--secondary-color);
    color: var(--tertiary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15),
        0 0 15px var(--secondary-color);
    transform: scale(1.05);
    /* slight zoom */
}

/* Pulse keyframes */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 var(--secondary-color);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Optional active click effect */
.pulse:active {
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


/* ================================================= */
.whatsapp-btn {
    border-color: var(--tertiary-color);
    color: var(--tertiary-color);
    background: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3),
        0 0 15px #25D366;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3),
        0 0 15px #25D366;
}

.nav-btn {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas: "z-1 z-2 z-3"
        "z-4 z-5 z-6";
    position: relative;
    perspective: 1000px;
    width: 150px;
    height: 50px;
    transition: transform 0.25s ease-in-out;
}

.nav-btn:active {
    transform: scale(0.94);
}

/* Anchor styled like button */
.nav-btn .btn-link {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: transparent;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 1px;
    border: 2px solid #f39923;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    z-index: 150; /* anchor ab top pe rahega */
    overflow: hidden;
    color: #fff;
}

/* Base background */
.nav-btn .btn-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5ae51, #f39923);
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    z-index: -1;
}

/* Button text */
.nav-btn .btn-link span {
    position: relative;
    z-index: 2;
}

/* Hover Zones (for 3D tilt only, not blocking clicks) */
.zone {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 50; /* ab ye anchor ke niche hai */
}

/* Hover Depth Animations */
.z-1:hover~.btn-link {
    transform: rotateX(15deg) rotateY(-15deg) scale(1.03);
    box-shadow: -4px -4px 20px rgba(0, 0, 0, 0.25);
}
.z-3:hover~.btn-link {
    transform: rotateX(15deg) rotateY(15deg) scale(1.03);
    box-shadow: 4px -4px 20px rgba(0, 0, 0, 0.25);
}
.z-4:hover~.btn-link {
    transform: rotateX(-15deg) rotateY(-15deg) scale(1.03);
    box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.25);
}
.z-6:hover~.btn-link {
    transform: rotateX(-15deg) rotateY(15deg) scale(1.03);
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.25);
}

/* Hover Text Animation */
.zone:hover~.btn-link span {
    animation: moveText 0.5s forwards;
}

@keyframes moveText {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-60%);
        opacity: 0;
    }
    51% {
        content: "Click";
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Glow effect */
.nav-btn:hover .btn-link::before {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(243, 153, 35, 0.6);
}
