.welcome-bg {
    /* Hero section with background image and dark overlay for readability */
    background:
        linear-gradient(135deg, rgba(0,0,0,0.85), rgba(33,150,243,0.3)),
        url('../assets/your-background.jpg') center center/cover no-repeat;
    background-blend-mode: overlay;
    background-color: #000; /* fallback */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #000;
}

.display-3, .lead, .fw-bold, .text-white {
    color: #fff !important;
}

.cyber-icon {
    color: #2196f3;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background-color: #2196f3;
    border-color: #2196f3;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #1769aa;
    border-color: #1769aa;
}

.btn-primary,
.btn-outline-light {
    border-radius: 50px !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.65), rgba(33,150,243,0.18));
    z-index: 1;
    pointer-events: none;
}

.welcome-bg > .position-relative {
    z-index: 2;
}

.welcome-bg::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.85));
}


.about-section {
    background: #10131a;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-desc {
    font-size: 1.15rem;
    color: #cfd8dc;
}

.about-list i {
    font-size: 1.2rem;
    vertical-align: middle;
}

.about-img {
    max-width: 90%;
    /* Remove border, shadow, and background */
    border: none;
    box-shadow: none;
    background: none;
    border-radius: 0;
}

.services-section {
    background: #0a101a;
    color: #fff;
}

.service-card {
    background: #181c24;
    border: 1px solid #222c;
    transition: transform 0.3s cubic-bezier(.4,2,.6,1), box-shadow 0.3s;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.05) rotate(-1deg);
    box-shadow: 0 12px 36px 0 rgba(33,150,243,0.20);
    border-color: #2196f3;
}

.service-icon {
    color: #2196f3;
    font-size: 2.7rem;
    background: rgba(33,150,243,0.08);
    border-radius: 50%;
    padding: 18px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 16px 0 rgba(33,150,243,0.08);
}

.custom-navbar {
    background: rgba(10, 16, 26, 0.98);
    transition: box-shadow 0.3s, background 0.3s;
}

.custom-navbar.scrolled {
    box-shadow: 0 4px 24px 0 rgba(33,150,243,0.10);
    background: rgba(10, 16, 26, 0.98);
}

.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 30px;
    padding: 0.5rem 1.1rem;
    transition: background 0.2s, color 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    background: rgba(33,150,243,0.12);
    color: #2196f3 !important;
}

.navbar .btn-primary {
    font-size: 1rem;
    padding: 0.45rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 2px 12px 0 rgba(33,150,243,0.10);
}

.navbar-toggler {
    border: none;
    outline: none;
}

/* Navbar animation and transitions */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.2s, background 0.2s, padding 0.2s;
    z-index: 1;
}

.navbar-nav .nav-link::after {
    content: "";
    display: block;
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 0;
    height: 2px;
    background: #2196f3;
    border-radius: 1px;
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
    z-index: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #2196f3 !important;
    background: rgba(33,150,243,0.07);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: #2196f3 !important;
}

/* Fade-in animation for navbar items */
@keyframes navbarFadeIn {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .nav-item {
    opacity: 0;
    animation: navbarFadeIn 0.7s cubic-bezier(.4,2,.6,1) forwards;
}

.navbar-nav .nav-item.fadein-1 { animation-delay: 0.2s; }
.navbar-nav .nav-item.fadein-2 { animation-delay: 0.35s; }
.navbar-nav .nav-item.fadein-3 { animation-delay: 0.5s; }
.navbar-nav .nav-item.fadein-4 { animation-delay: 0.65s; }
.navbar-nav .nav-item.fadein-5 { animation-delay: 0.8s; }
.navbar-nav .nav-item.fadein-6 { animation-delay: 0.95s; }

@media (min-width: 992px) {
    .contact-img {
        height: 100%;
        min-height: 100%;
        max-height: none;
    }
    .contact-section .col-lg-5 {
        display: flex;
        align-items: stretch;
    }
    .contact-section .col-lg-5 > .contact-img {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
    .about-img,
    .contact-img {
        display: none !important;
    }
}

/* General responsive typography */
body, html {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
}

/* Make Bootstrap navbar toggler (hamburger) icon white */
.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* General responsive typography */
body, html {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
}

/* Responsive images */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide about and contact images on mobile */
@media (max-width: 575px) {
    .about-img,
    .contact-img {
        display: none !important;
    }
}

/* Responsive navbar button */
@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
}

/* Ensure images and videos are always responsive */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-footer {
    background: #0a101a;
    color: #b0bec5;
    border-top: 1px solid #222c;
    font-size: 1rem;
    margin-top: 3rem;
}

.site-footer .footer-link {
    color: #b0bec5;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
    font-weight: 500;
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
    color: #2196f3;
    text-decoration: underline;
}

.site-footer .footer-social-link {
    color: #b0bec5;
    font-size: 1.3rem;
    margin-right: 0.7rem;
    transition: color 0.2s;
    text-decoration: none;
}

.site-footer .footer-social-link:hover {
    color: #2196f3;
}

.site-footer .footer-copy {
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .site-footer .row {
        flex-direction: column;
        text-align: center;
    }
    .site-footer .col-lg-4 {
        margin-bottom: 1.2rem;
    }
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1050;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(33,150,243,0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s;
}
.scroll-to-top-btn:hover {
    background: #1769aa;
}
.scroll-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Fade-in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section animation */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeInUp 1s cubic-bezier(.4,2,.6,1) forwards;
}

/* Animate sections and cards on scroll */
.section-animate,
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
    will-change: opacity, transform;
}

.section-animate.visible,
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1s cubic-bezier(.4,2,.6,1);
}

/* Optional: staggered delays for cards */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.hero-animate.delay-1 { animation-delay: 0.2s; }
.hero-animate.delay-2 { animation-delay: 0.4s; }
.hero-animate.delay-3 { animation-delay: 0.6s; }
.hero-animate.delay-4 { animation-delay: 0.8s; }

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

.featured-courses-section {
    background: linear-gradient(120deg, #10131a 70%, #182848 100%);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.featured-courses-section .about-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.course-card {
    background: rgba(24,28,36,0.95);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 6px 32px 0 rgba(33,150,243,0.10);
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    min-width: 270px;
    max-width: 340px;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 36px 0 rgba(33,150,243,0.18);
    border-color: #2196f3;
}

.course-icon {
    color: #2196f3;
    font-size: 2.2rem;
    background: rgba(33,150,243,0.10);
    border-radius: 1rem;
    padding: 14px;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px 0 rgba(33,150,243,0.08);
}

.course-card h5 {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #fff;
}

.course-card p {
    color: #b0bec5;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.course-card .btn {
    font-size: 0.98rem;
    padding: 0.45rem 1.3rem;
    border-radius: 2rem;
    background: #2196f3;
    color: #fff;
    border: none;
    transition: background 0.2s;
}

.course-card .btn:hover {
    background: #1769aa;
    color: #fff;
}

.contact-section {
    background: linear-gradient(120deg, #10131a 70%, #182848 100%);
    color: #fff;
}

.contact-form {
    background: #181c24;
    border: none;
    box-shadow: 0 8px 40px 0 rgba(33,150,243,0.13);
    padding: 2.2rem 2rem 2rem 2rem;
}

.contact-form .form-label {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    background: #23293a;
    color: #fff;
    border: 1px solid #222c;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1.05rem;
}

.contact-form .form-control::placeholder {
    color: #b0bec5;
    opacity: 1;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.contact-form .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.15rem rgba(33,150,243,0.15);
    background: #23293a;
    color: #fff;
}

.contact-form .btn-primary {
    font-size: 1.1rem;
    padding: 0.7rem 2.2rem;
    border-radius: 2rem;
    background: #2196f3;
    border: none;
    box-shadow: 0 2px 12px 0 rgba(33,150,243,0.10);
    transition: background 0.2s;
}

.contact-form .btn-primary:hover {
    background: #1769aa;
}

.contact-form .form-text {
    color: #b0bec5 !important;
    font-size: 0.98rem;
}

.contact-section .row {
    align-items: stretch;
}

.contact-img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: none;
    /* Fade edges using a mask gradient */
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 70%, transparent 100%);
    display: block;
}

.contact-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* Show the whole image */
  display: block;
}

.contact-image-container {
  height: auto; /* or remove fixed height */
  overflow: visible; /* allow image to show fully */
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
    .about-img,
    .contact-img {
        display: none !important;
    }
}

/* Make Bootstrap navbar toggler (hamburger) icon white */
.navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255,255,255,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* General responsive typography */
body, html {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
}

/* Responsive images */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide about and contact images on mobile */
@media (max-width: 575px) {
    .about-img,
    .contact-img {
        display: none !important;
    }
}

/* Responsive navbar button */
@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
}

/* Ensure images and videos are always responsive */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-footer {
    background: #0a101a;
    color: #b0bec5;
    border-top: 1px solid #222c;
    font-size: 1rem;
    margin-top: 3rem;
}

.site-footer .footer-link {
    color: #b0bec5;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
    font-weight: 500;
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
    color: #2196f3;
    text-decoration: underline;
}

.site-footer .footer-social-link {
    color: #b0bec5;
    font-size: 1.3rem;
    margin-right: 0.7rem;
    transition: color 0.2s;
    text-decoration: none;
}

.site-footer .footer-social-link:hover {
    color: #2196f3;
}

.site-footer .footer-copy {
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .site-footer .row {
        flex-direction: column;
        text-align: center;
    }
    .site-footer .col-lg-4 {
        margin-bottom: 1.2rem;
    }
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1050;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(33,150,243,0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s;
}
.scroll-to-top-btn:hover {
    background: #1769aa;
}
.scroll-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Fade-in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section animation */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeInUp 1s cubic-bezier(.4,2,.6,1) forwards;
}

/* Animate sections and cards on scroll */
.section-animate,
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
    will-change: opacity, transform;
}

.section-animate.visible,
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1s cubic-bezier(.4,2,.6,1);
}

/* Optional: staggered delays for cards */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.hero-animate.delay-1 { animation-delay: 0.2s; }
.hero-animate.delay-2 { animation-delay: 0.4s; }
.hero-animate.delay-3 { animation-delay: 0.6s; }
.hero-animate.delay-4 { animation-delay: 0.8s; }

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

.featured-courses-section {
    background: linear-gradient(120deg, #10131a 70%, #182848 100%);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.featured-courses-section .about-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.course-card {
    background: rgba(24,28,36,0.95);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 6px 32px 0 rgba(33,150,243,0.10);
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    min-width: 270px;
    max-width: 340px;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 36px 0 rgba(33,150,243,0.18);
    border-color: #2196f3;
}

.course-icon {
    color: #2196f3;
    font-size: 2.2rem;
    background: rgba(33,150,243,0.10);
    border-radius: 1rem;
    padding: 14px;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px 0 rgba(33,150,243,0.08);
}

.course-card h5 {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #fff;
}

.course-card p {
    color: #b0bec5;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.course-card .btn {
    font-size: 0.98rem;
    padding: 0.45rem 1.3rem;
    border-radius: 2rem;
    background: #2196f3;
    color: #fff;
    border: none;
    transition: background 0.2s;
}

.course-card .btn:hover {
    background: #1769aa;
    color: #fff;
}

.contact-section {
    background: linear-gradient(120deg, #10131a 70%, #182848 100%);
    color: #fff;
}

.contact-form {
    background: #181c24;
    border: none;
    box-shadow: 0 8px 40px 0 rgba(33,150,243,0.13);
    padding: 2.2rem 2rem 2rem 2rem;
}

.contact-form .form-label {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    background: #23293a;
    color: #fff;
    border: 1px solid #222c;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1.05rem;
}

.contact-form .form-control::placeholder {
    color: #b0bec5;
    opacity: 1;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.contact-form .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.15rem rgba(33,150,243,0.15);
    background: #23293a;
    color: #fff;
}

.contact-form .btn-primary {
    font-size: 1.1rem;
    padding: 0.7rem 2.2rem;
    border-radius: 2rem;
    background: #2196f3;
    border: none;
    box-shadow: 0 2px 12px 0 rgba(33,150,243,0.10);
    transition: background 0.2s;
}

.contact-form .btn-primary:hover {
    background: #1769aa;
}

.contact-form .form-text {
    color: #b0bec5 !important;
    font-size: 0.98rem;
}

.contact-section .row {
    align-items: stretch;
}

.contact-img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: none;
    /* Fade edges using a mask gradient */
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 70%, transparent 100%);
    display: block;
}

.contact-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* Show the whole image */
  display: block;
}

.contact-image-container {
  height: auto; /* or remove fixed height */
  overflow: visible; /* allow image to show fully */
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
    .about-img,
    .contact_img {
        display: none !important;
    }
}

/* General responsive typography */
body, html {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
}

/* Responsive images */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide about and contact images on mobile */
@media (max-width: 575px) {
    .about-img,
    .contact-img {
        display: none !important;
    }
}

/* Responsive navbar button */
@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
}

/* Ensure images and videos are always responsive */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.site-footer {
    background: #0a101a;
    color: #b0bec5;
    border-top: 1px solid #222c;
    font-size: 1rem;
    margin-top: 3rem;
}

.site-footer .footer-link {
    color: #b0bec5;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
    font-weight: 500;
}

.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
    color: #2196f3;
    text-decoration: underline;
}

.site-footer .footer-social-link {
    color: #b0bec5;
    font-size: 1.3rem;
    margin-right: 0.7rem;
    transition: color 0.2s;
    text-decoration: none;
}

.site-footer .footer-social-link:hover {
    color: #2196f3;
}

.site-footer .footer-copy {
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .site-footer .row {
        flex-direction: column;
        text-align: center;
    }
    .site-footer .col-lg-4 {
        margin-bottom: 1.2rem;
    }
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1050;
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(33,150,243,0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s;
}
.scroll-to-top-btn:hover {
    background: #1769aa;
}
.scroll-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Fade-in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section animation */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-animate {
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeInUp 1s cubic-bezier(.4,2,.6,1) forwards;
}

/* Animate sections and cards on scroll */
.section-animate,
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
    will-change: opacity, transform;
}

.section-animate.visible,
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 1s cubic-bezier(.4,2,.6,1);
}

/* Optional: staggered delays for cards */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.hero-animate.delay-1 { animation-delay: 0.2s; }
.hero-animate.delay-2 { animation-delay: 0.4s; }
.hero-animate.delay-3 { animation-delay: 0.6s; }
.hero-animate.delay-4 { animation-delay: 0.8s; }

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

.featured-courses-section {
    background: linear-gradient(120deg, #10131a 70%, #182848 100%);
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.featured-courses-section .about-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.course-card {
    background: rgba(24,28,36,0.95);
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 6px 32px 0 rgba(33,150,243,0.10);
    padding: 2.2rem 1.5rem 1.7rem 1.5rem;
    min-width: 270px;
    max-width: 340px;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.4,2,.6,1), box-shadow 0.35s;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.course-card:hover {
    transform: translateY(-10px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 36px 0 rgba(33,150,243,0.18);
    border-color: #2196f3;
}

.course-icon {
    color: #2196f3;
    font-size: 2.2rem;
    background: rgba(33,150,243,0.10);
    border-radius: 1rem;
    padding: 14px;
    margin-bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px 0 rgba(33,150,243,0.08);
}

.course-card h5 {
    font-size: 1.18rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
    color: #fff;
}

.course-card p {
    color: #b0bec5;
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.course-card .btn {
    font-size: 0.98rem;
    padding: 0.45rem 1.3rem;
    border-radius: 2rem;
    background: #2196f3;
    color: #fff;
    border: none;
    transition: background 0.2s;
}

.course-card .btn:hover {
    background: #1769aa;
    color: #fff;
}

.contact-section {
    background: linear-gradient(120deg, #10131a 70%, #182848 100%);
    color: #fff;
}

.contact-form {
    background: #181c24;
    border: none;
    box-shadow: 0 8px 40px 0 rgba(33,150,243,0.13);
    padding: 2.2rem 2rem 2rem 2rem;
}

.contact-form .form-label {
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    background: #23293a;
    color: #fff;
    border: 1px solid #222c;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 1.05rem;
}

.contact-form .form-control::placeholder {
    color: #b0bec5;
    opacity: 1;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.contact-form .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 0.15rem rgba(33,150,243,0.15);
    background: #23293a;
    color: #fff;
}

.contact-form .btn-primary {
    font-size: 1.1rem;
    padding: 0.7rem 2.2rem;
    border-radius: 2rem;
    background: #2196f3;
    border: none;
    box-shadow: 0 2px 12px 0 rgba(33,150,243,0.10);
    transition: background 0.2s;
}

.contact-form .btn-primary:hover {
    background: #1769aa;
}

.contact-form .form-text {
    color: #b0bec5 !important;
    font-size: 0.98rem;
}

.contact-section .row {
    align-items: stretch;
}

.contact-img {
    max-width: 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: none;
    /* Fade edges using a mask gradient */
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, #000 70%, transparent 100%);
    display: block;
}

.contact-image {
  width: 100%;
  height: auto;
  object-fit: contain; /* Show the whole image */
  display: block;
}

.contact-image-container {
  height: auto; /* or remove fixed height */
  overflow: visible; /* allow image to show fully */
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
    .about-img,
    .contact_img {
        display: none !important;
    }
}

/* General responsive typography */
body, html {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
    .about-section .row,
    .contact-section .row {
        flex-direction: column-reverse;
    }
    .about-img,
    .contact-img {
        margin-bottom: 2rem;
        max-height: 220px;
        height: auto;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.5rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 2rem !important;
    }
    .hero-animate p,
    .lead {
        font-size: 1rem !important;
    }
    .courses-grid {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .course-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .contact-form {
        padding: 1.2rem 0.7rem;
    }
    .contact-img {
        width: 100%;
        min-height: unset;
        max-height: 220px;
        object-fit: cover;
    }
    .service-card {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }
    .services-section .row {
        gap: 1.5rem 0;
    }
}

@media (max-width: 575px) {
    .navbar-brand span {
        font-size: 1.1rem;
    }
    .hero-animate h1,
    .display-3 {
        font-size: 1.3rem !important;
    }
    .btn,
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }
    .about-title,
    .about-section .about-title,
    .featured-courses-section .about-title,
    .services-section .about-title {
        font-size: 1.1rem;
    }
    .contact-form {
        padding: 0.7rem 0.2rem;
    }
    .contact-img {
        max-height: 140px;
    }
}

/* Responsive images */
img,
.video-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide about and contact images on mobile */
@media (max-width: 575px) {
    .about-img,
    .contact-img {
        display: none !important;
    }
}

/* Responsive navbar button */
@media (max-width: 991px) {
    .navbar .btn-primary {
        display: none !important;
    }
}