/* =========================================================
   DAMIAN TEMKIN PORTFOLIO | GLOBAL CSS
   File: /css/style.css

   Purpose:
   One clean stylesheet for all pages, global navigation,
   global footer, page content, protection modal, and
   global navigation email button.
========================================================= */

:root {
  --ink: #101014;
  --deep: #03030a;
  --navy: #11048a;
  --navy-deep: #0b0363;
  --blue: #2415b8;
  --blue-soft: #5460ff;
  --panel: #ffffff;
  --soft: #f7f8ff;
  --muted: #5d6070;
  --line: rgba(16, 16, 20, 0.14);
  --cool-line: rgba(17, 4, 138, 0.18);
  --shadow: 0 24px 70px rgba(4, 3, 45, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --max-width: 1160px;
}

/* =========================================================
   GLOBAL RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
* {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(17, 4, 138, 0.11), transparent 30%),
    linear-gradient(315deg, rgba(36, 21, 184, 0.10), transparent 34%),
    #fbfbff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none !important;
  pointer-events: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 5.15vw, 5.7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
}

p {
  color: var(--muted);
  line-height: 1.82;
}

/* =========================================================
   SHARED LAYOUT
========================================================= */

.section-shell {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 16px;
  padding: 8px 14px;
  border: 1px solid rgba(17, 4, 138, 0.26);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(17, 4, 138, 0.06);
}

.centered .section-kicker,
.centered .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.glass-card,
.hero-card,
.profile-summary,
.info-card,
.feature-panel,
.timeline-card,
.contact-panel,
.legal-panel,
.cta-card,
.contact-option,
.skill-chip {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* =========================================================
   GLOBAL NAVIGATION
   Dark charcoal/navy header so the white logo outline shows.
========================================================= */

.portfolio-brandbar {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 28px;

  min-height: 88px;
  padding: 16px 8vw;

  background:
    linear-gradient(
      180deg,
      rgba(10, 12, 20, 0.96),
      rgba(18, 22, 38, 0.94)
    );

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* =========================================
   BRAND LOCKUP
========================================= */

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;

  color: #ffffff;
  font-weight: 900;
}

.brand-logo,
.brand-lockup img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-name,
.brand-lockup span {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

/* =========================================
   NAVIGATION LINKS
========================================= */

.brand-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-links a {
  position: relative;

  color: rgba(255, 255, 255, 0.92);

  font-size: 0.82rem;
  font-weight: 900;

  letter-spacing: 0.08em;
  text-transform: uppercase;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.brand-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: var(--blue-soft);

  transition: width 0.25s ease;
}

.brand-links a:hover {
  color: #ffffff;
}

.brand-links a:hover::after {
  width: 100%;
}

/* =========================================
   GLOBAL NAV EMAIL BUTTON
   Matches Damian portfolio navy/blue branding.
========================================= */

.brand-links .nav-email-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;

  border: 1px solid rgba(84, 96, 255, 0.55);
  border-radius: 999px;

  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      var(--navy),
      var(--blue)
    );

  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  box-shadow:
    0 10px 28px rgba(84, 96, 255, 0.22);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.brand-links .nav-email-btn::after {
  display: none !important;
}

.brand-links .nav-email-btn:hover {
  color: #ffffff !important;

  transform: translateY(-2px);

  border-color: rgba(255, 255, 255, 0.65);

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--blue-soft)
    );

  box-shadow:
    0 14px 34px rgba(84, 96, 255, 0.34);
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-toggle {
  display: none;
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
  min-height: calc(92vh - 88px);
  display: grid;
  align-items: center;
  padding: 74px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(42px, 5vw, 76px);
  align-items: center;
}

.hero-card,
.profile-summary {
  padding: clamp(36px, 5vw, 62px);
}

.hero-subtitle,
.hero-text {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.82;
}

.logo-showcase {
  width: min(260px, 70vw);
  margin: 0 auto 26px;
  padding: 24px;
  border-radius: 999px;
  background: #05050a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(3, 3, 10, 0.24);
}

.profile-summary h2,
.profile-summary p {
  text-align: center;
}

/* =========================================================
   BUTTONS
========================================================= */

.hero-actions,
.centered-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.centered-actions {
  justify-content: center;
}

.btn,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn.primary,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.btn.primary:hover,
.btn-primary:hover {
  border-color: var(--navy);
  background: linear-gradient(135deg, var(--blue), var(--navy));
  box-shadow: 0 12px 24px rgba(17, 4, 138, 0.18);
}

.btn.secondary,
.btn-secondary {
  color: var(--ink);
  background: transparent;
}

.btn.secondary:hover,
.btn-secondary:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* =========================================================
   PAGE SECTIONS
========================================================= */

.intro,
.strengths,
.portfolio,
.examples,
.resume-downloads,
.cta,
.split-section,
.final-cta,
.timeline-section,
.skills-section {
  padding: 88px 0;
}

.page-hero,
.contact-hero,
.legal-hero {
  padding: 96px 0 48px;
}

.page-hero h1,
.contact-hero h1,
.legal-hero h1 {
  max-width: 840px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.contact-content,
.legal-content,
.page-content {
  padding: 24px 0 96px;
}

/* =========================================================
   GRIDS AND CARDS
========================================================= */

.card-grid,
.four-card-grid,
.strength-grid,
.example-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.info-card,
.strength-grid article,
.example-grid div,
.skills-grid article,
.skill-chip {
  min-height: 116px;
  padding: 34px 28px;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  box-shadow: none;
}

.info-card:last-child,
.strength-grid article:last-child {
  border-right: 0;
}

.card-icon,
.strength-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.split-section,
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.feature-panel,
.accent-panel,
.cta-card,
.timeline-card,
.contact-panel,
.legal-panel {
  padding: clamp(32px, 5vw, 54px);
}

.accent-panel {
  background:
    linear-gradient(
      135deg,
      rgba(17, 4, 138, 0.09),
      rgba(255, 255, 255, 0.74)
    ),
    rgba(255, 255, 255, 0.74);
}

.portfolio-list,
.timeline-list,
.experience-list,
.skill-list {
  border-top: 1px solid var(--line);
}

.portfolio-row,
.timeline-row,
.experience-row,
.skill-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.row-label {
  margin-bottom: 10px;
  color: var(--navy) !important;
  font-size: 0.75rem !important;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}

.contact-option,
.legal-panel section {
  padding: 28px;
}

.contact-option a,
.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-panel {
  text-align: left;
}

.legal-panel h2,
.contact-panel h2 {
  margin-top: 42px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.15;
}

.legal-panel h2:first-child,
.contact-panel h2:first-child {
  margin-top: 0;
}

.legal-panel p,
.legal-panel li {
  font-size: 0.98rem;
}

.legal-panel li {
  color: var(--muted);
  line-height: 1.85;
}

/* =========================================================
   GLOBAL FOOTER
   Premium layout:
   logo left, name right, descriptor underneath.
========================================================= */

.site-footer {
  position: relative;

  padding: 72px 32px 42px;

  background:
    radial-gradient(
      circle at top left,
      rgba(36, 21, 184, 0.12),
      transparent 34%
    ),
    #02030a;

  overflow: hidden;

  color: rgba(255, 255, 255, 0.82);

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 28px;
}

.footer-brand-area {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-logo {
  width: 140px;
  height: auto;
  opacity: 0.98;
  pointer-events: none !important;
}

.footer-brand-divider {
  width: 1px;
  height: 92px;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(255, 255, 255, 0.7),
      transparent
    );
}

.footer-brand-text h2 {
  margin: 0;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.footer-subtitle {
  margin-top: 10px;
  color: #3c46ff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.footer-nav a:hover {
  color: #5460ff;
}

.footer-tagline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 38px;

  color: rgba(255, 255, 255, 0.9);

  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.footer-dot {
  color: #4d57ff;
}

.footer-divider {
  width: 100%;
  height: 1px;

  margin-bottom: 28px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(92, 104, 255, 0.7),
      transparent
    );
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* =========================================================
   CONTENT PROTECTION MODAL
========================================================= */

.protection-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 3, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overscroll-behavior: contain;
  touch-action: none;
}

.protection-modal.active {
  display: flex;
}

.protection-panel {
  z-index: 1000000;
  width: min(520px, 100%);
  padding: 44px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  touch-action: auto;
}

.protection-logo,
.protection-panel img {
  width: 64px;
  height: auto;
  margin: 0 auto 18px;
}

.protection-panel h2 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
}

.protection-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.protection-ok {
  margin-top: 22px;
  padding: 12px 30px;
  border: 2px solid #ffffff;
  color: #ffffff;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.protection-ok:hover {
  border-color: var(--navy);
  background: #03030a;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(17, 4, 138, 0.22);
}

body.protection-lock {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* =========================================================
   EXPERIENCE PAGE
   Adds proper spacing below the opening/closing duties card
   before the Core Experience section.
========================================================= */

.experience-feature-spacing {
  margin-bottom: 110px;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 1040px) {

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    max-width: 720px;
  }
}

@media (max-width: 940px) {

  .card-grid,
  .four-card-grid,
  .strength-grid,
  .example-grid,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-section,
  .two-column-layout {
    grid-template-columns: 1fr;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {

  .portfolio-brandbar {
    position: relative;
    min-height: 96px;
    padding: 18px 28px;
    align-items: flex-start;
  }

  .brand-logo,
  .brand-lockup img {
    width: 56px;
    height: 56px;
  }

  .brand-name,
  .brand-lockup span {
    font-size: 0.94rem;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    top: 42%;
    right: 30px;
    z-index: 1001;

    transform: translateY(-50%);

    padding: 4px 6px;

    border: none;

    color: #ffffff;
    background: transparent;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
  }

  .brand-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    z-index: 1000;

    flex-direction: column;
    gap: 14px;

    padding: 18px;

    border: 1px solid rgba(84, 96, 255, 0.26);
    border-radius: 24px;

    background:
      linear-gradient(
        180deg,
        rgba(10, 12, 20, 0.98),
        rgba(18, 22, 38, 0.98)
      );

    text-align: center;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .brand-links.is-open {
    display: flex;
  }

  .brand-links a {
    color: rgba(255, 255, 255, 0.94);
    font-size: 13px;
    letter-spacing: 0.14em;
  }

  .brand-links a::after {
    display: none;
  }

 
 /* =========================================
   MOBILE NAV EMAIL BUTTON
   Professional cobalt default with elegant
   white hover state.
========================================= */

.brand-links .nav-email-btn {
  width: 100%;

  margin-top: 12px;
  padding: 15px 18px;

  border-radius: 18px;

  justify-content: center;

  border:
    1px solid rgba(255,255,255,0.34);

  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      #1b2cb8,
      #4c57ff
    );

  font-size: 0.82rem;
  font-weight: 900;

  letter-spacing: 0.10em;

  box-shadow:
    0 14px 34px rgba(48, 72, 255, 0.30);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

.brand-links .nav-email-btn:hover {
  transform: translateY(-2px);

  color: #111827 !important;

  border-color:
    rgba(140, 160, 255, 0.42);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.96),
      rgba(240,244,255,0.96)
    );

  box-shadow:
    0 16px 38px rgba(48, 72, 255, 0.18);
}

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .contact-options {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 62px 24px 42px;
  }

  .footer-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand-area {
    gap: 20px;
  }

  .footer-logo {
    width: 110px;
  }

  .footer-brand-divider {
    height: 72px;
  }

  .footer-brand-text h2 {
    font-size: 2.2rem;
  }

  .footer-subtitle {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
  }

  .footer-nav {
    gap: 24px;
  }

  .footer-nav a {
    font-size: 0.88rem;
  }

  .footer-tagline {
    justify-content: flex-start;
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .footer-bottom {
    font-size: 0.84rem;
    line-height: 1.7;
  }
}

@media (max-width: 640px) {

  .section-shell {
    width: min(100% - 28px, var(--max-width));
  }

  .hero {
    min-height: auto;
    padding: 48px 0 60px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .card-grid,
  .four-card-grid,
  .strength-grid,
  .example-grid,
  .skills-grid,
  .portfolio-row,
  .timeline-row,
  .experience-row,
  .skill-row {
    grid-template-columns: 1fr;
  }

  .info-card,
  .strength-grid article,
  .example-grid div,
  .skills-grid article,
  .skill-chip {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .info-card:last-child,
  .strength-grid article:last-child,
  .example-grid div:last-child,
  .skills-grid article:last-child,
  .skill-chip:last-child {
    border-bottom: 0 !important;
  }

  .intro,
  .strengths,
  .portfolio,
  .examples,
  .resume-downloads,
  .cta,
  .split-section,
  .final-cta,
  .timeline-section,
  .skills-section {
    padding: 66px 0;
  }

  .protection-panel {
    padding: 34px 26px;
  }

  .footer-brand-area {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-brand-text h2 {
    font-size: 1.95rem;
  }

  .footer-logo {
    width: 96px;
  }

  .footer-text,
  .footer-tagline {
    font-size: 0.92rem;
  }

  .footer-bottom {
    font-size: 0.82rem;
    line-height: 1.7;
  }
}