/* =========================
   1. RESET & GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --bg: #acffed;
  --text: #000000;
  --card: #ffffff;
  --primary: #017b63;
  --hover: #cbe771;
  --footer: #0f271c;
  --jointext: white;
}

/* DARK MODE — applied by JS via data-theme="dark" on <html> */
[data-theme="dark"] {
  --bg: #0f172a;
  --text: #ffffff;
  --card: #1e293b;
  --hover: rgb(255, 255, 158);
  --primary: #017b63;
  --footer: #040a1a;
  --jointext: white;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden; /* prevent horizontal scroll / right gap from fixed hamburger */
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}


/* =========================
   2. HEADER & NAV
========================= */
.header_box {
  background: linear-gradient(to top, #060f0c, #00503D );
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  
}

.menu_box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 100px;
}

.features_list {
  display: flex;
  gap: 100px;
  list-style: none;
}

.features_list a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.features_list a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--hover);
  transition: 0.3s;
}


.features_list a:hover::after {
  width: 100%;
} 
.features_list li a:hover {
  color: var(--hover);
}

/* HAMBURGER BASE */
.menu_toggle {
  display: none;
}


/* =========================
   3. HERO SECTION
========================= */
.upperbody {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  max-width: 90%;
  flex-wrap: nowrap; /* prevent hero-right from dropping below hero-left */
}

/* LEFT */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 60%; /* allow shrinking cleanly */
}

.hero-content {
  text-align: center;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo-wrapper:hover .cursor {
  transform: scale(1.1);
}

.skydo {
  max-width: 100%;
    transition: all 0.3s ease-in-out;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(24, 21, 21, 0.5));
}


.academy {
  font-size: 3rem;
  color: #d9d9d9;
  margin: 20px 0;
  letter-spacing: 2px;
  text-wrap: none;
}

.cta-text {
  font-size: 1.2rem;
  color: #84e881;
  max-width: 400px;
  line-height: 1.5;
  white-space: normal;  /* allow text to wrap */
  word-spacing: normal; /* preserve spaces between words */
}

/* RIGHT */
.hero-right {
  flex: 0.6;
  display: flex;  /* visible on desktop and tablet (769px and up) */
}

.man_on_laptop {
  max-width: 80%;

}

.scroll-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.learn_with {
  display: inline-block;
  animation: scrollText 15s 5s linear infinite;
  margin-top: 10px;
  font-size: 14px;
  color: #94b8a7;
}

@keyframes scrollText {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}


/* =========================
   4. MAIN / CARDS
========================= */
.main-body {
  padding: 40px;
}

/* ✅ Desktop → 3 per row */
.upper_card_row,
.lower_class_row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;

}


.card {
  background: var(--card);
  border-radius: 15px;
  padding: 20px;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;


}

.card:hover {
  transform: translateY(-5px);
}

.logo_title {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.facebook_logo img {
  width: 40px;
}

.name {
  font-weight: bold;
}

.username_handle {
  font-size: 12px;
  color: #8fa0b8;
}

.page_info {
  margin: 15px 0;
  font-size: 14px;
  color: var(--text);
}


/* =========================
   5. BUTTONS
========================= */
.facebook_join_button,
.youtube_join_button,
.telegram_join_button,
.x_join_button,
.whatsapp_join_button,
.techskill_join_button,
.founder-portfolio {
  background: var(--primary);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
}

.founder-portfolio {
  padding: 5px;
  margin: 10px 30% 10px 0px;
}

.facebook_join_button a,
.youtube_join_button a,
.telegram_join_button a,
.x_join_button a,
.whatsapp_join_button a,
.techskill_join_button a,
.founder-portfolio a {
  background: #0e710b;
  color: var(--text);
  text-decoration: none;
}

.facebook_join_button:hover,
.youtube_join_button:hover,
.telegram_join_button:hover,
.x_join_button:hover,
.whatsapp_join_button:hover,
.techskill_join_button:hover,
.founder-portfolio:hover,
.join_text:hover {
  background: var(--footer);
  color: white;
}

button {
  position: relative;
  overflow: hidden;
}

.join_text {
  color: var(--jointext)
}

.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 100px;
  height: 100px;
  animation: ripple 0.5s linear;
}

@keyframes ripple {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(3); opacity: 0; }
}


/* =========================
   6. SCROLL REVEAL
========================= */
.hero-left,
.hero-right {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
   7. HEADER SCROLL STYLE
========================= */
header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}


/* =========================
   8. FOOTER
========================= */
.footer {
  background: var(--footer);
  color: #ffffff;
  padding: 50px 20px 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer-logo {
  width: 100px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: #cbd5f5;
}

.founder-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.stroke {
  text-decoration: none;
  display: inline-block;
}

.founder-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.founder-name {
  font-size: 14px;
  font-weight: 600;
}

.founder-info {
  text-align: left;
}

.founder-role {
  font-size: 12px;
  color: #cbd5f5;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #59a318;
  padding-top: 15px;
  font-size: 13px;
  color: #94a3b8;
}


/* =========================
   9. RESPONSIVENESS
========================= */

/* TABLET → 2 per row */
@media (max-width: 1024px) {
  .features_list {
    gap: 60px;
  }

  .hero-right {
    flex: 0.6;
  }

  .scroll-container {
    width: 60%;
  }

  .man_on_laptop {
    width: 40vw;
  }

  /* ✅ Tablet → 2 per row */
  .upper_card_row,
  .lower_class_row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE → 1 per row */
@media (max-width: 768px) {
  .upperbody {
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping only on mobile */
  }

  .hero-right {
    display: none; /* hidden on mobile */
  }

  .hero-content {
    flex: 1 1 100%;
    width: 100%;
  }

  /* ✅ Mobile → 1 per row */
  .upper_card_row,
  .lower_class_row {
    grid-template-columns: 1fr;
  }

  .menu_box {
    flex-direction: row;
    gap: 15px;
  }

  .logo {
    width: 50px;
  }

  .features_list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-right: 20px;
  }

  .header_box,
  .main-body,
  .footer {
    padding: 20px;
  }

  .skydo {
    width: 200px;
  }



  .academy {
    font-size: 20px;
  }

  .cta-text {
    font-size: 12px;
  }
}

/* SMALL MOBILE */
@media (max-width: 500px) {
  .upperbody {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .man_on_laptop {
    display: none;
  }

  .theme-toggle {
    display: block;
    right: 40%;
  }

  /* HAMBURGER */
  .menu_toggle {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
  }

  .menu_toggle span {
    position: absolute;
    width: 100%;
    height: 3px;
    background: white;
    left: 0;
    transition: 0.3s;
  }

  .menu_toggle span:nth-child(1) { top: 0; }
  .menu_toggle span:nth-child(2) { top: 9px; }
  .menu_toggle span:nth-child(3) { top: 18px; }

  /* MENU HIDDEN */
  .features_list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    background: #222;
    padding-top: 80px;
    align-items: center;
     padding-bottom: 20px;
  
  }

  /* SHOW MENU */
  .features_list.active {
    display: flex;
    height: auto;
    z-index: 20;
    background-color: #021B02;
    
   
  }

  .features_list li {
    border: 1px solid white;
    height: 5vh;
    padding: 10%;
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: left;
  }

  .features_list li a {
    justify-content: center;
    align-items: center;
  

  }

  .features_list a:hover::after {
  width: 100%;
} 
.features_list li a:hover {
  color: var(--hover);
}


  /* ANIMATE TO X */
  .menu_toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }

  .menu_toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu_toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-box {
    justify-content: center;
  }

  .founder-portfolio {
    margin: 10px auto;
  }
}


.tg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  
}

.tg-overlay.open { display: flex; }

.tg-modal {
  background: #1e293b;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  border: 0.5px solid #334155;
}

.tg-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.tg-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.tg-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.tg-close:hover { color: #fff; }

.tg-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f172a;
  margin-bottom: 10px;
  border: 0.5px solid #334155;
  text-decoration: none;
  transition: background 0.2s;
}
.tg-group:hover { background: #0ea5e9; border-color: #0ea5e9; }
.tg-group:hover .tg-group-name,
.tg-group:hover .tg-group-desc { color: #fff; }

.tg-group-info { display: flex; flex-direction: column; gap: 2px; }
.tg-group-name { font-size: 14px; font-weight: 500; color: #e2e8f0; }
.tg-group-desc { font-size: 12px; color: #64748b; }
.tg-arrow { color: #38bdf8; font-size: 16px; }
.tg-group:hover .tg-arrow { color: #fff; }


/* ================= VIDEO HUB ================= */

.video-hub {
  margin-bottom: 50px;
}

.video-hub-title {
  text-align: center;
  margin-bottom: 30px;
}

.video-toggle {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.video-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.video-grid.active {
  display: grid;
}

.video-card {
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
}

.video-card img {
  width: 100%;
  cursor: pointer;
}

.video-card p {
  padding: 10px;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
