@font-face {
  font-family: "Brittany Signature";
  src: url("Fonts/BrittanySignature.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("Fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #002e54;
  --white: #ffffff;
  --accent-1: #1d4ed8;
  --accent-2: #2563eb;
  --accent-3: #0091B9;
  --accent-4: #0ea5e9;
  --divider: #40627f;
  --light: #f7f9fb;
  --shadow: 0 14px 30px rgba(0, 24, 46, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero-container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero-cta .hero-container {
  max-width: 800px;
  margin-left: calc((100% - min(1200px, 92vw)) / 2);
  margin-right: auto;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 58px);
  font-weight: 700;
  margin: 0 0 12px;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.8rem, 3vw, 38px);
  font-weight: 400;
  margin: 0 0 14px;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  margin: 0 0 10px;
}

h4 {
  font-size: 22px;
  margin: 0 0 10px;
}

h5 {
  font-size: 18px;
  margin: 0 0 8px;
}

h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 8px;
}

p {
  margin: 0 0 14px;
}

small {
  font-size: 12px;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-name {
  font-family: "Brittany Signature", cursive;
  font-size: 25px;
  line-height: 1;
}

.logo-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.nav a {
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--accent-2);
  color: var(--accent-2);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent-4);
  color: var(--white);
  border-radius: 6px;
  font-weight: 400;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: var(--accent-3);
  transform: translateY(-2px);
  box-shadow: none;
}

.btn-resume {
  background: transparent;
  color: var(--white);
  border: none;
  box-shadow: none;
  transform: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-resume:hover {
  background: rgba(0, 145, 185, 0.33);
  color: #0EA5E9;
  box-shadow: none;
  transform: translateY(-2px);
}

.section {
  padding: 48px 0;
}

.section.center {
  text-align: center;
}

.experience {
  text-align: left;
}

.experience .signature-center {
  text-align: center;
}

.experience-header {
  text-align: center;
  margin-bottom: 36px;
}

.experience-subtitle {
  margin: 8px 0 6px;
  font-weight: 600;
}

.experience-link {
  color: var(--accent-2);
  text-decoration: underline;
  font-weight: 500;
}

.experience-list {
  max-width: 600px;
  margin: 0 auto;
}

.experience-role {
  margin-bottom: 34px;
}

.experience-role h3 {
  font-family: "Poppins";
  font-size: 28px;
  margin: 0 0 6px;
}

.experience-meta {
  letter-spacing: 0.08em;
  font-size: 16px;
  margin-bottom: 6px;
}

.experience-role ul {
  margin: 10px 0 0 18px;
}

.experience-role li {
  margin-bottom: 8px;
  margin-left: -20px;
}

.experience-toggle {
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #0EA5E9;
  text-decoration: underline;
  font-family: "Poppins";
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
}

.experience-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid #0EA5E9;
  border-bottom: 2px solid #0EA5E9;
  transform: rotate(45deg);
  margin-top: -2px;
  transition: transform 0.2s ease;
}

.experience-toggle.is-open::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.experience-older {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: max-height 0.6s ease, opacity 0.35s ease, clip-path 0.6s ease;
}

.experience-older.is-open {
  max-height: 2000px;
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.domain-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 60px 0;
  border-top: 1px solid #e0e0e0;
}

.domain-rail {
  text-align: left;
}

.domain-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #007bff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.domain-title {
  font-family: "Poppins";
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.0;
  margin: 8px 0 12px;
}

.domain-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 16px;
  justify-items: start;
}

@media (max-width: 1100px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .domain-section {
    grid-template-columns: 1fr;
  }
}

.education {
  background: #f2f2f2;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 60px;
  margin-top: 18px;
}

.about-me {
  text-align: left;
}

.philosophy {
  text-align: left;
}

.philosophy-header {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
}

.philosophy-header .signature-center {
  margin-bottom: 10px;
}

.philosophy-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.philosophy-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 260px;
  width: 2px;
  background: rgba(0, 0, 0, 0.2);
  transform: translateX(-1px);
}

.philosophy-item {
  display: grid;
  grid-template-columns: 220px 24px 1fr;
  column-gap: 28px;
  align-items: start;
  padding: 60px 0;
}

.philosophy-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.25;
  margin: 0;
}

.philosophy-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  justify-self: center;
  margin-top: 2px;
}

.philosophy-desc {
  margin: 0;
  line-height: 1.6;
}

.skills-section {
  background: linear-gradient(rgba(9, 32, 58, 0.72), rgba(9, 32, 58, 0.72)),
    url("Images/portfolio10.png") center/cover no-repeat;
  text-align: center;
  color: var(--white);
}

.skills-section .signature-center {
  color: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
  margin-top: 30px;
}

.skill-card {
  background: var(--white);
  color: var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 22px 24px;
  text-align: center;
}

.skill-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}

.skill-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

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

.philosophy-title,
.philosophy-dot,
.philosophy-desc {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.philosophy-title {
  transform: translateX(-36px);
}

.philosophy-desc {
  transform: translateX(30px);
}

.philosophy-dot {
  transform: translateY(36px);
}

.philosophy-item.is-visible .philosophy-title,
.philosophy-item.is-visible .philosophy-desc,
.philosophy-item.is-visible .philosophy-dot {
  opacity: 1;
  transform: translateX(0);
}

.philosophy-item.is-visible .philosophy-dot {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .philosophy-timeline::before {
    left: 8px;
  }

  .philosophy-item {
    grid-template-columns: 16px 1fr;
    column-gap: 16px;
    padding: 48px 0;
  }

  .philosophy-title {
    grid-column: 2 / 3;
    text-align: left;
    margin-bottom: 8px;
  }

  .philosophy-dot {
    grid-row: 1 / span 2;
    margin-top: 6px;
  }

  .philosophy-desc {
    grid-column: 2 / 3;
  }
}

.hero {
  position: relative;
  color: var(--white);
  min-height: 800px;
  height: 800px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 46, 84, 0.45);
}

.hero .container,
.hero .hero-container {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

.hero .headline-accent {
  color: var(--accent-4);
}

.headline-accent {
  color: var(--accent-4);
}

.hero-actions {
  display: flex;
  gap: 24px;
  margin-top: 54px;
  flex-wrap: wrap;
  align-items: center;
}

.hero h1 {
  font-size: 50px;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0;
  line-height: 1.15;
}

.hero-headline-wrap {
  position: relative;
  display: inline-block;
  padding: 32px 0;
  margin-left: 0;
}

.hero-headline-wrap::before {
  content: "";
  position: absolute;
  inset: -40px -20px;
  background: radial-gradient(
    ellipse 120% 70% at 50% 50%,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 20%,
    rgba(0, 0, 0, 0.18) 35%,
    rgba(0, 0, 0, 0.1) 48%,
    rgba(0, 0, 0, 0.04) 62%,
    rgba(0, 0, 0, 0.01) 74%,
    rgba(0, 0, 0, 0) 88%
  );
  filter: blur(10px);
  z-index: 0;
}

.hero-portfolio .hero-headline-wrap::before {
  inset: -32px 92px -32px -8px;
  filter: blur(8px);
}

.hero-headline-wrap h1 {
  position: relative;
  z-index: 1;
}

.hero-gradient {
  background: linear-gradient(90deg, #39BEF9 0%, #2364EC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-portfolio {
  background: url("Images/portfolio01.png") center/cover no-repeat;
}

.hero-portfolio::before {
  background: none;
}

.hero-list {
  max-width: 800px;
  color: var(--white);
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  font-size: 18pt;
}

.hero-list li {
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.case-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  column-gap: 30px;
  row-gap: 30px;
}

.project-grid.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
  row-gap: 16px;
  justify-items: start;
}

@media (max-width: 1100px) {
  .project-grid.case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .project-grid.case-grid {
    grid-template-columns: 1fr;
  }
}

.case-grid .card {
  padding: 0 0 24px;
  overflow: hidden;
  box-shadow: 9px 7px 15px 2px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.case-grid .card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin: 0 0 16px;
  display: block;
}

.case-grid .card h4 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.case-grid .card > :not(img) {
  padding: 0 24px;
}

.case-grid .card.card-wide-title > :not(img) {
  padding-left: 8px;
  padding-right: 8px;
}

.case-grid .card .btn {
  margin: 0 24px 24px;
  padding: 8px 36px;
  min-width: 220px;
  text-align: center;
}

.case-grid .card:hover {
  transform: scale(1.02);
  box-shadow: 12px 9px 20px 3px rgba(0, 0, 0, 0.25);
}

.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: none;
}

.card img {
  border-radius: 10px;
  margin-bottom: 14px;
}

.card .tag {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}

.card .metric {
  font-weight: 600;
  margin-top: 10px;
}

.hero-logos {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
  justify-content: space-between;
}

.hero-logos img {
  width: clamp(120px, 12vw, 190px);
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  flex: 0 0 auto;
}

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer a {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.signature-center {
  font-family: "Brittany Signature", cursive;
  font-size: 48px;
  text-align: center;
  line-height: 2;
}

@media (max-width: 900px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 1150px) {
  .hero-logos img:nth-child(5) {
    display: none;
  }
}

@media (max-width: 1020px) {
  .hero-logos img:nth-child(4) {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-logos img:nth-child(3) {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero-logos img:nth-child(2) {
    display: none;
  }
}

.hero-cta {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0;
}

.hero-logos-wrap {
  margin-top: auto;
  padding: 24px 0 32px;
}
