/*--------------------------------------------------------------
# Custom Theme Overrides — Minimal / Apple & Neuralink inspired
--------------------------------------------------------------*/

/* Fonts: swap to Inter for a cleaner, geometric, product-page feel */
:root {
  --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-font: "Inter", system-ui, -apple-system, sans-serif;
}

/* Global palette: black / white, single restrained accent */
:root {
  --background-color: #ffffff;
  --default-color: #4a4a4a;
  --heading-color: #0a0a0a;
  --accent-color: #1d1d1f;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --pop-color: #e8503a;
}

.dark-background {
  --background-color: #000000;
  --default-color: #b3b3b3;
  --heading-color: #ffffff;
  --surface-color: #141414;
  --contrast-color: #ffffff;
}

body {
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  cursor: url("../img/brain-cursor.png") 5 5, auto;
}

a, button, .navmenu a, .career-item, .portfolio-item, .btn-get-started {
  cursor: url("../img/brain-cursor.png") 5 5, pointer;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
}

/* Generous whitespace between sections, product-page style */
section,
.section {
  padding: 120px 0;
}

@media (max-width: 768px) {
  section,
  .section {
    padding: 70px 0;
  }
}

/* Section titles: bigger, bolder, no underline bar */
.section-title {
  padding-bottom: 70px;
}

.section-title h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-bottom: 0;
}

.section-title h2:after {
  display: none;
}

.section-title p {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

/* Header: minimal, transparent-feeling, uppercase tracked nav */
.header {
  --background-color: #ffffff;
  padding: 22px 0;
  border-bottom: 1px solid #f0f0f0;
}

.header .logo h1 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.navmenu a,
.navmenu a:focus {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero: SKYLRK-style gradient atmosphere, brand-forward, left-aligned */
.hero {
  background: linear-gradient(120deg, #04060c 0%, #060b1a 18%, #0a1c3d 36%, #163f74 54%, #2f6bab 72%, #0a1c3d 88%, #04060c 100%);
  background-size: 320% 320%;
  animation: heroColorShift 26s ease-in-out infinite;
  min-height: 92vh;
  padding: 60px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@keyframes heroColorShift {
  0%   { background-position: 0% 40%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 0% 40%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}

/* Soft, slowly drifting radial glows — SKYLRK-style atmosphere */
.hero-glow {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.7;
  will-change: transform;
}

.hero-glow-1 {
  width: 680px;
  height: 680px;
  top: -220px;
  right: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(110, 170, 255, 0.65), rgba(110, 170, 255, 0) 70%);
  animation: glowDrift1 22s ease-in-out infinite;
}

.hero-glow-2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle at 60% 60%, rgba(80, 100, 220, 0.5), rgba(80, 100, 220, 0) 70%);
  animation: glowDrift2 26s ease-in-out infinite;
}

.hero-glow-3 {
  width: 420px;
  height: 420px;
  top: 30%;
  right: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(160, 200, 255, 0.4), rgba(160, 200, 255, 0) 70%);
  animation: glowDrift3 30s ease-in-out infinite;
}

@keyframes glowDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 60px) scale(1.1); }
}

@keyframes glowDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.12); }
}

@keyframes glowDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, -50px) scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow-1, .hero-glow-2, .hero-glow-3 { animation: none; }
}

.hero-grain {
  position: absolute;
  inset: -80px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.24;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  animation: grainFloat 9s ease-in-out infinite;
}

/* Second, slower/coarser grain layer for parallax depth */
.hero-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: 260px 260px;
  opacity: 0.5;
  animation: grainFloatSlow 16s ease-in-out infinite reverse;
}

@keyframes grainFloat {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(-3%, 2%) scale(1.03); }
  40%  { transform: translate(2%, -3%) scale(1.01); }
  60%  { transform: translate(-2%, -2%) scale(1.04); }
  80%  { transform: translate(3%, 3%) scale(1.02); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes grainFloatSlow {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(4%, -3%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grain, .hero-grain::after { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 640px;
}

.hero-3d-stage {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  pointer-events: none;
}

.hero-3d-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 992px) {
  .hero-3d-stage {
    display: none;
  }
}

.hero h2 {
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.02;
  margin: 0;
}

.hero-tagline {
  margin: 26px 0 0 0;
  font-size: 24px;
  font-weight: 400;
  color: #a1a1a6;
  line-height: 1.4;
}

.hero-scroll {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #a1a1a6;
  font-size: 15px;
  animation: scrollBounce 2.2s ease-in-out infinite;
  transition: border-color 0.3s, color 0.3s;
}

.hero-scroll:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 44px;
  }
  .hero-tagline {
    font-size: 18px;
  }
  .hero-glow-1, .hero-glow-2 {
    width: 320px;
    height: 320px;
  }
}

/* About: flat, no card shadow, cleaner career list */
.about .container {
  background-color: transparent;
  box-shadow: none;
  padding: 0;
}

.about .career-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #ececec;
  border-radius: 0;
  padding: 18px 0;
  margin-bottom: 0;
  transition: opacity 0.3s;
}

.about .career-item:hover {
  background-color: transparent;
  opacity: 0.6;
}

.about .career-title {
  font-size: 17px;
  font-weight: 600;
}

.about .career-description {
  font-size: 15px;
  color: #6e6e73;
}

.about .career-duration {
  font-size: 13px;
  color: #86868b;
}

.about .about-me h4 {
  font-size: 32px;
  font-weight: 700;
}

.about .about-me h4:after {
  display: none;
}

.about .about-me p {
  font-size: 17px;
  color: #6e6e73;
  line-height: 1.6;
}

/* Resume: remove heavy accent border/dot, use quiet divider */
.resume .resume-item {
  border-left: none;
  padding: 0 0 28px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid #ececec;
}

.resume .resume-item::before {
  display: none;
}

.resume .resume-item:last-child {
  border-bottom: none;
}

.resume .resume-item h4 {
  text-transform: none;
  font-size: 19px;
  font-weight: 600;
  color: var(--heading-color);
}

.resume .resume-item h5 {
  padding: 0;
  color: #86868b;
  font-weight: 500;
}

/* Footer: minimal */
.footer {
  --background-color: #000000;
  --default-color: #86868b;
  --heading-color: #ffffff;
  padding: 40px 0;
}

/*--------------------------------------------------------------
# Premium interaction layer: reveal, magnetic hover
--------------------------------------------------------------*/

/* Hero kinetic text: letters animated in via JS */
#hero-title {
  perspective: 400px;
}

#hero-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Magnetic elements get a smoother transform transition when not actively dragged */
.magnetic {
  will-change: transform;
}

/*--------------------------------------------------------------
# Awards: card grid
--------------------------------------------------------------*/
.award-card {
  height: 100%;
  padding: 28px 26px;
  border: 1px solid #ececec;
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s;
}

.award-card:hover {
  border-color: #d0d0d0;
  transform: translateY(-4px);
}

.award-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
  margin-bottom: 14px;
}

.award-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.award-card p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.55;
  margin-bottom: 0;
}
