/* ============ Design Tokens ============ */
:root {
  --background: #07070a;
  --foreground: #f4f4f5;
  --muted-foreground: #9a9aa5;
  --card: rgba(18, 18, 24, 0.65);
  --secondary: #131318;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #70f15b;
  --primary-foreground: #06110a;
  --primary-soft: rgba(112, 241, 91, 0.12);
  --primary-border: rgba(112, 241, 91, 0.35);
  --accent: #00f5ff;
  --accent-soft: rgba(0, 245, 255, 0.1);
  --accent-border: rgba(0, 245, 255, 0.35);
  --primary-gradient: linear-gradient(135deg, #70f15b 0%, #00f5ff 100%);
  --accent-glow: 0 10px 30px rgba(112, 241, 91, 0.25);
  --radius: 1.1rem;
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Chivo", "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }

/* Snappy interactions */
.glass-card, .feature-card, .proj-card, .tilt-card {
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style paint;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}
a, button {
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}
a:active, button:active {
  transform: translateY(0) scale(0.98);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 9999px;
  border: 2px solid var(--background);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}
.font-heading { font-family: "Space Grotesk", sans-serif; }

/* ============ Background glow ============ */
.bg-glow {
  position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(112, 241, 91, 0.14), transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(0, 245, 255, 0.10), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(112, 241, 91, 0.04), transparent 60%);
  animation: bgDrift 18s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(1.5%, -2%) scale(1.08); }
  100% { transform: translate(-1%, 1.5%) scale(1); }
}

/* ============ Layout helpers ============ */
.section-container { padding: 5rem 8vw; }
.section-container.pt-0 { padding-top: 0; }
.text-center { text-align: center; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.section-heading {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
}
.text-primary { color: var(--primary); }
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.7; }

.glass-card {
  background: var(--card);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  transition: border-color 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.glass-card.no-pad { padding: 0; overflow: hidden; }
.glass-card:hover { 
  border-color: rgba(112, 241, 91, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 35px rgba(112, 241, 91, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* .rash div{
width: 50%;
}

.rash{
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 50px;

} */

.accent-btn, .ghost-btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, border-color 0.15s;
  text-align: center;
  font-size: 0.95rem;
  transform: translateY(0);
}
.accent-btn {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--accent-glow);
}
.accent-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 45px rgba(112,241,91,0.45); }
.ghost-btn {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.ghost-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,0.35); border-color: rgba(112, 241, 91, 0.45); color: var(--primary); }

.chip {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}
.chip.primary { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }

.badge-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}
.badge-pulse .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.icon-tile {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
  transition: background 0.15s, color 0.15s;
}
.glass-card:hover .icon-tile { background: var(--primary); color: var(--primary-foreground); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 8vw;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem;
}
.logo-mark {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--primary); color: var(--primary-foreground);
  display: grid; place-items: center; font-weight: 700;
  box-shadow: 0 0 25px rgba(112, 241, 91, 0.35);
}
.main-nav { display: flex; gap: 1.5rem; }
.main-nav a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px;
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.2s ease, left 0.2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%; left: 0;
}
.mobile-toggle { display: none; color: var(--foreground); }
.mobile-nav { display: none; }

@media (max-width: 1024px) {
  .main-nav, .header-cta { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 8vw;
    flex-direction: column;
    gap: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0;
  }
  .mobile-nav a.active { color: var(--primary); }
  .mobile-nav a {
    position: relative;
  }
  .mobile-nav a::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--primary);
    transition: width 0.2s ease;
  }
  .mobile-nav a.active::after { width: 100%; }
}

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.35;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,10,0.35), rgba(7,7,10,0.75), var(--background));
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 82vh;
}
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 1.6rem; line-height: 1.12; letter-spacing: -0.02em; }
.hero .sub { color: var(--muted-foreground); font-size: clamp(1.15rem, 2.4vw, 1.9rem); font-weight: 400; display: block; }
.hero .lead { color: var(--muted-foreground); max-width: 34rem; margin-bottom: 2.2rem; font-size: 1.08rem; line-height: 1.75; }
.hero .lead strong { color: var(--foreground); font-weight: 600; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
  display: block;
  filter: drop-shadow(0 0 10px rgba(112,241,91,0.35));
}
.stat-label {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 0.35rem;
  display: block;
}

.portrait-card {
  position: relative;
  display: flex;
  justify-content: center;
}
.portrait-card .glow {
  position: absolute; inset: -1.8rem;
  border-radius: 1.6rem;
  background: rgba(112,241,91,0.12);
  filter: blur(50px);
}
.portrait-card .glass-card {
  position: relative;
  text-align: center;
  max-width: 22rem;
}
.portrait-card img {
  width: 18rem; height: 18rem;
  object-fit: cover;
  border-radius: 1rem;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--primary-border);
  box-shadow: 0 20px 55px rgba(0,0,0,0.55), 0 0 35px rgba(112,241,91,0.18);
}
.portrait-card .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }

/* ============ Grids ============ */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted-foreground); font-size: 0.9rem; line-height: 1.7; }

/* ============ Section title block ============ */
.section-title { text-align: center; margin-bottom: 3.5rem; }
.section-title h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin: 0.75rem 0 1rem; }
.section-title p { color: var(--muted-foreground); max-width: 42rem; margin: 0 auto; font-size: 1.05rem; }

/* ============ Trusted ============ */
.trusted {
  padding: 2.5rem 8vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 2rem; align-items: center; opacity: 0.6;
}
.trusted-row span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.trusted-row span:hover { color: var(--foreground); }

/* ============ Featured project rows ============ */
.feat-project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) { .feat-project { grid-template-columns: 1fr 1fr; } }
.feat-project img {
  width: 100%; height: 16rem; object-fit: cover;
  border-radius: 0.75rem;
  transition: transform 0.2s;
}
.feat-project .img-wrap { border-radius: 0.75rem; overflow: hidden; }
.feat-project:hover img { transform: scale(1.05); }
.feat-project.reverse > div:first-child { order: 1; }
@media (min-width: 1024px) {
  .feat-project.reverse > div:first-child { order: 2; }
}
.metric-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  color: var(--primary);
  font-size: 0.85rem; font-weight: 500;
  margin-bottom: 1rem;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--primary); font-weight: 600;
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 0.75rem; }

/* ============ Testimonials ============ */
.stars { display: flex; gap: 0.25rem; margin-bottom: 1rem; color: var(--primary); }
.test-author {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: rgba(112,241,91,0.2);
  display: grid; place-items: center;
  color: var(--primary); font-weight: 700;
}

/* ============ Footer ============ */
.site-footer { border-top: 1px solid var(--border); }
.newsletter {
  padding: 3rem 8vw;
  border-bottom: 1px solid var(--border);
}
.newsletter .glass-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .newsletter .glass-card { grid-template-columns: 1fr 1fr; }
}
.newsletter form { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.newsletter input {
  flex: 1;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  color: var(--foreground);
  font-size: 0.9rem;
}
.newsletter input:focus { outline: 2px solid var(--primary); outline-offset: 2px; }

.footer-main {
  padding: 3rem 8vw;
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-main h4 { font-weight: 600; margin-bottom: 1rem; }
.footer-main nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-main nav a, .footer-main p {
  color: var(--muted-foreground); font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-main nav a:hover { color: var(--primary); }
.social-row { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-row a {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted-foreground);
  transition: color 0.2s, border-color 0.2s;
}
.social-row a:hover { color: var(--primary); border-color: var(--primary); }
.footer-bottom {
  padding: 1.5rem 8vw;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 1rem;
  color: var(--muted-foreground); font-size: 0.85rem;
}

/* ============ Forms ============ */
.form-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field label { display: block; font-size: 0.85rem; color: var(--muted-foreground); margin-bottom: 0.4rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  font-size: 0.9rem;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 0;
}
.form-field textarea { resize: vertical; min-height: 8rem; }

/* ============ Process / pricing ============ */
.process-step { text-align: center; }
.process-step .step-num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem; font-weight: 700;
  color: var(--primary);
}
.pricing-card { position: relative; display: flex; flex-direction: column; }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(112,241,91,0.2); }
.popular-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: var(--primary-foreground);
  font-size: 0.7rem; font-weight: 700;
  padding: 0.25rem 1rem; border-radius: 9999px;
}
.feature-line { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.feature-line svg { color: var(--primary); flex-shrink: 0; }

/* ============ Timeline ============ */
.timeline { display: flex; flex-direction: column; gap: 1.5rem; max-width: 48rem; }
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--primary);
  margin-left: 1rem;
}
.timeline-item::before {
  content: ""; position: absolute; left: -0.6rem; top: 1.75rem;
  width: 1rem; height: 1rem; border-radius: 50%; background: var(--primary);
}

/* ============ Skills page ============ */
.skills-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .skills-grid { grid-template-columns: 1fr 1fr 1fr; } }

.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.skill-category:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
}
.category-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--foreground);
}
.category-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
.skill-list { display: flex; flex-direction: column; gap: 1rem; }
.skill-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
}
.skill-name {
  font-size: 0.9rem;
  color: var(--foreground);
  font-weight: 500;
  grid-column: 1;
  grid-row: 1;
}
.skill-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 6px;
  background: var(--secondary);
  border-radius: 9999px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-level {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 500;
  white-space: nowrap;
}

/* ============ Languages page ============ */
.lang-filter { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.lang-filter input {
  background: var(--secondary); border: 1px solid var(--border);
  border-radius: 9999px; padding: 0.6rem 1.25rem;
  color: var(--foreground); font-size: 0.9rem; min-width: 220px;
}
.lang-filter input:focus { outline: 2px solid var(--primary); }
.filter-chip { cursor: pointer; transition: all 0.2s; }
.filter-chip.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.lang-card {
  display: flex; align-items: center; justify-content: space-between;
}
.level-badge { font-size: 0.7rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-weight: 500; }
.level-expert { background: var(--primary); color: var(--primary-foreground); }
.level-advanced { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-border); }
.level-intermediate { background: var(--secondary); color: var(--muted-foreground); border: 1px solid var(--border); }
.level-learning { background: rgba(255,255,255,0.05); color: var(--muted-foreground); border: 1px solid var(--border); }
.level-basic { background: rgba(112, 241, 91, 0.08); color: var(--primary); border: 1px solid var(--primary-border); }

/* ============ FAQ ============ */
.faq-item { cursor: pointer; }
.faq-item .q-row {
  display: flex; align-items: center; justify-content: space-between;
}
.faq-item h3 { font-size: 0.95rem; font-weight: 600; }
.faq-item .toggle {
  color: var(--primary); font-size: 1.5rem; transition: transform 0.2s;
}
.faq-item.open .toggle { transform: rotate(45deg); }
.faq-item .a { display: none; color: var(--muted-foreground); font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.7; }
.faq-item.open .a { display: block; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  content-visibility: auto;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.from-left { transform: translateX(-20px); }
.reveal.from-right { transform: translateX(20px); }
.reveal.from-left.in-view, .reveal.from-right.in-view { transform: translateX(0); }

.man{

}

/* ============ Misc ============ */
.split-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
@media (min-width: 1024px) {
  .split-card {
    grid-template-columns: 1fr 1fr;
  }
}
.split-card img {
  width: 100%;
  height: 100%;
  min-height: 15rem;
  object-fit: cover;
}
.split-card .content {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.check-list { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list .item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); }
.check-list .item svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* Text Gradient */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* ============ Terminal Mockup ============ */
.terminal-window {
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 245, 255, 0.05);
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease;
}
.terminal-window:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 245, 255, 0.1);
  border-color: rgba(0, 245, 255, 0.2);
}
.terminal-window img {
  transition: none;
  transform: none;
}
.terminal-header {
  background: #18181b;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.terminal-dots {
  display: flex;
  gap: 0.4rem;
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }
.terminal-title {
  color: #71717a;
  margin-left: 1rem;
  font-size: 0.75rem;
}
.terminal-body {
  padding: 0.5rem;
  min-height: 8rem;
  background: #18181b;
  line-height: 1.6;
  color: #e4e4e7;
  overflow-x: auto;
  white-space: pre-wrap;
}
.code-comment { color: #52525b; }
.code-keyword { color: #f43f5e; }
.code-key { color: #00f5ff; }
.code-val { color: #70f15b; }
.code-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #00f5ff;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Card Hover Tilt Helper */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* ===== Dev-style project cards ===== */
.cat-section { margin-top: 1.5rem; }
.cat-head { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.75rem; padding-bottom:1rem; border-bottom:1px solid var(--primary-border); }
.cat-head h2 { font-family: var(--font-heading, 'Space Grotesk', sans-serif); font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; margin:0; display:flex; align-items:center; gap:.75rem; }
.cat-head h2 .cat-dot { width:.6rem; height:.6rem; border-radius:50%; background: var(--primary); box-shadow: 0 0 14px var(--primary); }
.cat-head .cat-count { color: var(--muted-foreground, #9aa); font-size:.85rem; font-family: var(--font-mono, ui-monospace, monospace); }

.proj-grid { display:grid; gap:1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

.proj-card { position:relative; display:flex; flex-direction:column; border-radius:1rem; overflow:hidden; background: rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); }
.proj-thumb { position:relative; aspect-ratio: 16/10; overflow:hidden; background:#0a0a0a; }
.proj-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.proj-overlay { position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%); display:flex; align-items:flex-end; justify-content:flex-end; gap:.5rem; padding: 1rem; opacity:0; transition: opacity .2s ease; }
.proj-card:hover .proj-overlay { opacity:1; }
.icon-link { width:2.5rem; height:2.5rem; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border:1px solid rgba(255,255,255,0.2); color:#fff; transition: all .2s ease; }
.icon-link:hover { background: var(--primary); color: var(--primary-foreground); transform: translateY(-2px) scale(1.05); border-color: var(--primary); }

.proj-body { padding: 1.25rem 1.25rem 1.5rem; display:flex; flex-direction:column; gap:.75rem; flex:1; }
.proj-body h3 { font-family: var(--font-heading,'Space Grotesk',sans-serif); font-size: 1.15rem; font-weight: 700; margin:0; display:flex; align-items:center; gap:.5rem; }
.proj-body h3 .proj-num { font-family: var(--font-mono, ui-monospace, monospace); font-size:.75rem; color: var(--primary); }
.proj-body p { color: var(--muted-foreground, #9aa); font-size:.875rem; line-height:1.55; margin:0; }
.proj-stack { display:flex; flex-wrap:wrap; gap:.4rem; margin-top:auto; }
.proj-stack span { font-family: var(--font-mono, ui-monospace, monospace); font-size:.7rem; padding:.2rem .55rem; border-radius:.4rem; background: rgba(112,241,91,0.08); color: var(--primary); border:1px solid var(--primary-border); }

.proj-actions { display:flex; gap:.5rem; padding: 0 1.25rem 1.25rem; }
.proj-actions a { flex:1; display:inline-flex; align-items:center; justify-content:center; gap:.4rem; padding:.55rem .75rem; border-radius:.55rem; font-size:.8rem; font-weight:600; text-decoration:none; transition: all 0.2s ease; }
.proj-actions a.live { background: var(--primary); color: var(--primary-foreground); }
.proj-actions a.live:hover { box-shadow: 0 10px 24px -6px rgba(112,241,91,0.5); transform: translateY(-1px); }
.proj-actions a.code { background: rgba(255,255,255,0.05); color: #fff; border:1px solid rgba(255,255,255,0.12); }
.proj-actions a.code:hover { background: rgba(255,255,255,0.1); border-color: var(--primary-border); }
.proj-actions a.view-design-btn { width:100%; }

@media (max-width: 640px) {
  .proj-overlay { opacity:1; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%); }
  .accent-btn, .ghost-btn { width: 100%; justify-content: center; }
  .newsletter form { flex-wrap: wrap; }
  .newsletter input { flex: 1 1 100%; }
}

/* ============ Project Category Filters ============ */
.proj-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.proj-filter-bar button {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  cursor: pointer;
}
.proj-filter-bar button:hover {
  border-color: var(--primary-border);
  color: var(--foreground);
}
.proj-filter-bar button.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
  box-shadow: var(--accent-glow);
}
.proj-card[data-category] { transition: opacity 0.2s ease, transform 0.2s ease; }
.proj-card.hidden { opacity: 0; transform: scale(0.96); pointer-events: none; position: absolute; }
.cat-section.hidden { display: none; }

/* ===== About portrait frame ===== */
.about-frame{
  position:relative;
  max-width:28rem;
  margin:0 auto;
  padding:14px;
  border-radius:1.5rem;
  background:linear-gradient(140deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02) 40%, rgba(0,0,0,0.25));
  border:1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 30px 80px -30px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  backdrop-filter:blur(10px);
}
.about-frame::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:1.55rem;
  padding:1px;
  background:linear-gradient(135deg, var(--primary,#7c5cff), transparent 40%, var(--primary,#7c5cff) 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.6; pointer-events:none;
}
.about-frame-inner{
  position:relative;
  border-radius:1.1rem;
  overflow:hidden;
  background:#0b0b12;
}
.about-frame-inner img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/5;
  object-fit:cover;
  transition:transform 0.25s ease;
}
.about-frame:hover .about-frame-inner img{ transform:scale(1.03); }
.about-frame-badge{
  position:absolute;
  bottom:-1.25rem;
  right:-1rem;
  max-width:220px;
  border-color:rgba(255,255,255,0.08);
}
@media (max-width: 640px){
  .about-frame{ padding:10px; }
  .about-frame-badge{
    position:static;
    margin:1rem auto 0;
    right:auto; bottom:auto;
  }
}

/* ===== Generic responsive guards ===== */
@media (max-width: 768px){
  .grid.grid-3, .grid.grid-4{ grid-template-columns:1fr !important; }
  .split-card{ grid-template-columns:1fr !important; }
  .hero-grid{ grid-template-columns:1fr !important; }
  .section-container{ padding-left:5vw !important; padding-right:5vw !important; }
}
@media (max-width: 1024px) and (min-width: 769px){
  .grid.grid-4{ grid-template-columns:repeat(2,1fr) !important; }
}
img{ max-width:100%; height:auto; }

/* ===== Project design lightbox ===== */
.design-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.design-lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox-dialog { position: relative; z-index: 1; max-width: min(1000px, 95vw); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 1rem; animation: lightbox-in .25s ease; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lightbox-img { max-width: 100%; max-height: 76vh; border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.1); background: #0b0f17; }
.lightbox-close { position: absolute; top: -3.25rem; right: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.05); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, transform .2s ease; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.15); transform: rotate(90deg); }
.lightbox-download { text-decoration: none; }
@media (max-width: 640px) {
  .lightbox-close { top: -2.75rem; }
  .lightbox-img { max-height: 68vh; }
}

@media (max-width: 480px) {
  .section-container { padding-left: 4vw !important; padding-right: 4vw !important; }
  .hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

/* ============ Advanced Interactions ============ */

/* Smooth scroll enhancements */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* Advanced 3D Tilt */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transform: translateZ(0);
  transition: transform 0.1s ease-out;
}
.tilt-card .tilt-inner {
  transform: translateZ(40px);
  transition: transform 0.1s ease-out;
}

/* Navigation Progress */
.site-header::after {
  content: "";
  position: absolute; top: 0; left: 0; height: 2px;
  background: var(--primary-gradient);
  width: 0%; transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(112, 241, 91, 0.6);
}

/* Magnetic Button Effect */
.magnetic {
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Floating Label Forms */
.form-field {
  position: relative;
}
.form-field label {
  position: absolute; left: 1rem; top: 0.75rem;
  color: var(--muted-foreground); font-size: 0.9rem;
  pointer-events: none; transition: all 0.2s ease;
  transform-origin: left top;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
.form-field input:not(:placeholder-shown), .form-field textarea:not(:placeholder-shown) {
  outline: none;
  border-color: var(--primary-border);
  box-shadow: 0 0 0 4px rgba(112, 241, 91, 0.08);
}
.form-field input:focus + label,
.form-field textarea:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.6rem) scale(0.85);
  color: var(--primary);
}
.form-field input, .form-field textarea {
  padding-top: 1.1rem; padding-bottom: 0.5rem;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2370f15b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* Parallax Helper */
.parallax {
  will-change: transform;
  transform: translateZ(0);
}

/* Advanced Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  content-visibility: auto;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal.from-left { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.from-left.in-view, .reveal.from-right.in-view { transform: translateX(0); }

/* Snappy Interactions */
.glass-card, .feature-card, .proj-card, .tilt-card {
  backface-visibility: hidden;
  transform: translateZ(0);
  contain: layout style paint;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}
a, button {
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease;
}
a:active, button:active {
  transform: translateY(0) scale(0.98);
}
