/* ------------------------------
   🌙 Root Variables & Base
--------------------------------*/
:root {
  --bg: #1a1b26;
  --surface: #24283b;
  --text: #c0caf5;
  --muted: #565f89;
  --accent: #7aa2f7;
  --accent-alt: #bb9af7;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  scroll-padding-top: 52px; /* Prevents content from hiding under fixed header */
}

/* ------------------------------
   🌐 Header / Navigation
--------------------------------*/
header {
  background-color: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1.8rem;
  height: 100px; /* shortened for compact header */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  width: 100%;
}

.brand {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 600;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Highlight list items one-by-one on hover */
nav ul:hover li {
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

nav ul li:hover {
  opacity: 1;
}

/* ------------------------------
   🦸 Hero Section
--------------------------------*/
#hero {
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1b26 30%, #24283b 70%);
  padding: 0 1rem;
}

.hero-text {
  max-width: 700px;
}

.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--accent-alt);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.btn {
  background-color: var(--accent);
  color: var(--bg);
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-alt);
  transform: translateY(-2px);
}

/* ------------------------------
   📦 Content & Cards
--------------------------------*/
.container {
  max-width: 1000px;
  margin: auto;
  padding: 3rem 1rem;
}

h2 {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

p {
  color: var(--text);
  max-width: 700px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--surface);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* ------------------------------
   💡 Skills List
--------------------------------*/
.skills {
  list-style: square;
  padding-left: 1.5rem;
}

.skills li {
  margin: 0.5rem 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.skills li:hover {
  color: var(--accent);
}

/* ------------------------------
   📞 Contact Links
--------------------------------*/
.contact-links {
  list-style: none;
  padding: 0;
}

.contact-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: var(--accent-alt);
}

/* ------------------------------
   🧍 About Section
--------------------------------*/
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.05rem;
}

.about-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* ------------------------------
   🧭 Footer
--------------------------------*/
footer {
  background-color: var(--surface);
  text-align: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------
   ✨ Animations
--------------------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------
   📱 Responsive
--------------------------------*/
@media (max-width: 800px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-image {
    order: -1;
  }
}

@media (max-width: 700px) {
  #hero h2 {
    font-size: 1.4rem;
  }
  .nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
