:root {
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --text: #2C2520;
  --muted: #6B645D;
  --accent: #8B7355;
  --border: #E7E1D8;
  --cream: #F2ECE4;
  --green: #18735B;
  --blue: #355C8C;
  --rose: #B85C6A;
  --shadow: 0 24px 70px rgba(44, 37, 32, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: absolute;
  top: 120px;
  right: 4vw;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #8B7355;
  filter: blur(150px);
  opacity: .08;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 16px;
  color: var(--card); background: var(--text); transition: opacity 500ms ease, visibility 500ms ease;
}
.loader div { width: 52px; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--accent); border-radius: 50%; animation: spin 900ms linear infinite; }
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--green), var(--blue)); }
.cursor-glow { position: fixed; width: 260px; aspect-ratio: 1; pointer-events: none; z-index: 1; border-radius: 50%; background: radial-gradient(circle, rgba(139,115,85,.18), transparent 65%); transform: translate(-50%, -50%); }

.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px clamp(18px, 5vw, 70px); background: rgba(250,247,242,.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; }
.brand span { display: block; color: var(--accent); font-size: 12px; }
.nav { display: flex; gap: 6px; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; }
.nav a { padding: 10px 14px; color: var(--muted); border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav a.active, .nav a:hover { color: var(--text); background: var(--cream); }

.hero, .page-hero {
  min-height: auto; display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px); align-items: center; padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 70px) clamp(44px, 8vw, 92px);
}
.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}
.contact-premium {
  min-height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: clamp(28px, 5vw, 70px); align-items: start; padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 70px) clamp(44px, 8vw, 92px);
}
.services-hero { grid-template-columns: 1fr; }
.hero h1, .page-hero h1, .contact-premium h1 { margin: 0; max-width: 800px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.01em; }
.hero-text, .page-hero p, .contact-copy p { max-width: 720px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-visual { display: grid; gap: 16px; }
.hero-visual-card { padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.hero-visual-card h3 { margin: 0 0 6px; font-size: 18px; }
.hero-visual-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hero-visual-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual-stats div { padding: 18px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.hero-visual-stats strong { display: block; font-size: 26px; color: var(--accent); }
.hero-visual-stats span { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hero-visual-list { display: grid; gap: 10px; padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.hero-visual-list div { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.hero-visual-list i { color: var(--accent); width: 18px; text-align: center; }
.hero-actions, .project-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 18px; border: 1px solid var(--border); border-radius: 8px; font-weight: 800; cursor: pointer; transition: 180ms ease; }
.btn.primary { color: var(--card); background: var(--text); border-color: var(--text); }
.btn.ghost { background: var(--card); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.metric-row, .stack-grid, .lab-grid, .achievement-grid, .story-grid, .feature-grid, .behind-grid, .service-grid {
  display: grid; gap: 18px;
}
.metric-row { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; max-width: 650px; }
.metric-row div, .stack-grid article, .lab-card, .achievement-card, .story-card, .feature-grid article, .service-card, .quick-connect, .response-card {
  padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 16px 40px rgba(44,37,32,.06);
}
.metric-row strong { display: block; font-size: 32px; }
.metric-row span, p, li { color: var(--muted); line-height: 1.65; }

.laptop-mockup { position: relative; padding: 14px 14px 28px; background: var(--text); border-radius: 20px; box-shadow: var(--shadow); }
.screen, .device-frame, .browser-mockup { overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.keyboard { position: absolute; left: 9%; right: 9%; bottom: 8px; height: 8px; background: #5B5048; border-radius: 99px; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; color: var(--muted); background: var(--cream); border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.browser-bar i { width: 10px; aspect-ratio: 1; border-radius: 50%; background: var(--rose); }
.browser-bar i:nth-child(2) { background: #D1A14A; }
.browser-bar i:nth-child(3) { background: var(--green); }
.dashboard-preview, .app-ui { min-height: 380px; display: grid; grid-template-columns: 70px 1fr 1fr; gap: 14px; padding: 18px; }
.side-rail, .app-ui aside { grid-row: span 2; border-radius: 8px; background: linear-gradient(180deg, var(--text), #51453A); }
.chart-card, .table-preview, .mini-kpis b, .workflow-strip span, .data-grid, .form-preview b { border-radius: 8px; background: var(--cream); }
.chart-card.tall { min-height: 180px; background: linear-gradient(135deg, #EFE1CE, #D8E8DD); }
.approval-chain { display: grid; gap: 8px; }
.approval-chain b { display: grid; place-items: center; min-height: 40px; border-radius: 8px; background: #F6EFE6; color: var(--text); }
.chart-card.grid-lines, .data-grid { grid-column: span 2; min-height: 150px; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 28px 28px; }
.table-preview { grid-column: span 2; min-height: 90px; }

.featured-work, .stack-section, .lab-band, .project-list, .achievement-section, .services-grid-section, .approach-section, .available-section, .contact-connect {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 70px);
}
.featured-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.featured-project-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(44,37,32,.06);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.featured-project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(44,37,32,.16);
}
.project-thumb {
  min-height: 230px;
  border-bottom: 1px solid var(--border);
}
.project-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
}
.project-card-body h3 {
  margin: 0;
  font-size: 22px;
}
.project-card-body p {
  margin: 0;
}
.project-card-body strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  opacity: 1;
  transform: none;
  color: var(--accent);
  transition: 220ms ease;
}
.featured-project-card:hover strong {
  gap: 10px;
}
.section-heading { max-width: 840px; margin-bottom: 34px; }
.section-heading h2, .launch-panel h3, .demo-section h2 { margin: 0; font-size: clamp(30px, 4vw, 54px); line-height: 1.05; }
.feature-showcase, .project-cover, .demo-section { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; align-items: stretch; }
.product-shot, .launch-panel, .architecture-panel, .timeline, .demo-section, .behind-build, .contact-form, .project-cover, .service-enquiry-cta {
  padding: clamp(22px, 4vw, 36px); background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 16px 40px rgba(44,37,32,.06);
}
.app-ui { grid-template-columns: 88px 1fr; }
.mini-kpis, .workflow-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.workflow-strip { grid-template-columns: repeat(4, 1fr); }
.workflow-strip span { display: grid; place-items: center; min-height: 44px; color: var(--text); font-weight: 800; font-size: 12px; }
.mini-kpis b { min-height: 74px; }
.data-grid { min-height: 220px; }
.status-tag { display: inline-flex; padding: 8px 10px; color: #604A2F; background: #F5E7D4; border-radius: 999px; font-size: 12px; font-weight: 800; }
.tech-pills, .footer-badges, .available-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tech-pills span, .footer-badges span, .available-tags span { padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--cream); color: var(--text); font-size: 12px; font-weight: 800; }
.tech-pills span:nth-child(4n+1) { background: rgba(139,115,85,.14); border-color: rgba(139,115,85,.3); color: #6B5640; }
.tech-pills span:nth-child(4n+2) { background: rgba(24,115,91,.12); border-color: rgba(24,115,91,.3); color: #155B47; }
.tech-pills span:nth-child(4n+3) { background: rgba(53,92,140,.12); border-color: rgba(53,92,140,.3); color: #2A4A6E; }
.tech-pills span:nth-child(4n+4) { background: rgba(184,92,106,.12); border-color: rgba(184,92,106,.3); color: #8A2032; }

.stack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack-grid i, .service-card i { color: var(--accent); font-size: 28px; }
.lab-grid, .achievement-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-grid { padding: 0 clamp(18px, 5vw, 70px) clamp(54px, 8vw, 110px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0; }
.behind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lab-card span, .achievement-card span, .feature-grid span { color: var(--accent); font-weight: 900; }
.project-case { margin-bottom: 70px; }
.case-page {
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 70px);
  position: relative;
}
.sticky-back {
  position: sticky;
  top: 90px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(44,37,32,.10);
  transition: 180ms ease;
}
.sticky-back:hover {
  transform: translateX(-3px);
  box-shadow: var(--shadow);
}
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  min-height: auto;
  padding-top: 10px;
}
.case-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
}
.case-hero p {
  font-size: 18px;
}
.case-banner {
  min-height: 440px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.case-section {
  margin: 26px 0;
  padding: clamp(22px, 4vw, 38px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(44,37,32,.06);
}
.case-section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.journey-video-section{
  padding:100px 70px;
}

.video-showcase{
  position:relative;
  margin-top:40px;
  border-radius:24px;
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.video-showcase iframe{
  width:100%;
  height:600px;
  border:none;
  display:block;
}

.video-badge{
  position:absolute;
  top:20px;
  left:20px;
  z-index:2;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.95);
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}

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

.highlight-card{
  padding:24px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.highlight-card i{
  font-size:28px;
  color:var(--accent);
  margin-bottom:15px;
}

.highlight-card h3{
  margin-bottom:10px;
}

@media(max-width:768px){

  .journey-video-section{
    padding:70px 20px;
  }

  .video-showcase iframe{
    height:300px;
  }

  .video-highlights{
    grid-template-columns:1fr;
  }

}
.stack-columns,
.table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stack-columns article,
.table-grid article {
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}
.vertical-architecture {
  max-width: 780px;
  margin-inline: auto;
}
.vertical-architecture button::after {
  content: "";
}
.gallery-carousel {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 12px;
  align-items: center;
}
.gallery-carousel button {
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 28px;
  cursor: pointer;
}
.gallery-carousel .gallery-strip {
  margin: 0;
}
.gallery-carousel .mock-screen {
  display: none;
}
.gallery-carousel .mock-screen.active {
  display: block;
}
.next-project-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 34px 0;
}
.project-cover { margin-bottom: 22px; }
.project-cover h2 { margin: 14px 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; }
.mock-app, .mock-screen { min-height: 330px; border-radius: 8px; border: 1px solid var(--border); background-color: var(--card); overflow: hidden; }
.mock-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.gallery-strip .mock-screen { min-height: 260px; transition: 180ms ease; cursor: zoom-in; }
.gallery-strip .mock-screen:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.leave-screen {
  background: url("../assets/images/leave-approval.svg") center center / cover no-repeat, #F4E8D8;
}

.approval-theme {
  background-image:
    linear-gradient(90deg, var(--text) 0 16%, transparent 16%),
    linear-gradient(135deg, #F4E8D8, #DCEBE4 45%, #fff 45%);
}

.sky-screen {
  background: url("../assets/images/skybook.svg") center center / cover no-repeat, #E8F0FA;
}

.sky-seat {
  background-image:
    radial-gradient(circle at 74% 28%, #D8E8F8, transparent 22%),
    linear-gradient(135deg, #ffffff 0 35%, #E8F0FA 35% 58%, #F5E7D4 58%);
}


.cafe-screen {
  background: url("../assets/images/cafe-billing.svg") center center / cover no-repeat, #F5EFE8;
}

.cafe-invoice {
  background-image:
    repeating-linear-gradient(0deg, #F5EFE8 0 34px, #fff 34px 68px),
    linear-gradient(135deg, #F2D6C4, #fff);
}
.login-theme { background-image: linear-gradient(135deg, var(--text) 0 42%, #fff 42%); }
.dashboard-theme, .sky-search, .cafe-dashboard { background-image: linear-gradient(90deg, var(--text) 0 16%, transparent 16%), repeating-linear-gradient(0deg, #F1ECE5 0 50px, #fff 50px 100px); }
.sky-ticket, .cafe-menu { background-image: repeating-linear-gradient(90deg, #EFE7DE 0 80px, #fff 80px 120px); }

.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0; }
.architecture { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.architecture::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 3px; background: linear-gradient(90deg, var(--accent), var(--green), var(--blue)); animation: pulseLine 1.8s ease infinite; }
@keyframes pulseLine { 50% { opacity: .35; } }
.architecture button { position: relative; z-index: 1; min-height: 96px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); font-weight: 900; cursor: pointer; }
.architecture button:hover { color: var(--card); background: var(--text); }
.architecture-info { min-height: 120px; padding: 18px; background: var(--cream); border-radius: 8px; }
.timeline ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { padding-left: 22px; border-left: 3px solid var(--accent); }
.timeline span { font-weight: 900; }
.demo-section { margin: 28px 0; }
.demo-section video { width: 100%; min-height: 260px; background: var(--text); border-radius: 8px; }

.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card { display: grid; align-content: start; gap: 12px; }
.service-card ul { padding-left: 18px; }
.approach-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.approach-steps span { padding: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-weight: 900; }
.quick-connect { margin: 0 clamp(18px, 5vw, 70px) clamp(54px, 8vw, 90px); }
.contact-connect { margin: 0; }
.connect-icons { display: flex; flex-wrap: wrap; gap: 14px; }
.connect-icons a { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 14px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; font-weight: 800; transition: 180ms ease; }
.connect-icons i { color: var(--accent); font-size: 20px; }
.connect-icons a:hover { transform: scale(1.04); box-shadow: var(--shadow); }
.connect-icons a::after { content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 6px 9px; color: var(--card); background: var(--text); border-radius: 6px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: 180ms ease; }
.connect-icons a:hover::after { opacity: 1; }
.service-enquiry-cta { margin: 0 clamp(18px, 5vw, 70px) clamp(54px, 8vw, 110px); text-align: center; }

.contact-premium { align-items: start; }
.step-flow, .trust-list { display: grid; gap: 12px; margin: 28px 0; }
.step-flow span, .trust-list span { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-weight: 800; }
.trust-list span::before { content: "✓"; color: var(--green); font-weight: 900; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; font-weight: 800; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #FFFCF8; color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 3px solid rgba(139,115,85,.16); border-color: var(--accent); }
.contact-form small { min-height: 18px; color: var(--rose); font-weight: 700; }
.contact-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: 8px; }
.contact-form legend { padding: 0 6px; font-weight: 900; }
.contact-form fieldset label, .terms-row { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.contact-form input[type="radio"], .contact-form input[type="checkbox"] { width: auto; }
.form-status, .toast { padding: 16px; border-radius: 8px; font-weight: 800; }
.form-status.success, .toast.success { color: #075b3e; background: #DFF4E8; }
.form-status.error, .toast.error { color: #8A2032; background: #F8DEE3; }
.toast { position: fixed; right: 24px; bottom: 88px; z-index: 40; box-shadow: var(--shadow); }
.preview-lightbox { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 34px; background: rgba(44,37,32,.82); }
.preview-lightbox.open { display: grid; }
.preview-lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; color: var(--card); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 26px; cursor: pointer; }
.preview-lightbox .mock-screen { width: min(980px, 92vw); min-height: min(70vh, 620px); box-shadow: var(--shadow); }

.about-hero { grid-template-columns: minmax(0, 1fr) 380px; }
.portrait-visual { position: relative; min-height: 390px; }
.orbit { position: absolute; inset: 20px; border: 2px dashed #B9AA98; border-radius: 50%; animation: spin 18s linear infinite; }
.profile-panel { position: absolute; inset: 86px 28px; display: grid; align-content: center; gap: 10px; padding: 28px; color: var(--card); background: linear-gradient(135deg, var(--text), #5D4D3F); border-radius: 8px; box-shadow: var(--shadow); }
.profile-panel span { color: #F5E7D4; font-weight: 800; }
.profile-panel strong { font-size: 28px; line-height: 1.1; }
.profile-panel p { color: #F1E8DE; }
.profile-photo { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.25); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.about-photo-space { display: flex; align-items: center; justify-content: center; min-height: 390px; }
.about-photo { width: 100%; max-width: 340px; aspect-ratio: 1 / 1; border-radius: 16px; object-fit: cover; box-shadow: var(--shadow); border: 1px solid var(--border); }

.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: grid; place-items: center; width: 56px; aspect-ratio: 1; color: white; background: #25D366; border-radius: 50%; box-shadow: var(--shadow); font-size: 28px; }
.premium-footer { padding: clamp(38px, 6vw, 70px) clamp(18px, 5vw, 70px) 28px; color: var(--card); background: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr .8fr; gap: 28px; }
.premium-footer h2, .premium-footer h3 { margin-top: 0; color: var(--card); }
.premium-footer p, .premium-footer a { display: block; color: #E9DED2; margin: 8px 0; }
.status-dot { padding: 10px 12px; background: rgba(255,255,255,.08); border-radius: 8px; }
.footer-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-icons a { display: grid; place-items: center; width: 40px; aspect-ratio: 1; background: rgba(255,255,255,.09); border-radius: 50%; }
.back-top { margin-top: 18px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.24); color: var(--card); background: transparent; border-radius: 8px; cursor: pointer; }
.copyright { margin-top: 20px; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .hero, .page-hero, .contact-premium, .feature-showcase, .project-cover, .split-section, .demo-section, .about-hero { grid-template-columns: 1fr; }
  .stack-grid, .lab-grid, .achievement-grid, .service-grid, .footer-grid, .approach-steps, .featured-project-grid, .case-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid, .feature-grid, .behind-grid, .gallery-strip { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .site-header, .premium-footer { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; overflow-x: auto; border-radius: 8px; }
  .hero h1, .page-hero h1, .contact-premium h1 { font-size: 42px; }
  .metric-row, .stack-grid, .lab-grid, .achievement-grid, .service-grid, .footer-grid, .approach-steps, .architecture, .contact-form fieldset, .featured-project-grid, .case-hero, .stack-columns, .table-grid, .gallery-carousel { grid-template-columns: 1fr; }
  .case-banner { min-height: 300px; }
  .next-project-nav { flex-direction: column; }
  .architecture::before { top: 0; bottom: 0; left: 50%; width: 3px; height: auto; }
  .cursor-glow { display: none; }
}

/* Resume Nav Button */
.btn-nav-resume {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1.5px solid var(--accent, #6c63ff);
  border-radius: 6px;
  color: var(--accent, #6c63ff);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  margin-left: 0.5rem;
}
.btn-nav-resume:hover {
  background: var(--accent, #6c63ff);
  color: #fff;
}

/* Tech Badges (replaces metric-row) */
.metric-row.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.metric-row.tech-badges span {
  padding: 0.3rem 0.85rem;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent, #6c63ff);
}

/* ↑ Top button */
.back-top {
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 50%;
  font-size: 1.1rem;
}

/* ── Typing Animation ─────────────────────────────────────── */
[data-typing]::after {
  content: "|";
  animation: blink 0.7s step-end infinite;
  color: var(--accent, #6c63ff);
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Dark / Light Mode ───────────────────────────────────── */
:root { color-scheme: dark; }

[data-theme="dark"] {
  --bg: #15110D;
  --card: #211B15;
  --text: #F3EEE6;
  --muted: #B7AFA3;
  --border: #3A2F25;
  --cream: #271F17;
  --card-bg: #211B15;
  --text2: #B7AFA3;
  color-scheme: dark;
}
[data-theme="dark"] .site-header { background: rgba(21,17,13,.88); }
[data-theme="dark"] .nav { background: var(--card); }
[data-theme="dark"] .nav a.active, [data-theme="dark"] .nav a:hover { background: var(--cream); }
[data-theme="dark"] .premium-footer { background: #0D0B08; }
[data-theme="dark"] .premium-footer h2, [data-theme="dark"] .premium-footer h3 { color: #F3EEE6; }
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea,
[data-theme="dark"] .contact-form select { background: #1B1611; color: var(--text); }
[data-theme="dark"] .timeline-dot { border-color: var(--bg); }

[data-theme="light"] {
  --bg: #FAF7F2;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #2C2520;
  --text2: #6B645D;
  --muted: #6B645D;
  --border: #E7E1D8;
  --cream: #F2ECE4;
  --card-bg: #ffffff;
  --accent: #8B7355;
  color-scheme: light;
}
[data-theme="light"] .site-header { background: rgba(250,247,242,0.92); }
[data-theme="light"] .story-card,
[data-theme="light"] .achievement-card,
[data-theme="light"] .service-card,
[data-theme="light"] .featured-project-card,
[data-theme="light"] .lab-card,
[data-theme="light"] .testimonial-card { background: var(--card); border-color: var(--border); }
[data-theme="light"] .premium-footer { background: #2C2520; }

.theme-toggle {
  background: none;
  border: 1.5px solid var(--accent, #6c63ff);
  color: var(--accent, #6c63ff);
  border-radius: 50%;
  width: 2.1rem;
  height: 2.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  margin-left: 0.4rem;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--accent, #6c63ff); color: #fff; }

/* ── Scroll-to-Top (hidden until 300px) ─────────────────── */
.back-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(8px);
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--card-bg, rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(108,99,255,0.15); }
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text2, #aaa);
  font-style: italic;
  position: relative;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent, #6c63ff);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.author-avatar {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent, #6c63ff);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--text2, #888); }

/* ── Timeline ────────────────────────────────────────────── */
.timeline-section {
  padding: 5rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.timeline {
  position: relative;
  margin-top: 2.5rem;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent, #6c63ff), transparent);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.timeline-dot {
  position: absolute;
  left: -1.6rem;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--accent, #6c63ff);
  border: 2px solid var(--bg, #0e0e1a);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.25);
}
.timeline-dot.active-step {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108,99,255,0.5), 0 0 14px rgba(108,99,255,0.6);
}
.timeline-content { }
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, #6c63ff);
  margin-bottom: 0.3rem;
  display: block;
}
.timeline-content h3 { font-size: 1.1rem; margin: 0.2rem 0 0.4rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text2, #aaa); line-height: 1.6; margin: 0; }