/* Basic reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; color: #333; background: #fff; line-height: 1.6; }

/* Layout helpers */
.container { width: min(1100px, 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.section-title { font-size: 2.2rem; font-weight: 800; text-align: center; margin-bottom: 10px; }
.section-lead { text-align: center; color: #586069; margin-bottom: 36px; }

/* Header */
.site-header { position: sticky; top: 0; background: #ffffffcc; backdrop-filter: saturate(150%) blur(6px); border-bottom: 1px solid #e9ecef; z-index: 20; }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
.brand img { height: 46px; display: block; }
.site-header nav a { margin-left: 18px; color: #333; text-decoration: none; font-weight: 600; }
.site-header nav a:hover { color: #0a58ca; }

/* Hero */
.hero {
  --c1: #0a2a43;
  --c2: #0e6e5a;
  background: radial-gradient(1200px 600px at 80% -10%, #0e6e5a33, transparent), radial-gradient(900px 600px at 10% -20%, #1b87ff22, transparent), linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff;
  padding: 110px 0 120px 0;
}
.hero-inner { text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: .5px; }
.hero .sub { max-width: 760px; margin: 10px auto 22px auto; color: #e9eef6; }
.cta { display: inline-block; background: #0a58ca; color: #fff; padding: 12px 20px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.cta:hover { background: #0846a1; }

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

.card { background: #fff; border: 1px solid #e9ecef; border-radius: 10px; padding: 22px; box-shadow: 0 6px 22px rgba(0,0,0,.05); }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: #4a5568; }
.icon { font-size: 22px; margin-bottom: 8px; color: #0a58ca; }

/* Role and date styling inside cards */
.card .role {
  font-weight: 600;
  margin-bottom: 2px;
  color: #0a58ca;
}
.card .date {
  font-style: italic;
  font-size: 0.85rem;
  color: #586069;
  margin-bottom: 12px;
}

/* Grid used in skills and certification cards */
.item-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}
.item-grid .item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #4a5568;
  box-shadow: 0 3px 12px rgba(0,0,0,.03);
}

/* About (Skills) section */
.about { background: #f7f9fc; padding: 72px 0; }
.about-inner { text-align: center; max-width: 820px; margin: 0 auto; }
.about h2 { font-size: 2rem; margin-bottom: 12px; }
.about p { color: #4a5568; }

/* Contact */
.contact-form { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #ced4da; border-radius: 8px; font-size: 1rem; }
.contact-form button { background: #0a58ca; color: #fff; padding: 12px 18px; border: 0; border-radius: 8px; font-weight: 700; cursor: pointer; }
.contact-form button:hover { background: #0846a1; }

/* Footer */
.footer { background: #0f1720; color: #c9d1d9; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; padding: 32px 0; }
.footer h4 { color: #fff; margin-bottom: 8px; }
.footer a { color: #9ec1ff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer ul { list-style: none; }
.legal { border-top: 1px solid #1f2937; text-align: center; padding: 14px 0; color: #93a1b2; }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }