/* ==========================================================================
   MINIMAL + COLOUR LAYER — loaded after styles.css.
   Clean layout, generous whitespace, flat cards — but with vivid accent
   colours, an animated aurora and motion used by js/effects.js.
   ========================================================================== */

:root {
  --bg-primary: #07080d;
  --bg-secondary: #0c0e16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.055);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(129, 140, 248, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body { letter-spacing: -0.005em; }

/* ---------- Page loader: gradient line ---------- */
#page-loader { background: var(--bg-primary); }
.loader-ring { display: none; }
.loader-text { position: relative; padding-bottom: 14px; letter-spacing: .35em; color: #a1a1aa; }
.loader-text::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4); transform-origin: left; animation: load-line 1.1s var(--ease) infinite;
}
@keyframes load-line { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); transform-origin: left; }
  61% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* ---------- Drifting aurora behind the page ---------- */
body::before, body::after { content: ''; position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(110px); opacity: .55; }
body::before { width: 46vw; height: 46vw; top: -12vw; right: -10vw; background: rgba(59,130,246,.22); animation: drift1 22s ease-in-out infinite alternate; }
body::after  { width: 40vw; height: 40vw; bottom: -14vw; left: -10vw; background: rgba(139,92,246,.2); animation: drift2 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-12vw, 18vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(14vw, -16vh) scale(1.15); } }
body.light-mode::before, body.light-mode::after { opacity: .25; }

/* ---------- Sections: airy, no hard blocks ---------- */
.gradient-orb-1, .gradient-orb-2, .bg-grid-pattern { background-image: none; }
section { background: transparent !important; border: 0 !important; padding-top: 7rem; padding-bottom: 7rem; }
section + section { border-top: 1px solid var(--border-color) !important; }
section h2 { font-weight: 800 !important; letter-spacing: -0.035em !important; font-size: clamp(2rem, 4.5vw, 3.5rem) !important; line-height: 1.05; }
section h2::after { content: ''; display: block; width: 4rem; height: 2px; margin: 1.25rem auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4); transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
section.is-visible h2::after { transform: scaleX(1); }
section span.rounded-full { letter-spacing: .2em; }

/* ---------- Cards: flat glass + cursor spotlight + animated gradient edge on hover ---------- */
.glass-card, .glass-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: none !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-radius: 1.25rem !important;
  position: relative;
  transition: border-color .4s var(--ease), background .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease) var(--rd,0s), filter .9s var(--ease) var(--rd,0s);
  will-change: transform;
}
.glass-card:hover { background: var(--bg-card-hover) !important; border-color: var(--border-color-hover) !important;
  box-shadow: 0 24px 60px -24px rgba(99,102,241,.55) !important; }
.glass-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,.14), transparent 45%);
  transition: opacity .4s;
}
.glass-card:hover::before { opacity: 1; }
.glass-card::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--ang, 0deg), #3b82f6, #8b5cf6, #06b6d4, #3b82f6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-ang 4s linear infinite;
}
.glass-card:hover::after { opacity: 1; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-ang { to { --ang: 360deg; } }

/* Coloured icon tiles pulse softly */
section [class*="bg-blue-500/10"], section [class*="bg-purple-500/10"], section [class*="bg-emerald-500/10"],
section [class*="bg-rose-500/10"], section [class*="bg-amber-500/10"], section [class*="bg-cyan-500/10"] { transition: box-shadow .4s, background .3s, color .3s; }
.group:hover [class*="w-11"][class*="rounded-2xl"], .group:hover [class*="w-12"][class*="rounded-2xl"], .group:hover [class*="w-14"][class*="rounded-2xl"] {
  box-shadow: 0 0 26px -4px currentColor; }

/* Gradient text with a moving sheen */
.text-gradient {
  background: linear-gradient(100deg, #60a5fa 0%, #c084fc 35%, #22d3ee 65%, #60a5fa 100%);
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: 200% center; } }

/* Timeline spine -> slim gradient */
.timeline-spine, section .w-1.bg-gradient-to-b { width: 2px !important; opacity: .8; }

/* Gradient buttons shimmer */
section a[class*="bg-gradient"], section button[class*="bg-gradient"] { background-size: 200% 100%; transition: background-position .5s, transform .3s var(--ease), box-shadow .3s; }
section a[class*="bg-gradient"]:hover, section button[class*="bg-gradient"]:hover { background-position: 100% 0; }

/* ---------- Navbar ---------- */
#navbar { background: rgba(7,8,13,.6) !important; backdrop-filter: blur(14px); border-bottom: 1px solid transparent !important; }
#navbar.scrolled { background: rgba(7,8,13,.82) !important; border-bottom-color: var(--border-color) !important; }
#navbar .nav-link { font-size: .8rem; color: #a1a1aa; }
#navbar .nav-link:hover, #navbar .nav-link.active { color: #fff; }

/* ---------- Scroll progress bar + cursor aura ---------- */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4); box-shadow: 0 0 12px rgba(139,92,246,.7); }
#cursor-aura { position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,.16), transparent 60%); transition: opacity .4s; opacity: 0; will-change: transform; }
main, footer { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: 0 !important; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(7,8,13,.5) 60%, var(--bg-primary) 100%); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: #a1a1aa; margin-bottom: 1.75rem; }
.hero-title { display: flex; flex-wrap: wrap; column-gap: .32em; row-gap: 0; font-size: clamp(2.5rem, 7vw, 5.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; color: #fafafa; margin-bottom: 1.75rem; }
.hero-word { display: inline-flex; white-space: nowrap; }
.hero-char { display: inline-block; opacity: 0; transform: translateY(70%) rotate(6deg); filter: blur(10px);
  animation: char-in 1s var(--ease) forwards; animation-delay: calc(.25s + var(--i) * 45ms); }
@keyframes char-in { to { opacity: 1; transform: none; filter: blur(0); } }
.hero-role { font-size: clamp(1.1rem, 2.4vw, 1.75rem); font-weight: 600; margin-bottom: .75rem; min-height: 2.2rem; }
.hero-sub { max-width: 34rem; color: #a1a1aa; font-size: 1.05rem; margin-bottom: 2.5rem; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 4px; vertical-align: -0.15em; background: #8b5cf6; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.fade-up { opacity: 0; transform: translateY(16px); animation: fade-up .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px; font-size: .875rem; font-weight: 600;
  transition: background .3s, color .3s, border-color .3s, transform .25s var(--ease), box-shadow .3s; will-change: transform; }
.btn-primary { background: linear-gradient(110deg, #2563eb, #7c3aed, #0891b2); background-size: 200% 100%; color: #fff; box-shadow: 0 10px 30px -10px rgba(99,102,241,.7); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 40px -8px rgba(139,92,246,.85); }
.btn-ghost { color: #e4e4e7; border: 1px solid rgba(255,255,255,.18); }
.btn-ghost:hover { border-color: #8b5cf6; background: rgba(139,92,246,.1); }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; width: 22px; height: 36px; margin-left: -11px; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; z-index: 5; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Scroll reveal ---------- */
.reveal-on-scroll { opacity: 1; transform: none; transition: none; }
.rv { opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--rd, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
.tilt { transform-style: preserve-3d; }

/* ---------- Our Focus cards: each has its own accent colour via --c ---------- */
.focus-card {
  --c: 59,130,246; position: relative; padding: 1.5rem; border-radius: 1.5rem; overflow: hidden; min-height: 14rem;
  background: linear-gradient(160deg, rgba(var(--c), .16), rgba(255,255,255,.02) 55%);
  border: 1px solid rgba(var(--c), .28);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), opacity .9s var(--ease) var(--rd,0s), filter .9s var(--ease) var(--rd,0s);
}
.focus-card::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); transition: left .8s var(--ease); pointer-events: none; }
.focus-card:hover { transform: translateY(-10px); border-color: rgba(var(--c), .85);
  box-shadow: 0 25px 60px -20px rgba(var(--c), .75), 0 0 0 1px rgba(var(--c), .3); }
.focus-card:hover::before { left: 120%; }
.focus-icon {
  width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; border-radius: 1rem;
  color: rgb(var(--c)); background: rgba(var(--c), .16); border: 1px solid rgba(var(--c), .45);
  box-shadow: 0 0 24px -4px rgba(var(--c), .6);
  transition: background .3s, color .3s, box-shadow .4s;
}
.focus-card:hover .focus-icon { background: rgb(var(--c)); color: #fff; box-shadow: 0 0 34px -2px rgba(var(--c), .9); }
.focus-tag { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .75rem;
  border-top: 1px solid rgba(var(--c), .28); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--c)); }

/* ---------- Light mode ---------- */
body.light-mode { --bg-primary: #f8fafc; --bg-card: #ffffff; --border-color: #e2e8f0; }
body.light-mode .hero-title { color: #0f172a; }
body.light-mode .hero-vignette { background: radial-gradient(ellipse at 30% 50%, transparent 0%, rgba(248,250,252,.6) 60%, #f8fafc 100%); }
body.light-mode .btn-ghost { color: #1e293b; border-color: #cbd5e1; }
body.light-mode .text-gradient { background-image: linear-gradient(100deg, #1d4ed8, #7c3aed, #0284c7, #1d4ed8); background-size: 200% auto; }
body.light-mode #navbar, body.light-mode #navbar.scrolled { background: rgba(248,250,252,.85) !important; }
body.light-mode #navbar .nav-link:hover, body.light-mode #navbar .nav-link.active { color: #1d4ed8 !important; }
body.light-mode .focus-card { background: linear-gradient(160deg, rgba(var(--c), .1), #fff 60%); }
body.light-mode .focus-card h4 { color: #0f172a !important; }
body.light-mode #cursor-aura { background: radial-gradient(circle, rgba(124,58,237,.1), transparent 60%); }

/* ---------- Accessibility: honour reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-char, .fade-up, .rv { opacity: 1 !important; transform: none !important; filter: none !important; }
  #cursor-aura { display: none; }
}
@media (max-width: 640px) { section { padding-top: 4.5rem; padding-bottom: 4.5rem; } #cursor-aura { display: none; } }

/* ==========================================================================
   SOCIAL + CONTACT HOVER POLISH
   ========================================================================== */
footer { background: transparent !important; border-top: 1px solid var(--border-color) !important; }

/* Footer social buttons: fill rises from below in the brand colour, icon pops, label tooltip */
.social-btn {
  --c: 99,102,241; position: relative; width: 2.9rem; height: 2.9rem; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 1rem; color: #cbd5e1; background: rgba(255,255,255,.04); border: 1px solid var(--border-color); overflow: visible; isolation: isolate;
  transition: color .3s, border-color .3s, box-shadow .4s var(--ease), transform .3s var(--ease);
}
.social-btn::before { /* rising fill */
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: linear-gradient(160deg, rgba(var(--c), 1), rgba(var(--c), .6));
  clip-path: inset(100% 0 0 0 round 1rem); transition: clip-path .45s var(--ease);
}
.social-btn::after { /* soft ping ring */
  content: ''; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(var(--c), .9); opacity: 0; transform: scale(1);
}
.social-btn:hover { color: #fff; border-color: transparent; box-shadow: 0 14px 30px -10px rgba(var(--c), .9); }
.social-btn:hover::before { clip-path: inset(0 0 0 0 round 1rem); }
.social-btn:hover::after { animation: ping-ring .9s var(--ease) infinite; }
@keyframes ping-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

/* Contact cards: slide in, icon tile fills with gradient, arrow appears */
#contact a.glass-card.group { overflow: hidden; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease), opacity .9s var(--ease) var(--rd,0s), filter .9s var(--ease) var(--rd,0s); }
#contact a.glass-card.group:hover { transform: translateX(8px); }
#contact a.glass-card.group > div:first-child { transition: box-shadow .4s, background .3s, color .3s; }
#contact a.glass-card.group:hover > div:first-child { box-shadow: 0 0 28px -2px currentColor; }
#contact a.glass-card.group::after { /* replace spinning border with a trailing arrow chevron */
  inset: auto; right: 1.25rem; top: 50%; width: 10px; height: 10px; padding: 0; border-radius: 0; background: none; -webkit-mask: none; mask: none; animation: none;
  border-top: 2px solid #94a3b8; border-right: 2px solid #94a3b8; transform: translateY(-50%) rotate(45deg) translateX(-8px); opacity: 0;
  transition: transform .45s var(--ease), opacity .3s;
}
#contact a.glass-card.group:hover::after { opacity: 1; transform: translateY(-50%) rotate(45deg) translateX(0); animation: none; }

/* Form inputs: glowing focus */
#contact input, #contact textarea { transition: border-color .3s, box-shadow .3s, background .3s; }
#contact input:focus, #contact textarea:focus { border-color: #8b5cf6 !important; box-shadow: 0 0 0 4px rgba(139,92,246,.18), 0 8px 24px -10px rgba(139,92,246,.6); background: rgba(255,255,255,.04); }

/* Footer nav links: underline that draws in */
footer a:not(.social-btn) { position: relative; }
footer .flex-wrap a::after { content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
footer .flex-wrap a:hover::after { transform: scaleX(1); }

body.light-mode .social-btn { color: #334155; background: #fff; }
body.light-mode .social-btn:hover { color: #fff; }

a:hover > i[data-lucide], a:hover > svg, button:hover > i[data-lucide], button:hover > svg { transform: none !important; }
/* Icons never move on hover: neutralise Tailwind group-hover scale/rotate via its variables
   (keeps centering translates like the timeline bubble intact) */
.group:hover [class*="group-hover:scale"] { --tw-scale-x: 1 !important; --tw-scale-y: 1 !important; }
.group:hover [class*="group-hover:rotate"] { --tw-rotate: 0deg !important; }
.group:hover i, .group:hover svg { transform: none !important; }
