:root {
  color-scheme: dark;
  --bg-primary: #000000;
  --bg-secondary: #0c0c0f;
  --bg-card: rgba(12, 12, 15, 0.9);
  --text-primary: #ffffff;
  --text-secondary: #808080;
  --text-muted: #4d4d4d;
  --border-soft: rgba(255, 255, 255, 0.06);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.6);
  --radius-xl: 28px;
  --radius-md: 18px;
  --font-base: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 80px;
}

.background-gradient {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #0a1b51 50%, #33efff 125%);
  z-index: -2;
}

.texture-layer {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"><g fill="none" fill-opacity="0.3"><path d="M0 0h160v160H0z"/><path d="M0 29h160v2H0zm0 50h160v2H0zm0 50h160v2H0z" fill="%23ffffff"/></g></svg>');
  mix-blend-mode: soft-light;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.hero {
  padding: 160px 5% 100px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform, border-color, box-shadow;
  transition: border-color 0.45s cubic-bezier(0.19, 1, 0.22, 1),
              box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1),
              transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    var(--spotlight-color, rgba(255, 255, 255, 0.25)),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 0;
  border-radius: inherit;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.card > * {
  position: relative;
  z-index: 2;
}


.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f659fd, #0a1b51);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-chip {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.05;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-line {
  display: block;
  color: var(--text-primary);
}

.hero-description {
  color: var(--text-secondary);
  max-width: 680px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  margin-top: 8px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.btn-new-background {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-new-background:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.btn-new-background svg {
  width: 14px;
  height: 14px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn.primary {
  background: #ffffff;
  color: #000;
}

.btn.large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn.secondary {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn.secondary:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.btn.full {
  width: 100%;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
}

.meta-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-secondary);
}

.meta-card li + li {
  margin-top: 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-grid span {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

#statusCard.active {
  border-color: #00d9a3;
  box-shadow: 0 15px 40px rgba(0, 217, 163, 0.25);
}


.section {
  padding: 80px 5%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.35, 0, 0.25, 1),
              transform 0.9s cubic-bezier(0.35, 0, 0.25, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 8px 0;
}

.section-description {
  color: var(--text-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.about-card ul {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.about-card:hover,
.meta-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.motion-card:hover {
  transform: translateY(-4px);
}

.motion-card video {
  transition: transform 0.4s ease;
}

.motion-card:hover video {
  transform: scale(1.02);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-shell {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 8px;
}

svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

.progress {
  fill: none;
  stroke: url(#chartGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 0;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s ease;
  stroke: #3b82f6;
}

.chart-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.work-card {
  min-height: 240px;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
}

.work-visual {
  background: linear-gradient(145deg, var(--accent, #3b82f6), rgba(0, 0, 0, 0.2));
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.work-tag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.25);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.motion-card video {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

input,
textarea {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  color: var(--text-secondary);
}

.contact-card li + li {
  margin-top: 10px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.footer {
  padding: 40px 5%;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-secondary);
}

.hero-parallax {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 0;
  height: 50%;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(157, 78, 237, 0.2), rgba(59, 130, 246, 0.25));
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.1s ease-out;
}


.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .cta-group {
    flex-direction: column;
  }
  
  .card:hover {
    transform: none;
  }
  
  .work-card:hover,
  .about-card:hover,
  .meta-card:hover,
  .motion-card:hover {
    transform: none;
  }
}

.work-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 0.7s infinite;
  opacity: 1;
  color: var(--accent, #ffffff);
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

#arguablyText {
  display: inline-block;
  transition: transform 0.25s ease, text-shadow 0.25s ease;
  transform-style: preserve-3d;
}

/* Hovered 3D effect */
#arguablyText:hover {
  transform: rotateX(15deg) rotateY(-12deg) translateZ(6px);
  text-shadow:
    0 6px 12px rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(0, 0, 0, 0.25);
}

#arguablyText:active {
  transform: rotateX(0deg) rotateY(0deg) scale(0.98);
  text-shadow: none;
}

#arguablyText {
  position: relative;
  display: inline-block;
  font-weight: 700; /* makes extrusion cleaner */
  transition: transform 0.25s ease;
}

/* 3D walls using ::before pseudo-element */
#arguablyText::before {
  content: attr(data-text); /* duplicate text */
  position: absolute;
  top: 0;
  left: 0;
  color: transparent;
  text-shadow: 
    1px 1px 0px rgba(255,255,255,0.15),
    2px 2px 0px rgba(255,255,255,0.1),
    3px 3px 0px rgba(255,255,255,0.08),
    4px 4px 0px rgba(255,255,255,0.06),
    5px 5px 0px rgba(255,255,255,0.04),
    6px 6px 0px rgba(255,255,255,0.03);
  pointer-events: none;
  transform: translateZ(-1px);
}

/* Add tilt */
#arguablyText:hover {
  transform: rotateX(12deg) rotateY(-10deg) translateZ(8px);
}

.about-photo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-photo-img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;

  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
