/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0a;
  color: #e5e5e5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: 1.6rem; }

a {
  color: #a78bfa; /* purple accent like grok */
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #c4b5fd;
  outline: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom right, #1e1b4b, #312e81, #0a0a0a);
  padding: 4rem 1rem;
}

.hero h1 {
  margin-bottom: 1rem;
  background: linear-gradient(to right, #c4b5fd, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.4rem;
  max-width: 600px;
  margin-bottom: 2rem;
  color: #d1d5db;
}

/* Sections */
section {
  padding: 6rem 0;
}

#projects .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  #projects .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  #projects .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #111111;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #222;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.card-placeholder {
  height: 180px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
}

.card-content {
  padding: 1.5rem;
}

/* About / Footer */
.about {
  background: #0f0f0f;
  text-align: center;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-tag {
  background: #1f1f1f;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  border: 1px solid #333;
}

footer {
  text-align: center;
  padding: 3rem 0;
  color: #6b7280;
  border-top: 1px solid #222;
}