/* Root – calm, professional palette */
:root{
  --bg-1:#0f172a;        /* deep navy */
  --bg-2:#1e293b;        /* slate gray-blue */
  --bg-3:#0d9488;        /* teal blend in gradient */
  --text:#f9f9f9;        /* near-white text */
  --muted:#94a3b8;       /* muted slate */
  --card:rgba(255,255,255,0.05);
  --border:rgba(255,255,255,0.10);
  --accent:#2dd4bf;      /* primary teal */
  --accent-strong:#0d9488; /* darker teal for hover/focus */
  --max:1100px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color:var(--text);
  background:linear-gradient(135deg,var(--bg-1),var(--bg-2),var(--bg-3));
  background-size:300% 300%;
  animation:gradientShift 16s ease infinite;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
@keyframes gradientShift{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  backdrop-filter:saturate(140%) blur(8px);
  background:linear-gradient(to bottom, rgba(2,6,23,0.55), rgba(2,6,23,0.25));
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;gap:12px;flex-wrap:wrap;
}

/* ---- TEXT LOGO (one line, pipe, teal accent on MORE.) ---- */
.logo-text{
  display:flex;align-items:baseline;gap:12px;line-height:1.05;
  user-select:none;white-space:nowrap;
}
.logo-text .name{
  font-family:'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight:700;letter-spacing:2px;font-size:1.55rem;text-transform:uppercase;
  background:linear-gradient(180deg,#ffffff,#cbd5e1,#64748b);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  color:#e2e8f0; /* fallback */
}
.logo-text .tagline{
  font-family:'Montserrat', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing:3px;font-size:.95rem;color:#cbd5e1;text-transform:uppercase;
  display:inline-flex;align-items:baseline;
}
.logo-text .tagline::before{
  content:"|";color:var(--muted);margin:0 10px 0 2px;font-weight:400;
}
.logo-text .more{ color:var(--accent); }

/* Responsive logo behavior */
@media (max-width:520px){
  .logo-text{white-space:normal;flex-direction:column;gap:4px}
  .logo-text .tagline::before{content:"";margin:0}
  .logo-text .name{font-size:1.35rem;letter-spacing:1.5px}
  .header-actions{width:100%;justify-content:flex-start}
}
@media (min-width:1024px){ .logo-text .name{font-size:1.75rem} }

/* Nav buttons */
.header-actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{
  display:inline-block;border:1px solid var(--border);
  padding:10px 14px;border-radius:10px;font-weight:600;
  transition:transform .04s ease, background .25s ease, border-color .25s ease
}
.btn:hover{transform:translateY(-1px)}
.btn.solid{background:var(--accent);color:#0b1b2b;border-color:transparent}
.btn.solid:hover{background:var(--accent-strong);color:#e6fffb}
.btn.ghost{background:transparent;color:var(--text)}

/* Hero */
.hero{padding:56px 0 24px}
.hero-inner{
  display:grid;gap:24px;align-items:stretch;
  grid-template-columns:1.1fr .9fr;
}
@media (max-width:900px){ .hero-inner{grid-template-columns:1fr} }
.hero-title{margin:0 0 6px 0;font-size:2rem;color:#eaf2ff}
.hero-subtitle{margin:0 0 14px 0;color:var(--muted)}
.hero-body{margin:0;color:#e6e6e6;max-width:70ch}
.hero-cta{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}

/* Cards */
.hero-card,
.card,
.skill{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow:0 8px 28px rgba(0,0,0,.35);
}
.quick-facts{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.quick-facts li{color:#e5f2f2}
.quick-facts span{color:var(--muted)}

/* Sections */
.section{padding:32px 0}
.section-title{margin:0 0 16px 0;font-size:1.4rem;color:#eaf2ff}

/* Cards grid */
.grid.cards{
  display:grid;gap:16px;grid-template-columns:repeat(3,1fr);
}
@media (max-width:1000px){ .grid.cards{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid.cards{grid-template-columns:1fr} }

.card h4{margin:0 0 8px 0;color:#f1fbff}
.card p{margin:0 0 10px 0;color:#dbe7ee}
.tags{list-style:none;padding:0;margin:0;display:flex;gap:8px;flex-wrap:wrap}
.tags li{
  font-size:.85rem;color:#e8ffff;border:1px solid var(--border);
  border-radius:999px;padding:6px 10px;background:rgba(255,255,255,0.04)
}

/* Skills grid */
.grid.skills{
  display:grid;gap:16px;grid-template-columns:repeat(3,1fr);
}
@media (max-width:1000px){ .grid.skills{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid.skills{grid-template-columns:1fr} }
.skill h5{margin:0 0 8px 0;color:#eaf2ff}
.skill p{margin:0 0 10px 0;color:#dbe7ee}
.bullets{margin:0;padding-left:18px}
.bullets li{margin:6px 0}

/* Contact */
.contact{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap
}
.cta-stack{display:flex;gap:10px;flex-wrap:wrap}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:24px 0;margin-top:12px;
  background:linear-gradient(to top, rgba(2,6,23,0.45), rgba(2,6,23,0.15));
}
.site-footer p{margin:0;color:var(--muted)}

/* Accessibility & motion */
.btn{min-height:44px}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important}
}
