:root{
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --bg:#0b1020;
  --card:#0b1224;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --border:rgba(148,163,184,.18);
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --glow:0 0 0 1px rgba(37,99,235,.15), 0 8px 30px rgba(37,99,235,.12);
}

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

body{
  font-family:'Inter',sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1f2a68 0%, transparent 55%),
    radial-gradient(1000px 500px at 100% 0%, #3b165f 0%, transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.6;
  min-height:100vh;
}

.container{
  max-width:1000px;
  margin:0 auto;
  padding:0 18px;
}

/* ================= HEADER ================= */
.header{
  padding:42px 0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:48px;
  height:48px;
  border-radius:12px;
  background:linear-gradient(140deg,#2563eb,#7c3aed);
  display:grid;
  place-items:center;
  color:white;
  font-weight:900;
  font-size:20px;
  box-shadow:var(--glow);
}

.brand h1{
  font-size:2rem;
  font-weight:800;
  letter-spacing:-.02em;
  background:linear-gradient(90deg,#60a5fa,#a78bfa);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.brand p{
  color:var(--muted);
  font-size:.98rem;
  margin-top:3px;
}

/* ================= PROFILE ================= */
.profile{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:999px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(6px);
}

.profile img{
  width:42px;
  height:42px;
  border-radius:999px;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.08);
  background:#111827;
}

.profile .info{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.profile .name{
  font-weight:800;
  font-size:.95rem;
}

.profile .tag{
  color:var(--muted);
  font-size:.8rem;
}

/* ================= MAIN ================= */
.main{padding:12px 0 28px;}

.card{
  background:rgba(255,255,255,.02);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  margin-bottom:14px;
  backdrop-filter: blur(4px);
}

.section-title{
  font-weight:900;
  font-size:1.2rem;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
}

.section-sub{
  color:var(--muted);
  font-size:.95rem;
  margin:-4px 0 12px;
}

/* ================= GRID ================= */
.grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

/* ================= TOOL CARD ================= */
.tool{
  position:relative;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:8px;
  text-decoration:none;
  color:inherit;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
  overflow:hidden;
  outline:none;
  height:100%;
}

.tool::after{
  content:"";
  position:absolute;
  inset:-40% -20%;
  background:radial-gradient(500px 120px at 20% 0%, rgba(37,99,235,.18), transparent 55%);
  opacity:0;
  transition:.25s;
  pointer-events:none;
}

.tool:hover{
  transform:translateY(-3px);
  border-color:rgba(99,102,241,.6);
  box-shadow:var(--glow);
}

.tool:hover::after{opacity:1;}

.tool:focus-visible{
  border-color:rgba(99,102,241,.9);
  box-shadow:0 0 0 3px rgba(99,102,241,.25),var(--glow);
}

.tool-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.tool-icon{
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:8px;
}

.tool-logo,
.contact-logo{
  width:100%;
  height:100%;
  object-fit:contain;
  filter:invert(1) brightness(1.15);
  opacity:.95;
}

.tool h3{
  font-size:1.1rem;
  font-weight:800;
}

.tool p{
  font-size:.93rem;
  color:var(--muted);
  min-height:44px;
}

.cta{
  margin-top:auto;
  background:linear-gradient(90deg,var(--primary),#7c3aed);
  color:white;
  border-radius:10px;
  padding:10px 12px;
  font-weight:800;
  text-align:center;
  font-size:.95rem;
  transition:.2s;
}

.tool:hover .cta{filter:brightness(1.06);}

/* ================= CONTACT ================= */
.contact-title{
  font-size:1.15rem;
  font-weight:800;
  margin-bottom:6px;
}

.contact-sub{
  color:var(--muted);
  font-size:.95rem;
  margin-bottom:10px;
}

.contact-list{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.contact-item{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  display:flex;
  gap:10px;
  align-items:center;
  text-decoration:none;
  color:inherit;
  transition:.2s;
}

.contact-item:hover{
  transform:translateY(-2px);
  border-color:rgba(99,102,241,.6);
  box-shadow:var(--glow);
}

.contact-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  padding:7px;
}

.contact-text{
  display:flex;
  flex-direction:column;
  line-height:1.2;
}

.contact-text .label{
  font-weight:800;
  font-size:.95rem;
}

.contact-text .value{
  color:var(--muted);
  font-size:.85rem;
}

/* ================= FOOTER ================= */
.footer{
  text-align:center;
  color:var(--muted);
  padding:22px 0 30px;
  font-size:14px;
  margin-top:16px;
  border-top:1px solid var(--border);
}

/* ================= REVEAL ================= */
.reveal{
  opacity:0;
  transform:translateY(8px);
  transition:.4s;
}

.reveal.show{
  opacity:1;
  transform:translateY(0);
}

/* ================= MOBILE ================= */
@media (max-width:720px){
  .header{
    flex-direction:column;
    align-items:flex-start;
  }
  .profile{
    width:100%;
    justify-content:space-between;
  }
}

/* ================= DESKTOP ================= */
@media (min-width:1024px){
  .container{
    max-width:1200px;
    padding:0 24px;
  }

  .grid{
    grid-template-columns:repeat(4,1fr);
    gap:18px;
  }

  .contact-list{
    grid-template-columns:repeat(3,1fr);
  }
}

/* ================= ULTRAWIDE ================= */
@media (min-width:1440px){
  .container{
    max-width:1320px;
  }

  .grid{
    grid-template-columns:repeat(5,1fr);
  }
}
