:root {
    --bg: #f9fafb;
    --text: #0f172a;
    --muted: #6b7280;
    --accent: #06b6d4;
    --accent2: #6366f1;
    --card: rgba(255, 255, 255, 0.9);
    --radius: 12px;
    --max: 1100px;
    --transition: 300ms cubic-bezier(.2, .9, .3, 1);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04)
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover
}

.brand-small {
    color: var(--accent2);
    font-weight: 700;
    font-size: 12px
}

.brand-title {
    font-size: 18px;
    margin: 0
}

/* NAV */
.nav ul {
    display: flex;
    gap: 14px;
    list-style: none
}

.nav a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: all var(--transition)
}

.nav a:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.04));
    transform: translateY(-2px)
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer
}

/* HERO CAROUSEL */
.hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    overflow: hidden
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: opacity 700ms ease, transform 700ms ease;
    opacity: 0;
    transform: scale(1.02)
}

.slide.is-active {
    opacity: 1;
    transform: scale(1)
}

.slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.45), rgba(2, 6, 23, 0.25))
}

.hero-content {
    position: relative;
    color: rgb(0, 0, 0);
    padding: 40px 24px;
    max-width: 720px
}

.quote {
    font-style: italic;
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 8px
}

.hero-title {
    font-size: 36px;
    margin: 6px 0 10px 0;
    line-height: 1.05
}

.hero-sub {
    color: rgba(0, 0, 0, 0.9);
    margin-bottom: 18px
}

.hero-ctas .btn {
    margin-right: 10px
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px
}

.hero-prev {
    left: 12px
}

.hero-next {
    right: 12px
}

.hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    display: flex;
    gap: 8px
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer
}

.hero-dot.is-active {
    background: var(--accent2);
    transform: scale(1.1)
}

/* SECTIONS */
.section {
    padding: 48px 0
}

.section.alt {
    background: linear-gradient(180deg, #fff, #f6f9ff)
}

/* About Section */
#about {
    padding: 60px 20px;
    background: linear-gradient(180deg, #ffffff, #f6f9ff);
}

#about .head {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a40;
    margin-bottom: 40px;
    position: relative;
}

#about .head::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: #6366f1;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-container {
    display: grid;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Default box styling */
.box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 25px 30px;
    transition: all 0.4s ease;
    border-left: 5px solid #6366f1;
    /* default color (same as hover before) */
    position: relative;
    overflow: hidden;
}

/* subtle glow/gradient animation on hover */
.box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.08), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.box:hover::before {
    opacity: 1;
}

/* Hover effects */
.box:hover {
    transform: translateY(-5px);
    border-left-color: #ff6b6b;
    /* changes to a warm red-pink color */
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.25);
}

/* Text styling */
.box h2 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 10px;
}

.box p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.box strong {
    color: #4444cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    #about {
        padding: 40px 15px;
    }

    .about-container {
        gap: 20px;
    }

    .box {
        padding: 20px;
    }

    #about .head {
        font-size: 1.8rem;
    }

    .box h2 {
        font-size: 1.3rem;
    }

    .box p {
        font-size: 0.95rem;
    }
}


/* Certificates Section */
#certificates {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #f3f4f7, #ffffff);
}

#certificates h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Container for certificates */
.certificates-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    /* desktop gap */
    flex-wrap: wrap;
}

/* Each certificate */
.certificate-item,
.certificate-item1 {
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Image styling */
.certificate-item img,
.certificate-item1 img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Hover effect */
.certificate-item img:hover,
.certificate-item1 img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .certificates-container {
        flex-direction: column;
        gap: 0px;
        /* smaller gap */
    }

    .certificate-item,
    .certificate-item1 {
        max-width: 95%;
        margin: 0 auto;
        /* centers images */
    }

    .certificate-item img,
    .certificate-item1 img {
        border-radius: 10px;
    }

    #certificates {
        padding: 10px 10px;
    }

    #certificates h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* COURSES */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px
}

.course-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative
}

.course-thumb {
    position: relative
}

.course-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition)
}

.course-thumb:hover img {
    transform: scale(1.04)
}

.course-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(2, 6, 23, 0.5));
    color: #fff
}

.course-overlay h3 {
    margin: 0 0 6px 0
}

/* ===== COURSES SECTION ===== */
#Courses {
    width: 100%;
    background-color: rgba(221, 209, 226, 0.815);
    padding: 60px 20px;
}

#Courses h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: #333;
}

.course {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.course img {
    width: 100%;
    max-width: 400px;
    /* desktop max width */
    height: auto;
    /* preserves full image */
    border: 3px ridge rgb(26, 19, 27);
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.course img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* GALLERY */
.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px
}

.gallery-frame {
    width: 820px;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.08)
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 450ms, opacity 320ms
}

.g-btn {
    background: linear-gradient(180deg, var(--accent2), var(--accent));
    color: #fff;
    border: 0;
    padding: 10px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 24px
}

.thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap
}

.thumb {
    width: 86px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 220ms
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.thumb.active {
    border-color: var(--accent2);
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.08)
}

/* CONTACT */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 28px;
    align-items: start
}

.contact-left h2 {
    margin-bottom: 8px
}

.contact-details {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.contact-details div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(12, 18, 33, 0.04);
    padding: 8px 0;
    color: var(--muted)
}

.contact-right .contact-form {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(12, 18, 33, 0.04);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04)
}

.contact-form label {
    display: block;
    margin: 8px 0 6px;
    font-weight: 600
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(12, 18, 33, 0.06);
    background: #fff;
    outline: none
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.18)
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px
}

.form-status {
    margin-top: 10px;
    color: var(--muted)
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.45);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto
}

.modal-panel {
    background: #fff;
    padding: 18px;
    border-radius: 12px;
    max-width: 520px;
    width: 94%;
    box-shadow: 0 24px 80px rgba(2, 6, 23, 0.18);
    position: relative
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    color: white
}

.btn.outline {
    background: transparent;
    border: 1px solid rgba(12, 18, 33, 0.06)
}

#footer {
    background-color: #000;
    color: #fff;
    padding: 50px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-box {
    flex: 1 1 300px;
}

.footer-box h3 {
    color: #00bcd4;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #00bcd4;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-box ul {
    list-style: none;
    padding: 0;
}

.footer-box ul li {
    margin: 10px 0;
}

.footer-box ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-box ul li a:hover {
    color: #00bcd4;
}

.social-icons a {
    color: #fff;
    font-size: 24px;
    margin-right: 15px;
    transition: color 0.3s ease, transform 0.3s;
}

.social-icons a:hover {
    color: #00bcd4;
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 15px;
    font-size: 14px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-icons a {
        margin: 10px;
    }
}


/* RESPONSIVE */
@media (max-width:1024px) {
    .about-grid {
        grid-template-columns: 1fr
    }

    .gallery-frame {
        width: 90%;
        height: 360px
    }

    .contact-wrap {
        grid-template-columns: 1fr
    }
}

@media (max-width:720px) {
    .nav {
        display: none
    }

    .menu-toggle {
        display: block
    }

    .nav.show {
        display: block;
        position: absolute;
        top: 68px;
        right: 12px;
        background: var(--card);
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 18px 60px rgba(2, 6, 23, 0.08)
    }

    .hero-title {
        font-size: 26px
    }

    .hero-content {
        padding: 20px
    }

    .course-thumb img {
        height: 220px
    }

    .gallery-frame {
        height: 280px
    }

    .thumb {
        width: 64px;
        height: 44px
    }
}

/* Navbar Base */
nav {
  display: flex;
  justify-content: center; /* centers menu items */
  align-items: center;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Navigation Links */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: #0f172a; /* dark navy text */
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #6366f1; /* subtle blue hover */
}

/* Mobile adjustments */
@media (max-width: 768px) {
  nav ul {
    gap: 20px; /* reduce spacing */
    font-size: 0.95rem;
    flex-wrap: wrap; /* wrap if screen is too small */
    justify-content: center;
  }

  nav {
    padding: 8px 5px;
  }
}


@media (max-width:420px) {
    .brand-title {
        font-size: 16px
    }

    .hero-title {
        font-size: 22px
    }

    .hero-sub {
        font-size: 14px
    }

    .course-thumb img {
        height: 180px
    }
}


/* ===== HOME SECTION / CAROUSEL ===== */
#home {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

/* Overlay text */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.hero-text .enroll-btn {
    background-color: #00bcd4;
    border: none;
    padding: 12px 25px;
    color: white;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-text .enroll-btn:hover {
    background-color: #0097a7;
    transform: scale(1.05);
}

/* ===== MOBILE RESPONSIVE COURSES ===== */
@media (max-width: 768px) {
    #courses h2 {
        font-size: 2rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .courses-grid {
        display: grid;
        grid-template-columns: 1fr; /* single column on mobile */
        gap: 20px;
    }

    .course-card {
        width: 100%;
    }

    .course-thumb img {
        width: 100%;      /* full width */
        height: auto;     /* maintain aspect ratio */
        max-width: 100%;  /* no more than container width */
        border-radius: 10px;
        object-fit: cover;
    }

    .course-overlay {
        padding: 12px;
    }
}
