/* ============================================
   Albert Garcia — Executive Portfolio
   ============================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #1a2f4f;
  --navy-600: #243d63;
  --blue-400: #5b9fd4;
  --blue-300: #7eb8e3;
  --blue-100: #e8f2fb;
  --blue-50: #f4f9fd;
  --white: #ffffff;
  --gray-100: #f7f8fa;
  --gray-200: #e8ecf1;
  --gray-400: #94a3b8;
  --gray-600: #64748b;
  --accent: #c9a962;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 22, 40, 0.12);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--navy-800);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition);
}

.nav--scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  transition: background var(--transition), border-color var(--transition);
}

.nav__cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 50%, var(--navy-600) 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(91, 159, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 1rem;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero__motto {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 500;
  font-style: italic;
  color: var(--blue-300);
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 520px;
}

.hero__title {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.hero__tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--blue-400);
  color: var(--white);
  border-color: var(--blue-400);
}

.btn--primary:hover {
  background: var(--blue-300);
  border-color: var(--blue-300);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(91, 159, 212, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.hero__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__portrait-frame {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.hero__portrait-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 40px rgba(10, 22, 40, 0.2);
  z-index: 1;
  pointer-events: none;
}

.hero__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  width: 100%;
  justify-content: center;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.hero__stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Sections ---- */

.section {
  padding: 100px 0;
}

.section--light {
  background: var(--white);
}

.section--navy {
  background: var(--navy-900);
  color: var(--white);
}

.section--accent {
  background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.section--contact {
  background: var(--navy-800);
  color: var(--white);
  padding: 80px 0;
}

.section__header {
  margin-bottom: 3.5rem;
}

.section__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
}

.section--navy .section__eyebrow,
.section--contact .section__eyebrow {
  color: var(--blue-300);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
}

.section--navy .section__title,
.section--contact .section__title {
  color: var(--white);
}

/* ---- Summary ---- */

.summary {
  max-width: 800px;
}

.summary__lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--navy-700);
  margin-bottom: 1.25rem;
}

.summary p {
  color: var(--gray-600);
  font-size: 1.05rem;
}

.summary strong {
  color: var(--navy-800);
  font-weight: 600;
}

/* ---- Strengths ---- */

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.strength-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.strength-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(91, 159, 212, 0.3);
  transform: translateY(-3px);
}

.strength-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 159, 212, 0.12);
  border-radius: 10px;
  color: var(--blue-300);
  margin-bottom: 1.25rem;
}

.strength-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.strength-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

/* ---- Timeline ---- */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--navy-600));
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -2rem;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--blue-400);
  border: 3px solid var(--white);
  border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.timeline__date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.5rem;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.25rem;
}

.timeline__org {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.timeline__content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.timeline__content li {
  font-size: 0.95rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.timeline__content li::marker {
  color: var(--blue-400);
}

/* ---- Accomplishments ---- */

.accomplishments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.accomplishment {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}

.accomplishment:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.accomplishment__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.accomplishment__label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ---- Technology ---- */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.tech-item {
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 100px;
  transition: background var(--transition), border-color var(--transition);
}

.tech-item:hover {
  background: var(--blue-100);
  border-color: var(--blue-300);
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.credential h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.credential p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---- Advisory ---- */

.advisory__lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 720px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.advisory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.advisory-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border-left: 3px solid var(--blue-400);
  transition: background var(--transition);
}

.advisory-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.advisory-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.advisory-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

/* ---- Blogs ---- */

.blogs__intro {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: -2rem 0 2.5rem;
  line-height: 1.75;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--blue-300);
}

.blog-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card__title a {
  color: var(--navy-800);
  transition: color var(--transition);
}

.blog-card__title a:hover {
  color: var(--blue-400);
}

.blog-card__excerpt {
  flex: 1;
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.blog-card__meta time {
  font-size: 0.8rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.blog-card__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-400);
  white-space: nowrap;
  transition: color var(--transition);
}

.blog-card__link:hover {
  color: var(--navy-700);
}

.blogs__footer {
  margin-top: 2.5rem;
  text-align: center;
}

.btn--blogs {
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.btn--blogs:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  box-shadow: 0 4px 20px rgba(15, 31, 56, 0.25);
}

/* ---- Contact ---- */

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

.contact__content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  line-height: 1.75;
}

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

.contact-link {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(91, 159, 212, 0.4);
  transform: translateX(4px);
}

.contact-link__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 0.25rem;
}

.contact-link__value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
}

/* ---- Footer ---- */

.footer {
  background: var(--navy-900);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ---- Reveal Animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--delay {
  transition-delay: 0.15s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__tagline,
  .hero__motto,
  .hero__title {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__portrait {
    order: -1;
  }

  .hero__portrait-frame {
    width: min(280px, 70vw);
  }

  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .accomplishments-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advisory-grid {
    grid-template-columns: 1fr;
  }

  .blogs-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .credentials {
    grid-template-columns: 1fr;
  }
}

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

  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
  }

  .nav__cta {
    margin: 0.5rem 1.5rem 0;
    text-align: center;
  }

  .nav__toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .section {
    padding: 70px 0;
  }

  .strengths-grid,
  .accomplishments-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    gap: 1.25rem;
  }

  .hero__stat-value {
    font-size: 1.4rem;
  }
}
