:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --line:#dbe4ee;
  --primary:#0f3d5e;
  --primary-2:#145580;
  --accent:#0ea5e9;
  --accent-2:#14b8a6;
  --dark:#0b1220;
  --shadow:0 18px 45px rgba(15,23,42,.10);
  --radius:22px;
  --max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14,165,233,.10), transparent 25%),
    radial-gradient(circle at top right, rgba(20,184,166,.08), transparent 20%),
    var(--bg);
  color:var(--text);
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{
  width:min(var(--max), calc(100% - 28px));
  margin:0 auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(11,18,32,.88);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.navbar{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  color:#fff;
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:.02em;
}
.nav-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.nav-links a{
  color:#dbeafe;
  font-weight:600;
  font-size:.95rem;
  padding:10px 14px;
  border-radius:999px;
  transition:.25s ease;
}
.nav-links a:hover,
.nav-links a.active{
  background:rgba(255,255,255,.10);
  color:#fff;
}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(135deg, rgba(11,18,32,.92), rgba(15,61,94,.82)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1600&auto=format&fit=crop") center/cover no-repeat;
  color:#fff;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, transparent, rgba(11,18,32,.28));
}
.hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr;
  gap:26px;
  padding:72px 0 62px;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
  font-size:.82rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#dbeafe;
  margin-bottom:16px;
}
.hero h1{
  margin:0 0 14px;
  font-size:clamp(2.2rem, 5vw, 4.4rem);
  line-height:1.02;
  letter-spacing:-.04em;
}
.hero p{
  margin:0;
  max-width:760px;
  color:#dbe7f3;
  line-height:1.8;
  font-size:clamp(1rem, 1.8vw, 1.12rem);
}
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:26px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 18px;
  border-radius:14px;
  font-weight:700;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  color:#fff;
  box-shadow:0 14px 28px rgba(14,165,233,.28);
}
.btn-secondary{
  background:rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.hero-stats{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin-top:28px;
}
.stat{
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:16px;
}
.stat strong{
  display:block;
  color:#fff;
  font-size:1.2rem;
  margin-bottom:4px;
}
.stat span{
  color:#dbeafe;
  font-size:.92rem;
}

/* Generic sections */
.section{padding:54px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing:-.03em;
}
.section-head p{
  margin:0;
  max-width:760px;
  color:var(--muted);
  line-height:1.8;
}
.grid{
  display:grid;
  gap:20px;
}
.grid-2{grid-template-columns:1fr}
.grid-3{grid-template-columns:1fr}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card-pad{padding:24px}
.feature-card{
  position:relative;
  overflow:hidden;
}
.feature-card::before{
  content:"";
  position:absolute;
  left:-45px;
  bottom:-45px;
  width:130px;
  height:130px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(14,165,233,.10), transparent 70%);
}
.icon-badge{
  width:52px;
  height:52px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg, rgba(14,165,233,.12), rgba(20,184,166,.12));
  color:var(--accent);
  font-size:1.1rem;
  margin-bottom:16px;
}
.feature-card h3{
  margin:0 0 10px;
  font-size:1.12rem;
}
.feature-card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
.split{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.panel-title{
  margin:0 0 14px;
  font-size:1.15rem;
}
.soft-list{
  display:grid;
  gap:12px;
}
.soft-list .item{
  display:flex;
  gap:14px;
  align-items:flex-start;
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:18px;
  padding:15px 16px;
}
.soft-list .item i{
  color:var(--accent-2);
  margin-top:4px;
}
.soft-list h4{
  margin:0 0 4px;
  font-size:1rem;
}
.soft-list p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}
.logo-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.logo-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:20px;
  padding:18px;
  min-height:140px;
  display:grid;
  place-items:center;
  box-shadow:var(--shadow);
}
.logo-card img{
  max-height:56px;
  width:auto;
  object-fit:contain;
}
.project-card{
  display:grid;
  grid-template-columns:1fr;
  overflow:hidden;
}
.project-card img{
  width:100%;
  height:230px;
  object-fit:cover;
}
.project-card .content{
  padding:24px;
}
.project-card h3{
  margin:0 0 10px;
  font-size:1.24rem;
}
.project-card p{
  margin:0 0 16px;
  color:var(--muted);
  line-height:1.8;
}
.bullets{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}
.bullets li{
  margin-bottom:8px;
  line-height:1.75;
}

/* Resume page */
.resume-shell{
  display:grid;
  grid-template-columns:1fr;
  overflow:hidden;
}
.resume-left{
  background:linear-gradient(180deg, var(--primary), var(--primary-2));
  color:#fff;
  padding:28px 22px;
}
.resume-right{
  padding:28px 24px;
}
.resume-photo{
  width:164px;
  height:164px;
  border-radius:50%;
  object-fit:cover;
  border:5px solid rgba(255,255,255,.96);
  box-shadow:0 16px 36px rgba(2,8,23,.25);
  margin:0 auto 18px;
}
.resume-name{
  text-align:center;
  font-size:1.9rem;
  font-weight:800;
  letter-spacing:-.03em;
}
.resume-role{
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.83rem;
  color:#dbeafe;
  margin-top:6px;
}
.resume-download{
  margin:18px auto 8px;
  display:flex;
  justify-content:center;
}
.resume-download .btn{
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
}
.resume-side-section{margin-top:24px}
.resume-side-section h3{
  margin:0 0 10px;
  font-size:.82rem;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:#dbeafe;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.resume-side-list{
  display:grid;
  gap:10px;
}
.resume-side-list p,
.resume-side-list li{
  margin:0;
  font-size:.95rem;
  line-height:1.58;
  color:#f8fbff;
}
.resume-side-list ul{
  margin:0;
  padding-left:18px;
}
.resume-main-section + .resume-main-section{margin-top:26px}
.resume-main-section h2{
  margin:0 0 12px;
  font-size:1.18rem;
  letter-spacing:-.02em;
  padding-bottom:10px;
  border-bottom:2px solid #e5eef7;
}
.resume-main-section p{
  margin:0 0 12px;
  color:#475569;
  line-height:1.8;
}
.timeline{
  display:grid;
  gap:18px;
}
.timeline-item{
  position:relative;
  padding-left:22px;
}
.timeline-item::before{
  content:"";
  position:absolute;
  left:0;
  top:5px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
}
.timeline-item::after{
  content:"";
  position:absolute;
  left:4px;
  top:18px;
  bottom:-18px;
  width:2px;
  background:#dbeafe;
}
.timeline-item:last-child::after{display:none}
.timeline-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  align-items:baseline;
}
.timeline-top h3{
  margin:0;
  font-size:1.03rem;
}
.timeline-top span{
  color:var(--muted);
  font-weight:600;
  font-size:.92rem;
}
.timeline-sub{
  color:#334155;
  font-weight:700;
  margin:6px 0 8px;
}
.timeline-item ul{
  margin:0;
  padding-left:18px;
  color:#475569;
}
.timeline-item li{
  margin-bottom:8px;
  line-height:1.75;
}
.skill-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.skill-chip{
  background:#f8fbff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 12px;
  font-size:.95rem;
  font-weight:600;
  color:#334155;
}

/* Contact page */
.contact-hero{
  background:linear-gradient(135deg,#0b1220,#172554);
}
.contact-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.contact-card h3{
  margin:0 0 10px;
}
.contact-card p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}
.contact-actions{
  display:grid;
  gap:12px;
  margin-top:16px;
}
.contact-link{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fbff;
  border:1px solid var(--line);
  font-weight:700;
  color:#1e293b;
}
.contact-link i{
  color:var(--accent);
}

/* Footer */
.footer{
  background:var(--dark);
  color:#cbd5e1;
  margin-top:48px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:22px 0;
  font-size:.95rem;
}

/* Effects */
.reveal{
  opacity:0;
  transform:translateY(18px);
  animation:fadeUp .7s ease forwards;
}
.reveal-2{animation-delay:.10s}
.reveal-3{animation-delay:.20s}
.reveal-4{animation-delay:.30s}
@keyframes fadeUp{
  to{opacity:1;transform:none}
}

@media (min-width:760px){
  .hero-inner{grid-template-columns:1.2fr .8fr;align-items:end}
  .hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .split{grid-template-columns:1.1fr .9fr}
  .project-card{grid-template-columns:1fr 1fr}
  .resume-shell{grid-template-columns:320px 1fr}
  .contact-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:759px){
  .navbar{
    align-items:flex-start;
    flex-direction:column;
    padding:10px 0;
  }
  .nav-links{width:100%}
  .nav-links a{padding:10px 12px}
}
