/* =========================================================
   SuDeveloper - Android App Developer Portfolio
   ========================================================= */
:root {
  --primary: #1463f3;
  --primary-dark: #0d4fd1;
  --primary-soft: #e8f0ff;
  --green: #3ddc84;
  --text: #0f172a;
  --muted: #5b6475;
  --border: #e6ebf3;
  --bg: #ffffff;
  --bg-soft: #f4f8ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 50, 110, .08);
  --shadow-lg: 0 20px 50px rgba(20, 50, 110, .14);
  --hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: .92rem;
  padding: 11px 22px; border-radius: 10px;
  border: 2px solid transparent;
  transition: .25s ease; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(20, 99, 243, .28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; border-radius: 999px; }
.btn i.fa-play { font-size: .8em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(15, 23, 42, .08); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 42px; height: 46px; color: var(--green); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.3rem; font-weight: 700; }
.logo-text strong span { color: var(--primary); }
.logo-text small { font-size: .72rem; color: var(--muted); letter-spacing: .3px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-link { font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; transition: color .2s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2.5px; width: 0;
  background: var(--primary); border-radius: 2px; transition: width .25s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-list, .nav-list li { display: contents; }
.nav-cta { border-radius: 999px; }
.logo-img { height: 46px; width: auto; }
.nav-cta-mobile { display: none; }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.menu-toggle span { display: block; height: 2.5px; background: var(--text); border-radius: 2px; margin: 5px 0; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 99, 243, .07), transparent 40%),
    linear-gradient(180deg, #eef5ff 0%, #f7faff 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; min-height: 480px; }
.hero-content { padding: 50px 0; }
.badge {
  display: inline-block; background: #dbe8ff; color: var(--primary);
  font-weight: 500; font-size: .85rem; padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.18; font-weight: 700; margin-bottom: 18px; }
.hero h1 span { display: block; color: var(--primary); }
.hero p { color: var(--muted); max-width: 520px; margin-bottom: 28px; }
.hero p b { color: var(--text); }
.hero-buttons { display: flex; flex-wrap: nowrap; gap: 16px; margin-bottom: 36px; }

.tech-list { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.tech-list li, .skills li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9rem; }
.tech-android { width: 26px; height: 28px; color: var(--green); }
.kotlin-logo {
  width: 22px; height: 22px; display: inline-block;
  background: linear-gradient(135deg, #e44857 0%, #c711e1 50%, #7f52ff 100%);
  clip-path: polygon(0 0, 100% 0, 50% 50%, 100% 100%, 0 100%);
}
.compose-logo { font-size: 22px; color: #4285f4; }
.firebase-logo { font-size: 22px; color: #ffa000; }
.flutter-ic { width: 22px; height: 22px; }
.dart-logo { font-size: 20px; color: #0175c2; }
.ai-logo { font-size: 20px; color: #8b5cf6; }
.mini-play { width: 20px; height: 20px; }

/* Hero visual */
.hero-visual { position: relative; height: 480px; }
.blob {
  position: absolute; width: 360px; height: 360px; right: 30px; bottom: 0;
  border-radius: 50% 50% 45% 55% / 55% 50% 50% 45%;
  background: radial-gradient(circle at 35% 35%, #4d8dff, #1463f3 70%);
  opacity: .9;
}
.hero-person { position: absolute; right: 60px; bottom: 0; width: 310px; z-index: 2; }
.hero-person img { width: 100%; height: auto; }
.hero-person img + .person-fallback { display: none; }

.hero-laptop {
  position: absolute; z-index: 3; bottom: -40px; right: 100px;
  width: 270px; height: 110px; border-radius: 16px 16px 0 0;
  background: linear-gradient(160deg, #e9ecf1, #b9bec8);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .15);
  display: grid; place-items: center;
}
.laptop-logo { color: var(--green); font-size: 2rem; margin-top: -40px; }

.hero-phone {
  position: absolute; z-index: 4; left: 40px; top: 140px;
  width: 120px; height: 220px; border-radius: 22px;
  background: #111; padding: 7px; transform: rotate(-14deg);
  box-shadow: var(--shadow-lg);
}
.hero-phone-screen {
  width: 100%; height: 100%; border-radius: 16px; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--hand); font-size: 1.15rem; line-height: 1; text-align: center; color: #333;
}
.hero-play { width: 46px; height: 46px; }
.hero-bot { position: absolute; z-index: 1; left: 120px; top: 50px; width: 100px; height: 112px; color: var(--green); filter: drop-shadow(0 10px 18px rgba(61, 220, 132, .35)); }

.hand-note {
  position: absolute; right: 0; top: 30px; z-index: 5;
  font-family: var(--hand); font-size: 1.6rem; line-height: 1.05; font-weight: 700;
  transform: rotate(-12deg); color: #1f2937;
}
.hand-arrow { width: 50px; height: 50px; margin: 6px 0 0 10px; color: #1f2937; }

.spark { position: absolute; width: 4px; height: 16px; background: var(--primary); border-radius: 4px; }
.s1 { left: 90px; top: 120px; transform: rotate(-30deg); }
.s2 { right: 150px; top: 80px; transform: rotate(40deg); }
.s3 { left: 30px; bottom: 50px; transform: rotate(60deg); }

.float { animation: float 4s ease-in-out infinite; }
.float-slow { animation: floatTilt 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes floatTilt { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-12deg) translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2, .about h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; }
.section-head p { color: var(--muted); }

/* ---------- App cards ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app-card {
  display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.app-icon {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; color: #fff; margin-bottom: 14px; box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}
.ic-study { background: linear-gradient(135deg, #5aa9ff, #2563eb); }
.ic-iq { background: none; box-shadow: 0 6px 14px rgba(18, 89, 230, .3); }
.ic-iq svg { width: 100%; height: 100%; }
.ic-outfit { background: linear-gradient(135deg, #ff5fb3, #8b5cf6); }
.ic-face { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }
.ic-photo { background: linear-gradient(135deg, #3ba4ff, #0a6cf0); }
.ic-pdf { background: linear-gradient(135deg, #ff5a5a, #dc2626); }

.app-info h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
.app-info p { font-size: .82rem; color: var(--muted); margin-bottom: 10px; line-height: 1.5; }
.tag { display: inline-block; font-size: .72rem; background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.rating { font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.rating i { color: #ffb400; }
.rating span { color: var(--muted); font-weight: 400; }

.play-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000; color: #fff; padding: 6px 14px 6px 10px; border-radius: 8px;
  border: 1px solid #555; transition: transform .2s, background .2s;
}
.play-badge:hover { transform: scale(1.04); background: #1a1a1a; }
.play-badge svg { width: 24px; height: 24px; }
.play-badge span { display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1.05; font-weight: 500; }
.play-badge small { font-size: .55rem; letter-spacing: .5px; }

/* Coming soon apps */
.soon-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 8px;
  background: #f1f5f9; color: #475569; border: 1px dashed #94a3b8; cursor: default;
}
.soon-badge > i { font-size: 1rem; color: #f59e0b; width: 24px; text-align: center; }
.soon-badge span { display: flex; flex-direction: column; font-size: 1.05rem; line-height: 1.05; font-weight: 500; }
.soon-badge small { font-size: .55rem; letter-spacing: .5px; color: #64748b; }
.tag-soon { background: #fff4e5; color: #c2410c; font-weight: 600; }
.tag-soon::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #f97316; margin-right: 6px; vertical-align: middle; animation: soonPulse 1.6s ease-in-out infinite; }
@keyframes soonPulse { 50% { opacity: .3; } }
.rating.soon { color: #b45309; font-weight: 500; }
.rating.soon i { color: #f59e0b; }
.app-card.is-soon .phone { filter: saturate(.55); opacity: .8; }
.app-card.is-soon:hover .phone { filter: none; opacity: 1; }

/* Phone mockup */
.phone {
  width: 120px; height: 225px; background: #111; border-radius: 22px; padding: 6px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25); position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 6px; background: #111; border-radius: 0 0 6px 6px; z-index: 2;
}
.screen {
  height: 100%; border-radius: 17px; background: #f8fafc; overflow: hidden;
  padding: 18px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .55rem;
}
.screen.dark { background: #0b1020; }
.scr-title { font-weight: 700; font-size: .62rem; text-align: center; line-height: 1.2; }
.scr-title i { color: var(--primary); display: block; font-size: .9rem; margin-bottom: 2px; }
.scr-title small { display: block; font-weight: 400; font-size: .48rem; color: var(--muted); }
.scr-title.light { color: #fff; }
.scr-btn { width: 100%; color: #fff; font-weight: 600; padding: 7px 8px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.b-blue { background: #4b8bf5; } .b-green { background: #3fbf6f; } .b-red { background: #ef5350; } .b-lime { background: #4caf50; }

/* Trace IQ game screen (Midnight theme) */
.iq-screen { background: radial-gradient(circle at 50% 30%, #1d2a4d, #0b1228 75%); color: #fff; gap: 8px; }
.iq-level { font-weight: 700; font-size: .55rem; letter-spacing: .5px; }
.iq-score { display: flex; background: #18244a; border-radius: 6px; padding: 3px 0; width: 80%; }
.iq-score span { flex: 1; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.iq-score span + span { border-left: 1px solid #33426e; }
.iq-score small { font-size: .32rem; color: #8b9bc4; letter-spacing: .4px; }
.iq-score b { font-size: .75rem; }
.iq-score .gold { color: #ffc23d; }
.iq-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 100%; margin-top: auto; margin-bottom: auto; }
.iq-board i {
  aspect-ratio: 1; border-radius: 4px; background: #24345f; box-shadow: inset 0 -2px 0 #172344;
  display: grid; place-items: center; position: relative;
}
.iq-board i.pk { background: #ff7bbd; box-shadow: inset 0 -2px 0 #d94a93; }
.iq-board i.end::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
.ball {
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: .38rem; font-weight: 700; color: #fff; font-style: normal;
}
.ball.green { background: #1f9d55; }
.ball.pink { background: #ec2d86; border: 1.5px solid #fff; }
.ball.a { background: #ec2d86; border: 1.5px solid #fff; }

.photo-box {
  width: 100%; flex: 1; max-height: 100px; border-radius: 8px;
  background: linear-gradient(160deg, #dbe4f0, #aebcd0);
  display: grid; place-items: center; color: #fff; font-size: 2.4rem;
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; }
.photo-box.sm { height: 90px; font-size: 1.6rem; }
.p1 { background: linear-gradient(160deg, #9ec5a0, #5d8a63); }
.p2 { background: linear-gradient(160deg, #a7c4e8, #5b7fb5); }
.photo-box.picked { outline: 2px solid var(--primary); }

.score-ring {
  --c: var(--primary);
  width: 64px; height: 64px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e5e7eb 0);
  display: grid; place-items: center; align-content: center; line-height: 1;
}
.score-ring::before { content: ""; position: absolute; inset: 5px; background: #fff; border-radius: 50%; }
.score-ring b, .score-ring small { position: relative; }
.score-ring b { font-size: 1rem; }
.score-ring small { font-size: .45rem; color: var(--muted); }
.score-ring.green { --c: #22c55e; margin: 6px 0; }
.score-ring.overlap { --c: #ec4899; width: 54px; height: 54px; margin-top: -30px; }
.scr-caption { font-size: .5rem; color: var(--muted); text-align: center; }
.pill-green { background: #dcfce7; color: #15803d; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.mini-icons { display: flex; gap: 8px; margin-top: 6px; }
.mini-icons span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mini-icons i { width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: .55rem; }
.mini-icons small { font-size: .42rem; }
.scr-cta { margin-top: auto; width: 90%; text-align: center; background: var(--primary); color: #fff; font-weight: 600; padding: 6px; border-radius: 999px; }
.convert-row { flex: 1; display: flex; align-items: center; gap: 6px; }
.file-ic { width: 34px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; }
.file-ic.img { background: #3b82f6; }
.file-ic.pdf { background: #ef4444; }
.swap { color: var(--muted); font-size: .7rem; }

/* ---------- Features ---------- */
.features-wrap { padding-bottom: 20px; }
.features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-soft); border-radius: var(--radius); padding: 28px 10px;
}
.feature { display: flex; gap: 16px; padding: 4px 24px; align-items: flex-start; }
.feature + .feature { border-left: 1px solid #dbe3ef; }
.f-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; }
.f-blue { background: #dbe8ff; color: var(--primary); }
.f-red { background: #ffe1e3; color: #ef4444; }
.feature h4 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: .8rem; color: var(--muted); }

.cta-banner {
  margin-top: 24px; display: flex; align-items: center; gap: 22px;
  background: linear-gradient(90deg, #eaf2ff, #f3f8ff); border-radius: var(--radius);
  padding: 22px 32px;
}
.cta-icon { flex: none; width: 60px; height: 60px; display: grid; place-items: center; font-size: 2rem; color: var(--primary); transform: rotate(-10deg); }
.cta-text { flex: 1; }
.cta-text h3 { font-size: 1.2rem; font-weight: 700; }
.cta-text p { color: var(--muted); font-size: .9rem; }

/* ---------- Courses ---------- */
.courses { padding-bottom: 30px; }
.courses-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.course-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-thumb {
  position: relative; aspect-ratio: 16 / 10; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.course-thumb::before {
  content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%;
  right: -40px; top: -50px; background: rgba(255, 255, 255, .14);
}
.course-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-thumb strong { position: relative; font-size: 1.15rem; line-height: 1.2; }
.course-thumb small { position: relative; font-size: .78rem; opacity: .9; }
.course-ic {
  position: absolute; right: 16px; top: 16px; width: 54px; height: 54px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); display: grid; place-items: center; font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .15);
}
.course-ic svg { width: 30px; height: 30px; }
.course-lang {
  position: absolute; left: 14px; top: 14px; font-size: .68rem; font-weight: 600; letter-spacing: .4px;
  background: rgba(0, 0, 0, .25); padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.ct-pink { background: linear-gradient(135deg, #f43397, #9f2089); }
.ct-pink .course-ic { color: #9f2089; }
.ct-orange { background: linear-gradient(135deg, #ff9f43, #e8590c); }
.ct-orange .course-ic { color: #e8590c; }
.ct-green { background: linear-gradient(135deg, #20c997, #0b7a5a); }
.ct-green .course-ic { color: #0b7a5a; }
.ct-blue { background: linear-gradient(135deg, #4fa3ff, #1259e6); }
.ct-blue .course-ic { color: #1259e6; }
.ct-purple { background: linear-gradient(135deg, #6366f1, #4338ca); }
.ct-purple .course-ic { color: #4338ca; }
.course-thumb.has-img::before { display: none; }

.course-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.course-body .tag { align-self: flex-start; }
.course-body h3 { font-size: 1.02rem; line-height: 1.35; margin-bottom: 6px; }
.course-body p { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.course-meta i { color: var(--primary); margin-right: 4px; }
.course-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.price b { font-size: 1.25rem; color: var(--text); }
.price s { font-size: .82rem; color: #9aa3b2; margin-left: 6px; }
.price .free { color: #16a34a; }

/* ---------- Home: courses button banner ---------- */
.courses-cta-wrap { padding: 40px 0 20px; }
.courses-cta {
  position: relative; overflow: hidden; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, #1463f3 0%, #4f46e5 55%, #7c3aed 100%);
  padding: 48px 52px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  box-shadow: 0 24px 50px rgba(37, 70, 200, .28);
}
.courses-cta.no-visual { grid-template-columns: 1fr; text-align: center; }
.courses-cta.no-visual p { margin-inline: auto; }
.courses-cta::before, .courses-cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none;
}
.courses-cta::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.courses-cta::after { width: 260px; height: 260px; left: -90px; bottom: -150px; }
.cc-text { position: relative; z-index: 1; }
.cc-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 500;
  background: rgba(255, 255, 255, .16); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.courses-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 12px; }
.courses-cta p { opacity: .9; max-width: 480px; margin-bottom: 26px; }
.btn-white { background: #fff; color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-white:hover { transform: translateY(-2px); background: #f1f5ff; }
.btn-white i { transition: transform .25s; }
.btn-white:hover i { transform: translateX(4px); }

.cc-visual { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; }
.cc-chip {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--text);
  font-weight: 600; font-size: .92rem; padding: 10px 18px 10px 10px; border-radius: 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .18); animation: float 5s ease-in-out infinite;
}
.cc-chip:nth-child(2) { margin-left: 40px; animation-delay: -1.2s; }
.cc-chip:nth-child(3) { margin-left: 14px; animation-delay: -2.4s; }
.cc-chip:nth-child(4) { margin-left: 56px; animation-delay: -3.6s; }
.cc-chip b { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1rem; flex: none; }

/* ---------- Course list page (/course/) ---------- */
.page-hero .badge { display: inline-flex; align-items: center; gap: 8px; }
.course-thumb.has-img { padding: 0; }
.course-foot .btn i { font-size: .75em; }

/* ---------- Course detail page ---------- */
a.course-thumb { color: #fff; }
.course-card h3 a:hover { color: var(--primary); }
.courses-grid.three { grid-template-columns: repeat(3, 1fr); }
.btn-block { width: 100%; }

.course-hero { background: linear-gradient(180deg, #eef5ff 0%, #f7faff 100%); padding: 36px 0 44px; }
.course-hero-inner { padding-right: 400px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: .6rem; }
.breadcrumb span { color: var(--text); font-weight: 500; }
.course-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.2; margin: 6px 0 12px; }
.course-hero .lead { color: var(--muted); font-size: 1.02rem; max-width: 640px; }
.course-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0; font-size: .88rem; font-weight: 500; }
.course-facts i { color: var(--primary); margin-right: 6px; }
.course-author { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.course-author svg { width: 30px; height: 34px; color: var(--green); flex: none; }
.course-author b { color: var(--text); }

.course-main { padding: 0 0 60px; }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.buy-card {
  grid-column: 2; grid-row: 1; position: sticky; top: 96px; margin-top: -250px; z-index: 2;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.admin-bar .buy-card { top: 128px; }
.buy-card > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.buy-body { padding: 22px; }
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 16px; }
.buy-price b { font-size: 1.9rem; line-height: 1; }
.buy-price .free { color: #16a34a; }
.buy-price s { color: #9aa3b2; }
.buy-price .off { font-size: .75rem; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 3px 10px; border-radius: 999px; }
.buy-body .btn + .btn { margin-top: 10px; }
.buy-body h4 { margin: 22px 0 10px; font-size: .95rem; }
.includes, .learn-list { display: grid; gap: 10px; font-size: .88rem; }
.includes li, .learn-list li { display: flex; gap: 10px; align-items: flex-start; }
.includes i, .learn-list i { color: #16a34a; margin-top: 3px; }

.course-content { grid-column: 1; grid-row: 1; padding-top: 40px; min-width: 0; }
.learn-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 36px; background: #fff; }
.learn-box h2 { font-size: 1.3rem; margin-bottom: 16px; }
.learn-list { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.course-content .entry-content > h2:first-child { margin-top: 0; }

.more-courses { background: var(--bg-soft); }
.more-courses h2 { font-size: 1.6rem; margin-bottom: 24px; }
.buy-bar { display: none; }

/* ---------- About ---------- */
.about { padding-top: 50px; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: center; }
.about-text h2 { margin-bottom: 12px; }
.about-text p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.about-text b { color: var(--text); }
.about-info { margin-bottom: 20px; display: grid; gap: 8px; font-size: .88rem; }
.about-info li { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.about-info span { color: var(--muted); }
.about-info span::after { content: ":"; float: right; }
.about-info b { font-weight: 600; }
.about-info a { color: var(--primary); }
.skills-col { padding-left: 40px; border-left: 1px solid var(--border); }
.stats { display: flex; gap: 14px; margin-bottom: 22px; }
.stat { flex: 1; background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--primary); }
.stat span { font-size: .76rem; color: var(--muted); }
.skills { display: flex; flex-direction: column; gap: 14px; }
.skills .firebase-logo, .skills .dart-logo, .skills .ai-logo { font-size: 18px; width: 20px; text-align: center; }
.about-note { position: relative; justify-self: center; }
.about-note p { font-family: var(--hand); font-size: 1.9rem; font-weight: 700; line-height: 1.1; transform: rotate(-10deg); }
.about-note > i { position: absolute; right: -40px; top: 50%; font-size: 1.5rem; color: var(--primary); }
.about-note .underline { width: 120px; color: var(--primary); margin-top: 8px; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-soft); padding: 34px 0; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; align-items: center; }
.contact h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.contact p { font-size: .82rem; color: var(--muted); }
.contact-item { display: flex; gap: 14px; align-items: center; font-size: .85rem; }
.contact-item span:last-child { display: flex; flex-direction: column; }
.contact-item u { color: var(--primary); }
.contact-item em { font-style: normal; color: var(--primary); }
.c-icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; transition: transform .2s; }
.contact-item:hover .c-icon { transform: scale(1.1); }
.c-blue { background: #dbe8ff; color: var(--primary); }
.c-green { background: #dcfce7; color: #16a34a; font-size: 1.4rem; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; transition: transform .2s; }
.socials a:hover { transform: translateY(-4px); }
.s-yt { background: #ff0000; }
.s-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.s-in { background: #0a66c2; }
.s-x { background: #000; }

/* ---------- Footer ---------- */
.footer { background: #0f1b33; color: #c9d3e6; font-size: .82rem; padding: 18px 0; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer ul { display: flex; flex-wrap: wrap; }
.footer li { padding: 0 16px; }
.footer li + li { border-left: 1px solid #3a4a6b; }
.footer li:last-child { padding-right: 0; }

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- App cards from the "My Apps" post type ---------- */
.app-icon-img { background: #fff; overflow: hidden; color: var(--primary); }
.app-icon-img img { width: 100%; height: 100%; object-fit: cover; }
.screen-img { padding: 0; justify-content: center; }
.screen-img img { width: 100%; height: 100%; object-fit: cover; }
.screen-img img.screen-icon { width: 56px; height: 56px; border-radius: 14px; }
.tech-list .mini-play { width: 22px; height: 22px; }
.skill-check { color: var(--primary); font-size: 18px; width: 20px; text-align: center; }

/* ---------- WordPress: admin bar, accessibility, core classes ---------- */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
  clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
  top: 8px; left: 8px; z-index: 1000; padding: 10px 16px;
  background: #fff; color: var(--primary); border-radius: 8px; box-shadow: var(--shadow);
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { width: min(1100px, 100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption, figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 6px; }
.sticky .post-card, .post-card.sticky { border-color: var(--primary); }
.bypostauthor > .comment-body .fn { color: var(--primary); }

/* ---------- Blog, pages ---------- */
.page-hero {
  background: linear-gradient(180deg, #eef5ff 0%, #f7faff 100%);
  padding: 56px 0 46px; text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; }
.page-hero h1 span { color: var(--primary); }
.page-hero .post-meta { justify-content: center; }
.page-hero-desc { color: var(--muted); margin-top: 8px; }
.narrow { max-width: 780px; margin-inline: auto; }
.container.narrow { width: min(780px, 100% - 40px); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h2 { font-size: 1.1rem; line-height: 1.35; }
.post-body h2 a:hover { color: var(--primary); }
.post-body p { color: var(--muted); font-size: .88rem; }
.post-meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.post-meta a { color: var(--primary); }
.read-more { margin-top: auto; color: var(--primary); font-weight: 600; font-size: .88rem; }

.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); font-weight: 600; font-size: .9rem;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.entry-content { font-size: 1rem; color: #253045; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--text); line-height: 1.3; margin-top: 1.6em; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote { border-left: 4px solid var(--primary); background: var(--bg-soft); padding: 14px 20px; border-radius: 0 12px 12px 0; }
.entry-content pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 12px; overflow-x: auto; font-size: .88rem; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; }
.entry-thumb { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 1.5em; }
.post-tags { font-size: .88rem; color: var(--muted); }

.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 16px; border: 1px solid var(--border); border-radius: 12px; font-weight: 600; }
.post-navigation a:hover { border-color: var(--primary); color: var(--primary); }
.post-navigation small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }

.comments-area { margin-top: 50px; }
.comments-title, .comment-reply-title { font-size: 1.3rem; margin-bottom: 16px; }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .85rem; color: var(--muted); }
.comment-author .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-content { margin-top: 10px; }
.reply a { font-size: .82rem; color: var(--primary); font-weight: 600; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid #d3dbe8; border-radius: 10px; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 500; font-size: .88rem; margin-bottom: 4px; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.form-submit .submit, .search-submit {
  background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 11px 22px;
  font: inherit; font-weight: 600; cursor: pointer;
}
.search-form { display: flex; gap: 10px; margin-top: 16px; }
.search-form label { flex: 1; }

.error-404 { text-align: center; }
.error-404 .error-bot { width: 110px; height: 124px; color: var(--green); margin: 0 auto 10px; }
.error-404 h1 { font-size: 4rem; color: var(--primary); line-height: 1; }
.error-404 p { color: var(--muted); margin: 10px 0 24px; }

@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: auto; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .float-slow, .cc-chip, .tag-soon::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 26px; }
  .nav-cta { display: none; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .feature:nth-child(3) { border-left: 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 10px 20px 20px;
    box-shadow: 0 20px 30px rgba(15, 23, 42, .1);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: .3s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex; margin-top: 16px; }
  .menu-toggle { display: block; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { padding: 40px 0 0; }
  .hero p { margin-inline: auto; }
  .hero-buttons, .tech-list { justify-content: center; }
  .hero-visual { width: min(520px, 100%); margin-inline: auto; height: 440px; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-note { grid-column: 1 / -1; }

  .courses-cta { grid-template-columns: 1fr; padding: 40px 32px; text-align: center; }
  .courses-cta p { margin-inline: auto; }
  .cc-visual { justify-items: center; }
  .cc-chip:nth-child(n) { margin-left: 0; }

  .course-hero-inner { padding-right: 0; }
  .course-layout { grid-template-columns: 1fr; gap: 0; }
  .buy-card { grid-column: 1; grid-row: auto; position: static; margin-top: 24px; }
  .course-content { grid-row: auto; }
  .courses-grid.three { grid-template-columns: repeat(2, 1fr); }
  .buy-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px;
    background: #fff; box-shadow: 0 -6px 20px rgba(15, 23, 42, .1);
  }
  .buy-bar .buy-price { margin: 0; }
  .buy-bar .buy-price b { font-size: 1.3rem; }
  .single-sud_course .footer { padding-bottom: 84px; }
  .single-sud_course .to-top { bottom: 84px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .apps-grid { grid-template-columns: 1fr; }
  .courses-grid, .courses-grid.three { grid-template-columns: 1fr; }
  .learn-list { grid-template-columns: 1fr; }
  .courses-cta { padding: 34px 20px; border-radius: 20px; }
  .courses-cta .btn-lg { width: 100%; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .btn { flex: 1 1 0; min-width: 0; padding: 13px 10px; font-size: .9rem; gap: 8px; }
  .cc-chip { font-size: .85rem; }
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid #dbe3ef; padding-top: 18px; }
  .feature { padding: 0 10px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .skills-col { padding-left: 0; border-left: 0; }
  .about-note > i { right: -30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-wrap { justify-content: center; text-align: center; }
  .footer ul { justify-content: center; }
  .footer li { padding: 0 10px; }

  .hero-visual { height: 380px; }
  .blob { width: 270px; height: 270px; right: 10px; }
  .hero-person { width: 230px; right: 25px; }
  .hero-laptop { width: 200px; height: 90px; right: 40px; }
  .hero-phone { width: 92px; height: 170px; left: 0; top: 140px; }
  .hero-phone-screen { font-size: .9rem; }
  .hero-play { width: 34px; height: 34px; }
  .hero-bot { width: 70px; height: 78px; left: 50px; top: 50px; }
  .hand-note { font-size: 1.25rem; top: 10px; }
  .hand-arrow { width: 36px; height: 36px; }
}

@media (max-width: 380px) {
  .app-card { grid-template-columns: 1fr; justify-items: start; }
  .app-card .phone { justify-self: center; }
}

/* ---------- Course banners (/course/ page: 2 columns on every screen) ---------- */
.courses-hero { padding-bottom: 40px; }
.courses-page { padding-top: 46px; }
.banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.course-banner {
  display: block; border-radius: 20px; overflow: hidden; background: #eef2f7;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
}
.course-banner img { width: 100%; height: auto; transition: transform .5s ease; }
a.course-banner:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.course-banner:hover img { transform: scale(1.03); }
a.course-banner:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
/* Banner + title card */
.course-banner.has-title { background: #fff; border: 1px solid var(--border); }
.course-banner-img { display: block; overflow: hidden; background: #eef2f7; }
.course-banner-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; color: var(--text);
}
.course-banner-title b { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.course-banner-title i {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-size: .8rem; transition: background .25s, color .25s;
}
a.course-banner:hover .course-banner-title b { color: var(--primary); }
a.course-banner:hover .course-banner-title i { background: var(--primary); color: #fff; }
.courses-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.courses-empty i { font-size: 2.6rem; color: var(--primary); margin-bottom: 10px; }

/* Home page: up to 4 banners next to the "View All Courses" button */
.cc-banners { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cc-banner { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 26px rgba(15, 23, 42, .25); transition: transform .3s; background: rgba(255, 255, 255, .15); }
.cc-banner img { width: 100%; height: auto; }
a.cc-banner:hover { transform: translateY(-4px) scale(1.02); }

@media (max-width: 640px) {
  .courses-page { padding-top: 26px; }
  .banner-grid { gap: 12px; }
  .course-banner { border-radius: 12px; }
  .course-banner-title { padding: 10px 12px; gap: 8px; }
  .course-banner-title b { font-size: .85rem; }
  .course-banner-title i { width: 26px; height: 26px; font-size: .65rem; }
  .cc-banners { gap: 10px; }
  .cc-banner { border-radius: 10px; }
}
