:root{
  --bg-1: #0a0e1a; /* deeper navy */
  --bg-2: #0f1829; /* enhanced bluish */
  --bg-3: #1a1f35; /* new gradient stop */
  --surface: #ffffff;
  --muted: #8892b0;
  --text-light: #ccd6f6;
  --text-dark: #0b1220;
  --accent: #64ffda; /* cyan accent */
  --accent-2: #f77062; /* coral accent */
  --accent-3: #7c5cff; /* purple accent */
  --glass: rgba(255,255,255,0.05);
  --glass-strong: rgba(255,255,255,0.1);
  --radius: 16px;
  --container: 1200px;
  --gap: 1.5rem;
  --shadow-glow: 0 0 30px rgba(100, 255, 218, 0.15);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.4);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--muted);
  background: 
    radial-gradient(600px circle at 20% 30%, rgba(100, 255, 218, 0.08), transparent 50%),
    radial-gradient(800px circle at 80% 70%, rgba(124, 92, 255, 0.06), transparent 50%),
    radial-gradient(400px circle at 40% 90%, rgba(247, 112, 98, 0.04), transparent 50%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  overflow-x: hidden;
}

/* ---- Click-triggered animations (one-shots) ---- */
@keyframes clickPop{0%{transform:scale(1)}30%{transform:scale(1.14)}60%{transform:scale(0.98)}100%{transform:scale(1)}}
@keyframes clickRotate{0%{transform:rotate(0)}50%{transform:rotate(14deg)}100%{transform:rotate(0)}}
@keyframes clickFlip{0%{transform:rotateY(0)}50%{transform:rotateY(180deg)}100%{transform:rotateY(0)}}
@keyframes clickSlide{0%{transform:translateX(0)}50%{transform:translateX(12px)}100%{transform:translateX(0)}}
@keyframes clickPulse{0%{filter:drop-shadow(0 0 0 rgba(124,92,255,0))}50%{filter:drop-shadow(0 10px 30px rgba(124,92,255,0.2))}100%{filter:drop-shadow(0 0 0 rgba(124,92,255,0))}}
@keyframes clickSpin{0%{transform:rotate(0) scale(1)}50%{transform:rotate(180deg) scale(1.06)}100%{transform:rotate(360deg) scale(1)}}
.container{max-width:var(--container);margin:0 auto;padding:0 20px}

.site-header{position:sticky;top:0;backdrop-filter:blur(6px);background:linear-gradient(180deg,rgba(11,17,32,0.6),transparent);border-bottom:1px solid rgba(255,255,255,0.03);z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:10px 0;gap:12px}
.logo{font-weight:800;letter-spacing:0.4px;color:var(--accent);text-decoration:none;font-size:1.05rem}
.site-nav{display:flex;gap:18px}
.nav-list{display:flex;gap:14px;list-style:none;padding:0;margin:0}
.nav-list a{color:#dfe8f6;text-decoration:none;font-weight:700;padding:8px 10px;border-radius:8px;display:inline-block;transition:background .18s ease,color .14s ease}
.nav-list a:hover,.nav-list a:focus{background:rgba(255,255,255,0.03);color:#fff;outline:none}
.nav-list a.active{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:var(--text-dark)}
.header-actions{display:flex;align-items:center;gap:10px}
.header-cta{padding:8px 12px;border-radius:10px}
.nav-toggle{display:none;background:transparent;border:0;color:var(--muted);font-size:20px;padding:8px;border-radius:8px}
.nav-toggle:focus{outline:2px solid rgba(124,92,255,0.25)}

.hero{padding:72px 0 48px;position:relative;overflow:hidden}
.hero-grid{display:grid;grid-template-columns:1fr 380px;gap:40px;align-items:center}
.hero-title{font-size:2.25rem;margin:6px 0;font-weight:800}
.eyebrow{color:var(--accent);font-weight:700}
.hero-sub{color:var(--muted);max-width:55ch}
.hero-ctas{margin:18px 0;display:flex;gap:12px}
.btn{display:inline-block;padding:12px 18px;border-radius:12px;text-decoration:none;font-weight:800;letter-spacing:0.4px;transition:transform .22s ease,box-shadow .22s ease}
.btn.primary{background:linear-gradient(90deg,var(--accent),var(--accent-2));color:var(--text-dark);box-shadow:0 10px 30px rgba(124,92,255,0.12)}
.btn.primary:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(124,92,255,0.16)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.08);color:#e6eef8}
.btn.ghost:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(0,0,0,0.12)}
.skills{display:flex;gap:10px;padding:0;margin:14px 0;list-style:none}
.skills li{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));padding:8px 12px;border-radius:10px;color:var(--muted);font-weight:700}

.photo-frame{width:320px;height:320px;border-radius:22px;overflow:hidden;position:relative;background:linear-gradient(135deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));box-shadow:0 12px 40px rgba(2,6,23,0.6);display:flex;align-items:center;justify-content:center;transition:transform .35s ease,box-shadow .35s ease}
.photo-frame img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1);transition:transform .6s cubic-bezier(.2,.9,.3,1)}
.photo-frame:hover{transform:translateY(-6px);box-shadow:0 30px 60px rgba(2,6,23,0.6)}
.photo-frame:hover img{transform:scale(1.04)}
.glow{position:absolute;inset:auto -40% -40% auto;width:260px;height:260px;background:radial-gradient(circle at 30% 30%, rgba(124,92,255,0.22), transparent 28%);filter:blur(36px);pointer-events:none}

.section{padding:64px 0}
.about{position:relative}
.about::before{content:"";position:absolute;inset:0;left:0;right:0;top:0;height:100%;background:linear-gradient(180deg,rgba(7,16,30,0.18),rgba(7,16,30,0.06));pointer-events:none;border-radius:0;z-index:0}
.about p{color:#e6eef8;max-width:70ch;position:relative;z-index:1;line-height:1.7}
.about .section-title{color:#e6eef8;position:relative;z-index:1}
.about strong{color:#e6eef8}

.projects .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}
.card{background:linear-gradient(180deg,rgba(255,255,255,0.02),transparent);padding:14px;border-radius:12px}
.card img{width:100%;height:140px;object-fit:cover;border-radius:8px}
.placeholder-img{height:140px;border-radius:8px;background:linear-gradient(135deg,#0d1530,#081025);display:flex;align-items:center;justify-content:center;font-size:30px;color:var(--muted)}
.card h3{margin:12px 0 6px}
.card p{color:var(--muted);margin:0 0 8px}
.card-link{color:var(--accent);font-weight:700;text-decoration:none}

.contact form{max-width:720px}
.form-row{display:flex;gap:12px}
.form-row input{flex:1;padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,0.06);background:var(--surface);color:var(--text-dark);box-shadow:inset 0 1px 0 rgba(255,255,255,0.02)}
.contact textarea{width:100%;padding:12px;border-radius:10px;border:1px solid rgba(0,0,0,0.06);background:var(--surface);color:var(--text-dark);margin-top:12px}
.form-msg{margin-top:10px;color:var(--accent)}

.site-footer{border-top:1px solid rgba(255,255,255,0.04);padding:22px 0;color:var(--muted)}
.footer-inner{display:flex;justify-content:space-between;align-items:center}

/* Reveal animations */
.reveal{opacity:0;transform:translateY(18px);will-change:transform,opacity}

/* Directional reveals: elements get .from-bottom or .from-top before becoming visible */
.reveal.from-bottom.visible{animation:slideUp .64s cubic-bezier(.2,.9,.25,1) both}
.reveal.from-top.visible{animation:slideDown .64s cubic-bezier(.2,.9,.25,1) both}
/* Fallback: if no direction is detected use slideUp */
.reveal.visible{animation:slideUp .64s cubic-bezier(.2,.9,.25,1) both}

@keyframes slideUp{
  0%{opacity:0;transform:translateY(22px)}
  60%{opacity:1;transform:translateY(-6px)}
  100%{opacity:1;transform:none}
}

@keyframes slideDown{
  0%{opacity:0;transform:translateY(-22px)}
  60%{opacity:1;transform:translateY(6px)}
  100%{opacity:1;transform:none}
}

@keyframes floatY{
  0%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
  100%{transform:translateY(0)}
}

/* Responsive */
@media (max-width:1000px){
  .hero-grid{grid-template-columns:1fr 300px}
  .projects .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){
  .nav-toggle{
    display:block !important;
    background:transparent !important;
    border:none !important;
    color:#fff !important;
    font-size:24px !important;
    padding:8px !important;
    cursor:pointer !important;
    z-index:1001 !important;
  }
  .site-nav{
    position:fixed !important;
    top:0 !important;
    right:-280px !important;
    width:260px !important;
    height:100vh !important;
    background:rgba(11,17,32,0.98) !important;
    backdrop-filter:blur(12px) !important;
    padding:80px 24px 24px !important;
    flex-direction:column !important;
    gap:0 !important;
    z-index:1000 !important;
    transition:right 0.3s ease !important;
    box-shadow:-5px 0 30px rgba(0,0,0,0.5) !important;
    opacity:1 !important;
    pointer-events:auto !important;
    transform:none !important;
  }
  .site-nav.open{
    right:0 !important;
  }
  .nav-list{
    flex-direction:column !important;
    gap:0 !important;
    width:100% !important;
  }
  .nav-list li{
    width:100% !important;
    border-bottom:1px solid rgba(255,255,255,0.1) !important;
  }
  .nav-list a{
    display:block !important;
    padding:16px 12px !important;
    font-size:1.1rem !important;
    color:#fff !important;
    text-decoration:none !important;
    transition:background 0.2s ease !important;
  }
  .nav-list a:hover{
    background:rgba(124,92,255,0.2) !important;
  }
  .header-cta{display:none !important}
  .hero-grid{grid-template-columns:1fr;gap:28px}
  .photo-frame{width:260px;height:260px;margin:0 auto}
  .projects .grid{grid-template-columns:1fr}
  .header-inner{align-items:center}
}

/* Staggered reveal animations with smooth entrance */
.projects-list .project-card{transition:all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);will-change:transform;transform-origin:center bottom}
.projects-list .project-card:hover{transform:translateY(-16px) rotate(2deg) scale(1.02);box-shadow:0 25px 50px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.1)}
/* Enhanced staggered animations */
.projects-list .project-card{opacity:1;transform:translateY(0) scale(1);transition:all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94)}
.projects-list .project-card:nth-child(1).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s forwards}
.projects-list .project-card:nth-child(2).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s forwards}
.projects-list .project-card:nth-child(3).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards}
.projects-list .project-card:nth-child(4).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s forwards}
.projects-list .project-card:nth-child(5).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards}
.projects-list .project-card:nth-child(6).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards}
.projects-list .project-card:nth-child(7).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards}
.projects-list .project-card:nth-child(8).reveal{animation:cardReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards}

@keyframes cardReveal{
  0%{opacity:0;transform:translateY(30px) scale(0.95) rotateX(15deg)}
  50%{opacity:0.8;transform:translateY(-5px) scale(1.02) rotateX(0deg)}
  100%{opacity:1;transform:translateY(0) scale(1) rotateX(0deg)}
}

/* Service and card hover */
.service-card{transition:transform .32s ease,box-shadow .32s ease}
.service-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(11,18,30,0.08)}

/* Floating effect for hero card */
.hero-card{animation:floatY 6s ease-in-out infinite}

/* Responsive grid adjustments */
@media (max-width:1100px){
  .projects-marquee .projects-list{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
}
@media (max-width:768px){
  .projects-marquee .projects-list{grid-template-columns:1fr;gap:18px}
  .project-card.video-card .video-thumb{max-height:220px}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .hero-giant{font-size:3.2rem}
  .hero-card{width:320px;height:320px}
  /* Reduce 3D effects on mobile */
  .project-card.video-card:hover{transform:translateY(-8px);box-shadow:0 15px 30px rgba(0,0,0,0.2)}
}
@media (max-width:480px){
  .projects-marquee .projects-list{gap:16px}
  .project-card.video-card{border-radius:14px}
}

/* Assessment page styles removed (assessment feature removed) */

/* Improve contrast on dark areas */
.hero-full{color:#0b1220}
.hero-giant,.accent-name{color:var(--text-dark)}
.hero-lead{color:#33404a}


/* ---------- New hero-full and project styles ---------- */
.hero-full{min-height:84vh;display:flex;align-items:center;padding:60px 0;background:linear-gradient(120deg,#f7f3ef 0%, #fff 45%)}
.hero-inner{display:grid;grid-template-columns:1fr 480px;gap:36px;align-items:center}
.hero-left{padding:40px 0}
.eyebrow.light{background:#fff;padding:8px 12px;border-radius:999px;color:#333;display:inline-block;font-weight:700;margin-bottom:18px}
.hero-giant{font-size:6rem;line-height:0.9;margin:0;font-family:Georgia, 'Times New Roman', serif;color:#0b1220}
.accent-name{display:inline-block;color:#0b1220;background:linear-gradient(90deg,#ffdfb8,#ffd0a8);padding:6px 10px;border-radius:6px}
.hero-lead{color:#47525a;max-width:54ch;margin-top:18px}
.hero-actions{margin-top:22px;display:flex;gap:12px}

.hero-right{display:flex;justify-content:center}
.hero-card{width:420px;height:420px;border-radius:20px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));box-shadow:0 30px 80px rgba(2,6,23,0.55);display:flex;align-items:flex-end;position:relative;transition:transform .36s cubic-bezier(.2,.9,.25,1),box-shadow .36s ease;transform-style:preserve-3d}

/* Enhanced decorative frame + subtle border ring */
.hero-card::before{content:"";position:absolute;inset:6px;border-radius:16px;padding:2px;pointer-events:none;background:linear-gradient(180deg,rgba(124,92,255,0.06),transparent);mix-blend-mode:overlay;z-index:0}
.hero-card .card-caption{z-index:2}
.hero-card .hero-main,.hero-card .hero-alt,.hero-card .hero-alt2{z-index:1}

/* Tilt variables */
:root{--tilt-max:10deg;--tilt-scale:1.02}
.hero-card.tilt-active{will-change:transform}
.hero-card.tilt-active{box-shadow:0 40px 120px rgba(2,6,23,0.6)}
.hero-card.tilt-active:focus{outline:2px solid rgba(124,92,255,0.14)}

/* Make sure caption remains readable with translucent band */
.card-caption{position:relative;padding:18px 20px;background:linear-gradient(180deg,transparent,rgba(2,6,23,0.45));color:#fff;font-weight:700;z-index:3}

/* Responsive sizing tweaks */
@media (max-width:720px){
  .hero-card{width:320px;height:320px;border-radius:18px}
}

/* Layered hero images for hover swap */
.hero-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .45s cubic-bezier(.2,.9,.25,1),transform .6s cubic-bezier(.2,.9,.25,1)}
.hero-card .hero-main{opacity:1;transform:scale(1)}
.hero-card .hero-alt{opacity:0;transform:scale(1.06);filter:brightness(.98) saturate(.95)}
.hero-card .hero-alt2{opacity:0;transform:scale(1.06);filter:brightness(.98) saturate(.95)}
.hero-card .hero-alt.active,
.hero-card .hero-alt2.active{opacity:1;transform:scale(1);filter:none}
.hero-card .hero-main.hidden{opacity:0;transform:scale(0.98);filter:blur(0.6px)}
.hero-card:hover .hero-main{opacity:0;transform:scale(0.98);filter:blur(0.6px)}
.hero-card:hover .hero-alt{opacity:1;transform:scale(1);filter:none}

/* Subtle lift and rotate on hover for the whole card */
.hero-card:hover{transform:translateY(-8px) rotate(-0.4deg);box-shadow:0 40px 100px rgba(18,22,30,0.16)}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .hero-card img, .hero-card{transition:none}
}
.card-caption{position:relative;padding:20px;background:linear-gradient(180deg,transparent,rgba(0,0,0,0.4));color:#fff;font-weight:700}

.section-title{font-size:28px;margin-bottom:18px;text-transform:uppercase}

/* Horizontal scrolling carousel */
.projects-marquee{
  position:relative;
  overflow:hidden;
  padding:80px 0 20px;
  min-height:380px;
  cursor:grab;
}

.projects-marquee:active{
  cursor:grabbing;
}

.projects-marquee.dragging{
  cursor:grabbing;
}

.projects-list{
  display:flex;
  gap:30px;
  padding:0 20px;
  width:max-content;
  will-change:transform;
}

.projects-marquee .project-card{
  min-width:380px;
  max-width:380px;
  flex-shrink:0;
}

.project-card.video-card{
  width:380px;
  transition:transform 0.3s ease;
}

.project-card.video-card:hover{
  transform:scale(1.05);
}

.project-card{background:#fff;border-radius:16px;overflow:hidden;display:flex;align-items:stretch;padding:12px;gap:12px;min-height:160px}
.project-card img{width:180px;height:120px;object-fit:cover;background:#f3f3f5;padding:8px;display:block;border-radius:6px;flex:0 0 180px}
.project-info{padding:6px 0;color:#0b1220;flex:1;display:flex;flex-direction:column;justify-content:space-between}

/* Video card styles */
.project-card.video-card{
  background:linear-gradient(135deg,rgba(255,255,255,0.08),rgba(255,255,255,0.02));
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.15);
  color:inherit;
  display:block;
  padding:0;
  overflow:hidden;
  position:relative;
  backdrop-filter:blur(12px) saturate(180%);
  cursor:pointer;
  box-shadow:0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
  transition:all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card.video-card .video-thumb{
  width:100%;
  max-height:280px;
  aspect-ratio:16/9;
  position:relative;
  overflow:hidden;
  border-radius:18px;
}

.project-card.video-card .video-thumb video{
  width:100%;
  height:100%;
  object-fit:cover;
  position:absolute;
  top:0;
  left:0;
  opacity:0;
  transition:opacity .5s ease;
  z-index:1;
}

.project-card.video-card .video-thumb .thumb-svg{
  width:100%;
  height:100%;
  display:block;
  position:absolute;
  top:0;
  left:0;
  opacity:1;
  transition:opacity .5s ease;
  z-index:2;
  object-fit:cover;
}

.project-card.video-card:hover .video-thumb video,
.project-card.video-card.card-hover .video-thumb video{
  opacity:1;
  z-index:3;
}

.project-card.video-card:hover .video-thumb .thumb-svg,
.project-card.video-card.card-hover .video-thumb .thumb-svg{
  opacity:0;
}

.video-overlay{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:9;
}

.video-caption{
  display:inline-block;
  background:rgba(0,0,0,0.72);
  color:#fff;
  padding:6px 10px;
  border-radius:8px;
  font-weight:700;
  font-size:0.88rem;
}

/* Hover / focus description for project cards (appears on hover and keyboard focus) */
.card-desc{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  z-index:7;
  /* softer, less obtrusive appearance */
  background:linear-gradient(180deg,rgba(2,6,23,0.48),rgba(2,6,23,0.32));
  color:#f3f4f6;
  padding:8px 10px;
  border-radius:10px;
  font-size:0.9rem;
  line-height:1.25;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .2s ease,transform .2s ease,filter .2s ease;
  pointer-events:none;
  box-shadow:0 6px 18px rgba(2,6,23,0.28);
  backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,0.03);
}
.card-desc p{margin:0;font-weight:500}

/* Reveal on hover and focus-within so keyboard users can tab into the card */
.project-card.video-card:hover .card-desc,
.project-card.video-card:focus-within .card-desc,
.card-desc:focus{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
  filter:blur(0);
}

/* Enhanced focus states for accessibility */
.project-card.video-card:focus{
  outline:2px solid rgba(124,92,255,0.6);
  outline-offset:2px;
}
.card-desc .card-title:focus{
  outline:2px solid rgba(255,255,255,0.6);
  outline-offset:2px;
}
.tech-tag:focus{
  outline:1px solid rgba(255,255,255,0.4);
  outline-offset:1px;
}

/* Improved touch interactions */
@media (hover: none) and (pointer: coarse){
  .project-card.video-card{
    -webkit-tap-highlight-color:transparent;
  }
  .project-card.video-card:active{
    transform:scale(0.98);
    transition:transform 0.1s ease;
  }
  .card-desc{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
  }
}

/* Title inside the description (moved caption) */
.card-desc .card-title{
  display:inline-block;
  background:rgba(0,0,0,0.72);
  color:#fff;
  padding:6px 10px;
  border-radius:8px;
  font-weight:800;
  text-decoration:none;
  margin-bottom:8px;
  box-shadow:0 6px 18px rgba(0,0,0,0.28);
}
.card-desc .card-title:focus,
.card-desc .card-title:hover{
  background:rgba(0,0,0,0.82);
}

/* Card header with title and status */
.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  gap:8px;
}

/* Status badges */
.status-badge{
  padding:4px 8px;
  border-radius:12px;
  font-size:0.75rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.5px;
  flex-shrink:0;
  backdrop-filter:blur(8px);
}
.status-badge.completed{
  background:linear-gradient(135deg,rgba(34,197,94,0.2),rgba(34,197,94,0.1));
  color:#22c55e;
  border:1px solid rgba(34,197,94,0.3);
}
.status-badge.in-progress{
  background:linear-gradient(135deg,rgba(249,115,22,0.2),rgba(249,115,22,0.1));
  color:#f97316;
  border:1px solid rgba(249,115,22,0.3);
}
.status-badge.featured{
  background:linear-gradient(135deg,rgba(168,85,247,0.2),rgba(168,85,247,0.1));
  color:#a855f7;
  border:1px solid rgba(168,85,247,0.3);
}

/* Technology tags */
.tech-tags{
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  margin-bottom:8px;
}
.tech-tag{
  padding:3px 8px;
  background:rgba(255,255,255,0.1);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:8px;
  font-size:0.7rem;
  font-weight:600;
  color:#e2e8f0;
  backdrop-filter:blur(4px);
  transition:all 0.2s ease;
}
.tech-tag:hover{
  background:rgba(255,255,255,0.15);
  border-color:rgba(255,255,255,0.3);
  transform:translateY(-1px);
}

/* Coordinate overlay + description motion for unified effect */
.project-card.video-card:hover .video-overlay,
.project-card.video-card:focus-within .video-overlay{
  transform:translateY(-6px);
}
.project-card.video-card:hover .card-desc,
.project-card.video-card:focus-within .card-desc{
  transform:translateY(-6px);
  transition-delay:0.02s;
}

/* Also respond to the JS-applied class for environments where :hover may not fire */
.project-card.video-card.card-hover .video-overlay{ transform:translateY(-6px); }
.project-card.video-card.card-hover .card-desc{ transform:translateY(-6px); transition-delay:0.02s; opacity:1; pointer-events:auto }

@media (max-width:720px){
  /* On small screens keep the overlay compact and visible on tap/focus */
  .card-desc{font-size:0.9rem;padding:8px;left:8px;right:8px;bottom:8px}
}

/* Advanced hover animation: 3D lift + video scale + dynamic glow + border shimmer */
.project-card.video-card .video-thumb video{transition:transform .5s cubic-bezier(.2,.9,.25,1),filter .3s ease,opacity .3s ease}
.project-card.video-card.active:hover .video-thumb video{transform:scale(1.05);filter:brightness(1.08) contrast(1.05)}
.project-card.video-card.active:hover .video-caption{background:rgba(0,0,0,0.8)}

/* Subtle shadow effect */
.project-card.video-card.active:hover, .project-card.video-card.card-hover{
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.project-card.video-card.active:hover .video-thumb::after,
.project-card.video-card.card-hover .video-thumb::after{
  content:"";
  position:absolute;
  inset: -12px -16px -12px -16px;
  border-radius:12px;
  pointer-events:none;
  background:transparent;
  box-shadow:none;
  opacity:0;
  transition:opacity .3s ease, transform .4s cubic-bezier(.2,.9,.25,1);
  transform:translateY(-4px) scale(1.02);
}
.video-thumb::after{opacity:0;}

@keyframes shimmerPulse{
  0%,100%{opacity:0.8;filter:blur(12px)}
  50%{opacity:1;filter:blur(16px)}
}

@media (prefers-reduced-motion: reduce){
  .project-card.video-card.active:hover, .project-card.video-card.card-hover{box-shadow:0 10px 20px rgba(0,0,0,0.1)}
  .project-card.video-card.active:hover .video-thumb::after, .project-card.video-card.card-hover .video-thumb::after{transition:none}
}

@media (prefers-reduced-motion: reduce){
  .project-card.video-card,.project-card.video-card .video-thumb video{transition:none;animation:none}
  .projects-list .project-card{animation:none;opacity:1;transform:none}
  .project-card.video-card:hover{transform:none;box-shadow:0 5px 15px rgba(0,0,0,0.1)}
  .video-thumb::after{animation:none}
  .projects-list{animation:none !important}
  .marquee-dots .dot{animation:none}
  .card .thumb img,.card .thumb video{transition:none}
}

/* High contrast mode support */
@media (prefers-contrast: high){
  .project-card.video-card{border:2px solid #fff}
  .status-badge{border-width:2px}
  .tech-tag{border-width:2px}
}

/* Print styles */
@media print{
  .project-card.video-card{background:#fff;color:#000;border:1px solid #000}
  .video-thumb{display:none}
  .card-desc{position:static;opacity:1;transform:none}
}

/* Custom pointer label with glow effect */
.project-card.video-card{cursor:pointer}
.pointer-label{position:fixed;left:0;top:0;transform:translate(-50%,-140%);background:linear-gradient(135deg,rgba(124,92,255,0.98),rgba(100,70,220,0.98));color:#fff;padding:8px 14px;border-radius:10px;font-weight:700;font-size:0.9rem;pointer-events:none;z-index:99999;white-space:nowrap;opacity:0;transition:opacity .2s ease,transform .1s cubic-bezier(.2,.9,.25,1);box-shadow:0 4px 12px rgba(0,0,0,0.3);border:1px solid rgba(255,255,255,0.2)}
.pointer-label.show{opacity:1;transform:translate(-50%,-145%) scale(1.05)}

/* Floating badge animation for card labels */
@keyframes floatBadge{
  0%,100%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-4px) rotate(1deg)}
}

/* Ripple effect on click */
@keyframes rippleExpand{
  0%{transform:scale(0);opacity:1}
  100%{transform:scale(40);opacity:0}
}

@media (prefers-reduced-motion: reduce){
  .project-card{ transition:none }
}

@media (prefers-reduced-motion: reduce){
  .pointer-label{transition:none}
}

/* Lightbox for expanded preview */
.thumb-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,6,23,0.78);z-index:9999;padding:20px}
.thumb-lightbox.open{display:flex}
.thumb-frame{max-width:92%;max-height:92%;background:transparent;padding:8px;border-radius:10px;position:relative}
.thumb-frame video{width:100%;height:auto;max-height:80vh;border-radius:8px;display:block}
.thumb-lb-close{position:absolute;right:-4px;top:-18px;background:#111;border:0;color:#fff;padding:8px 10px;border-radius:8px;font-size:16px;cursor:pointer}

@media (max-width:720px){
  .overlay-link,.overlay-expand{padding:6px 8px;font-size:.9rem}
  .thumb-lb-close{top:-12px;right:-6px}
  .project-card.video-card{min-height:160px}
  .project-card.video-card .video-thumb{width:100%;aspect-ratio:16/9;height:auto;max-height:160px}
  .video-overlay{left:8px;bottom:8px}
  .video-caption{padding:5px 7px;font-size:0.85rem}
}

/* Accent animated gradient for name */
.accent-name{background:linear-gradient(90deg,var(--accent-2),var(--accent));background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:accentShift 4s linear infinite}
@keyframes accentShift{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}

/* Decorative hero blob */
.hero-full{position:relative;overflow:visible}
.hero-full::before{content:"";position:absolute;right:-8%;top:-10%;width:420px;height:420px;background:radial-gradient(circle at 30% 30%, rgba(124,92,255,0.14), transparent 30%);filter:blur(48px);pointer-events:none;z-index:0}
.hero-inner{position:relative;z-index:1}

/* Skill chips */
.skill-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.skill-chip{display:inline-block;padding:8px 12px;border-radius:999px;background:linear-gradient(180deg,#f3f3f5,#eef1f6);color:#0b1220;font-weight:700;font-size:0.95rem}

/* Scroll indicator */
.hero-scroll{display:flex;justify-content:center;margin-top:18px}
.scroll-indicator{width:28px;height:44px;border:2px solid rgba(11,17,32,0.08);border-radius:16px;position:relative}
.scroll-indicator .dot{width:6px;height:6px;background:rgba(11,17,32,0.6);border-radius:999px;position:absolute;left:50%;top:8px;transform:translateX(-50%);animation:scrollDot 1.6s infinite}
@keyframes scrollDot{0%{top:8px;opacity:0}50%{top:18px;opacity:1}100%{top:28px;opacity:0}}

@media (max-width:820px){
  .project-card img{height:120px}
}
.project-info h3{margin:0 0 6px;color:#0b1220;font-weight:800}
.project-info p{margin:0;color:#6b7280;overflow:hidden;max-height:6.6em;line-height:1.2em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;line-clamp:5}
.project-placeholder{height:140px;width:220px;background:#f3f3f5;display:flex;align-items:center;justify-content:center;font-size:32px;color:#63666d}

/* Projects section on dark page background: make title light */
#projects .section-title{color:#e6eef8}

/* Ensure section titles on white backgrounds are dark */
.services-section .section-title,
.experience-section .section-title,
.workstation-section .section-title{color:#0b1220}

.services-section{background:#fff;color:#0b1220}
.services-inner{padding:28px;border-radius:10px;color:inherit}
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}
.service-card{background:#fff;border-radius:8px;padding:18px;border:1px solid #eee;color:inherit}
.service-card h4{margin:0 0 8px;color:inherit}
.service-card p{margin:0;color:#56636a}

.experience-section{background:#fff;color:#0b1220}
.skills-table{width:100%;border-collapse:collapse;margin-top:12px}
.skills-table th{ text-align:left;padding:10px 12px;border-bottom:2px solid #eee;color:#222}
.skills-table td{padding:12px;border-bottom:1px solid #f1f1f1;color:#444}

.workstation-section{background:#fff;padding:28px;border-radius:10px;color:#0b1220}
.workstation-section{background:#fff;padding:28px;border-radius:10px;color:#0b1220}
.workstation-icons{display:flex;gap:14px;flex-wrap:wrap;align-items:center}
.ws-item{width:120px;height:120px;background:#f7f8fb;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(2,6,23,0.06);transition:transform .24s ease,box-shadow .24s ease}
.ws-item:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(2,6,23,0.08)}
.ws-icon{width:44px;height:44px;color:var(--accent)}
.ws-label{margin-top:10px;font-weight:700;color:#33404a}

/* Contact form on white bg */
.contact input, .contact textarea{background:#fff;color:#0b1220;border:1px solid #e6e6e9}
.contact .btn.primary{color:#041021}

/* Responsive tweaks for new layout */
@media (max-width:1100px){
  .hero-inner{grid-template-columns:1fr 360px}
  .hero-giant{font-size:4.5rem}
  .projects-marquee .project-card{min-width:340px;max-width:340px}
  .project-card.video-card{width:340px}
}
/* Enhanced responsive design */
@media (min-width: 1400px){
  .projects-list{gap:40px}
  .projects-marquee .project-card{min-width:420px;max-width:420px}
  .project-card.video-card{width:420px}
}

@media (max-width:1200px){
  .projects-marquee .project-card{min-width:360px;max-width:360px}
  .project-card.video-card{width:360px}
}

@media (max-width:992px){
  .projects-marquee .project-card{min-width:320px;max-width:320px}
  .project-card.video-card{width:320px}
}

@media (max-width:820px){
  .hero-inner{grid-template-columns:1fr}
  .hero-right{order:-1;margin-bottom:18px}
  .hero-giant{font-size:3.2rem}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .thumbs{overflow:auto}
  
  .projects-marquee{padding:40px 0;min-height:auto}
  .projects-list{flex-direction:column;gap:24px;padding:0 20px;animation:none;width:100%}
  .projects-marquee .project-card{min-width:100%;max-width:100%}
  .project-card.video-card{width:100%;max-width:500px;margin:0 auto}
  .projects-marquee .project-card.video-card.active,
  .projects-marquee .project-card.video-card.left,
  .projects-marquee .project-card.video-card.right{position:static !important;transform:none !important;filter:none !important;opacity:1 !important}
  .marquee-dots{display:flex !important; flex-wrap: wrap; gap: 8px;}
  
  /* Better mobile touch targets */
  .card-desc{padding:12px 14px}
  .card-desc .card-title{padding:8px 12px;min-height:44px;display:flex;align-items:center}
  .tech-tag{padding:6px 10px;font-size:0.75rem}
  .status-badge{padding:6px 10px}
}

/* Corner accent styling */
.corner-accent{
  position:absolute;
  top:15px;
  right:15px;
  width:28px;
  height:28px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  border-radius:50%;
  opacity:0.9;
  z-index:5;
  box-shadow:0 4px 12px rgba(124,92,255,0.3);
  transition:all 0.3s ease;
}
.project-card.video-card:hover .corner-accent{
  transform:scale(1.1) rotate(90deg);
  opacity:1;
  box-shadow:0 6px 20px rgba(124,92,255,0.4);
}

/* Performance optimizations */
.project-card.video-card{
  will-change:transform;

}

/* Enhanced card interaction feedback */
.project-card.video-card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:20px;
  padding:2px;
  background:linear-gradient(45deg,transparent,rgba(255,255,255,0.1),transparent);
  opacity:0;
  transition:opacity 0.3s ease;
}
.project-card.video-card:hover::before{
  opacity:1;
}

/* Projects header with scroll controls */
.projects-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

/* Scroll controls styling */
.scroll-controls{
  display:flex;
  gap:8px;
}

.scroll-btn{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.15);
  background:linear-gradient(135deg,rgba(255,255,255,0.08),rgba(255,255,255,0.02));
  backdrop-filter:blur(12px);
  color:#e6eef8;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.scroll-btn:hover{
  transform:translateY(-2px) scale(1.05);
  background:linear-gradient(135deg,rgba(255,255,255,0.15),rgba(255,255,255,0.05));
  border-color:rgba(124,92,255,0.3);
  box-shadow:0 8px 24px rgba(124,92,255,0.2);
  color:#fff;
}

.scroll-btn:active{
  transform:translateY(0) scale(0.98);
}

.scroll-btn svg{
  transition:transform 0.2s ease;
}

.scroll-btn:hover svg{
  transform:translateX(2px);
}

.scroll-left:hover svg{
  transform:translateX(-2px);
}

/* Enhanced corner accent animation */
.project-card.video-card:hover .corner-accent{
  animation:cornerSpin 2s linear infinite;
}

@keyframes cornerSpin{
  0%{transform:scale(1) rotate(0deg)}
  50%{transform:scale(1.2) rotate(180deg)}
  100%{transform:scale(1) rotate(360deg)}
}

/* Magnetic cursor effect on cards */
.project-card.video-card{
  position:relative;
}

.project-card.video-card:hover{
  cursor:grab;
}

.project-card.video-card:active{
  cursor:grabbing;
}

/* Ripple effect on card interaction */
@keyframes ripple{
  0%{
    transform:scale(0);
    opacity:0.6;
  }
  100%{
    transform:scale(4);
    opacity:0;
  }
}

.ripple-effect{
  position:absolute;
  border-radius:50%;
  background:rgba(124,92,255,0.3);
  width:20px;
  height:20px;
  animation:ripple 0.6s linear;
  pointer-events:none;
}

/* Responsive scroll controls */
@media (max-width:768px){
  .projects-header{
    flex-direction:column;
    gap:16px;
    align-items:flex-start;
  }
  
  .scroll-controls{
    align-self:flex-end;
  }
  
  .scroll-btn{
    width:40px;
    height:40px;
  }
}
/* Projects header with dot controls */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Dot controls styling */
.dot-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.dot-btn:hover {
  border-color: rgba(124, 92, 255, 0.6);
  transform: scale(1.2);
}

.dot-btn.active {
  background: linear-gradient(135deg, #7c5cff, #ff9f5a);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.4);
}

.dot-btn:active {
  transform: scale(0.9);
}

/* Highlighted project card */
.project-card.highlighted {
  transform: translateY(-20px) scale(1.08) !important;
  box-shadow: 0 30px 60px rgba(124, 92, 255, 0.3), 0 15px 30px rgba(0, 0, 0, 0.2) !important;
  border: 2px solid rgba(124, 92, 255, 0.5);
  z-index: 10;
  position: relative;
}

.project-card.highlighted .corner-accent {
  animation: cornerSpin 1s linear infinite;
}

/* Pause animation state */
.projects-list.paused {
  animation-play-state: paused;
}

/* Enhanced corner accent animation */
.project-card.video-card:hover .corner-accent {
  animation: cornerSpin 2s linear infinite;
}

@keyframes cornerSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

/* Magnetic cursor effect on cards */
.project-card.video-card {
  position: relative;
}

.project-card.video-card:hover {
  cursor: grab;
}

.project-card.video-card:active {
  cursor: grabbing;
}

/* Ripple effect on card interaction */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(124, 92, 255, 0.3);
  width: 20px;
  height: 20px;
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Responsive dot controls */
@media (max-width: 768px) {
  .projects-header {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }
  
  .dot-controls {
    gap: 10px;
  }
  
  .dot-btn {
    width: 10px;
    height: 10px;
  }
}

/* ===== SCROLL ANIMATIONS & ENHANCED STYLING ===== */

/* Animation Framework */
.animate-slide-down {
  transform: translateY(-50px);
  opacity: 0;
  animation: slideDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-up {
  transform: translateY(60px);
  opacity: 0;
}

.animate-slide-up.animate-visible {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-text-reveal {
  transform: translateY(30px);
  opacity: 0;
}

.animate-text-reveal.animate-visible {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-text-slide {
  display: inline-block;
  transform: translateY(40px);
  opacity: 0;
}

.animate-text-slide.animate-visible {
  transform: translateY(0);
  opacity: 1;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-float-in {
  transform: translateY(80px) scale(0.9);
  opacity: 0;
}

.animate-float-in.animate-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Text Effects */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--accent);
  white-space: nowrap;
  animation: typewriter 2s steps(30, end) 1s both, blink 0.8s step-end infinite 1s;
}

/* Enhanced Button Animations */
.pulse-button {
  position: relative;
  overflow: hidden;
}

.pulse-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.pulse-button:hover::before {
  left: 100%;
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.pulse-glow:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow), var(--shadow-strong);
}

.hover-lift {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Floating Elements */
.floating-element {
  animation: float 6s ease-in-out infinite;
  animation-delay: calc(var(--index, 0) * 0.5s);
}

/* Skills Animations */
.skill-category {
  margin-bottom: 24px;
}

.skill-category-title {
  color: var(--text-light);
  font-size: 1.1em;
  margin-bottom: 12px;
  display: block;
}

.stagger-animation .animate-skill {
  transform: translateY(30px) scale(0.8);
  opacity: 0;
}

.stagger-animation.animate-visible .animate-skill {
  animation: skillReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-skill[data-index="0"] { animation-delay: 0.1s; }
.animate-skill[data-index="1"] { animation-delay: 0.2s; }
.animate-skill[data-index="2"] { animation-delay: 0.3s; }
.animate-skill[data-index="3"] { animation-delay: 0.4s; }
.animate-skill[data-index="4"] { animation-delay: 0.5s; }
.animate-skill[data-index="5"] { animation-delay: 0.6s; }
.animate-skill[data-index="6"] { animation-delay: 0.7s; }

/* Navigation Animations */
.nav-link-animate {
  transition: all 0.3s ease;
  position: relative;
}

.nav-link-animate::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link-animate:hover::after {
  width: 80%;
}

/* Keyframe Animations */
@keyframes slideDown {
  0% { transform: translateY(-50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes typewriter {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes blink {
  0%, 50% { border-color: var(--accent); }
  51%, 100% { border-color: transparent; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes skillReveal {
  0% {
    transform: translateY(30px) scale(0.8);
    opacity: 0;
  }
  60% {
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
  }
  100% {
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.6);
  }
}

/* Enhanced Glassmorphism */
.enhanced-glass {
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-glow);
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 1;
}

.scroll-animate [data-scroll="true"] {
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-visible [data-scroll="true"] {
  transform: translateY(0);
  opacity: 1;
}

/* ========== MOBILE CARD FIXES ========== */

/* Mobile Projects Section */
@media (max-width: 768px) {
  .projects-marquee {
    padding: 40px 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  .projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
  }
  
  .projects-marquee .project-card,
  .project-card.video-card {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
  }
  
  .project-card.video-card .video-thumb {
    max-height: 200px;
    aspect-ratio: 16/9;
  }
  
  .card-desc {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(15, 20, 35, 0.95);
    border-radius: 0 0 16px 16px;
    padding: 15px;
    margin-top: -5px;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .tech-tags {
    gap: 6px;
  }
  
  .tech-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
  }
  
  .card-desc p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .corner-accent {
    display: none;
  }
  
  .project-card.video-card:hover {
    transform: none;
  }
  
  .floating-element {
    animation-duration: 4s;
  }
  
  .typewriter {
    font-size: 0.9em;
  }
  
  .gradient-text {
    background-size: 200% 200%;
  }
}

@media (max-width: 480px) {
  .projects-list {
    padding: 0 10px;
    gap: 16px;
  }
  
  .project-card.video-card {
    border-radius: 14px;
  }
  
  .project-card.video-card .video-thumb {
    max-height: 180px;
    border-radius: 14px 14px 0 0;
  }
  
  .card-desc {
    padding: 12px;
    border-radius: 0 0 14px 14px;
  }
  
  .card-title {
    font-size: 1rem;
  }
  
  .status-badge {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
  
  .tech-tags {
    flex-wrap: wrap;
  }
  
  .tech-tag {
    font-size: 0.6rem;
    padding: 3px 6px;
  }
  
  .card-desc p {
    font-size: 0.8rem;
  }
  
  /* Hero adjustments for small screens */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .hero-left {
    padding: 20px 0;
  }
  
  .hero-giant {
    font-size: 2.5rem;
  }
  
  .hero-card {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* Ensure cards stack properly */
@media (max-width: 768px) {
  .projects-marquee {
    overflow: visible !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  
  .projects-marquee .projects-list,
  .projects-marquee .projects-grid,
  .projects-grid,
  .projects-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 24px !important;
    padding: 0 16px !important;
    animation: none !important;
    transform: none !important;
  }
  
  .projects-marquee .project-card,
  .projects-marquee .project-card.video-card,
  .project-card,
  .project-card.video-card {
    min-width: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    flex: none !important;
    box-sizing: border-box !important;
  }
  
  .card-desc {
    position: relative !important;
    opacity: 1 !important;
    display: block !important;
  }
  
  .marquee-dots-wrapper {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-slide-down,
  .animate-fade-in,
  .animate-slide-up,
  .animate-text-reveal,
  .animate-text-slide,
  .animate-float-in,
  .floating-element,
  .pulse-glow,
  .typewriter {
    animation: none;
    transform: none;
    opacity: 1;
  }
}

