:root {
  --bg: #071824;
  --panel: #06111c;
  --band: #0b2536;
  --cyan: #00b8ff;
  --cyan-soft: #27d4ff;
  --text: #f5f7fb;
  --muted: #c7d2dc;
  --line: rgba(0, 184, 255, 0.75);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Poppins, Montserrat, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 184, 255, 0.14), transparent 28rem),
    linear-gradient(135deg, #0b2434, #03101a 45%, #092031);
  min-height: 100vh;
}


.captcha-container{
    grid-column: 1 / -1;
    display:flex;
    justify-content:center;
    align-items:center;
    margin:30px 0 10px;
    min-height: 78px; /* reserves space so the reCAPTCHA fade-in doesn't jump the layout */
    opacity: 1;
    transition: opacity 300ms ease;
}

/* Captcha stays out of the layout and non-interactive until the user has
   clicked Submit once and passed basic field validation. */
.captcha-container.is-hidden{
    display:none;
    opacity: 0;
    min-height: 0;
    margin: 0;
}

/* Honeypot field: pulled off-screen (not display:none) so simple bots that
   skip visually-hidden fields still fill it in and get caught server-side. */
.hp-field{
    position:absolute;
    left:-9999px;
    top:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}


a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b2434, #03101a 45%, #092031);
  transition: opacity 500ms ease, visibility 500ms ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.preloader-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(0, 184, 255, 0.15);
  border-top-color: var(--cyan);
  border-right-color: var(--cyan-soft);
  animation: preloaderSpin 950ms linear infinite;
}

@keyframes preloaderSpin {
  to { transform: rotate(360deg); }
}

.preloader-logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  animation: preloaderPulse 1600ms ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.preloader-logo span { color: var(--cyan); }

.preloader-bar {
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 184, 255, 0.15);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 0 10px rgba(0, 184, 255, 0.7);
}

.preloader-percent {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan-soft);
}

body.loading {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 184, 255, 0.08);
  z-index: 60;
}

.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 0 8px rgba(0, 184, 255, 0.7);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 14, 23, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 184, 255, 0.12);
}


.nav-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 800;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
}

.brand-suffix,
.section-title span,
.hero-copy h2 span:first-child {
  color: var(--cyan);
}

.brand-name {
  color: var(--text);
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a { transition: color 180ms ease; }
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }

.nav-indicator {
  position: absolute;
  bottom: -10px;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(0, 184, 255, 0.7);
  opacity: 0;
  transition: left 320ms ease, width 320ms ease, opacity 220ms ease;
  pointer-events: none;
}

@media (max-width: 900px) {
  .nav-indicator { display: none; }
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--cyan);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.panel,
.section-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(3, 12, 20, 0.98), rgba(7, 31, 46, 0.96));
  border: 1px solid rgba(0, 184, 255, 0.08);
}

.section-band {
  background: linear-gradient(145deg, rgba(12, 42, 60, 0.96), rgba(4, 19, 31, 0.98));
}

.hero {
  min-height: 735px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  align-items: center;
  padding: 82px 58px 92px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 10, 17, 0.5), transparent 48%, rgba(2, 10, 17, 0.55));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 18px;
  color: var(--cyan-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.rec-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

.rec-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0.6;
  animation: recPulse 1800ms ease-out infinite;
}

@keyframes recPulse {
  0% { transform: scale(0.4); opacity: 0.7; }
  100% { transform: scale(2); opacity: 0; }
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.hero h2 {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 12px 0 24px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.cursor {
  width: 3px;
  height: 1.2em;
  margin-left: 6px;
  background: var(--cyan);
  animation: blink 900ms steps(2, start) infinite;
}

.hero p,
.about p,
.timeline-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  min-width: 132px;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 184, 255, 0.28);
}
.btn.primary { background: var(--cyan); color: #04111b; }
.btn.ghost { color: var(--cyan); }

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: rippleAnim 600ms ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(2.6); opacity: 0; }
}


/* ===============================
   Premium Hero Logo Styling
   =============================== */

.hero-visual{
    position:absolute;
    inset:78px 0 0 auto;
    width:58%;
    max-width:720px;
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:1;
    mask-image:none;
    animation:heroLogoFloat 6s ease-in-out infinite;
}

.hero-portrait{
    width:100%;
    max-width:620px;
    height:auto;
    object-fit:contain;

    /* Remove old grayscale look */
    filter:
        brightness(1.15)
        contrast(1.18)
        saturate(1.35)
        drop-shadow(0 0 15px rgba(0,184,255,.25))
        drop-shadow(0 0 35px rgba(0,184,255,.18))
        drop-shadow(0 20px 45px rgba(0,0,0,.55));

    transition:all .5s ease;
}

/* Blue glow behind logo */
.hero-visual::before{
    content:"";
    position:absolute;
    width:75%;
    aspect-ratio:1;
    border-radius:50%;

    background:
        radial-gradient(circle,
        rgba(0,184,255,.28) 0%,
        rgba(0,184,255,.14) 35%,
        transparent 72%);

    filter:blur(35px);
    z-index:-2;
}

/* Large subtle rings */
.hero-visual::after{
    content:"";
    position:absolute;
    width:105%;
    aspect-ratio:1;
    border-radius:50%;

    border:1px solid rgba(0,184,255,.06);

    box-shadow:
        0 0 0 40px rgba(0,184,255,.03),
        0 0 0 80px rgba(0,184,255,.02);

    z-index:-3;
}

/* Premium hover */
.hero-visual:hover .hero-portrait{

    transform:scale(1.03);

    filter:
        brightness(1.2)
        contrast(1.2)
        saturate(1.45)
        drop-shadow(0 0 25px rgba(0,184,255,.45))
        drop-shadow(0 0 55px rgba(0,184,255,.25))
        drop-shadow(0 22px 45px rgba(0,0,0,.55));
}

/* Floating animation */
@keyframes heroLogoFloat{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-8px);
    }

    100%{
        transform:translateY(0px);
    }

}



.social-links {
  position: absolute;
  left: 58px;
  bottom: 54px;
  z-index: 3;
  display: flex;
  gap: 18px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.86rem;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--cyan);
  color: #04111b;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.1;
}

.about {
  min-height: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 74px 28px;
  text-align: center;
}

.portrait-ring {
  position: relative;
  width: 214px;
  aspect-ratio: 1;
  margin: 58px auto 34px;
  padding: 12px;
  border: 3px solid var(--cyan);
  border-radius: 50%;
  animation: portraitGlow 2600ms ease-in-out infinite;
}

.portrait-ring::before,
.portrait-ring::after {
  content: "";
  position: absolute;
  inset: -18px;
  border: 2px solid transparent;
  border-left-color: var(--cyan);
  border-right-color: var(--cyan);
  border-radius: 50%;
  animation: portraitRingSpin 6s linear infinite;
}

.portrait-ring::after {
  inset: -30px;
  border-left-color: transparent;
  border-top-color: var(--cyan);
  border-right-color: transparent;
  animation: portraitRingSpinReverse 8s linear infinite;
}

@keyframes portraitGlow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 184, 255, 0);
  }
  50% {
    box-shadow: 0 0 22px 4px rgba(0, 184, 255, 0.55);
  }
}

@keyframes portraitRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes portraitRingSpinReverse {
  from { transform: rotate(28deg); }
  to { transform: rotate(-332deg); }
}

.portrait-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.about h3 {
  margin: 0 0 20px;
  font-size: 1.75rem;
}

.about p {
  width: min(760px, 100%);
  margin: 0 0 32px;
}

.journey,
.skills,
.projects,
.contact {
  padding: 72px 58px;
}

.timeline-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 48px;
}

.timeline-grid h3,
.skill-panel h3 {
  margin: 0 0 22px;
  font-size: 1.3rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  width: 2px;
  background: var(--cyan);
  opacity: 0.28;
}

.timeline-fill {
  position: absolute;
  top: 10px;
  left: 7px;
  width: 2px;
  height: 0%;
  background: linear-gradient(var(--cyan-soft), var(--cyan));
  border-radius: 999px;
  z-index: 1;
  transition: height 120ms linear;
  box-shadow: 0 0 10px rgba(0, 184, 255, 0.6);
}

.timeline-card {
  position: relative;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(2, 14, 23, 0.74);
  transition: opacity 550ms ease, transform 180ms ease-out, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-soft);
  box-shadow: 0 14px 34px rgba(0, 184, 255, 0.18);
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -31px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cyan);
  z-index: 2;
}

.timeline-card span,
.project-card span {
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.86rem;
}

.timeline-card h4 {
  margin: 10px 0;
  font-size: 1rem;
}

.timeline-card p,
.project-card p {
  margin: 0;
  font-size: 0.92rem;
}

.skill-panel,
.project-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(3, 16, 26, 0.7);
  transition: opacity 550ms ease, transform 180ms ease-out, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.skill-panel:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-soft);
  box-shadow: 0 14px 34px rgba(0, 184, 255, 0.18);
}

.skill-row + .skill-row { margin-top: 22px; }

.skill-row div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.skill-row i {
  display: block;
  height: 11px;
  padding: 2px;
  border: 1px solid rgba(0, 184, 255, 0.8);
  border-radius: 99px;
}

.skill-row i::before {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-soft));
  transition: width 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-panel.in-view .skill-row i::before { width: var(--value); }

.skill-panel.in-view .skill-row:nth-of-type(1) i::before { transition-delay: 60ms; }
.skill-panel.in-view .skill-row:nth-of-type(2) i::before { transition-delay: 160ms; }
.skill-panel.in-view .skill-row:nth-of-type(3) i::before { transition-delay: 260ms; }
.skill-panel.in-view .skill-row:nth-of-type(4) i::before { transition-delay: 360ms; }
.skill-panel.in-view .skill-row:nth-of-type(5) i::before { transition-delay: 460ms; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

/* ---------- Tools I Use ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(3, 16, 26, 0.7);
  transition: opacity 550ms ease, transform 180ms ease-out, box-shadow 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan-soft);
  box-shadow: 0 14px 34px rgba(0, 184, 255, 0.18);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--icon-bg, #04111b);
  color: var(--icon-fg, var(--cyan));
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tool-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Staggered entrance: each card fades/scales in slightly after the last */
.tool-card {
  transform: translateY(28px) scale(0.9);
}

.tool-card.is-visible {
  transform: translateY(0) scale(1);
}

.tools-grid .tool-card:nth-child(1) { transition-delay: 0ms; }
.tools-grid .tool-card:nth-child(2) { transition-delay: 90ms; }
.tools-grid .tool-card:nth-child(3) { transition-delay: 180ms; }
.tools-grid .tool-card:nth-child(4) { transition-delay: 270ms; }
.tools-grid .tool-card:nth-child(5) { transition-delay: 360ms; }
.tools-grid .tool-card:nth-child(6) { transition-delay: 450ms; }

/* Subtle continuous glow pulse on each icon, offset per card */
.tool-icon {
  animation: toolIconPulse 3200ms ease-in-out infinite;
}

.tools-grid .tool-card:nth-child(1) .tool-icon { animation-delay: 0ms; }
.tools-grid .tool-card:nth-child(2) .tool-icon { animation-delay: 250ms; }
.tools-grid .tool-card:nth-child(3) .tool-icon { animation-delay: 500ms; }
.tools-grid .tool-card:nth-child(4) .tool-icon { animation-delay: 750ms; }
.tools-grid .tool-card:nth-child(5) .tool-icon { animation-delay: 1000ms; }
.tools-grid .tool-card:nth-child(6) .tool-icon { animation-delay: 1250ms; }

@keyframes toolIconPulse {
  0%, 100% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 rgba(0, 184, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 16px 2px rgba(0, 184, 255, 0.35);
  }
}

.project-card h3 {
  margin: 12px 0 14px;
  font-size: 1.22rem;
}

.project-card a {
  display: inline-block;
  margin-top: 22px;
  color: var(--cyan);
  font-weight: 800;
}

.contact-form {
  width: min(680px, 100%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(2, 12, 20, 0.68);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan-soft);
  box-shadow: 0 0 0 3px rgba(0, 184, 255, 0.22);
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 148px;
  padding-top: 14px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aebbc6; }

.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 126px;
}

footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto 28px;
  padding: 0 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 12, 20, 0.98);
  border: 1px solid rgba(0, 184, 255, 0.12);
  border-top: 1px solid rgba(0, 184, 255, 0.28);
  box-shadow: var(--shadow);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.to-top {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--cyan);
  color: #04111b;
  font-weight: 800;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 184, 255, 0.35);
}

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

/* ---------- Hero entrance ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy .eyebrow { animation: fadeUp 700ms ease both; }
.hero-copy h1 { animation: fadeUp 700ms ease 120ms both; }
.hero-copy h2 { animation: fadeUp 700ms ease 240ms both; }
.hero-copy p:not(.eyebrow) { animation: fadeUp 700ms ease 360ms both; }
.hero-actions { animation: fadeUp 700ms ease 480ms both; }
.hero-visual{
    animation:
        fadeUp .9s ease .2s both,
        heroLogoFloat 6s ease-in-out infinite .9s;
}
.social-links { animation: fadeUp 900ms ease 600ms both; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

article[data-reveal] .timeline-card {
  opacity: 0;
  transform: translateY(20px);
}

article[data-reveal].is-visible .timeline-card {
  opacity: 1;
  transform: translateY(0);
}

article[data-reveal] .timeline-card:nth-child(2) { transition-delay: 90ms; }
article[data-reveal] .timeline-card:nth-child(3) { transition-delay: 180ms; }
article[data-reveal] .timeline-card:nth-child(4) { transition-delay: 270ms; }

/* Cinematic "cut" wipe reveal for section titles */
.section-title[data-reveal] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 750ms cubic-bezier(0.65, 0, 0.35, 1);
}

.section-title[data-reveal].is-visible {
  clip-path: inset(0 0 0 0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy h2,
  .hero-copy p:not(.eyebrow),
  .hero-actions,
  .hero-visual,
  .social-links,
  .cursor {
    animation: none !important;
  }

  [data-reveal],
  article[data-reveal] .timeline-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .section-title[data-reveal] {
    clip-path: none !important;
  }

  .skill-row i::before,
  .timeline-fill {
    transition: none !important;
  }

  .rec-dot::after {
    animation: none !important;
  }

  .preloader-ring {
    animation: none !important;
    border-top-color: rgba(0, 184, 255, 0.15);
    border-right-color: rgba(0, 184, 255, 0.15);
  }

  .tool-icon {
    animation: none !important;
  }

  .portrait-ring,
  .portrait-ring::before,
  .portrait-ring::after {
    animation: none !important;
  }

  .preloader-logo {
    animation: none !important;
  }

  .timeline-card,
  .skill-panel,
  .project-card {
    transition: opacity 300ms ease !important;
  }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(3, 14, 23, 0.98);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 28px 150px;
  }

.hero-visual{
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 520px;
    margin: 40px auto 0;
    opacity: .35;
}

  .social-links { left: 28px; }

  .journey,
  .skills,
  .tools,
  .projects,
  .contact { padding: 62px 28px; }

  .timeline-grid,
  .skills-grid,
  .tools-grid,
  .project-grid { grid-template-columns: 1fr; }

  footer { padding: 0 28px; }
}

@media (max-width: 600px) {
  main,
  footer,
  .nav-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero { padding: 52px 20px 132px; }

  .hero-visual{
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 420px;
    margin: 30px auto 0;
}

  .paint-mark { display: none; }
  .contact-form { grid-template-columns: 1fr; }

  footer {
    gap: 18px;
    padding: 18px 20px;
    flex-direction: column;
    text-align: center;
  }
}
.input-group{
    display:flex;
    flex-direction:column;
}

.error-text{
    color:#ff6b6b;
    font-size:12px;
    margin-top:5px;
    min-height:16px;
}
.input-group.full-width{
    grid-column:1 / -1;
    width:100%;
}
.captcha-error{
    grid-column: 1 / -1;
    width:100%;
    display:none;
    text-align:center;
    color:#ff6b6b;
    font-size:14px;
    font-weight:600;
    margin:12px 0 18px;
}

.captcha-error.show{
    display:block;
}
/* Container Grid Layout */
.video-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Individual Card Styling matching your theme border */
.project-card {
  background: rgba(10, 25, 41, 0.4);
  border: 1px solid #1a365d; /* Matches your subtle cyan/blue border */
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #00bfff; /* Subtle glow on hover */
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 191, 255, 0.15);
}

/* Video Wrapper for perfect 16:9 ratio responsive scaling */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.portfolio-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid #1a365d;
}

/* Details Panel */
.project-details {
  padding: 20px;
  text-align: left;
}

.project-details h3 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 10px 0;
}

.project-details p {
  color: #a0aec0;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 15px 0;
}

/* Tech Badges inside your project section */
.project-tools {
  display: flex;
  gap: 8px;
}

.tool-tag {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  color: #fff;
  border: 1px solid currentColor;
}

/* Matching Software Brand Colors */
.tool-tag.pr { color: #ea77ff; background: rgba(234, 119, 255, 0.1); }
.tool-tag.ae { color: #9999ff; background: rgba(153, 153, 255, 0.1); }
.tool-tag.au { color: #00e5ff; background: rgba(0, 229, 255, 0.1); }

/* =======================================================
   VIDEO REEL GALLERY ADDITION (SUBTLE HOVER VERSION)
   ======================================================= */

.video-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  width: 100%;
  padding: 20px 0;
}

.project-card {
  background: linear-gradient(145deg, rgba(3, 12, 20, 0.98), rgba(7, 31, 46, 0.96));
  border: 1px solid rgba(0, 184, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  /* Smoother transition ease-out to make it feel premium */
  transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}

/* COMPLETE LAYOUT ACCORD ANCHOR: LOCKS RESOLUTION AND SIZE FOR CHIPS AND VIDEOS */
.project-card:hover {
  border-color: rgba(0, 184, 255, 0.08) !important; /* Locks border to normal style */
  transform: none !important;                       /* Prevents any card lifting movement */
  box-shadow: none !important;                     /* Prevents shadow glare depth changes */
}

/* FORCED RATIO ANCHORS: Prevents video resolution sizing shifts or browser rendering twitches */
.project-card:hover .video-wrapper,
.project-card:hover .portfolio-video {
  transform: none !important;
  scale: 1 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important; /* Forces your original vertical edit geometry to stay crisp */
}
.portfolio-video {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important; /* Preserves vertical layout resolution without stretching */
  aspect-ratio: auto !important;  /* Forces browser to read video's internal file dimensions */
}



