/* ===============================
   Variables
================================ */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --card-bg: #f9fafb;
}

/* ===============================
   Reset
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===============================
   Layout
================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

/* ===============================
   Hero
================================ */
.hero {
  margin-bottom: 80px;
  opacity: 100;
  transform: translateY(24px);
  animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  margin: 16px 0 12px;
}

.hero p {
  max-width: 520px;
  font-size: 18px;
  color: var(--muted);
}

.value-prop {
  max-width: 720px;
  margin: 0 0 72px;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.capabilities {
  margin-bottom: 88px;
}

.capabilities ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.capabilities li {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}

.capabilities li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
}


/* ===============================
   Portfolio
================================ */
.section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 24px;
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              box-shadow 0.35s cubic-bezier(0.22,1,0.36,1);
}

.card::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -50%;
  width: 200%;
  height: 140%;
  pointer-events: none;
  border-radius: inherit;

  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35),
    transparent 65%
  );

  transform: translateX(-60%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover::before {
  transform: translateX(60%);
}

.card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 20px 40px rgba(0,0,0,0.08),
    0 2px 6px rgba(0,0,0,0.05);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.project-meta {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}


.card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Project Thumbnail */
.thumb {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.card:hover .thumb img {
  transform: scale(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s cubic-bezier(0.22,1,0.36,1),
    transform 0.9s cubic-bezier(0.22,1,0.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Mode */
:root.dark {
  --bg: #0b0b0f;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #1f2937;
  --card-bg: #111827;
}

:root.dark .card::before {
  background: linear-gradient(
    110deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18),
    transparent 65%
  );
}

:root.dark .card {
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.75),
    rgba(15, 23, 42, 0.55)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

:root.dark .card::after {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.18),
    transparent 45%
  );
}


.theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s ease;
}


/* ===============================
   Process
================================ */

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  margin: 120px 0;
}

.process-step h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

.process-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ===============================
   Call to Action
================================ */

.cta {
  text-align: center;
  margin: 140px 0 80px;
}

.cta p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}



/* ===============================
   Footer
================================ */
footer {
  margin-top: 100px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===============================
   Accessibility
================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


/* ===============================
   Vision Pro–Style Glass Effect
================================ */

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.35)
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Inner glass highlight */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35),
    transparent 40%
  );
}

/* Slight depth enhancement on hover */
.card:hover {
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}
