/* ===== CSS VARIABLES ===== */
:root {
  --bg: #0d1117;
  --surface: #161b22;
  --card: #1c2128;
  --accent: #2f81f7;
  --accent-dim: rgba(47, 129, 247, 0.12);
  --green: #3fb950;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --border: #30363d;
}

/* ===== GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 64px;
}

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 17, 23, 0.97);
  padding: 0 24px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(8px);
}

#navbar a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

#navbar a:hover {
  color: var(--text-primary);
}

/* ===== HERO ===== */
#welcome-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(180deg, #0d1117 0%, #111827 100%);
}

.hero-greeting {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

#welcome-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

#welcome-section h2 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(63, 185, 80, 0.1);
  color: var(--green);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cert-badge:hover {
  background: rgba(63, 185, 80, 0.2);
  border-color: rgba(63, 185, 80, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 185, 80, 0.15);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ===== PROJECTS ===== */
#projects {
  padding: 80px 24px;
  background: var(--surface);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-tile {
  background: var(--card);
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-tile:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-tile--soon {
  opacity: 0.6;
}

.project-header {
  display: flex;
  align-items: center;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(47, 129, 247, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
}

.project-tag--soon {
  color: var(--text-secondary);
  background: rgba(139, 148, 158, 0.1);
  border-color: rgba(139, 148, 158, 0.2);
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-link {
  display: inline-block;
  margin-top: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--text-primary);
}

.project-link--disabled {
  color: var(--text-secondary);
  cursor: default;
  pointer-events: none;
}

/* ===== CONTACT ===== */
#contact {
  padding: 80px 24px;
  background: var(--bg);
  text-align: center;
}

.contact-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.profile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.profile-link img {
  filter: grayscale(20%) brightness(0.8);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.profile-link:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.08);
}

.profile-link:hover {
  color: var(--text-primary);
}

/* ===== FOOTER ===== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  #navbar {
    gap: 24px;
  }

  #welcome-section h1 {
    font-size: 2.4rem;
  }

  #welcome-section h2 {
    font-size: 1.2rem;
  }

  .contact-links {
    gap: 32px;
  }
}
