/* ========== Base ========== */
:root{
  --bg-1:#061523;
  --panel-1:#0b1b2a;
  --panel-2:#0f2438;
  --teal:#00e5ff;
  --teal-2:#00ffaa;
  --text:#c9d6e3;
  --muted:#9fb2c6;
  --shadow:0 6px 15px rgba(0,255,255,.10);
  --shadow-hover:0 10px 25px rgba(0,255,255,.28);
  --radius:14px;
}

a {
    color: var(--teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--teal-2);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg-1);
  color:var(--text);
  font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
}
.container{max-width:1100px;margin:0 auto;padding:0 24px}

/* ========== Hero ========== */
.hero{
  position:relative;
  background:linear-gradient(120deg,#020c1b,#0a192f,#001a33);
  color:#fff;
  text-align:center;
  padding:6rem 2rem 5rem;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(120deg,#00e5ff33,#00ffaa33,#00e5ff33);
  background-size:400% 400%;
  animation:heroFlow 10s ease infinite;
  opacity:.18;z-index:0;
}
@keyframes heroFlow{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.hero h1{position:relative;z-index:1;font-size:3.6rem;font-weight:800;letter-spacing:.5px;text-shadow:0 0 10px var(--teal),0 0 18px #00ffaa55}
.hero h2{position:relative;z-index:1;color:var(--teal);margin:.8rem 0 0;font-weight:600}
.hero p{position:relative;z-index:1;max-width:820px;margin:1rem auto 0;color:#cbd5e1}
.hero a{color:var(--teal);text-decoration:none}
.hero a:hover{color:var(--teal-2);text-shadow:0 0 6px var(--teal-2)}

.hero .container,
.hero .contact-links {
  position: relative;
  z-index: 2;
  text-align:center
}

/* ====================== HERO SEPARATOR ======================= */
.hero-sep{
  position:relative;
  width:100%;
  height:120px;
  background:var(--page-bg);
  margin-top:-1px;
  overflow:hidden;
  z-index:1;
}

.hero-wave{
  position:absolute;
  inset:0;
  width:115%;
  height:100%;
  pointer-events:none;
  animation:sepDrift 14s linear infinite;
}

/* horizontal gentle drift (your original) */
@keyframes sepDrift{
  from{ transform: translateX(0); }
  to{   transform: translateX(-80px); }
}

/* lower fill matches background */
.sep-fill{ fill:var(--bg-1); }

/* stroke base */
.sep-stroke{
  stroke-linecap:round;
}

/* ===============================================================
   🔥 NEW ENHANCEMENTS — fully backward compatible
   ============================================================== */

/* 1) Soft floating motion (vertical breathing) */
.sep-stroke {
  animation: waveFloat 6s ease-in-out infinite;
}

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

/* 2) Slow color shimmer inside gradient */
#sepGrad stop {
  animation: gradShift 8s ease-in-out infinite;
}

@keyframes gradShift {
  0%   { stop-color: #00e5ff; }
  50%  { stop-color: #00ffaa; }
  100% { stop-color: #00e5ff; }
}

/* 3) Slightly stronger glow for visibility */
svg filter#softGlow feGaussianBlur {
  stdDeviation: 7;
}

/* =============================================================== */

/* ========== Section headings, hr ========== */
.section h3{margin:2.2rem 0 1.2rem;font-size:1.4rem}
hr{border:0;border-top:1px solid rgba(255,255,255,.12);margin:2.5rem 0}

/* ========== ROLLBACK conflicting experimental styles ========== */
.cards-grid,.card,.card-figure,.card-overlay-title,.card-body{
  background:none;box-shadow:none;border:0;margin:0;padding:0;
}
.card-figure,.card-overlay-title{display:none}
.cards-grid{display:block}
.card-overlay-title:hover{
    text-decoration: underline;
}

/* ========== GRID ========== */
.project-grid,
.teaching-grid,
.columns-2,
.cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}

/* ========== Cards ========== */
.project-card,
.experience-card,
.research-card,
.card{
  background:linear-gradient(180deg,var(--panel-1),var(--panel-2));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.project-card:hover,
.experience-card:hover,
.research-card:hover,
.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-hover);
  background:linear-gradient(180deg,#0e2639,#143652);
}

/* titles */
.project-card h4 a,
.card .card-title a,
.experience-card h4,
.research-card h4{
  color:var(--teal);
  text-decoration:none;
  font-weight:700;
}
.project-card h4 a:hover,
.card .card-title a:hover{color:var(--teal-2);text-shadow:0 0 6px var(--teal-2)}

.tools,.date,.card-desc{color:var(--muted)}

/* ========== Skills ========== */
.skills-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:20px;
}
.skills-list h4{margin:.25rem 0 .5rem}

/* ========== Two-column layout ========== */
.columns-2{
  grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
}

/* ========== Footer ========== */
footer{color:#9fb2c6;text-align:center;padding:2rem 0 3rem}

/* ========== Responsive hero ========== */
@media (max-width:1024px){
  .hero{padding:5rem 1.5rem 4.5rem}
  .hero h1{font-size:2.8rem}
  .hero h2{font-size:1.2rem}
}
@media (max-width:768px){
  .hero h1{font-size:2.3rem;text-shadow:0 0 6px #00e5ff55}
  .hero h2{font-size:1.05rem}
}
@media (max-width:480px){
  .hero{padding:3.5rem 1rem 3.5rem}
  .hero h1{font-size:1.9rem}
  .hero h2{font-size:.98rem}
}
