/* =====================================================
   styles.css — Micheal Tim Joseph Enriquez Resume
   Dark/Clean theme with light mode toggle
   ===================================================== */

/* ---- CSS VARIABLES (dark default) ---- */
:root {
  --bg:         #0e0e0f;
  --bg-surface: #161617;
  --bg-card:    #1d1d1f;
  --accent:     #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.08);
  --text:       #e2e2e5;
  --text-muted: #7a7a85;
  --border:     rgba(255, 255, 255, 0.07);
  --radius:     12px;
  --nav-h:      64px;
}

/* ---- LIGHT MODE OVERRIDES (toggled by jQuery) ---- */
body.light-mode {
  --bg:         #f5f5f7;
  --bg-surface: #ffffff;
  --bg-card:    #ffffff;
  --accent:     #0055cc;
  --accent-dim: rgba(0, 85, 204, 0.08);
  --text:       #1d1d1f;
  --text-muted: #6e6e73;
  --border:     rgba(0, 0, 0, 0.1);
}

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ---- TYPING CURSOR ---- */
.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  margin-left: 2px;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ---- EXPERIENCE CARDS ---- */
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.exp-card:hover {
  border-color: var(--accent);
}

.exp-role {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.exp-period {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 10px;
}

.exp-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ---- CSS RESET & BASE ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---- NAVIGATION ---- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(14, 14, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background 0.3s ease;
}

body.light-mode #navbar {
  background: rgba(245, 245, 247, 0.88);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  flex-shrink: 0;
}

/* element selector */
ul {
  list-style: none;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

/* element + pseudo-class selector */
.nav-links a {
  display: inline-block;
  padding: 6px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

/* :hover pseudo-class */
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* id selector */
#theme-toggle {
  padding: 6px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

#theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- SECTIONS ---- */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem 3rem;
}

#about {
  padding-top: calc(var(--nav-h) + 5rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* class selector */
.section-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

/* ---- ABOUT ---- */
.about-container {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.about-text {
  flex: 1;
}

.greeting {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* id selector */
#hero-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* flex layout for contact chips */
.contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- EDUCATION ---- */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.edu-card:hover {
  border-color: var(--accent);
}

.edu-degree {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.edu-school {
  font-size: 14px;
  color: var(--text-muted);
}

.edu-period {
  font-size: 13px;
  color: var(--accent);
  margin-top: 8px;
}

/* ---- SKILLS ---- */
.skills-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.skills-header .section-title {
  margin-bottom: 0;
}

.btn-outline {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: var(--accent-dim);
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.skill-name {
  font-weight: 500;
}

.skill-pct {
  color: var(--accent);
}

/* box model: border + padding + fixed height */
.skill-bar-track {
  height: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}

/* ---- PROJECTS ---- */
.filter-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 18px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-category {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* element + :hover pseudo-class */
a.project-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

a.project-link:hover {
  opacity: 0.7;
}

/* ---- CONTACT FORM ---- */
#contact form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 1.25rem;
}

/* element selector */
label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* element selectors with box model (padding + border) */
input,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
}

input.error,
textarea.error {
  border-color: #ff5f5f;
}

.error-msg {
  display: block;
  font-size: 12px;
  color: #ff5f5f;
  margin-top: 4px;
  min-height: 16px;
}

.btn-submit {
  padding: 12px 32px;
  background: var(--accent);
  color: #0e0e0f;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-submit:hover {
  opacity: 0.82;
}

.form-success {
  margin-top: 12px;
  font-size: 14px;
  color: var(--accent);
  min-height: 20px;
}

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* id selector */
#footer-name {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 12px;
  color: var(--text-muted);
}
