/* ============================================
   CSS Foundation — Theme Variables & Base Styles
   Design system for grokmo.com
   ============================================ */

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

/* --- Light Mode Variables (default) --- */
:root {
  /* Colors */
  --bg: #ffffff;
  --bg-card: #f8fafc;
  --text: #1e293b;
  --text-secondary: #64748b;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --border: #e2e8f0;

  /* Shadows */
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);

  /* Navigation */
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-border: #e2e8f0;
  --nav-height: 64px;

  /* Pills / Tags */
  --pill-bg: rgba(8, 145, 178, 0.08);
  --pill-text: #0891b2;

  /* Gradient */
  --gradient-bar: linear-gradient(90deg, #0891b2, #06b6d4, #0891b2);

  /* Typography — Font Family */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;

  /* Typography — Fluid Sizes */
  --text-h1: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --text-h2: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  --text-h3: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-small: clamp(0.8125rem, 0.775rem + 0.2vw, 0.9375rem);

  /* Typography — Line Heights */
  --lh-body: 1.6;
  --lh-heading: 1.2;

  /* Layout */
  --section-padding: clamp(3rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem);
  --content-max-width: 800px;

  /* Motion */
  --transition: 0.3s ease;
}

/* --- Dark Mode Variables --- */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent: #0891b2;
  --accent-hover: #06b6d4;
  --border: #334155;

  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);

  --nav-bg: rgba(15, 23, 42, 0.95);
  --nav-border: #334155;

  --pill-bg: rgba(8, 145, 178, 0.15);
  --pill-text: #22d3ee;
}

/* ============================================
   Base Styles
   ============================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--text);
  background-color: var(--bg);
  transition: background-color var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Top accent gradient bar */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-bar);
  z-index: 1001;
}

/* --- Headings --- */
h1,
h2,
h3 {
  line-height: var(--lh-heading);
  font-weight: 700;
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* --- Sections --- */
section {
  padding: var(--section-padding);
}

.section-title {
  font-size: var(--text-h2);
  margin-bottom: 2rem;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color var(--transition), background-color var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--nav-border);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 8px;
  transition: color var(--transition), background-color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--accent);
  background: var(--pill-bg);
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1001;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: var(--text-body);
  }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
  }

  .nav-overlay.active {
    display: block;
  }
}

/* ===== Hero ===== */
.hero {
  padding-top: calc(var(--nav-height) + 3px + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-tagline {
  font-size: var(--text-h3);
  color: var(--accent);
  font-weight: 600;
}

.hero-subline {
  font-size: var(--text-body);
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-image img {
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: var(--text-small);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--pill-bg);
  color: var(--accent);
}

.btn-linkedin svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subline {
    max-width: 100%;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* ===== About ===== */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-content p {
  color: var(--text-secondary);
}

.about-content p:first-of-type {
  color: var(--text);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.5;
}

/* ===== Career Highlights ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--card-shadow);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.highlight-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}

.highlight-card h3 {
  margin-bottom: 0.625rem;
}

.highlight-card p {
  color: var(--text-secondary);
  font-size: var(--text-small);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Core Competencies ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skills-category-title {
  font-size: var(--text-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  font-size: var(--text-small);
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Connect ===== */
.connect {
  text-align: center;
}

.connect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connect-text {
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
}

.connect-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem clamp(1.25rem, 5vw, 2rem);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-small);
  border-top: 1px solid var(--border);
}
