/* ============================================================
   TECH ENGINEER PORTFOLIO – DARK MODE DEFAULT + LIGHT MODE
   ============================================================ */

/* ------------------------------
   COLOR VARIABLES
------------------------------ */

/* Dark mode (default) */
:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text-main: #e6edf3;
  --text-muted: #8b949e;
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.15);
  --border-soft: #30363d;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.4);
  --radius-card: 14px;
  --radius-pill: 999px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Light mode */
:root.light {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --text-main: #1e1e1e;
  --text-muted: #555555;
  --accent: #007bff;
  --accent-soft: #e3f0ff;
  --border-soft: #e0e0e0;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* ------------------------------
   GLOBAL RESET
------------------------------ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

/* ------------------------------
   PAGE CONTAINER
------------------------------ */

.page {
  width: 100%;
  max-width: 980px;
  background: var(--bg-card);

  /* Blur background */
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);

  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 24px;
  border: 1px solid var(--border-soft);
}

/* ------------------------------
   HEADER
------------------------------ */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ------------------------------
   AVATAR – TECH ENGINEER STYLE
------------------------------ */

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 18px var(--accent-soft),
    0 6px 18px rgba(0, 0, 0, 0.25);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
}

.avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 22px var(--accent-soft);
  pointer-events: none;
}

/* ------------------------------
   TEXT
------------------------------ */

.identity-text h1 {
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.identity-text h2 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ------------------------------
   LANGUAGE + THEME SWITCH
------------------------------ */

.lang-switch,
.theme-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 4px;
}

.lang-btn,
.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.lang-btn:hover,
.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.lang-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* ------------------------------
   MAIN GRID
------------------------------ */

main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 18px;
}

@media (max-width: 800px) {
  main {
    grid-template-columns: 1fr;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ------------------------------
   CARDS – TECH ENGINEER STYLE
------------------------------ */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  transition: 0.25s ease;
}

.card:hover {
  box-shadow: 0 0 18px var(--accent-soft);
}

.card + .card {
  margin-top: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

/* Title with accent line */
.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.card-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.card-tag {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.card-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* ------------------------------
   PILL TAGS
------------------------------ */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill {
  font-size: 0.8rem;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  color: var(--text-muted);
}

.pill.primary {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

/* ------------------------------
   PROJECTS / EXPERIENCE LISTS
------------------------------ */

.section-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.item-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.item-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.item-desc {
  font-size: 0.85rem;
  color: var(--text-main);
}

/* ------------------------------
   CONTACT GRID
------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.contact-item {
  font-size: 0.85rem;
  color: var(--text-main);
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ------------------------------
   FOOTER
------------------------------ */

footer {
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 10px;
}

.footer-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
}

.footer-link:hover {
  text-decoration: underline;
}
