/* ====================
   RESET & BASE
==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(99,102,241,0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(239,68,68,0.12), transparent 40%),
    #020617;
  color: #e5e7eb;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ====================
   ANIMATIONS
==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====================
   GLOBAL LAYOUT
==================== */
header,
section,
footer {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 1.5rem;
}

section {
  border-top: 1px solid #1c1f26;
  animation: fadeUp 0.8s ease forwards;
}

/* ====================
   HEADER / HERO
==================== */
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 1s ease forwards;
}

header h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #9ca3af;
}

/* ====================
   TYPOGRAPHY
==================== */
h2 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  max-width: 720px;
  color: #cbd5e1;
}

/* ====================
   HERO SECTION
==================== */
#hero p {
  margin-top: 1.2rem;
}

/* ====================
   SKILLS
==================== */
#skills ul {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

#skills li {
  background: linear-gradient(145deg, #020617, #111827);
  border: 1px solid #1f2933;
  padding: 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills li:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(99,102,241,0.25);
}
/* ====================
   SERVICES SECTION
==================== */
#services {
  padding-top: 4rem;
}

.services-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.service-card {
  background: linear-gradient(145deg, #020617, #111827);
  border: 1px solid #1f2933;
  padding: 2rem;
  border-radius: 16px;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.service-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
  color: #e5e7eb;
}

.service-card p {
  font-size: 0.95rem;
  color: #9ca3af;
  line-height: 1.6;
}

/* Hover effect */
.service-card:hover {
  transform: translateY(-10px);
  border-color: #6366f1;
  box-shadow: 0 25px 60px rgba(99,102,241,0.25);
}

/* ====================
   SERVICES
==================== */
.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: linear-gradient(145deg, #020617, #111827);
  border: 1px solid #1f2933;
  padding: 1.8rem;
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #9ca3af;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(99,102,241,0.25);
}

/* ====================
   PROJECTS
==================== */
#projects article {
  margin-top: 1.6rem;
  padding: 1.8rem;
  background: linear-gradient(145deg, #020617, #111827);
  border-radius: 14px;
  border: 1px solid #1f2933;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projects article:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(96,165,250,0.25);
}

/* ====================
   CONTACT
==================== */
address {
  margin-top: 1rem;
  font-style: normal;
}

address p {
  margin-top: 0.4rem;
}

/* ====================
   FOOTER
==================== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ====================
   RESPONSIVE
==================== */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  header {
    min-height: auto;
    padding-top: 6rem;
  }
}
.hero-avatar {
  width: 220px;            /* controlled size */
  max-width: 70%;
  border-radius: 50%;
  opacity: 0.9;
  filter: grayscale(10%);
  box-shadow: 0 0 40px rgba(99,102,241,0.25);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.hero-avatar:hover {
  transform: scale(1.04);
  opacity: 1;
}


