/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

/* ── Page Hero (subpages) ── */
.page-hero {
    padding: 130px 0 28px;
    background: #05071a;
    text-align: center;
    position: relative;
}

.page-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0.5rem 0 0.35rem;
}

.page-hero-content > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.35rem;
}

/* Glow orbs for subpages */
.page-glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.page-orb-1 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(139,92,246,0.3), transparent 70%); top: 5%; right: 10%; }
.page-orb-2 { width: 260px; height: 260px; background: radial-gradient(circle, rgba(236,72,153,0.25), transparent 70%); bottom: 8%; left: 5%; }
.page-orb-3 { width: 220px; height: 220px; background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%); top: 40%; right: 2%; }

/* Orbit rings for subpages — fixed in background */
.page-orbit {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
}
.page-orbit-1 {
    width: 500px; height: 500px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-top: -250px;
    animation: orbitRotate 22s linear infinite;
}
.page-orbit-2 {
    width: 700px; height: 700px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    margin-top: -350px;
    animation: orbitRotate 30s linear infinite reverse;
}
.page-orbit-3 {
    width: 900px; height: 900px;
    border: 1px solid rgba(236, 72, 153, 0.1);
    margin-top: -450px;
    animation: orbitRotate 38s linear infinite;
}

/* Subpage layout — fill full viewport, no dead space */
.subpage-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #05071a;
}

/* ── Stats Strip ── */
.stats-strip {
    background: var(--dark-secondary);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── What I Build ── */
.what-i-build {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.build-tile {
    background: var(--dark-secondary);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.build-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(99,102,241,0.4);
}

.build-icon {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.build-tile h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.build-tile p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Featured App Spotlight ── */
.featured-app {
    padding: 6rem 0;
    background: var(--dark-secondary);
}

.featured-label {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.featured-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    background: var(--dark-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 2.5rem;
    transition: border-color 0.3s ease;
}

.featured-card:hover {
    border-color: rgba(99,102,241,0.35);
}

.featured-icon img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.featured-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.75rem 0 0.75rem;
}

.featured-quote {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.25rem;
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
}

.featured-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.highlight-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ── Subpage section padding overrides ── */
.about-page,
.portfolio-page,
.contact-page {
    padding: 1.5rem 0 1rem;
    background: transparent;
    position: relative;
    z-index: 1;
    flex: 1;
}

.about-page {
    padding-top: 110px;
}

.portfolio-page,
.contact-page {
    padding-top: 110px;
}

.portfolio-page .portfolio-grid {
    justify-content: center;
}

@media (max-width: 1024px) {
    .build-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .page-hero-content h1 { font-size: 2rem; }
    .build-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .featured-quote { text-align: left; }
    .featured-icon img { width: 100px; height: 100px; }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 24px;
    background: rgba(10, 13, 30, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.35);
    box-shadow: 0 1px 0 0 rgba(236, 72, 153, 0.12), 0 8px 32px rgba(0,0,0,0.4);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* gradient border glow line at bottom */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), rgba(236,72,153,0.5), rgba(99,102,241,0.5), transparent);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
    margin: -20px 0;
}

.logo h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-links a svg {
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-links a:hover svg {
    opacity: 1;
}

.nav-links a.active {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
}

.nav-links a.active svg {
    opacity: 1;
    color: #a78bfa;
}

.nav-links a::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* Hero Section */
/* ── Hero ── */
.hero {
    height: calc(100vh - 44px);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: #05071a;
    box-sizing: border-box;
    flex-shrink: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Orbit rings */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(139, 92, 246, 0.25);
    pointer-events: none;
    z-index: 0;
}
.orbit-1 { width: 560px; height: 560px; top: 50%; right: -60px; transform: translateY(-50%); }
.orbit-2 { width: 780px; height: 780px; top: 50%; right: -170px; transform: translateY(-50%); border-color: rgba(99,102,241,0.15); }
.orbit-3 { width: 1000px; height: 1000px; top: 50%; right: -280px; transform: translateY(-50%); border-color: rgba(236,72,153,0.08); }

/* Glow blobs */
.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.orb-1 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,0.45), transparent 70%); top: 10%; right: 15%; }
.orb-2 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(236,72,153,0.35), transparent 70%); bottom: 10%; right: 30%; }
.orb-3 { width: 250px; height: 250px; background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%); top: 30%; right: 5%; }

/* Eyebrow label */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.04);
}
.eyebrow-star { color: var(--primary-color); font-size: 0.7rem; }

/* Title */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 460px;
    line-height: 1.75;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.975rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-arrow { font-size: 1rem; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99,102,241,0.45);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.6);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1.5px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* What We Do strip */
.hero-what-we-do {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.wwd-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.wwd-tags { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.wwd-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
}

/* ── Hero Visual — Floating Cards ── */
/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeIn 1s ease-out both;
  height: 420px;
  width: 100%;
}

/* Orbit rings — centred on the card cluster */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  margin-top: -210px;
  margin-left: -210px;
  border: 1px solid rgba(178, 80, 255, 0.28);
  border-radius: 50%;
  animation: orbitRotate 22s linear infinite;
}

.orbit:nth-child(2) {
  width: 320px;
  height: 320px;
  margin-top: -160px;
  margin-left: -160px;
  animation-duration: 30s;
  animation-direction: reverse;
  border-color: rgba(50, 110, 255, 0.26);
}

.orbit:nth-child(3) {
  width: 520px;
  height: 520px;
  margin-top: -260px;
  margin-left: -260px;
  animation-duration: 38s;
  border-color: rgba(255, 70, 180, 0.22);
}
.service-card {
  position: absolute;
  width: 200px;
  border-radius: 28px;
  backdrop-filter: blur(18px);
  background: rgba(12, 18, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 90px rgba(124, 80, 255, 0.25);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-12px) scale(1.03) rotateX(4deg) rotateY(-4deg) !important;
  box-shadow: 0 40px 120px rgba(220, 70, 255, 0.35);
}

.card-android {
  width: 160px;
  top: 10px;
  left: 50%;
  margin-left: 10px;
  animation: floatAndroid 6s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(34, 197, 94, 0.18), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

.card-games {
  width: 152px;
  top: 160px;
  left: 20px;
  animation: floatGames 7s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(236, 72, 153, 0.18), 0 0 0 1px rgba(236, 72, 153, 0.1);
}

.card-web {
  width: 160px;
  top: 230px;
  right: 10px;
  animation: floatWeb 6.5s ease-in-out infinite;
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.18), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.card-bar {
  height: 3px;
  border-radius: 4px;
  margin-top: 0.4rem;
  width: 38%;
}
.bar-green { background: #22c55e; }
.bar-pink  { background: #ec4899; }
.bar-blue  { background: #6366f1; }

.card-icon-wrap {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.card-icon-green { background: rgba(34,197,94,0.15); box-shadow: 0 0 20px rgba(34,197,94,0.2); }
.card-icon-pink  { background: rgba(236,72,153,0.15); box-shadow: 0 0 20px rgba(236,72,153,0.2); }
.card-icon-blue  { background: rgba(99,102,241,0.15); box-shadow: 0 0 20px rgba(99,102,241,0.2); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Glowing particles */
.glow-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a855f7;
  box-shadow: 0 0 22px #a855f7;
  animation: pulseGlow 2.8s ease-in-out infinite;
  z-index: 3;
}

.glow-dot.blue {
  background: #3b82f6;
  box-shadow: 0 0 22px #3b82f6;
  animation-delay: 0.6s;
}

.glow-dot.pink {
  background: #ec4899;
  box-shadow: 0 0 22px #ec4899;
  animation-delay: 1.1s;
}

/* Keyframes */
@keyframes floatAndroid {
  0%, 100% { transform: translateY(0px) rotate(4deg); }
  50%       { transform: translateY(-16px) rotate(2deg); }
}

@keyframes floatGames {
  0%, 100% { transform: translateY(0px) rotate(-6deg); }
  50%       { transform: translateY(14px) rotate(-4deg); }
}

@keyframes floatWeb {
  0%, 100% { transform: translateY(0px) rotate(3deg); }
  50%       { transform: translateY(-12px) rotate(5deg); }
}

@keyframes orbitRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.55); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    background: transparent;
}

.about-layout {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.about-logo {
    width: 100px;
    height: auto;
    margin: 0.5rem auto 0;
    display: block;
}

.about-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.about-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    text-align: left;
}

.about-text p {
    margin-bottom: 0.65rem;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
    justify-content: center;
}

.skill-tag {
    padding: 0.45rem 1rem;
    background: var(--dark-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.85rem;
    padding: 0.75rem 1.75rem;
    background: #0a66c2;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.35);
}

.linkedin-btn:hover {
    background: #0856a8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.5);
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Portfolio card header */
.portfolio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
}

.portfolio-card-header-left {
    flex: 1;
}

.portfolio-header-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pf-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.8);
    animation: pulse 2s infinite;
}

.portfolio-card-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.portfolio-card-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem;
    max-width: 420px;
}

.portfolio-header-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pf-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.pf-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-secondary);
}

.pf-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
}

.portfolio-card-header-right {
    flex-shrink: 0;
}

.pf-header-icon-ring {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.15), inset 0 0 40px rgba(139, 92, 246, 0.05);
    position: relative;
    animation: pf-ring-pulse 6s ease-in-out infinite;
}

@keyframes pf-ring-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.08), inset 0 0 20px rgba(139, 92, 246, 0.03);
        border-color: rgba(139, 92, 246, 0.25);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.22), 0 0 70px rgba(99, 102, 241, 0.08), inset 0 0 30px rgba(139, 92, 246, 0.06);
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.pf-header-icon-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(165, 180, 252, 0.15);
    animation: pf-ring-pulse-inner 6s ease-in-out infinite;
}

@keyframes pf-ring-pulse-inner {
    0%, 100% { border-color: rgba(165, 180, 252, 0.08); }
    50%       { border-color: rgba(165, 180, 252, 0.25); }
}

.pf-header-icon-inner {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pf-icon-float 6s ease-in-out infinite;
}

@keyframes pf-icon-float {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-5px); }
}

/* Portfolio Section */
.portfolio {
    background: transparent;
}

/* Portfolio section group headers */
.portfolio-section-label {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
    margin-top: 0.25rem;
}

.portfolio-section-label .section-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(139,92,246,0.3), transparent);
}

.portfolio-section-label .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-android {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.1);
}

.badge-web {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #a5b4fc;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}

.portfolio-item {
    background: var(--dark-tertiary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    position: relative;
    padding-top: 55%;
    overflow: hidden;
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-app-icon {
    width: 92%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 22%;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.app-icon {
    font-size: 4rem;
}

.portfolio-info {
    padding: 1rem;
}

.portfolio-info h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #1e3a5f, #2e7d32);
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.4);
}

.store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.6);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-secondary);
}

.fs-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 2.5rem 2rem;
    background: rgba(40, 200, 64, 0.08);
    border: 1px solid rgba(40, 200, 64, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
}

.fs-success-icon {
    font-size: 2.5rem;
    background: rgba(40, 200, 64, 0.15);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-success h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.fs-success p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.fs-error {
    padding: 1rem 1.25rem;
    background: rgba(255, 95, 87, 0.1);
    border: 1px solid rgba(255, 95, 87, 0.3);
    border-radius: 8px;
    color: #ff5f57;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.email-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: rgba(10, 13, 30, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 0.6rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 -1px 0 0 rgba(236, 72, 153, 0.08);
    font-size: 0.78rem;
    position: relative;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        flex-direction: column;
        background: var(--dark-secondary);
        padding: 5rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        height: 460px;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-what-we-do {
        justify-content: center;
    }

    .wwd-tags {
        justify-content: center;
    }

    .orbit { display: none; }

    .stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .portfolio-card-header-right {
        display: none;
    }

    .portfolio-card-title {
        font-size: 1.8rem;
    }
}

/* ── Portfolio card: View case study link ── */
.view-case-study {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.portfolio-item:hover .view-case-study {
    text-decoration: underline;
}

.app-screenshots {
    padding: 4rem 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.screenshots-scroll {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 1.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.screenshots-scroll::-webkit-scrollbar-track {
    background: var(--dark-tertiary);
    border-radius: 3px;
}

.screenshots-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-track-outer {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-item {
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc((100% - 60px) / 4);
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(99,102,241,0.2);
    border: 1px solid rgba(99,102,241,0.4);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--dark-tertiary);
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .carousel-item { width: calc((100% - 40px) / 3); }
}

@media (max-width: 640px) {
    .carousel-item { width: 100%; }
}

/* Video thumbnail */
.video-item {
    position: relative;
    background: #000;
}

.video-item .video-thumb {
    position: relative;
    width: 100%;
    padding-top: 177%; /* 9:16 aspect ratio */
}

.video-preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #fff;
}

.play-btn-circle {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 4px;
    box-shadow: 0 4px 20px rgba(99,102,241,0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-item:hover .play-btn-circle {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 1);
}

.play-overlay span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover { background: rgba(255,255,255,0.25); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 10;
    user-select: none;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav.prev { left: 1.25rem; }
.lightbox-nav.next { right: 1.25rem; }

.lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

.lightbox-content video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.8);
}

/* App detail page */
.app-hero {
    padding: 140px 0 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    transition: color 0.3s ease;
}

.back-link:hover { color: var(--text-primary); }

.app-hero-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.app-hero-icon img {
    width: 260px;
    height: 260px;
    border-radius: 52px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.app-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.app-hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.app-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 580px;
    line-height: 1.6;
}

.app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.meta-item { font-size: 0.9rem; color: var(--text-muted); }

.playstore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.75rem;
    background: #000;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.playstore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.3);
}

.playstore-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.trial-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.playstore-sub { font-size: 0.7rem; color: #aaa; }
.playstore-main { font-size: 1.05rem; font-weight: 700; }

.app-about {
    padding: 4rem 0;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

.app-description h2 { font-size: 2rem; margin-bottom: 1.25rem; }

.app-description p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 780px;
    margin-bottom: 1rem;
}

.app-features {
    padding: 4rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.features-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card-app {
    background: rgba(12, 18, 42, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.feature-card-app:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(99,102,241,0.15);
    transform: translateY(-3px);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }

.feature-card-app h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
}

.feature-card-app ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-card-app ul li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1rem;
    position: relative;
}

.feature-card-app ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.app-privacy-banner {
    padding: 3.5rem 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.privacy-banner-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 860px;
    margin: 0 auto;
}

.privacy-icon { font-size: 3rem; flex-shrink: 0; }

.privacy-banner-inner h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.privacy-banner-inner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.app-cta {
    padding: 5rem 0;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: 1;
}

.app-cta h2 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.app-cta p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.05rem; }

@media (max-width: 768px) {
    .app-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-meta { justify-content: center; }
    .app-hero-text h1 { font-size: 2.25rem; }
    .privacy-banner-inner { flex-direction: column; text-align: center; }
}

/* ── Footer link ── */
.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-link:hover { color: var(--text-primary); }

/* ── Product Trace page styles ── */
.tech-pill {
    padding: 0.3rem 0.85rem;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    border-radius: 20px;
    font-size: 0.82rem;
    color: #a5b4fc;
    font-weight: 500;
}

.pt-gallery {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 1.25rem;
    align-items: start;
}

.pt-main-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    display: block;
}

.pt-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.pt-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 520px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(99,102,241,0.3) transparent;
}

.pt-thumbs::-webkit-scrollbar { width: 4px; }
.pt-thumbs::-webkit-scrollbar-track { background: transparent; }
.pt-thumbs::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 4px; }

.pt-thumb {
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 0;
}

.pt-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.pt-thumb:hover {
    border-color: rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.08);
}

.pt-thumb.active {
    border-color: var(--primary-color);
    background: rgba(99,102,241,0.12);
    color: var(--text-primary);
}

.pt-arch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pt-arch-layer {
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.pt-arch-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.pt-arch-items {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pt-arch-items span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

.pt-arch-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.pt-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pt-highlights li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    font-size: 0.95rem;
}

.pt-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.85rem;
    top: 0.2rem;
}

@media (max-width: 768px) {
    .pt-gallery {
        grid-template-columns: 1fr;
    }
    .pt-thumbs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .pt-thumb {
        flex: 1;
        min-width: 80px;
    }
    .pt-arch {
        flex-direction: column;
    }
    .pt-arch-arrow {
        transform: rotate(90deg);
    }
}

/* ── Portfolio section groups ── */
.content-card {
    background: rgba(12, 18, 42, 0.60);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 2.5rem 2.5rem;
    position: relative;
    z-index: 1;
}

/* ── Privacy Policy Page ── */
.privacy-page {
    padding: 140px 0 80px;
}

.privacy-doc {
    max-width: 780px;
    margin: 0 auto;
}

.privacy-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.privacy-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    flex-shrink: 0;
}

.privacy-app-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.privacy-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.privacy-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.privacy-intro {
    background: rgba(99,102,241,0.08);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
}

.privacy-intro p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

.privacy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.privacy-section:last-child {
    border-bottom: none;
}

.privacy-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.privacy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.875rem;
}

.privacy-section p:last-child { margin-bottom: 0; }

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.privacy-section ul li {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.7;
    font-size: 0.975rem;
}

.privacy-section ul li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.4;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.email-link:hover { opacity: 0.8; }

@media (max-width: 600px) {
    .privacy-header { flex-direction: column; align-items: flex-start; }
    .privacy-header h1 { font-size: 1.75rem; }
}

/* ── Global Mobile Responsive ── */

/* Allow subpages to scroll naturally on small screens */
@media (max-width: 768px) {
    html[style*="overflow:hidden"],
    body[style*="overflow:hidden"] {
        overflow: auto !important;
        height: auto !important;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Navbar: shrink logo text on small screens */
    .logo h2 {
        font-size: 0.95rem;
    }
    .logo-img {
        height: 72px;
    }

    /* Page hero */
    .page-hero {
        padding: 110px 0 20px;
    }
    .page-hero-content h1 {
        font-size: 1.6rem;
    }

    /* Subpage content card */
    .content-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }

    /* About */
    .about-page,
    .portfolio-page,
    .contact-page {
        padding: 1rem 0 1.5rem;
        overflow-y: auto;
    }

    .about-text {
        font-size: 0.875rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 100svh;
        padding-top: 100px;
        padding-bottom: 2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin: 0 auto 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-what-we-do {
        justify-content: center;
    }

    .hero-visual {
        height: 320px;
    }

    /* Orbit rings hidden on mobile */
    .orbit, .page-orbit {
        display: none;
    }

    /* App hero */
    .app-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .app-hero-text h1 {
        font-size: 2rem;
    }
    .app-meta {
        justify-content: center;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h2 {
        display: none;
    }

    .logo-link {
        border-right: none;
        padding-right: 0;
    }

    .page-hero-content h1 {
        font-size: 1.35rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 1.25rem 1rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}
