/* ============================================
   VISIONTECHIE – Main Stylesheet
   ============================================ */

/* --- VARIABLES --- */
:root {
  --bg: #070b14;
  --bg2: #0d1220;
  --card: #111827;
  --card2: #161e2e;
  --border: rgba(99,179,237,0.12);
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --accent: #8b5cf6;
  --cyan: #06b6d4;
  --green: #10b981;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --grad2: linear-gradient(135deg, #06b6d4, #3b82f6);
  --font: 'Inter', sans-serif;
  --font2: 'Outfit', sans-serif;
  --radius: 16px;
  --shadow: 0 4px 32px rgba(59,130,246,0.12);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- CANVAS --- */
#particles-canvas {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; z-index: 1; }
.dark-bg { background: var(--bg2); }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- SECTION HEADER --- */
.sec-head { text-align: center; margin-bottom: 3.5rem; }
.sec-head h2 { font-family: var(--font2); font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; margin: 0.6rem 0 1rem; }
.sec-head p { color: var(--muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.tag {
  display: inline-block;
  padding: 0.35rem 1.1rem;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(59,130,246,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }

/* --- NAVBAR --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(7,11,20,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font2); font-weight: 900; font-size: 1rem;
  color: white; letter-spacing: -1px;
  box-shadow: 0 0 20px rgba(59,130,246,0.4);
}
.logo-text { font-family: var(--font2); font-size: 1.4rem; font-weight: 800; color: var(--white); }
.logo-text .accent { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta {
  margin-left: 0.5rem; padding: 0.55rem 1.4rem;
  border-radius: 50px; background: var(--grad);
  color: white; font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s; box-shadow: 0 4px 15px rgba(59,130,246,0.35);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.5); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* --- HERO --- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.5rem 4rem;
  position: relative; z-index: 1;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.15) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.08) 0%, transparent 60%),
              var(--bg);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.2rem; border-radius: 50px; margin-bottom: 1.8rem;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  color: var(--primary); font-size: 0.82rem; font-weight: 600;
  animation: fadeInDown 0.6s ease;
}
.hero h1 {
  font-family: var(--font2); font-size: clamp(2.8rem,6vw,5rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1.4rem;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero h1::after {
  content: '|';
  color: var(--primary);
  font-weight: 300;
  animation: blinkCursor 1s step-start infinite;
}
.hero-sub {
  color: var(--muted); max-width: 640px; margin: 0 auto 2.5rem;
  font-size: 1.1rem; line-height: 1.75;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; animation: fadeInUp 0.7s ease 0.3s both; }
.hero-stats {
  display: flex; gap: 0; align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 2.5rem; flex-wrap: wrap; justify-content: center;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.stat { text-align: center; padding: 0.5rem 2rem; }
.stat .num { font-family: var(--font2); font-size: 2.2rem; font-weight: 800; color: var(--white); }
.stat span:nth-child(2) { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.2rem; }
.sdiv { width: 1px; height: 50px; background: var(--border); }
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 3rem; color: var(--muted); font-size: 0.75rem; }
.mouse { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 12px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 8px; background: var(--primary); border-radius: 3px; animation: scrollWheel 1.5s ease infinite; }

/* --- TICKER --- */
.ticker { background: var(--grad); padding: 0.9rem 0; overflow: hidden; position: relative; z-index: 1; }
.ticker-track { display: flex; gap: 2.5rem; white-space: nowrap; animation: ticker 25s linear infinite; }
.ticker-track span { color: white; font-weight: 600; font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; }
.ticker-track i { opacity: 0.8; }

/* --- FEATURES GRID --- */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all 0.3s ease;
}
.feat-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-6px); box-shadow: var(--shadow); }
.feat-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(59,130,246,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--primary); margin-bottom: 1.2rem;
}
.feat-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.feat-card p { color: var(--muted); font-size: 1rem; line-height: 1.65; }

/* --- COURSES GRID --- */
.courses-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.course-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  position: relative; transition: all 0.3s ease;
}
.course-card:hover { border-color: rgba(59,130,246,0.4); transform: translateY(-6px); box-shadow: var(--shadow); }
.c-icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 1rem;
}
.java-c { background: rgba(240,98,27,0.1); color: #f0621b; }
.py-c { background: rgba(52,179,73,0.1); color: #34b349; }
.cl-c { background: rgba(6,182,212,0.1); color: var(--cyan); }
.dv-c { background: rgba(139,92,246,0.1); color: var(--accent); }
.tst-c { background: rgba(239,68,68,0.1); color: #ef4444; }
.ds-c { background: rgba(59,130,246,0.1); color: var(--primary); }
.c-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  padding: 0.25rem 0.7rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  background: rgba(59,130,246,0.15); color: var(--primary); border: 1px solid rgba(59,130,246,0.25);
}
.c-badge.hot { background: rgba(239,68,68,0.12); color: #f87171; border-color: rgba(239,68,68,0.25); }
.course-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; }
.course-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.2rem; }
.c-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--muted); margin-bottom: 1.2rem; }
.c-meta span { display: flex; align-items: center; gap: 0.35rem; }
.c-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  transition: gap 0.2s;
}
.c-btn:hover { gap: 0.7rem; }

/* --- ABOUT GRID --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-box { position: relative; }
.about-img { border-radius: var(--radius); width: 100%; object-fit: cover; border: 1px solid var(--border); }
.ab-badge {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--grad); padding: 1rem 1.5rem;
  border-radius: var(--radius); box-shadow: 0 8px 30px rgba(59,130,246,0.4);
  color: white;
}
.ab-badge i { font-size: 1.6rem; }
.ab-badge strong { display: block; font-size: 1.1rem; }
.ab-badge small { font-size: 0.78rem; opacity: 0.85; }
.about-txt { padding-left: 1rem; }
.about-txt .tag { margin-bottom: 1rem; display: inline-block; }
.about-txt h2 { font-family: var(--font2); font-size: clamp(1.8rem,3vw,2.4rem); font-weight: 800; margin: 0.6rem 0 1.2rem; }
.about-txt p { color: var(--muted); margin-bottom: 1rem; line-height: 1.75; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 1.5rem 0; }
.highlights div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 500; }
.highlights i { color: var(--green); }

/* --- TESTIMONIALS --- */
.tslider { position: relative; }
.tcard {
  display: none; background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; max-width: 760px; margin: 0 auto;
}
.tcard.active { display: block; animation: fadeIn 0.5s ease; }
.tq { font-size: 2.5rem; color: var(--primary); opacity: 0.3; margin-bottom: 1rem; line-height: 1; }
.tcard p { font-size: 1.05rem; color: var(--text); line-height: 1.8; margin-bottom: 1.8rem; font-style: italic; }
.tauthor { display: flex; align-items: center; gap: 1rem; }
.tavatar {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.av1 { background: linear-gradient(135deg,#3b82f6,#8b5cf6); color: white; }
.av2 { background: linear-gradient(135deg,#06b6d4,#3b82f6); color: white; }
.av3 { background: linear-gradient(135deg,#10b981,#06b6d4); color: white; }
.tauthor > div strong { display: block; font-weight: 700; }
.tauthor > div span { font-size: 0.85rem; color: var(--muted); }
.tstars { margin-left: auto; color: #f59e0b; }
.tdots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; transition: all 0.3s;
}
.dot.active { background: var(--primary); transform: scale(1.3); }

/* --- PARTNERS --- */
.partners-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.partner {
  padding: 1rem 2rem; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  font-weight: 700; font-size: 1rem; color: var(--muted);
  transition: all 0.3s;
}
.partner:hover { color: var(--primary); border-color: rgba(59,130,246,0.4); transform: translateY(-3px); }

/* --- CTA BAND --- */
.cta-band {
  padding: 5rem 1.5rem; text-align: center;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.1) 0%, transparent 70%), var(--bg2);
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.cta-band h2 { font-family: var(--font2); font-size: clamp(2rem,4vw,3rem); font-weight: 800; margin-bottom: 1rem; }
.cta-band p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- FOOTER --- */
.footer { background: #050810; border-top: 1px solid var(--border); padding-top: 4rem; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; padding-bottom: 3rem; }
.f-brand p { color: var(--muted); font-size: 0.88rem; line-height: 1.7; margin: 1rem 0 1.5rem; }
.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; transition: all 0.3s;
}
.socials a:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); }
.f-col h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); margin-bottom: 1.2rem; }
.f-col ul li { margin-bottom: 0.6rem; }
.f-col ul li a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s; }
.f-col ul li a:hover { color: var(--primary); }
.fcontact li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.8rem; }
.fcontact i { color: var(--primary); margin-top: 0.2rem; flex-shrink: 0; }
.fcontact a { color: var(--muted); }
.fcontact a:hover { color: var(--primary); }
.f-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem;
  text-align: center; color: var(--muted); font-size: 0.82rem;
}

/* --- SCROLL TOP --- */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: white; border: none;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 4px 20px rgba(59,130,246,0.4);
  transition: transform 0.2s;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { transform: translateY(-3px); }

/* --- WHATSAPP --- */
.wa-btn {
  position: fixed; bottom: 6rem; right: 2rem; z-index: 999;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.1); }

/* --- ANIMATIONS --- */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes ticker { 0% { transform:translateX(0); } 100% { transform:translateX(-50%); } }
@keyframes scrollWheel { 0%,100% { transform:translateY(0); opacity:1; } 50% { transform:translateY(8px); opacity:0.4; } }
@keyframes blinkCursor { 50% { opacity: 0; } }

/* --- REVEAL ANIMATION --- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .features-grid, .courses-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(7,11,20,0.97); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem 1.5rem; gap: 0.3rem; }
  .nav-links.open { display: flex; }
  .nav-cta { display: inline-flex; width: fit-content; }
  .hamburger { display: flex; }
  .nav-container { position: relative; }
  .features-grid, .courses-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-box { display: none; }
  .about-txt { padding: 0; }
  .hero-stats { gap: 0; flex-direction: row; flex-wrap: wrap; }
  .sdiv { display: none; }
  .stat { padding: 0.8rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .highlights { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns { flex-direction: column; align-items: center; }
}

/* --- THEME TOGGLE --- */
.theme-toggle-btn {
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.3s; margin-left: 0.8rem;
}
.theme-toggle-btn:hover { background: var(--grad); color: white; border-color: transparent; }
@media (max-width: 768px) { .theme-toggle-btn { margin-left: 0; margin-top: 1rem; width: 44px; height: 44px; } }

/* --- LIGHT THEME VARIABLES --- */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --card: #ffffff;
  --card2: #f1f5f9;
  --border: rgba(15,23,42,0.1);
  --text: #0f172a;
  --muted: #475569;
  --shadow: 0 4px 32px rgba(0,0,0,0.06);
}
[data-theme="light"] .navbar.scrolled { background: rgba(248,250,252,0.92); border-bottom: 1px solid rgba(0,0,0,0.1); }
[data-theme="light"] .nav-links.open { background: rgba(248,250,252,0.97); }
[data-theme="light"] .logo-text { color: var(--text); }
[data-theme="light"] .nav-link { color: var(--muted); }
[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active { color: var(--primary); background: rgba(0,0,0,0.05); }
[data-theme="light"] .hamburger span { background: var(--text); }
[data-theme="light"] .hero { background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 70%), var(--bg); }
[data-theme="light"] .hero-stats { background: #ffffff; }
[data-theme="light"] .stat .num { color: var(--text); }
[data-theme="light"] .footer { background: #f1f5f9; border-top: 1px solid var(--border); }
[data-theme="light"] .f-col h4 { color: var(--text); }
[data-theme="light"] .form-perks .perk { background: rgba(0,0,0,0.03); }
[data-theme="light"] .form-group input, [data-theme="light"] .form-group select { background: #fff; color: var(--text); border-color: var(--border); }
[data-theme="light"] .theme-toggle-btn:hover { background: var(--grad); color: white; border-color: transparent; }

/* --- TEXT HIGHLIGHT --- */
.text-highlight {
  background: rgba(59,130,246,0.15);
  color: var(--primary);
  padding: 0 0.4rem;
  border-radius: 4px;
  font-weight: 700;
}
[data-theme="light"] .text-highlight {
  background: rgba(59,130,246,0.1);
}
