/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Google Material / light backgrounds ── */
  --bg:        #FFFFFF;
  --surface:   #F8F9FA;   /* Google gray-50  */
  --surface2:  #F1F3F4;   /* Google gray-100 */
  --border:    #DADCE0;   /* Google gray-300 */

  /* ── Google brand palette (decorative / large UI) ── */
  --g-blue:    #4285F4;
  --g-green:   #34A853;
  --g-red:     #EA4335;
  --g-yellow:  #FBBC05;

  /* ── Accessible text/interactive accents on white (WCAG AA ≥ 4.5:1) ── */
  --accent:     #1a73e8;  /* Google Blue 700  — 4.6:1 on white */
  --accent2:    #137333;  /* Google Green 800 — 7.5:1 on white */
  --accent-red: #C5221F;  /* Google Red 700   — 5.5:1 on white */
  --accent-yel: #E37400;  /* Amber 700        — 4.8:1 on white */

  /* ── Text ── */
  --text:       #202124;  /* Google near-black — 16:1 on white */
  --text-muted: #5F6368;  /* Google gray-700   — 7.0:1 on white */

  --radius:    10px;
  --transition: 0.25s ease;

  /* Shadows (replace glow-based dark shadows) */
  --shadow-sm:  0 1px 3px rgba(60,64,67,0.12), 0 1px 2px rgba(60,64,67,0.08);
  --shadow-md:  0 4px 12px rgba(60,64,67,0.15), 0 2px 6px rgba(60,64,67,0.10);
  --shadow-lg:  0 8px 24px rgba(60,64,67,0.18), 0 4px 10px rgba(60,64,67,0.12);
}

html { scroll-behavior: smooth; }

/* ── Accessibility: keyboard focus ───────────────────────── */
:focus-visible {
  outline: 3px solid var(--g-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--g-blue); color: #fff;
  padding: 0.5rem 1rem; border-radius: 0 0 6px 6px;
  font-weight: 600; font-size: 0.9rem; z-index: 999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }

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

/* ── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Google-dot accent on logo */
.nav-logo::after {
  content: '.';
  color: var(--g-blue);
  font-size: 1.4rem;
  line-height: 0;
  vertical-align: -0.1em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--text); border-bottom-color: var(--g-blue); }
.nav-links a.active { color: var(--g-blue); border-bottom-color: var(--g-blue); }

.nav-cta {
  background: var(--g-blue); color: #fff !important;
  padding: 0.45rem 1.1rem; border-radius: 6px; font-size: 0.85rem !important;
  font-weight: 600 !important; border-bottom: none !important;
  box-shadow: 0 1px 3px rgba(66,133,244,0.4);
}
.nav-cta:hover { background: #1a73e8; color: #fff !important; box-shadow: var(--shadow-md); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Page Wrapper ─────────────────────────────────────────── */
.page { padding-top: 64px; min-height: 100vh; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative; overflow: hidden;
  /* Very subtle Google blue tint on white */
  background: linear-gradient(180deg, #EAF2FE 0%, #FFFFFF 60%);
}

.hero-content { position: relative; max-width: 760px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  background: #E8F0FE;
  padding: 0.3rem 0.9rem; border-radius: 20px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1.2rem;
  color: var(--text);
}

/* Google multicolor word highlight */
.hero h1 span { color: var(--g-blue); }

.hero-sub {
  font-size: 1.15rem; color: var(--text-muted);
  max-width: 580px; margin: 0 auto 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); cursor: pointer; border: none;
}

.btn-primary {
  background: var(--g-blue); color: #fff;
  box-shadow: 0 2px 6px rgba(66,133,244,0.4);
}
.btn-primary:hover { background: #1a73e8; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: #fff; color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--g-blue); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-stats {
  display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2rem; font-weight: 800;
  color: var(--g-blue);
}
.stat-item:nth-child(2) .stat-number { color: var(--g-green); }
.stat-item:nth-child(3) .stat-number { color: var(--g-red); }
.stat-item:nth-child(4) .stat-number { color: var(--accent-yel); }

.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* ── Sections ─────────────────────────────────────────────── */
section { padding: 5rem 2rem; }
section:nth-child(even) { background: var(--surface); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800; margin-bottom: 1rem;
  color: var(--text);
}

.section-desc {
  color: var(--text-muted); max-width: 600px;
  margin-bottom: 3rem; font-size: 1.05rem;
}

/* ── About Page ───────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem;
  align-items: start;
}

.about-photo-wrap { position: relative; }

.about-photo {
  width: 100%; aspect-ratio: 3/4; border-radius: 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  color: var(--text-muted);
}
.about-photo-placeholder svg { opacity: 0.4; }

.about-accent-card {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  min-width: 160px; box-shadow: var(--shadow-md);
}
.about-accent-card .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.about-accent-card .value { font-size: 1.4rem; font-weight: 800; color: var(--accent); }

.about-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1.25rem; color: var(--text); }
.about-content p { color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.8; }

.mission-card {
  background: #E8F0FE; border: 1px solid #C5D9FC;
  border-left: 4px solid var(--g-blue);
  border-radius: var(--radius); padding: 1.5rem;
  margin: 2rem 0;
}
.mission-card .mission-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem;
}
.mission-card p { color: var(--text); margin: 0; font-style: italic; }

.about-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.pill {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 0.3rem 0.9rem;
  font-size: 0.82rem; color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

/* ── Experience ───────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 2.5rem; padding-left: 2rem; }

.timeline-dot {
  position: absolute; left: -2.45rem; top: 0.4rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--g-blue); border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(66,133,244,0.25);
}

.timeline-item.current .timeline-dot {
  background: var(--g-green);
  box-shadow: 0 0 0 3px rgba(52,168,83,0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52,168,83,0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(52,168,83,0.12); }
}

.timeline-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.timeline-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.timeline-company { color: var(--accent); font-size: 0.95rem; font-weight: 500; }
.timeline-period {
  font-size: 0.78rem; color: var(--text-muted);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 0.25rem 0.75rem; border-radius: 20px; white-space: nowrap;
}

.timeline-bullets { margin-top: 0.75rem; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.92rem; }
.timeline-bullets li { margin-bottom: 0.4rem; }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  font-size: 0.72rem; padding: 0.2rem 0.65rem; border-radius: 4px;
  background: #E8F0FE; color: var(--accent);
  border: 1px solid #C5D9FC;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-filter { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.filter-btn {
  padding: 0.45rem 1.1rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 500; cursor: pointer;
  background: #fff; border: 1px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--g-blue); border-color: var(--g-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(66,133,244,0.35);
}

.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 1.75rem;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.project-card:hover {
  border-color: var(--g-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card[data-cat="automation"]:hover { border-color: var(--g-green); }
.project-card[data-cat="product"]:hover    { border-color: var(--g-red); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }

.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: #E8F0FE;
}
.project-card[data-cat="automation"] .card-icon { background: #E6F4EA; }
.project-card[data-cat="product"]    .card-icon { background: #FCE8E6; }

.card-cat {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.25rem 0.65rem; border-radius: 4px;
}

.cat-analytics { background: #E8F0FE; color: var(--accent); }
.cat-automation { background: #E6F4EA; color: var(--accent2); }
.cat-product    { background: #FCE8E6; color: var(--accent-red); }

.project-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text); }
.project-card p  { color: var(--text-muted); font-size: 0.88rem; line-height: 1.65; flex: 1; }

.card-tools { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1.25rem; }
.tool-tag {
  font-size: 0.7rem; padding: 0.18rem 0.55rem; border-radius: 4px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── Skills ───────────────────────────────────────────────── */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.skill-group-title {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}

.skill-item { margin-bottom: 1rem; }
.skill-item:last-child { margin-bottom: 0; }

.skill-header { display: flex; justify-content: space-between; margin-bottom: 0.35rem; font-size: 0.88rem; color: var(--text); }
.skill-pct { color: var(--text-muted); font-size: 0.8rem; }

.skill-bar { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--g-blue), var(--g-green));
  transform-origin: left; transition: transform 1s ease;
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }

.contact-info h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.contact-info p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }

.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  color: var(--text); transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.contact-link:hover { border-color: var(--g-blue); color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-md); }
.contact-link-icon { font-size: 1.2rem; }
.contact-link-text { font-size: 0.9rem; }
.contact-link-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--text); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--transition); resize: vertical;
  outline: none; box-shadow: var(--shadow-sm);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px rgba(66,133,244,0.15);
}
.form-group textarea { min-height: 130px; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ── Google color bar accent (top of footer) ──────────────── */
footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--g-blue) 25%, var(--g-red) 25% 50%, var(--g-yellow) 50% 75%, var(--g-green) 75%);
  margin-bottom: 1.5rem;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: -2rem;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-accent  { color: var(--accent); }
.text-accent2 { color: var(--accent2); }
.hidden { display: none !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 0; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 0.75rem 1.5rem; }
  .hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-accent-card { display: none; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.5rem 1.25rem; }
  .hero-stats { gap: 2rem; }
}
