/* ==========================================================================
   Abey Joshy — Personal site
   A clean, light, "standard" portfolio layout using a system/Apple-style
   font stack. Edit colors in the :root block and content directly in
   index.html.
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F7;      /* subtle alternating section background */
  --color-text: #1D1D1F;        /* near-black body text */
  --color-text-muted: #414141;  /* secondary text */
  --color-border: #D2D2D7;      /* hairline borders */
  --color-accent: #0071E3;      /* Apple-blue accent for links/buttons */
  --color-accent-dark: #0058B0;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--color-text);
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

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

code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

section { padding: 96px 0; }
section.alt-bg { background: var(--color-bg-alt); }

.eyebrow {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 40px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 980px; /* pill shape, Apple-style */
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); }
.btn-small { padding: 8px 18px; font-size: 13.5px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}

.main-nav {
  display: flex;
  gap: 28px;
} 

.main-nav a {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

.nav-resume-btns {
  display: flex;
  gap: 10px;
}

.main-nav a.active {
  color: var(--color-accent);
  font-weight: 600;
}
/* ---------- mobile menu button ---------- */

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- mobile ---------- */

@media (max-width: 768px) {

  .header-inner {
    position: relative;
    height: 60px;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
    margin-right: 8px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;

    flex-direction: column;
    gap: 0;

    padding: 12px 20px 20px;

    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid var(--color-border);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .nav-resume-btns {
    display: none;
  }

  /* Hamburger → X */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

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

/* ---------- hero ---------- */
.hero { padding: 88px 0 96px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.12;
  margin-bottom: 20px;
}
.lede {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.lede.narrow { max-width: 850px; margin-bottom: 32px; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}


/* Hero status and location */
.hero-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 16px;
  padding: 8px 14px;

  background: #e9f8ef;
  border: 1px solid #b9e5c8;
  border-radius: 999px;

  color: #21843a;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: #2eaf55;
  border-radius: 50%;
}


/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 10px;
  align-items: start;
}
.about-copy p {
  font-size: 16.5px;
  color: var(--color-text-muted);
  max-width: 630px;
}
.about-copy strong { color: var(--color-text); font-weight: 600; }

.about-copy a.highlight-link:hover {
  color: #0071e3;
  font-weight: 600;
  text-decoration: underline;
}

.about-copy a.highlight-link:hover strong {
  color: #0071e3;
}

.stat-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border);
}
.stat:last-child { border-bottom: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--color-accent);
}
.stat-label { font-size: 14px; color: var(--color-text-muted); }

/* ---------- experience timeline ---------- */
.timeline-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}
.timeline-date {
  font-size: 16px;
  color: var(--color-text-muted);
  padding-top: 4px;
}
.timeline-content h3 { font-size: 20px; margin-bottom: 4px; }
.timeline-content .org { color: var(--color-text-muted); font-size: 16px; margin-bottom: 16px; }
.timeline-content ul { margin: 0; padding-left: 20px; color: var(--color-text-muted); }
.timeline-content li { margin-bottom: 10px; font-size: 15px; }
.timeline-content li::marker { color: var(--color-accent); }


.timeline-content a.highlight-link:hover strong {
  color: #0071e3;
   text-decoration: underline;
}

/* ---------- projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  background: var(--color-bg);
}
.project-tag {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.project-card h3 { font-size: 18px; margin-bottom: 10px; }
.project-card p { font-size: 16px; color: var(--color-text-muted); flex: 1; margin-bottom: 16px; }
.project-link { font-size: 14px; font-weight: 500; color: var(--color-accent); }
.project-link:hover { text-decoration: underline; }

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.skill-group h3 {
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span {
  font-size: 14px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 980px;
}

/* ---------- education / certs ---------- */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.edu-item {
  border-left: 3px solid var(--color-accent);
  padding-left: 18px;
  margin-bottom: 28px;
}
.edu-item h3 { font-size: 17px; margin-bottom: 4px; }
.edu-item .org { font-size: 15px; color: var(--color-text-muted); margin-bottom: 4px; }
.edu-item .grade { font-size: 14px; color: var(--color-accent); font-weight: 500; }

.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14.5px;
  color: var(--color-text-muted);
}
.cert-list li:first-child { padding-top: 0; }
.cert-list strong { color: var(--color-text); font-weight: 600; }
.cert-list .when { font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }

.cert-list a.highlight-link:hover strong {
  color: #0071e3;
   text-decoration: underline;
}
/* ---------- photography ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0 28px;
}
.photo-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}


/* Contact section */
.contact-intro {
  max-width: 650px;
  margin: -10px 0 36px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  min-width: 0;

  background: #f5f5f7;
  border: 1px solid #dcdcdc;
  border-radius: 14px;

  text-decoration: none;
  color: inherit;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: #bdbdbd;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

/* Icon box */
.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f7f7f7;
  border: 1px solid #e2e2e2;
  border-radius: 10px;

  overflow: hidden;
}

.contact-icon img {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;

  object-fit: contain;
  display: block;
}

/* Text */
.contact-card > div {
  flex: 1;
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.contact-value {
  font-size: 0.95rem;
  color: #222;
  overflow-wrap: anywhere;
}

/* Arrow */
.contact-arrow {
  margin-left: auto;
  flex-shrink: 0;

  font-size: 1.15rem;
  color: #777;

  transition: transform 0.2s ease;
}

.contact-card:hover .contact-arrow {
  transform: translate(3px, -3px);
}


/* Resume CTA */
.resume-cta {
  margin-top: 36px;
  padding: 28px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  background: #f7f7f7;
  border: 1px solid #dedede;
  border-radius: 16px;
}

.resume-cta p {
  margin: 0;
}

.resume-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.resume-text {
  margin-top: 6px !important;
  color: #666;
  font-size: 0.9rem;
}

.resume-cta .btn-row {
  flex-shrink: 0;
}


/* Bottom text */
.contact-footer {
  display: flex;
  justify-content: center;
  gap: 10px;

  margin-top: 32px;

  font-size: 14px;
  color: #414141;
}


/* -------------------------
   Mobile
------------------------- */

@media (max-width: 700px) {

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-card {
    padding: 18px;
  }

  .contact-value {
    font-size: 0.9rem;
  }

  .resume-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .resume-cta .btn-row {
    width: 100%;
  }

  .resume-cta .btn {
    flex: 1;
  }

  .contact-footer {
    flex-wrap: wrap;
    text-align: center;
  }
}
/* ---------- footer ---------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--color-border); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner,
  .about-grid,
  .edu-cert-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 240px; margin: 0 auto; }
  .project-grid,
  .skills-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .main-nav { display: none; }
  .nav-resume-btns .btn-secondary { display: none; }
  section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}



/* ==========================================================
   Animations
   ========================================================== */

/* ---------- Page load ---------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Hero loads immediately */

.hero .eyebrow {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.hero h1 {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.hero .lede {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

.hero .btn-row {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

.hero-status {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.5s;
}

.hero-photo {
  animation: fadeIn 0.9s ease both;
  animation-delay: 0.2s;
}


/* ---------- Scroll reveal ---------- */

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

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


/* ---------- Stagger children ---------- */

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible > *:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-stagger.visible > *:nth-child(3) {
  transition-delay: 0.19s;
}

.reveal-stagger.visible > *:nth-child(4) {
  transition-delay: 0.26s;
}

.reveal-stagger.visible > *:nth-child(5) {
  transition-delay: 0.33s;
}

.reveal-stagger.visible > *:nth-child(6) {
  transition-delay: 0.40s;
}


/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}