/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
  --azure: #0078d4;
  --azure-dark: #005a9e;
  --azure-light: #e6f2fb;
  --text: #1f1f1f;
  --text-muted: #555;
  --bg: #ffffff;
  --bg-alt: #f5f9fd;
  --border: #d0e4f5;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 120, 212, 0.1);
  --transition: 0.25s ease;
  --max-width: 860px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a {
  color: var(--azure);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--azure-dark); text-decoration: underline; }

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azure);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav-brand:hover { color: #fff; text-decoration: none; }

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   Shared Section Styles
   ========================================================================== */
.section {
  padding: 4rem 1.5rem;
}
.section:nth-child(even) {
  background: var(--bg-alt);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azure);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--azure);
  display: inline-block;
}

/* ==========================================================================
   Hero / Intro
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-dark) 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-greeting {
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.hero-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.6);
  margin: 0 auto 1.5rem;
  object-fit: cover;
  background: rgba(255,255,255,0.2);
}

.hero-avatar-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.6);
  margin: 0 auto 1.5rem;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
}

.hero-name {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hero-typed-wrapper {
  font-size: 1.15rem;
  min-height: 2rem;
  margin-bottom: 1.75rem;
  opacity: 0.9;
}

#typed-text { border-right: 2px solid rgba(255,255,255,0.7); padding-right: 3px; }

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.hero-contacts li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-contacts a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
}
.hero-contacts a:hover {
  text-decoration-color: #fff;
}

/* ==========================================================================
   Experience / Projects
   ========================================================================== */
.timeline-list { display: flex; flex-direction: column; gap: 1.25rem; }

.timeline-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--azure);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}
.timeline-item:hover { box-shadow: 0 4px 20px rgba(0,120,212,0.18); }

.timeline-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--azure);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.timeline-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}
.timeline-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Certifications
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.cert-card:hover {
  box-shadow: 0 4px 20px rgba(0,120,212,0.18);
  transform: translateY(-2px);
}
.cert-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--azure);
}
.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Skills
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}
.skill-category {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--azure);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.skill-items {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Quote
   ========================================================================== */
.quote-section {
  background: var(--azure);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.quote-section blockquote {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-style: italic;
  line-height: 1.6;
  opacity: 0.95;
}
.quote-section blockquote::before { content: '\201C'; }
.quote-section blockquote::after  { content: '\201D'; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 1.5rem;
  font-size: 0.875rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.footer-social a {
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--azure); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--azure-dark);
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
}
