/* =====================================================
   SKILLTEC — gallery.css  (UX/UI upgrade)
   ===================================================== */

/* ── RESET ── */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body { background: #f5f5f5; }
a    { text-decoration: none; cursor: pointer; }

/* ── FADE-UP ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }

/* ── BUTTON BOUNCE ── */
@keyframes bounce {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-10px) scale(1.05); }
  50%  { transform: translateY(0) scale(0.98); }
  70%  { transform: translateY(-5px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
button:active { animation: bounce 0.4s; }


/* ══════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════ */
.navbar {
  position: absolute;
  top: 25px; left: 0; right: 0;
  margin: 0 80px;
  height: 100px;
  background: white;
  color: #2FC0EE;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 100;
}
.nav-inner {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.navbar-collapse { background: white; padding: 10px; border-radius: 0 0 20px 20px; }
nav ul   { display: flex; gap: 40px; list-style: none; font-weight: 500; }
nav li   { color: #38a8c8; cursor: pointer; text-decoration: none; transition: 0.2s; }
nav li:hover { color: #2f545f; transform: translateY(-3px); }
.active  { color: #ff8c38 !important; }
nav      { position: relative; z-index: 1000; }
.navbar .nav-link       { color: #38a8c8 !important; font-weight: 500; }
.navbar .nav-link:hover { color: #2f545f !important; }

.btn-apply-nav {
  display: inline-block;
  background: #FB963E; color: #fff !important;
  padding: 8px 20px; border-radius: 6px;
  font-weight: 600; margin-left: 10px; font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-apply-nav:hover { background: #e07e2a; color: #fff !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown a { color: #38a8c8; font-size: 15px; display: block; text-decoration: none; }
.dropdown-menu {
  position: absolute; top: 120%; right: 0;
  background: white; padding: 15px 0; min-width: 180px;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
}
.dropdown-menu li         { padding: 10px 20px; }
.dropdown-menu li a       { color: #062C33; font-size: 15px; display: block; }
.dropdown-menu li:hover   { background: #f5f5f5; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }


/* ══════════════════════════════════════════════════
   HERO  — split layout
══════════════════════════════════════════════════ */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 8%;
  gap: 40px;
  margin-top: 130px; /* clears absolute navbar */
}

.hero-text { max-width: 500px; }

.hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  color: #3ec1e6;
  font-weight: 700;
  line-height: 1.1;
}

.hero-text p {
  margin-top: 12px;
  line-height: 1.7;
  color: #444;
  font-size: 15px;
}

/* CTA buttons */
.hero-buttons { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  padding: 11px 24px;
  border-radius: 25px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.primary { background: #f28c28; color: white; box-shadow: 0 6px 18px rgba(242,140,40,0.30); }
.primary:hover { background: white; color: #f28c28; box-shadow: none; }

.secondary { color: #f28c28; border: 2px solid #f28c28; background: transparent; }
.secondary:hover { background: #f28c28; color: white; }

/* Hero image */
.hero-image { flex: 1; display: flex; justify-content: flex-end; }
.hero-image img {
  width: 100%;
  max-width: 560px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.15));
  transition: transform 0.4s;
}
.hero-image img:hover { transform: translateY(-6px); }


/* ══════════════════════════════════════════════════
   INTRO
══════════════════════════════════════════════════ */
.intro {
  text-align: center;
  padding: 70px 10%;
  background: white;
  border-radius: 20px;
  margin: 0 5% 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.intro h2 {
  color: #3ec1e6;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.intro p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
}


/* ══════════════════════════════════════════════════
   VIDEO SECTION
══════════════════════════════════════════════════ */
.video-section { padding: 20px 5% 50px; }

.video-box {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  cursor: pointer;
}

.video-box img {
  width: 100%;
  display: block;
  transition: transform 0.4s, filter 0.4s;
}
.video-box:hover img { transform: scale(1.03); filter: brightness(0.8); }

/* Play button */
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, background 0.3s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.play-btn i { font-size: 26px; color: #f28c3c; margin-left: 4px; }
.video-box:hover .play-btn { transform: translate(-50%, -50%) scale(1.12); background: white; }


/* ══════════════════════════════════════════════════
   GALLERY SECTIONS
══════════════════════════════════════════════════ */
.gallery-section { padding: 40px 5%; }

.section-title {
  color: #3ec1e6;
  font-size: 1.3rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.count {
  color: #aaa;
  font-size: 0.95rem;
  font-weight: 400;
}

/* Scrollable box */
.gallery-box {
  background: white;
  padding: 20px;
  height: 420px;
  overflow-y: auto;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  /* custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #3ec1e6 #f0f0f0;
}
.gallery-box::-webkit-scrollbar       { width: 6px; }
.gallery-box::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 10px; }
.gallery-box::-webkit-scrollbar-thumb { background: #3ec1e6; border-radius: 10px; }

/* Grid inside box */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  filter: brightness(1.08);
}


/* ══════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.82); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-image {
  max-width: 90%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 28px; right: 36px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
  z-index: 10000;
  line-height: 1;
}
.lightbox-close:hover { color: #f28c3c; transform: rotate(90deg); }

/* Lightbox nav arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none; color: white;
  font-size: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10000;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.28); }

/* Image counter inside lightbox */
.lightbox-counter {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  letter-spacing: 1px;
}


/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  margin-top: 80px;
  background: #06202B;
  color: white;
  padding: 70px 80px;
}
footer h3 { margin-bottom: 16px; font-size: 18px; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.social-icons { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #247a9f;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; transition: 0.3s; text-decoration: none;
}
.social-icons a:hover { background: #f28c3c; transform: translateY(-3px); }

.footlink,
.footer-links ul a { color: white; text-decoration: none; display: block; transition: color 0.2s; }
.footlink:hover,
.footer-links ul a:hover { color: #f28c3c; }

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-contact p   { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }

/* Newsletter */
.newsletter { margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.newsletter h3 { font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; align-items: center;
  max-width: 700px; margin: 0 auto;
}
.newsletter-form input {
  padding: 12px 16px; border-radius: 6px; border: none;
  font-family: 'Poppins', sans-serif; font-size: 0.9rem;
  flex: 1; min-width: 180px; outline: none;
  transition: box-shadow 0.2s;
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(251,150,62,0.4); }
.newsletter-form button {
  padding: 12px 28px; background: #FB963E; color: white;
  border: none; border-radius: 6px; font-weight: 600;
  font-family: 'Poppins', sans-serif; cursor: pointer; transition: background 0.2s;
}
.newsletter-form button:hover { background: #e07e2a; }


/* ══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════ */

/* ── TABLET (≤ 991px) ── */
@media (max-width: 991px) {

  /* navbar */
  .navbar { margin: 0 20px; height: auto; min-height: 70px; top: 15px; border-radius: 20px; padding: 8px 0; }
  .nav-inner { padding: 0 20px; flex-wrap: wrap; }
  .logo img  { width: 130px !important; height: auto !important; }
  .btn-apply-nav { margin: 6px 0; }

  /* hero */
  .hero { flex-direction: column; padding: 40px 5%; margin-top: 110px; text-align: center; }
  .hero-text { max-width: 100%; }
  .hero-text h1 { font-size: 2.6rem; }
  .hero-buttons { justify-content: center; }
  .hero-image { justify-content: center; }
  .hero-image img { max-width: 400px; }

  /* intro */
  .intro { padding: 50px 6%; margin: 0 3% 20px; }

  /* gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-box  { height: 360px; }

  /* footer */
  footer { padding: 40px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-about { text-align: center; }
  .footer-links, .footer-contact, .newsletter { text-align: center; }
  .social-icons { justify-content: center; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input,
  .newsletter-form button { width: 100%; min-width: unset; }
}

/* ── MOBILE (≤ 575px) ── */
@media (max-width: 575px) {

  /* navbar */
  .navbar { margin: 0 12px; border-radius: 16px; }
  .nav-inner { padding: 0 14px; }
  .logo img  { width: 110px !important; }

  /* hero */
  .hero { padding: 30px 4%; margin-top: 95px; }
  .hero-text h1 { font-size: 2rem; }
  .hero-image img { max-width: 280px; }

  /* intro */
  .intro { padding: 40px 5%; margin: 0 2% 16px; }
  .intro h2 { font-size: 1.4rem; }

  /* gallery grid → single column */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-box  { height: 320px; }

  /* lightbox arrows hidden on tiny screens */
  .lightbox-prev, .lightbox-next { display: none; }

  /* footer */
  footer { padding: 40px 16px; }
  .footer-grid { gap: 30px; }
}
