/*
=========================
  Header / Nav
========================= 
*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f1f1f1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  font-weight: 600;
}

/* Desktop: hide hamburger + mobile dropdown */
.nav-hamburger { display: none; }
.mobile-nav { display: none; }
.nav-link-resume-mobile { display: none; }
.nav-link-resume-desktop { display: inline-flex; }

/* Mobile */
@media (max-width: 768px) {
  .nav-links-desktop { 
    display: none; 
  }
  .nav-link-resume-mobile {
    display: inline-flex; 
    justify-content: center;
  }
  .nav-link-resume-desktop {
    display: none;
  }

  .nav-hamburger {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    position: relative;
    margin-right: 10px;
  }

  .logo {
    margin-left: 20px;
  }


  .site-header {
    position: sticky;
    top: 0;
  }

  /* Hamburger styling */
  .nav-hamburger {
    width: 42px;
    height: 42px;
    border: 0px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
  }
  .nav-hamburger span {
    width: 18px;
    height: 2px;
    background: #000;
    display: block;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  /* Open state: turn into X */
  .nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

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

  /* Dropdown panel */
  .mobile-nav {
    display: block;
    position: absolute;
    left: 0;
    right: 0;

    top: 100%;

    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid var(--color-border);

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 260ms ease, opacity 200ms ease, transform 260ms ease;
  }

  .mobile-nav.is-open {
    max-height: 420px;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 10px 16px 16px;
    align-items: center;
    text-align: center;
    gap: 0;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-surface-soft);
  }

  .mobile-nav-inner a {
    width: 100%;
    max-width: 420px;
    padding: 20px 10px;
    font-size: 20px;
    border-top: 0px solid rgba(0,0,0,0.08);
  }

  .mobile-nav-inner a:first-child {
    border-top: none;
  }

  .mobile-nav-inner a.active {
    font-weight: 700;
  }
}

/* 
=========================
  HERO
========================= 
*/

.hero {
  padding: 48px 0 78px;
  background: var(--color-bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-strong);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 1.2rem 0 2rem;
}

.hero-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 34rem;
  margin-bottom: 2rem;

  .highlight {
    font-weight: 700;
    /* color: var(--color-accent-strong); */
  }

  .hero-text-block {
    margin-bottom: 2rem;
  }
}


.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 2.2rem;
}

.hero-meta-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-aside {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.hero-aside-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-image-box {
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top:-5rem;
}

.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}

.hero-aside-top-right {
  display: flex;
  flex-direction: column;
}

.hero-aside-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}

.hero-aside-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-aside-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.hero-aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 
=========================
  Tags
========================= 
*/

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
}


/* 
=========================
  SUBHERO
========================= 
*/

.sub-hero {
    padding: 30px 0 40px;
    background: var(--color-bg-alt);
}

.sub-hero-container{
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.sub-hero-title {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.sub-hero-text {
    font-size: 15px;
    color: var(--color-text-muted);
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.5;

}

.sub-hero-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #111;
    background: transparent;
    color: #111;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    width: 120px;         
    height: 40px;
}

.sub-hero-action-btn-icon {
    width: 25px;
    height: 25px;
    margin-right: 6px;
}

.sub-hero-action-btn:hover {
    background: #000;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);

}

/* 
=========================
  Buttons
========================= 
*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #111;
  background: #FFFFFF;
  color: #111;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: #111;
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-accent-strong);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-text-muted);
  background: var(--color-surface-soft);
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
  background: var(--color-accent-soft);
}

/*
=========================
  Footer
========================= 
*/

.site-footer {
  padding: 48px 0 30px;
  background: var(--color-bg-alt);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-top-left {
    display: inline;
}

.footer-brand {
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-brand-note {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.footer-top-right {
    display: inline;
    font-size: 22px;
    margin-top: 20px;
}


.footer-bottom {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 14px;
}

.footer-cc {
    width: 22px;          
    height: 22px;

    border: 1px solid #000; 
    border-radius: 50%;      
    background-color: #00000000;   
    color: black;           

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

    font-weight: 600;
    font-size: 10px;         
    font-family: sans-serif; 

    margin-right: 6px;

}

.footer-bottom-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-email-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  
  background: #333;
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 4px;
  white-space: nowrap;
  
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Arrow */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.footer-email-wrapper:hover .tooltip {
  opacity: 1;
}

.footer-email {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.social-link-btn {
    display: flex; 
    align-items: center;
    width: 26px;
    height: 26px;
    fill: transparent;
    color: #000; 
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.social-link-btn svg {
    width: 26px;
    height: 26px;
}

.social-link-btn:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
  fill: #000;
  color: #fff;
}

.resume-download-btn {
    height: 26px;
    border-radius: 5px;
    padding: 6px 6px;
    border: 1px solid #111;

    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.resume-download-btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    fill: transparent;
}

.resume-download-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    background: #000;
    color: #fff;

    .resume-download-btn-icon {
        fill: #000;
        color: #fff;
    }
}

/* =========================
   Footer responsive overrides
   ========================= */

/* Tablet and down */
@media (max-width: 980px) {
  .site-footer {
    padding: 36px 0 26px;
  }

  .footer-top
  .footer-bottom {
    gap: 16px;
  }

  .footer-bottom-left {
    white-space: normal;
  }

  .footer-email {
    word-break: break-word;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-top-right {
    display: none;
  }

  .footer-brand {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .footer-brand-note {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .footer-bottom-right { order: 1; width: 100%; }
  .footer-bottom-left  { order: 2; width: 100%; }

  .footer-bottom-right {
    display: grid;

    /* email row + buttons row */
    grid-template-columns: max-content max-content max-content;
    grid-auto-rows: auto;

    justify-content: start;
    justify-items: start;

    column-gap: 30px;
    row-gap: 24px;

    align-items: center;
  }

  .footer-bottom-right .footer-email-wrapper {
    grid-column: 1 / -1;
    justify-self: start;
  }
  

  .footer-bottom-right a.social-link-btn,
  .footer-bottom-right a.resume-download-btn {
    grid-row: 2;
  }

  .footer-email {
    font-size: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }


  .footer-bottom-left {
    order: 2;
    width: 100%;
  }

  .footer-bottom-left a {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
    color: inherit;
  }

  .tooltip {
    left: 0;
    transform: none;
  }
  .tooltip::after {
    left: 18px;
    transform: none;
  }
  
  .social-link-btn,
  .resume-download-btn {
    height: 26px;
    width: fit-content;
    max-width: 100%;
  }

  .social-link-btn {
    width: 26px;
  }

  .resume-download-btn {
    padding: 8px 10px;
  }
}

/* Small phones */
/* @media (max-width: 420px) {
  .footer-top-right {
    font-size: 16px;
  }
} */


