* {
  box-sizing: border-box;
}

:root {
  /* NIGHT palette for background */
  --bg: #0d0821;
  --bg-alt: #161a30;
  --card: #172a47;
  --border-subtle: #3f5c7f;

  /* ICED – text + accent tones */
  --text-main: #f0f8ff;
  --text-muted: #b0e0e6;

  --accent-1: #f0f8ff;
  --accent-2: #87ceeb;
  --accent-3: #4682b4;

  /* Sunshine – button colors */
  --sun-1: #ff4500;
  --sun-2: #daa520;
  --sun-3: #ffd700;

  --link-highlight-bg: rgba(135, 206, 235, 0.22);
  --link-color: #87ceeb;

  --radius-lg: 16px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);

--neu-shadow-light: rgba(176, 224, 230, 0.24);
--neu-shadow-dark: rgba(0, 0, 0, 0.9);
--glass-bg: rgba(6, 9, 20, 0.82);
--glass-border: rgba(176, 224, 230, 0.30);

}


body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(135deg, #0D0821 0%, #161A30 25%, #172A47 50%, #1F3A5B 75%, #3F5C7F 100%);
  min-height: 100vh;
  scroll-behavior: smooth;

  min-width: 1200px;
}

/* 3D animated global background */

  50% { transform: translate3d(-80px,-40px,-60px) rotateZ(-160deg); }
  100% { transform: translate3d(0,0,0) rotateZ(-360deg); }
}

/* Global links with highlight */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  background-image: linear-gradient(to bottom, transparent 60%, var(--link-highlight-bg) 60%);
  background-repeat: no-repeat;
  background-size: 100% 0%;
  transition: background-size 0.15s ease, color 0.15s ease;
}

a:hover {
  background-size: 100% 100%;
  color: #e1f4ff;
}

/* Remove underline/highlight on button-style links */
.tricolor-btn,
nav.main-nav a {
  text-decoration: none;
  background-image: none;
}

/* Sunshine buttons */
.tricolor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2), var(--sun-3));
  color: #161a30;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}

.tricolor-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
}

.tricolor-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
}

/* Layout */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

section {
  margin: 3.2rem 0;
  scroll-margin-top: 130px;
}

/* Hero section */
.hero-section {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}

/* Cards */
.card {
  background:
    radial-gradient(circle at top left, rgba(240, 248, 255, 0.04), transparent 55%),
    linear-gradient(145deg, rgba(23, 42, 71, 0.98), rgba(6, 9, 20, 0.98));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.6rem;
    box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.85),
    -10px -10px 20px rgba(176, 224, 230, 0.16);

  animation: floatCard 18s ease-in-out infinite alternate;
}

@keyframes floatCard {
  0% { transform: translate3d(0,0,0) rotateX(0deg); }
  50% { transform: translate3d(0,-2px,4px) rotateX(0.4deg); }
  100% { transform: translate3d(0,2px,-4px) rotateX(-0.4deg); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px) saturate(135%);
  background: linear-gradient(
    135deg,
    rgba(6, 9, 20, 0.92),
    rgba(16, 24, 48, 0.78)
  );
  border-bottom: 1px solid var(--glass-border);
}


.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--text-muted);
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
}

.logo-mark:hover {
  transform: translateY(-1px);
  color: var(--accent-1);
  text-shadow: 0 0 10px rgba(135, 206, 235, 0.8);
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f0f8ff, #87ceeb);
  box-shadow: 0 0 14px rgba(135, 206, 235, 0.9);
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.88rem;
}

nav.main-nav a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  color: #161a30;
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2), var(--sun-3));
  border: 1px solid rgba(255, 215, 0, 0.7);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

nav.main-nav a:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  color: #000;
}

/* Top ticker */
.top-ticker {
  position: sticky;
  top: 58px;
  z-index: 25;
}

.top-ticker-rail {
  width: 100%;
  border-bottom: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(135%);
  overflow: hidden;
}


.top-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  padding: 0.45rem 1.5rem;
  animation: topTickerScroll 28s linear infinite;
  font-size: 0.83rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.top-ticker-track span {
  padding-right: 3rem;
}

@keyframes topTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Loading overlay */
#loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at top,
    #0d0821 0%,
    #161a30 35%,
    #172a47 60%,
    #1f3a5b 80%,
    #000 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.loading-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.4rem 1.8rem;
}

.loading-image img {
  width: 90px;
  max-width: 22vw;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(135, 206, 235, 0.6));
}

.loading-text {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.loading-line-1 {
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}

.typing-cursor {
  display: inline-block;
  width: 1ch;
  text-align: left;
  color: var(--accent-3);
  animation: blink 0.9s steps(2, start) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.loading-line-2-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.75s ease;
}

.loading-line-2-text.show {
  opacity: 1;
}

.loading-line-3 {
  font-size: 0.9rem;
  color: var(--text-main);
  opacity: 0.9;
}

.enter-btn {
  margin-top: 0.35rem;
  align-self: flex-end;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* About hero */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.headshot-wrap {
  display: flex;
  justify-content: center;
}

.headshot-card {
  position: relative;
  padding: 0.65rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(240, 248, 255, 0.05), transparent 70%);
  border: 1px solid rgba(176, 224, 230, 0.7);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.6);
}

.headshot-card img {
  display: block;
  max-width: 230px;
  width: 100%;
  border-radius: 18px;
}

.headshot-bubble {
  position: absolute;
  right: -10px;
  top: -14px;
  background: rgba(6, 9, 20, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(176, 224, 230, 0.8);
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-main);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  animation: teeter 3.5s ease-in-out infinite;
}

.bubble-arrow {
  font-weight: 700;
}

@keyframes bubbleFloat {
  0% { transform: translate3d(0,0,0); opacity: 0.9; }
  50% { transform: translate3d(0,-4px,0); opacity: 1; }
  100% { transform: translate3d(0,0,0); opacity: 0.9; }
}

.about-body {
  max-width: 620px;
}

.about-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0;
}

.about-body p {
  margin: 0 0 0.9rem;
  line-height: 1.6;
  font-size: 0.97rem;
}

/* Section headers & bubble for non-hero sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.section-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.section-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.55rem;
  max-width: 44rem;
  text-align: left;
}

.section-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 9, 20, 0.96);
  border: 1px solid rgba(176, 224, 230, 0.8);
  font-size: 0.7rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  transform-origin: left center;
  animation: teeter 3.5s ease-in-out infinite;
}

.section-bubble-arrow {
  position: relative;
  z-index: 1;
}

.section-bubble-text {
  position: relative;
  z-index: 1;
}

/* Skills */
.skills-grid-2x3 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.skill-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.25rem 1.15rem;
  background: linear-gradient(145deg, rgba(22, 36, 68, 0.98), rgba(6, 9, 20, 0.98));

  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.85),
    -10px -10px 20px rgba(176, 224, 230, 0.16);

}

.skill-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.skill-list li {
  margin: 0.22rem 0;
}

/* Experience companies */
.experience-companies {
  padding: 1.2rem 1.2rem 1.25rem;
}

.companies-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-align: center;
}

.companies-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.companies-row::-webkit-scrollbar {
  height: 6px;
}

.companies-row::-webkit-scrollbar-thumb {
  background: rgba(176, 224, 230, 0.5);
  border-radius: 999px;
}

.company-pill {
  min-width:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  background:transparent;
  border:none;
  box-shadow:none;
}

.company-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7);
}

.company-logo-full {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  animation: orgPulse 3s ease-in-out infinite;
}

@keyframes logoFade {
  0% { opacity: 0.15; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0.15; }
}

.company-name {
  font-size: 0.9rem;
  text-align: center;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.cert-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.1rem 1.25rem;
  background: linear-gradient(150deg, rgba(22, 36, 68, 0.98), rgba(6, 9, 20, 0.98));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 120px;

  box-shadow:
    14px 14px 28px rgba(0, 0, 0, 0.85),
    -10px -10px 20px rgba(176, 224, 230, 0.16);

}

.cert-name {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 1.25rem;
}

.project-card {
  flex: 0 0 min(360px, 80vw);
  scroll-snap-align: start;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  cursor: pointer;
}

.project-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.project-card p {
  margin: 0;
  line-height: 1.55;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.35);
  padding: 0.95rem 1.05rem;
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2), var(--sun-3));
  color: #161a30;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6);
}

.contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.contact-icon-circle {
  border-radius: 50%;
}

.contact-icon-square {
  border-radius: 8px;
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.16rem;
  color: #161a30;
}

.contact-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #161a30;
}

/* Footer */
footer {
  border-top: 1px solid rgba(176, 224, 230, 0.7);
  padding: 1.6rem 0 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive tweaks */











/* === OVERRIDES PER LATEST INSTRUCTIONS === */

/* Section summaries full width */
.section-summary {
  max-width: 100%;
}

/* Skill cards: titles clear + chip-style skills */
.skill-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(176, 224, 230, 0.65);
  letter-spacing: 0.02em;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.skill-list li {
  margin: 0;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(176, 224, 230, 0.7);
  background: rgba(6, 9, 20, 0.92);
}

/* Title bubbles: teeter animation */
.section-bubble {
  animation: teeter 3.5s ease-in-out infinite;
  transform-origin: left center;
}

.section-bubble::before {
  content: none;
}

@keyframes teeter {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-2deg); }
  40%  { transform: rotate(2deg); }
  60%  { transform: rotate(-1.2deg); }
  80%  { transform: rotate(1.2deg); }
  100% { transform: rotate(0deg); }
}

/* Organizations section: fly-in on load + grow/shrink logos */
.experience-companies {
  animation: orgFlyIn 0.9s ease-out both;
}

@keyframes orgFlyIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.company-logo-full {
  animation: orgPulse 3.1s ease-in-out infinite;
}

@keyframes orgPulse {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.06); }
  50%  { transform: scale(1); }
  75%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Contact buttons: Sunshine tricolor with clean text */
.contact-item {
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2), var(--sun-3));
  color: #161a30;
}

.contact-item,
.contact-item .contact-label,
.contact-item .contact-link {
  text-decoration: none;
  background-image: none;
  color: #161a30;
}

/* All non-button text = iced */
body,
.section-title,
.section-summary,
.about-body p,
.skill-card,
.skill-card .skill-title,
.skill-list li,
.project-card,
.project-card h3,
.project-card p,
.cert-card,
.cert-name,
.companies-label,
.company-name,
footer {
  color: var(--accent-1);
}


.company-name {
  animation: orgPulse 3s ease-in-out infinite;
}


.contact-item {
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2), var(--sun-3));
  color: #161a30;
}


/* Skills stacked groups with pill-style items */
.skills-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.9rem;
}

.skills-group {
  margin: 0;
}

.skills-group-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
}

.skills-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.65rem;
  background: #020617;
  color: var(--text-muted);
  min-height: 2.1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.55);
  font-size: 0.85rem;
}

.skill-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.4rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: none;
  background: transparent;
}

.skill-pill-icon::before {
  content: "";
}


.skill-pill-label {
  white-space: nowrap;
}


/* Projects horizontal row with image + content like a Netflix strip */
.projects-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.4rem;
  overflow-x: auto;
  padding: 0.4rem 0 0.35rem;
  scroll-snap-type: x mandatory;
}

.projects-row::-webkit-scrollbar {
  height: 6px;
}

.projects-row::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}

.project-tile {
  flex: 0 0 min(520px, 86vw);
  scroll-snap-align: start;
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.35rem 1.25rem;
  background: radial-gradient(circle at 0 0, rgba(160, 191, 224, 0.55), rgba(6, 9, 20, 0.98));
}

.project-image.auto-thumb {
  border-radius: 18px;
  background: radial-gradient(circle at 30% 20%, rgba(176, 224, 230, 0.9), rgba(11, 36, 74, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.project-image-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  color: #020617;
}

.project-content h3 {
  margin-top: 0;
  font-size: 1rem;
  font-weight: 600;
}

.project-content p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
}


.projects-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0.6rem 0 0.8rem;
  scroll-snap-type: x mandatory;
}

.projects-carousel::-webkit-scrollbar {
  height: 6px;
}

.projects-carousel::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
}


.project-inner {
  position: relative;
  width: 100%;
  min-height: 380px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}


.project-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.35rem 1.25rem;
  box-shadow: var(--shadow-soft);
  background: radial-gradient(circle at 0 0, rgba(160, 191, 224, 0.55), rgba(6, 9, 20, 0.98));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}








.project-front-main {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}


.project-icon-circle {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(176, 224, 230, 0.9), rgba(11, 36, 74, 0.95));
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #020617;
}


.project-front-main h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}


.project-back-main h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 600;
}


.project-back-main p {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  line-height: 1.6;
}


.project-links {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}


.project-gif {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 1.2rem;
  margin: 0.6rem 0 0.75rem;
}

.projects-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-behavior: smooth;
}

.project-card {
  flex: 0 0 min(360px, 80vw);
  scroll-snap-align: start;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  cursor: pointer;
}

.project-inner {
  position: relative;
  width: 100%;
  min-height: 380px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}


.project-front-main em {
  font-size: 0.8rem;
}


.project-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sun-1), var(--sun-2), var(--sun-3));
  color: #161a30;
  font-weight: 600;
  font-size: 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.project-link-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
}

.project-link-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}









/* Hover effect specifically for name text in upper-left logo */
.logo-mark:hover #logo-typing {
  color: var(--accent-1);
  text-shadow: 0 0 10px rgba(135, 206, 235, 0.9);
}
\n
.project-face.project-front {
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.project-face.project-back {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

.project-card.is-flipped .project-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}


/* Small Screens max width 640px */



.skill-pill-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html { background: linear-gradient(135deg, #0D0821 0%, #161A30 25%, #172A47 50%, #1F3A5B 75%, #3F5C7F 100%); }
#projects { position: relative; 
  margin-top: 180px;
}


.projects-nav {
  pointer-events: none;
}

.projects-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(6, 9, 20, 0.92);
  border-radius: 999px;
  border: 1px solid #3F5C7F;
  color: #3F5C7F;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  pointer-events: auto;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.projects-arrow-left {
  left: 0.4rem;
}

.projects-arrow-right {
  right: 0.4rem;
}

#experience {
  margin-top: 180px;
}

#skills {
  margin-top: 180px;
}

#certifications {
  margin-top: 180px;
}

#contact {
  margin-top: 180px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 999;
}
.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  margin: 15% auto;
  text-align: center;
  position: relative;
}
.modal-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.modal-links a {
  font-size: 2.5rem;
  color: #fff;

  min-width: 180px;
  padding: 0.9rem 1.5rem;
}

/* ===== Modal-only fixes ===== */

/* Center the contact buttons */
.modal-links {
  justify-content: center;
}

/* Make contact boxes longer */
.modal-links a {
  min-width: 220px;
  padding: 1rem 1.75rem;
  justify-content: center;
}

/* Move close X to left and make it smaller */
.close-modal {
  left: 12px;
  right: auto;
  font-size: 1.2rem;
}

/* ===== Modal-only adjustments ===== */

/* Ensure modal box fits all buttons */
.modal-content {
  width: fit-content;
  max-width: none;
}

/* Center buttons while keeping left->right */
.modal-links {
  justify-content: center;
}

/* Make contact boxes longer */
.modal-links a {
  min-width: 240px;
  padding: 1rem 2rem;
  justify-content: center;
}

/* Move close X to top-left and make it smaller */
.close-modal {
  left: 12px;
  right: auto;
  font-size: 1.1rem;
}

/* Modal-only: remove close X */
.close-modal {
  display: none !important;
}
