/* ============================================================
   Laumania.net – Custom styles (dark theme)
   ============================================================ */

:root {
  --primary:     #58a6ff;
  --bg-body:     #0d1117;
  --bg-alt:      #161b22;
  --bg-card:     #21262d;
  --bg-card-alt: #161b22;
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --border:      #30363d;
}

/* ── Smooth scrolling ──────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Body ──────────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text);
  padding-top: 62px; /* offset for fixed navbar */
}

/* ── Section titles ────────────────────────────────────────── */
.section-title {
  position: relative;
  display: inline-block;
  color: var(--text);
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 8px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 60%, #58a6ff22 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(88, 166, 255, 0.08) 0%, transparent 50%);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-avatar img {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── About section ─────────────────────────────────────────── */
#about {
  background-color: var(--bg-alt);
}

#about p {
  color: var(--text-muted);
}

.about-card {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  color: var(--text);
}

.about-card li {
  color: var(--text-muted);
}

/* ── Projects section ──────────────────────────────────────── */
#projects {
  background-color: var(--bg-body);
}

/* ── Project cards ─────────────────────────────────────────── */
.project-card {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 1rem !important;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5) !important;
  border-color: var(--primary) !important;
}

.project-card .card-title {
  color: var(--text);
}

.project-card .card-text {
  color: var(--text-muted);
}

.project-card--more {
  background: linear-gradient(135deg, #161b22, #21262d) !important;
  min-height: 220px;
}

.project-icon {
  font-size: 2.5rem;
  line-height: 1;
}

/* ── Skills section ────────────────────────────────────────── */
#skills {
  background-color: var(--bg-alt);
}

/* ── Skill badges ──────────────────────────────────────────── */
.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s, transform 0.2s, color 0.2s;
}
.skill-badge:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* ── Contact links ─────────────────────────────────────────── */
.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, transform 0.2s;
}
.contact-link i {
  font-size: 2rem;
}
.contact-link:hover {
  color: #fff;
  transform: translateY(-4px);
}

/* ── Contact section ───────────────────────────────────────── */
#contact {
  background-color: var(--bg-alt) !important;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background-color: #010409 !important;
  color: var(--text-muted) !important;
}

/* ── Navbar ────────────────────────────────────────────────── */
#mainNav {
  background-color: rgba(13, 17, 23, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#mainNav .navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

#mainNav .nav-link {
  position: relative;
  padding-bottom: 2px;
}
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--primary);
  transition: left 0.25s, right 0.25s;
}
#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  left: 0;
  right: 0;
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
}
