:root {
  --bg: linear-gradient(135deg, #4facfe, #00f2fe);
  --card: #ffffff;
  --accent: #0b69ff;
  --dark: #111111;
  --muted: #7a7a7a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.nav a {
  color: #fff;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.nav a:hover { opacity: 0.7; }

.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight { color: #ffe066; }

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--accent);
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.about {
  background: rgba(255,255,255,0.15);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.skills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.skills span {
  background: rgba(255,255,255,0.25);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.skills span i { margin-right: 0.4rem; }

.cards {
  padding: 4rem 2rem;
  background: #f4f7ff;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Override grid for the section wrapper */
section.cards {
  display: block;
  padding: 4rem 2rem;
}

section.cards > .card {
  display: block;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 20px rgba(11, 105, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(11,105,255,0.2);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.card p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.tech {
  margin-top: 1rem;
  font-size: 0.82rem !important;
  font-weight: 600;
  color: var(--accent) !important;
}

footer {
  background: #0b1a2e;
  color: #aaa;
  text-align: center;
  padding: 2rem 1rem;
  line-height: 2;
}

footer a {
  color: #7eb8ff;
  text-decoration: none;
}

footer a:hover { color: #fff; }

footer i { margin-right: 0.3rem; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .nav { flex-direction: column; gap: 0.5rem; }
}