/* ------------------------------
   GLOBAL STYLE
------------------------------ */
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(to bottom right, #f4f7fb, #e8eef5);
    min-height: 100vh;
    color: #1a1a1a;
    margin: 0;
}

/* Clean container spacing */
.container, .container-fluid {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ------------------------------
   NAVBAR
------------------------------ */
.main-navbar {
    background: linear-gradient(to right, #ffffffcc, #f3f7fae6);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #d7dde4;
    transition: all 0.3s ease-in-out;
}

.navbar-brand img {
    max-height: 160px;
}

.navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: 16px;
    color: #1f374e !important;
    padding: 10px 18px;
    transition: color 0.3s ease, background 0.3s ease;
}

/* underline — single source */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background-color: #0b2238;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* hover + active share same underline */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* text color */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0b2238 !important;
}

/* soft hover background (hover only) */
.navbar-nav .nav-link:hover {
    background: rgba(11, 34, 56, 0.05);
    border-radius: 6px;
}

.navbar-collapse {
    background: #ffffffee;
}

/* ------------------------------
   NAVBAR HOVER + ACTIVE EFFECT
------------------------------ */

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease, background 0.3s ease;
}

/* Underline animation (single source) */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background-color: #0b2238;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

/* Hover OR Active → same underline */
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Text color */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #0b2238 !important;
}

/* Soft hover background (hover only) */
.navbar-nav .nav-link:hover {
    background: rgba(11, 34, 56, 0.05);
    border-radius: 6px;
}



/* ------------------------------
   HEADINGS
------------------------------ */
h1, h2, h3, h5, h6 {
    color: #0b2238;
    font-weight: 700;
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero-section {
    padding: 80px 20px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-btn {
    font-size: 1rem;
    padding: 10px 25px;
}

/* ------------------------------
   CARDS & GALLERY
------------------------------ */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.gallery-card {
    position: relative;
    cursor: pointer;
}

.category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    z-index: 2;
}

.category-badge.robotics { background-color: #0b2238; }
.category-badge.electronics { background-color: #1f374e; }
.category-badge.coding { background-color: #0b3b5c; }

/* Hover overlay */
.gallery-click {
    position: relative;
    overflow: hidden;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11,34,56,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-click:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ------------------------------
   FILTER BUTTONS
------------------------------ */
.gallery-filters button {
    margin: 0 5px;
    transition: 0.3s;
}

.gallery-filters button.active,
.gallery-filters button:hover {
    background-color: #0b2238;
    color: #fff;
}

/* ------------------------------
   GALLERY LIGHTBOX
------------------------------ */
.gallery-lightbox {
    display: none;
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.gallery-lightbox.show {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    color: #fff;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 2.5rem;
    color: #fff;
    background: rgba(11,34,56,0.7);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(11,34,56,0.6);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1100;
    user-select: none;
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    color: #00c0ff;
    background: rgba(11,34,56,0.9);
}

#whatsappOrder {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
}


/* ------------------------------
   FOOTER
------------------------------ */
.stem-footer {
    background: linear-gradient(to top right, #e9eef5, #f4f7fb);
    border-top: 1px solid #cfd6e2;
    color: #0b2238;
    padding: 40px 0;
    font-weight: 500;
    font-size: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #0b2238;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.footer-links a:hover,
.footer-links a.active {
    text-decoration: underline;
    color: #0b3b5c;
}

.footer-links a.no-decoration {
    text-decoration: none;
}

.footer-credit {
    font-size: 13px;
    margin-top: 10px;
}

.footer-credit a {
    color: #0b2238;
    font-weight: 600;
    text-decoration: none;
}

.footer-credit a:hover {
    text-decoration: underline;
}

.powered-link,
.powered-link:hover {
    text-decoration: none !important;
}

/* ------------------------------
   RESPONSIVE FIXES
------------------------------ */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }
    .navbar-collapse {
        padding: 15px;
    }
}


/* Mobile-friendly prev/next buttons – FIXED */
@media (max-width: 767px) {

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .lightbox-prev,
    .lightbox-next {
        top: 50%;
        transform: translateY(-50%);
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
        line-height: 35px;
    }

    .lightbox-prev {
        left: 10px;
        right: auto;   /* ✅ reset inherited rule */
    }

    .lightbox-next {
        right: 10px;
        left: auto;    /* ✅ reset inherited rule */
    }
}

/* =========================
   STEMGH Contact Form
   ========================= */

.contact-section {
  background: #f8f9fc;
}

.contact-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contact-card h2 {
  font-weight: 700;
  color: #0d1b2a;
}

.contact-card p {
  font-size: 0.95rem;
}

.contact-card .form-control {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
}

.contact-card .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.contact-card button {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =========================
   Form Success Animation
   ========================= */

.form-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeScale 0.6s ease forwards;
}

.success-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.5s ease forwards;
}

.form-success h4 {
  font-weight: 700;
  color: #0b2238;
  margin-bottom: 8px;
}

.form-success p {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Animations */
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeScale {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* ------------------------------
   CONTACT FORM SUCCESS ANIMATION
------------------------------ */
.form-success {
    animation: slideInFade 0.6s ease forwards;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------------------------
   CONFETTI MICRO ANIMATION
------------------------------ */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #28a745;
    animation: confettiFall 1.2s linear forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(120px) rotate(360deg);
        opacity: 0;
    }
}

.email-preview {
  animation: fadeInUp 0.4s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




