@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

body {
  -family: "Montserrat", sans-serif;
}

/* ---------------------------
   BASE / GLOBAL
---------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  background: #f6f8fc;
  color: #0f172a;
}

a {
  color: inherit;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 48px;
}

.page.contact-page {
  max-width: 1100px;
  width: 100%;
  padding-left: 0px;
  padding-right: 0px;
}

/* ---------------------------
   NAV (OLD / SIMPLE)
---------------------------- */
/* ---------------------------
   NAV (STICKY + HIDE ON SCROLL)
---------------------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: #1f57a4;
  border-bottom: 1px solid #143b6f;

  /* smooth animations */
  transition: transform 0.22s ease, background 0.25s ease, backdrop-filter 0.25s ease;
  will-change: transform;
}

/* when you are not at the top */
.top-nav.scrolled {
  background: rgba(31, 87, 164, 0.45);
  backdrop-filter: blur(8px);
}

/* hide when scrolling down */
.top-nav.hidden {
  transform: translateY(-110%);
}


.top-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.15s;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.22);
}

.nav-links,
.nav-links a {
  font-family: "Montserrat", sans-serif;
}


/* ---------------------------
   NAV (ONE-LINE ON MOBILE)
---------------------------- */

/* desktop/default */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
}

/* mobile: force one line + allow side-scroll */
@media (max-width: 700px) {
  .top-nav-inner {
    padding: 0 10px; /* tighter on mobile */
  }

  .nav-links {
    justify-content: flex-start;      /* looks better than center when scrolling */
    gap: 10px;                        /* smaller gap so more fits */
    padding: 12px 4px;
    flex-wrap: nowrap;                /* ✅ no wrapping */
    white-space: nowrap;              /* ✅ keep text on one line */
    overflow-x: auto;                 /* ✅ swipe left/right */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;            /* Firefox hide scrollbar */
  }

  .nav-links::-webkit-scrollbar {
    display: none;                    /* Chrome/Safari hide scrollbar */
  }

  .nav-links a {
    flex: 0 0 auto;                   /* prevents shrinking weirdly */
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}

/* ---------------------------
   HERO (HOME)
   Older hero system. Safe to keep.
---------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
  padding: 34px 26px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);

  position: relative;
  overflow: hidden;
}

/* HERO BACKGROUND IMAGE (TBILISI) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("TbilisiPhoto.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* keep hero content above background */
.hero > * {
  position: relative;
  z-index: 1;
}

.hero-left {
  min-width: 0;
}

/* Make the HeroText.png behave nicely */
.hero-text-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 0 0 14px;
}

/* If you bring these back later, they’re still ready */
.hero-hello {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #1f57a4;
}

.hero-intro {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.12;
  font-weight: 800;
}

.hero-im {
  font-weight: 700;
  margin-right: 8px;
  color: #334155;
}

.hero-name {
  color: #0f172a;
}

.hero-role {
  margin: 12px 0 0;
  font-size: 1.12rem;
  color: #334155;
  font-weight: 650;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-major {
  background: rgba(31, 87, 164, 0.10);
  color: #123a72;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 87, 164, 0.18);
}

.hero-and {
  font-weight: 800;
  color: #64748b;
}

.hero-mba-line {
  margin: 10px 0 0;
}

.hero-mba {
  display: inline-block;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.10);
}

.hero-school-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-school-and-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-school {
  margin: 0;
  color: #475569;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons shared */
.resume-button,
.projects-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  border: 1px solid transparent;
}

/* Primary */
.resume-button {
  background: #1f57a4;
  color: white;
  box-shadow: 0 10px 18px rgba(31, 87, 164, 0.18);
}

.resume-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(31, 87, 164, 0.22);
}

/* Secondary */
.projects-button {
  background: white;
  color: #123a72;
  border: 1px solid rgba(31, 87, 164, 0.35);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.projects-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.08);
  background: rgba(31, 87, 164, 0.06);
}

.mt-logo-hero {
  width: 84px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.12));
}

.hero-right {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: min(320px, 100%);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

/* ---------------------------
   SLOGAN IMAGE SECTION
---------------------------- */
.slogan-section {
  margin-top: 14px;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;

  position: relative;

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.slogan-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
}


.slogan-section img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

/* ============================
   PROFESSIONAL OVERVIEW CARD
============================ */
.section-container {
  max-width: 1300px;
  margin: 6px auto 0;
  padding: 26px 28px;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}



.overview-title {
  margin: 0 0 6px;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #0f172a;
  text-align: center;
}


.overview-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: center;
  margin-top: 10px;
}

.overview-text p {
  margin: 0 0 12px 0;
  color: #000000;
  line-height: 1.7;
  font-size: 1rem;
}

.overview-images {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.overview-images img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   ABOUT PAGE LAYOUT
============================ */

.about-intro {
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.about-intro p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #000000;
}

/* Main alternating sections */
.about-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: stretch;
  margin: 70px 0;
}

/* Flip layout */
.about-section.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.about-section.reverse .about-image {
  order: 2;
}

.about-section.reverse .about-text {
  order: 1;
}

/* Image column */
.about-image {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;

  object-fit: cover;

  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);

  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

/* Two stacked images */
.stacked-images img {
  min-height: 200px;
}

/* Text column */
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text h2 {
  margin: 0 0 14px;

  font-size: 2rem;
  line-height: 1.15;

  color: #0f172a;
}

.about-text p {
  margin: 0 0 14px 0;

  color: #000000;
  line-height: 1.8;
  font-size: 1rem;
}

/* Final centered section */
.about-closing {
  max-width: 850px;
  margin: 80px auto 0 auto;
  text-align: center;
}

.about-closing h2 {
  margin-bottom: 14px;
}

.about-closing p {
  line-height: 1.8;
  color: #000000;
}

/* ============================
   MOBILE
============================ */

@media (max-width: 900px) {
  .about-section,
  .about-section.reverse {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-section.reverse .about-image,
  .about-section.reverse .about-text {
    order: initial;
  }

  .about-image img {
    min-height: 240px;
  }

  .about-text h2 {
    font-size: 1.7rem;
  }
}
/* ============================
   GUIDING PRINCIPLES (ABOUT)
============================ */
.info-block {
  max-width: 1100px;
  margin: 18px auto 0;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 26px 28px;
}

.block-title {
  margin: 0 0 10px;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #0f172a;
  text-align: center;
}

.principles-intro,
.principles-close {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.7;
  font-size: 1.04rem;
}

.principles-stack {
  display: grid;
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.principle-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: center;
  padding: 16px 16px;
  border-radius: 16px;
  background: rgba(31, 87, 164, 0.04);
  border: 1px solid rgba(31, 87, 164, 0.12);
}

/* ============================
   GUIDING PRINCIPLES COLOR THEMES
============================ */

/* Shared text color (soft black) */
.principle-row {
  color: #0f172a;
}

/* =====================
   INGENUITY – Deep Blue
===================== */
.principle-row.ingenuity {
  background: #f0f8ffff;
  border-color: rgba(30, 58, 138, 0.18);
}

.principle-row.ingenuity .principle-def {
  background: #07243fff;
  color: #ffffff;
}

/* =====================
   CLARITY – Teal
===================== */
.principle-row.clarity {
  background: #f0fbf9;
  border-color: rgba(6, 95, 70, 0.18);
}

.principle-row.clarity .principle-def {
  background: #064a45;
  color: #ffffff;
}

/* =====================
   INTEGRITY – Orange
===================== */
.principle-row.integrity {
  background: #fff6ed;
  border-color: rgba(76, 29, 149, 0.18);
}

.principle-row.integrity .principle-def {
  background: #7a2e00;
  color: #ffffff;
}


.principle-row.flip {
  grid-template-columns: 0.9fr 1.1fr;
}

.principle-name {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #000000;
}

.principle-explain p {
  margin: 0;
  color: #000000;
  margin: 0 0 12px 0;
  line-height: 1.7;
  font-size: 1rem;
}


.principle-define {
  display: flex;
  justify-content: center;
  align-items: center;
}

.principle-def {
  width: 100%;
  max-width: 700px;

  text-align: center;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.25;
  font-size: 2.75rem;
  font-style: italic;

  color: #073763;
  padding: 16px 14px;
  border-radius: 16px;
  background: white;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);

  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}


/* Responsive */
@media (max-width: 900px) {
  .principle-row,
  .principle-row.flip {
    grid-template-columns: 1fr;
  }

  .principle-def {
    font-size: 1.2rem;
  }
}

/* ============================
   HOBBIES SECTION (ABOUT)
============================ */
.hobbies-block {
  max-width: 1100px;
  margin: 18px auto 0;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 26px 28px;
}

.hobbies-intro {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.7;
  font-size: 1.04rem;
}

/* 2x2 grid */
.hobbies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

/* each hobby card */
/* Base (already exists) */
.hobby-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Variants ONLY override color */
.hobby-card.hobby-travel {
  /* cool gray */
  background: rgba(120, 130, 145, 0.08);
  border-color: rgba(120, 130, 145, 0.24);
}

.hobby-card.hobby-cars {
  /* Miata blue (faded) */
  background: rgba(40, 90, 165, 0.09);
  border-color: rgba(40, 90, 165, 0.26);
}

.hobby-card.hobby-music {
  /* yellow / orange (faded) */
  background: rgba(235, 170, 60, 0.10);
  border-color: rgba(235, 170, 60, 0.28);
}

.hobby-card.hobby-storm {
  /* hail core / grass green (faded) */
  background: rgba(70, 120, 75, 0.10);
  border-color: rgba(70, 120, 75, 0.28);
}



.hobby-title {
  margin: 0;
  font-size: 1.6rem;
  color: #0f172a;
}

.hobby-text {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  font-size: 1rem;
}

.hobby-text p {
  margin-bottom: 12px;
  line-height: 1.7;
}

/* photo box */
.hobby-photo {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
}

.hobby-photo img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
}

/* responsive */
@media (max-width: 900px) {
  .hobbies-grid {
    grid-template-columns: 1fr;
  }

  .hobby-photo img {
    height: 220px;
  }
}

.hobby-text p {
  margin: 0 0 12px 0;   /* removes the top margin */
  line-height: 1.7;
}

.hobby-text p:last-child {
  margin-bottom: 0;
}


/* ---------------------------
   PAGE HEADINGS / TEXT
---------------------------- */
h1 {
  margin: 0 0 14px;
  font-size: 2rem;
  line-height: 1.15;
}

p {
  color: #334155;
  line-height: 1.65;
  font-size: 1.04rem;
}

/* ============================
   RESUME PAGE (HTML VERSION)
============================ */
/* Bottom resume actions */
.resume-bottom-actions {
  margin-top: 20px;
  margin-bottom: 0px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}


.resume-page {
  padding-top: 16px;
}

/* Header row */
.resume-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.resume-page-title {
  margin: 0;
}

/* Buttons */
.resume-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


.resume-download {
  background: #1f57a4;
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(31, 87, 164, 0.2);
}

.resume-open {
  background: #ffffff;
  color: #123a72;
  border: 1px solid rgba(31, 87, 164, 0.35);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.resume-download:hover,
.resume-open:hover {
  transform: translateY(-1px);
}

/* Paper container */
.resume-paper {
  max-width: 920px;
  margin: 22px auto 22px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  padding: 34px 38px;
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  padding-bottom: 14px;
  border-bottom: none;
}

@media (max-width: 700px) {
  .resume-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-contact {
    text-align: left;
  }
}


.resume-name {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.2px;
  color: #073763;
}

.resume-tagline {
  margin-top: 6px;
  color: #3c3f42;
  font-weight: 700;
  font-size: 1.2rem;
}

.resume-contact {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1rem;        /* controls size */
  font-weight: 300;       /* controls weight */
  color: #3c3f42;         /* controls color */
  line-height: 1.2;
}

/* Resume summary (professional statement) */
.resume-summary p {
  font-size: 1rem;
  font-weight: 400;
  color: #000000;
  line-height: 1.4;
  margin: 10px 0 0;
}


/* Sections */
.resume-section {
  margin-top: 18px;
}

.resume-h2 {
  margin: 0 0 10px;
  font-size: 2.1rem;
  letter-spacing: 0.6px;
  color: #073763;
  font-weight: 1500;
}

.resume-h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 5px;
  background: #073763;
  margin-top: 2px;
}


/* Big gap after each job */


/* BIG spacing after the first degree block (MBA) */
.resume-entry:first-of-type {
  margin-bottom: 18px;
}

.resume-entry-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: baseline;
}

.resume-entry-title {
  font-family: "Montserrat", sans-serif;  /* font family */
  font-size: 1.5rem;                      /* size (≈ 14–15pt) */
  font-weight: 700;                       /* thickness */
  color: #000000;
  line-height: 1.15;   
}

.resume-degree-stack {
  margin-top: 3px;   /* controls space BETWEEN the two degree lines */
}


.resume-entry-date {
  font-style: italic;
  color: #3c3f42;
  font-weight: 300;
  font-size: 1rem;   
}

.resume-entry-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-style: italic;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 300;
  color: #3c3f42;
  line-height: 1.3;
}

.resume-school {
  text-align: left;
   font-style: italic;
  font-weight: 300;
   font-size: 1rem;   
}

.resume-location {
  text-align: right;
  font-style: italic;
  white-space: nowrap;
  color: #3c3f42;
  font-weight: 300;
   font-size: 1rem;   
}


.resume-note {
  margin: 5px 0 0;
  color: #000000;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.4;
}

/* Consistent spacing after each role */
.resume-bullets {
  margin: 5px 0 18px 0;
  padding-left: 18px;
  color: #000000;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}


/* Skills grid */
.resume-skills {
  margin: 10px 0 10px 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 16px;
  color: #000000;
  font-weight: 400;
}

.resume-skills li {
  padding-left: 14px;
  position: relative;
}

.resume-skills li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000;
  font-weight: 900;
}

/* Certifications */
.resume-certs {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.resume-certs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 2px 0;
}

.resume-cert-name {
  font-weight: 500;
  color: #000000;
  font-size: 1rem;
}

.resume-cert-org {
  font-style: italic;
  font-weight: 300;
  color: #3c3f42;
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .resume-certs li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .resume-cert-org {
    white-space: normal;
  }
}


/* Mobile */
@media (max-width: 760px) {
  .resume-paper {
    padding: 24px 20px;
  }

  .resume-contact {
    text-align: left;
  }

  .resume-skills {
    grid-template-columns: 1fr 1fr;
  }
}

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


/* ---------------------------
   FOOTER
---------------------------- */
.fun-footer {
  margin-top: 30px;
  padding: 18px 12px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  background: #0f2f5f;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 600;
}

.fun-footer a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sticky footer layout (safe version) */
html,
body {
  height: auto;       /* don't force 100% height */
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* prevent header/footer from shrinking or getting weird */
.top-nav,
.fun-footer {
  flex: 0 0 auto;
  width: 100%;
}

/* this makes the main content expand and push footer down */
main.page {
  flex: 1 0 auto;
}



/* ---------------------------
   RESPONSIVE
---------------------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 26px 18px;
  }

  .nav-links {
    font-size: 0.98rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .mt-logo-hero {
    width: 72px;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-intro {
    font-size: 1.85rem;
  }

  .resume-preview iframe {
    height: 720px;
  }

  .about-card {
    padding: 20px;
  }

  .hero-text-image {
    max-width: 100%;
    margin-bottom: 12px;
  }
}

/* ---------------------------
   HOME HERO (REFERENCE SCREENSHOT LAYOUT)
   This is the one index.html is using now:
   .hero-screenshot, .hero-screenshot-inner, etc.
---------------------------- */
.hero-screenshot {
  margin: 0 auto;
  padding: 10px 0 2px;
  max-width: 1100px;
}

.hero-screenshot-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 420px;
  padding: 44px 64px;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 48px;

  background-image: url("TbilisiPhoto.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background-color: #ffffff;
}


/* soft overlay so text pops */
.hero-screenshot-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.58);
}

.hero-left-stack,
.hero-right-circle {
  position: relative;
  z-index: 1;
}

.hero-left-stack {
  max-width: 520px;
  min-width: 320px;
  padding-right: 32px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  color: #2c2c2c;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 750;
  color: #3b3b3b;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
}

.hero-mini {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #4a4a4a;
  line-height: 1;
  white-space: nowrap;
}


.hero-mini-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: nowrap;
}


.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 140px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.btn-red:hover {
  box-shadow:
    0 14px 28px rgba(179, 25, 25, 0.35),
    0 0 0 2px rgba(179, 25, 25, 0.14);
}

.btn-gray:hover {
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.18),
    0 0 0 2px rgba(91, 91, 91, 0.18);
}

.btn-pill:active {
  transform: translateY(1px) scale(0.98);
}

.btn-red {
  background: linear-gradient(135deg, #b31919, #8f1414);
  color: #ffffff;
}

.btn-gray {
  background: linear-gradient(135deg, #5b5b5b, #3f3f3f);
  color: #ffffff;
}


.hero-mini-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 14px;
  width: fit-content;
}

.mtsu-mark {
  height: 110px;              /* BIGGER logo */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 30px;         /* pushes it right */
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.18));
}


/* right big circle headshot */
.hero-right-circle {
  width: 400px;
  height: 400px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  padding: 8px;
  border: 8px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}


.hero-right-circle img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

/* responsive */
@media (max-width: 900px) {
  .hero-screenshot-inner {
    padding: 28px 22px;
    grid-template-columns: 1fr;
   row-gap: 22px;
   justify-items: start;
    justify-self: center;
    min-height: 520px;
  }

  .hero-right-circle {
    width: 220px;
    height: 220px;
    justify-self: center;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-subtitle {
    font-size: 28px;
  }
}

.hero-button-row {
  display: flex;
  justify-content: flex-start;   /* LEFT align buttons */
  align-items: center;
  gap: 40px;                     /* space BETWEEN buttons */
  margin-top: 30px;

  margin-left: 0;                /* control left offset */
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-button-row {
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .btn-pill {
    min-width: 150px;
  }
}


/* ============================
   CONTACT PAGE
============================ */

.contact-page {
  padding-top: 40px;
  padding-bottom: 40px;
}

/* 2x2 grid */
.contact-grid {
  width: 100%;
  max-width: 900px;   /* ← sweet spot */
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

/* Mobile */
@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Each tile */
.contact-tile {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px;

  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

/* Make entire tile clickable */
.contact-tile-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Hover */
.contact-tile:hover {
  background: #eef4ff;
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.10);
}

/* Focus */
.contact-tile-link:focus-visible {
  outline: 3px solid rgba(7, 36, 63, 0.35);
  outline-offset: 4px;
  border-radius: 18px;
}

.contact-tile-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 12px 0;
}

.contact-icon {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 50%;

  background: transparent;
  border: none;
  padding: 0;

  display: block;
  margin-bottom: 14px;
}


.contact-tile-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #0f172a;
}

.contact-tile-value,
.contact-tile-text {
  margin-top: 6px;
  text-align: center;
  line-height: 1.4;
}

.contact-tile-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f3a68;
  word-break: break-word;
}

.contact-tile-value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-tile-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: #475569;
}

.contact-muted {
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
}


/* ============================
   PROJECTS PAGE
   (Horizontal cards + Banner tile)
============================ */

.projects-page {
  background: transparent;
  padding-top: 26px;
}

.projects-header {
  margin: 0 auto 16px;
  max-width: 1100px;
}

.projects-title {
  margin: 0 0 8px;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #0f172a;
}

.projects-subtitle {
  margin: 0;
  font-weight: 600;
}

/* list wrapper */
.projects-list {
  display: grid;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

/* link wrapper */
.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ============================
   HORIZONTAL CARD
============================ */

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;

  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  outline: none;
}

/* cover image */
.project-cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

/* title area */
.project-main {
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.project-name {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.15;
  font-weight: 850;
  color: #0f172a;
}

/* Keyboard accessibility (desktop only) */
.project-row:focus-visible {
  outline: 3px solid rgba(7, 36, 63, 0.35);
  outline-offset: 4px;
}


/* Project description text */
.project-desc {
  margin: 0;
  max-width: 900px;
  font-weight: 650;
  color: #334155;
  line-height: 1.7;
}

/* Responsive layout */
@media (max-width: 900px) {
  .project-row {
    grid-template-columns: 1fr;
  }

  .project-cover {
    height: 190px;
  }

  .project-main {
    padding: 16px 16px 18px;
  }
}

/* ✅ Absolute mobile/off switch (wins even if device lies about hover) */
@media (max-width: 900px) {
  .project-hover {
    display: none !important;
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none !important;
  }
}



/* ============================
   BANNER TILE (like your EESA tile)
   Uses: style="--banner-img: url('...');"
============================ */

.project-title-banner {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: 200px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  text-decoration: none;

  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);

  background: #ffffff;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

/* background image */
.project-title-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--banner-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  transform: scale(1.02);
  transition: transform 0.18s ease;
}

/* soft overlay */
.project-title-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.18s ease;
}

/* big title text */
.project-title-text {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;

  font-family: "Montserrat", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(34px, 4.8vw, 72px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.05;

  color: #ffffff;
  text-shadow:
  0 4px 10px rgba(0, 0, 0, 0.35),
  0 14px 30px rgba(0, 0, 0, 0.45);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
}

/* ============================
   EESA BANNER HOVER SUMMARY
============================ */

.project-banner-hover {
  position: absolute;
  inset: 0;

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

  padding: 32px;
  text-align: center;

  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;

  z-index: 2;
  pointer-events: none;
}

.project-banner-hover p {
  max-width: 760px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: #334155;
}

/* Desktop only: hover effects (real hover devices) */
@media (hover: hover) and (pointer: fine) {
  .project-title-banner:hover .project-banner-hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .project-title-banner:hover .project-title-text {
    opacity: 0.15;
  }
}

/* Keyboard accessibility: keep this for ALL devices */
.project-title-banner:focus-visible .project-banner-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile: hard disable the hover overlay so iOS long-press can’t “stick” it */
@media (hover: none), (pointer: coarse), (max-width: 700px) {
  .project-banner-hover {
    display: none !important;
  }
}



.project-title-banner:focus-visible {
  outline: 3px solid rgba(7, 36, 63, 0.35);
  outline-offset: 4px;
  border-radius: 18px;
}

@media (max-width: 700px) {
  .project-title-banner {
    height: 110px;
    border-radius: 16px;
  }

  .project-title-text {
    font-size: clamp(28px, 6.2vw, 44px);
    -webkit-text-stroke: 0;
  }
}

/* ============================
   LIVEBOLT PROJECT PAGE
   Matches About section styling
============================ */

.project-header-card {
  max-width: 1300px;
}

.project-back-btn {
  display: inline-block;
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.02);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.project-back-btn:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.04);
}

.project-title {
  margin-top: 6px;
  text-align: center;
}

.project-subtitle {
  margin: 8px 0 10px;
  color: #334155;
  line-height: 1.7;
  font-size: 1.04rem;
  max-width: 980px;
  font-style: italic;
  text-align: center;
}

.project-meta {
  margin: 0 0 16px;
  color: rgba(15, 23, 42, 0.65);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-align: center;
}

.project-meta .dot {
  margin: 0 10px;
  opacity: 0.6;
}

.project-hero {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(15, 23, 42, 0.03);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.project-hero img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
}

/* Reuse your About card look, just tuned for projects */
.livebolt-block {
  max-width: 1100px;
}

.project-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.project-figure {
  margin: 0;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);

  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-figure img {
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.03);
  margin: 0 auto; /* centers image if width ever changes */
}

.project-figure figcaption {
  padding: 12px 14px;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: center;
}

.project-figure.wide img {
  height: 360px;
}

.project-bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.7;
  font-size: 1.02rem;
}

.project-bullets li {
  margin-bottom: 8px;
}

.project-bullets li:last-child {
  margin-bottom: 0;
}

.project-links {
  margin: 10px 0 0;
  font-size: 1.02rem;
}

.project-links a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(15, 23, 42, 0.18);
}

.project-links a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.45);
}

/* Responsive */
@media (max-width: 900px) {

  .project-hero img {
    height: 240px;
  }

  .project-inline-grid {
    grid-template-columns: 1fr;
  }

  .project-figure img {
    height: 220px;
  }

  .project-figure.wide {
    align-items: center;
  }

  .project-figure.wide img {
    height: 240px;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}


.figure-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 32px 0;
}

.figure-row .project-figure {
  margin: 0;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .figure-row {
    grid-template-columns: 1fr;
  }
}

/* ============================
   BIG GROUP CONTAINERS
============================ */

.credentials-group {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 16px;

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


/* space between inner cards */
.credentials-group .cred-card {
  margin-top: 18px;
}

.credentials-group .cred-card:first-child {
  margin-top: 0;
}

/* section title spacing */
.credentials-section-title {
  margin-bottom: 14px;
}

/* subtle separation between big sections */
.credentials-section {
  margin-bottom: 50px;
}


/* ============================
   CREDENTIALS PAGE
============================ */

.credentials-page {
  padding-top: 34px;
  padding-bottom: 54px;
}

/* Page header */
.credentials-header {
  margin: 6px 0 18px;
}

.credentials-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.credentials-subtitle {
  margin: 10px 0 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.72);
}

/* ============================
   CREDENTIALS PAGE (NEW COLORS)
============================ */

.credentials-page {
  padding-top: 11px;
  padding-bottom: 3px;
}

/* Page header */
.credentials-header {
  margin: 6px 0 18px;
}

.credentials-title {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.credentials-subtitle {
  margin: 10px 0 0;
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(15, 23, 42, 0.72);
}

/* Big section boxes (now WHITE) */
.credentials-section {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 20px;
  margin-top: 10px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08);
}

/* Section titles (dark again) */
.credentials-section-title {
  margin: 0 0 14px;
  color: #000000;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Stack of smaller cards inside each big box */
.credentials-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Base small card style */
.cred-card {
  background: #ffffff; /* default fallback */
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cred-card.flip {
  flex-direction: row-reverse;
}

/* Image column */
.cred-media {
  flex: 0 0 360px;
  max-width: 360px;
}

.cred-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  object-fit: cover;
}

/* Text column */
.cred-info {
  flex: 1;
  min-width: 0;
}

.cred-title {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 500;
  color: #000000;
  letter-spacing: 0;
}

.cred-meta {
  margin: 10px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-org,
.cred-date,
.cred-extra {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.72);
}

.cred-text {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.80);
}

/* ============================
   FAINT TINT THEMES (per credential)
   Add these classes to each .cred-card in HTML
============================ */

/* MTSU degrees (super light MTSU blue) */
.cred-card.mtsu {
  background: rgba(31, 87, 164, 0.08);
  border-color: rgba(31, 87, 164, 0.18);
}

/* SOLIDWORKS (super faded red) */
.cred-card.solidworks {
  background: rgba(179, 25, 25, 0.07);
  border-color: rgba(179, 25, 25, 0.18);
}

/* MATLAB (super faded orange/yellow) */
.cred-card.matlab {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

/* Excel (super faded green) */
.cred-card.excel {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.18);
}

/* Responsive */
@media (max-width: 900px) {
  .credentials-title {
    font-size: 36px;
  }

  .credentials-section-title {
    font-size: 28px;
  }

  .cred-card,
  .cred-card.flip {
    flex-direction: column;
    align-items: stretch;
  }

  .cred-media {
    flex: 0 0 auto;
    max-width: 100%;
  }
}


/* Title inside big boxes */
.credentials-section-title {
  margin: 0 0 10px;
  font-size: 2.5rem;
  line-height: 1.15;
  color: #0f172a;
}

/* Stack of smaller cards inside each big box */
.credentials-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Smaller cards (normal + flip) */
.cred-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.cred-card.flip {
  flex-direction: row-reverse;
}

/* Image column */
.cred-media {
  flex: 0 0 360px;
  max-width: 360px;
}

.cred-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  object-fit: cover;
}

/* Text column */
.cred-info {
  flex: 1;
  min-width: 0;
}

.cred-title {
  margin: 0 0 12px;
  font-size: 2rem;
  color: #000000;
}

.cred-meta {
  margin: 0;
  color: #000000;
  margin: 0 0 12px 0;
  line-height: 1.7;
  font-size: 1rem;
  font-style: italic;
}

.cred-org,
.cred-date,
.cred-extra {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: #475569;
}

.cred-text {
  margin: 0;
  color: #000000;
  margin: 0 0 12px 0;
  line-height: 1.7;
  font-size: 1rem;
}

/* Responsive: stack image above text on smaller screens */
@media (max-width: 900px) {
  .credentials-title {
    font-size: 36px;
  }

  .credentials-section-title {
    font-size: 28px;
  }

  .cred-card,
  .cred-card.flip {
    flex-direction: column;
    align-items: stretch;
  }

  .cred-media {
    flex: 0 0 auto;
    max-width: 100%;
  }
}


/* ============================
   ROTATING BANNER BOX
============================ */
.rotator {
  max-width: 1100px;
  margin: 18px auto 0;
}

.rotator-viewport {
  position: relative;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.10);
  background: #ffffff;
}

.rotator-slide {
  position: absolute;
  inset: 0;

  display: grid;
  align-items: center;

  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.rotator-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.rotator-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to right,
    rgba(20, 20, 20, 0.38),
    rgba(20, 20, 20, 0.24),
    rgba(20, 20, 20, 0.12)
  );

  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}



.rotator-content {
  color: #ffffff;
  position: relative;
  z-index: 1;
  max-width: 560px;          /* controls text column width */
  padding: 0 80px;           /* creates breathing room from arrows */
}

/* soft dark halo behind text block */
.rotator-content::before {
  content: "";
  position: absolute;
  inset: -20px -24px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.25),
    transparent 70%
  );
  filter: blur(6px);
  z-index: -1;
}

/* eyebrow */
.rotator-eyebrow {
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 0.95rem;
  color: #ffffff;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 4px 8px rgba(0, 0, 0, 0.75),
    0 10px 28px rgba(0, 0, 0, 0.65);
}

/* title (extra punch) */
.rotator-title {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
  font-weight: 900;
  color: #ffffff;

  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 6px 14px rgba(0, 0, 0, 0.8),
    0 18px 40px rgba(0, 0, 0, 0.7);
}

/* body text */
.rotator-text {
  margin: 0 0 16px;
  color: #ffffff;
  line-height: 1.6;
  font-size: 1.02rem;
  font-weight: 600;

  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 4px 8px rgba(0, 0, 0, 0.75),
    0 10px 28px rgba(0, 0, 0, 0.65);
}

/* CTA */
.rotator-cta {
  min-width: 180px;
  color: #ffffff;
}

/* arrows */
.rotator-arrow {
  display: none;
}

.rotator-arrow:hover {
  display: none;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

.rotator-prev {
  left: 12px;
}

.rotator-next {
  right: 12px;
}

/* dots */
.rotator-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;

  display: flex;
  gap: 10px;

  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(8px);
}

.rotator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.25);
  cursor: pointer;
}

.rotator-dot.is-active {
  background: rgba(15, 23, 42, 0.70);
}

/* mobile */
@media (max-width: 700px) {
  .rotator-viewport {
    height: 280px;
  }

  .rotator-content {
    padding: 18px 16px 54px;
    max-width: 100%;
  }

  .rotator-text {
    font-size: 0.98rem;
  }

  .rotator-arrow {
    width: 40px;
    height: 40px;
  }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rotator-slide {
    transition: none;
  }
}

@media (max-width: 700px) {
  .rotator-text {
    display: none;
  }
}

@media (max-width: 700px) {
  .rotator-viewport {
    height: 240px;
  }
}


@media (max-width: 700px) {
  .rotator-cta {
    min-width: auto;
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}

/* Project CTA – always red */
.btn-project {
  background: linear-gradient(135deg, #b31919, #8f1414);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(179, 25, 25, 0.35);
}

.btn-project:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 28px rgba(179, 25, 25, 0.45),
    0 0 0 2px rgba(179, 25, 25, 0.18);
}

.btn-project:active {
  transform: translateY(1px) scale(0.98);
}


/* ============================
   ROTATOR — MOBILE SPACING FIX
============================ */
@media (max-width: 700px) {
  /* Stop vertical centering so content sits naturally */
  .rotator-slide {
    align-items: start;
  }

  /* Give text/button breathing room (and space above dots) */
  .rotator-content {
    padding: 18px 16px 86px; /* bigger bottom padding = no dot overlap */
    max-width: 100%;
  }

  /* Make title + button spacing consistent */
  .rotator-title {
    margin: 0 0 12px;
    line-height: 1.08;
  }

  .rotator-text {
    margin: 0 0 14px;
  }

  /* If rotator-text is hidden on mobile, keep button spacing nice */
  .rotator-cta {
    margin-top: 8px;
  }

  /* Keep dots comfortably away from the edge */
  .rotator-dots {
    bottom: 10px;
  }
}

