/* ========== CSS RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== ROOT THEME ========== */
:root {
  --bg-dark: #0b0f14;
  --bg-light: #111827;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
}

/* ========== GLOBAL STYLES ========== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, #0ea5e930, transparent 40%),
              radial-gradient(circle at 80% 80%, #6366f130, transparent 40%);
  z-index: -2;
}

.bg-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNCIgaGVpZ2h0PSI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSI0IiBoZWlnaHQ9IjQiIGZpbGw9IiMwMDAwMDAiIG9wYWNpdHk9Ii4wNCIvPjwvc3ZnPg==");
  z-index: -1;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 720px;
}

.profile-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
}

.profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  animation: spin 12s linear infinite;
  opacity: 0.5;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
}

.tagline {
  color: var(--text-muted);
  margin: 0.8rem 0 1.8rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
}

.btn.primary {
  background: var(--accent);
  color: #000;
}

.btn.ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section.dark {
  background: var(--bg-light);
  border-radius: 18px;
  margin-top: 4rem;
}

.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: 14px;
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card .tech {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
}

/* ========== CONTACT ========== */
.contact-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
