:root {
  --ink: #082033;
  --muted: #53687d;
  --soft: #eef8ff;
  --paper: #f6fbff;
  --white: #ffffff;
  --navy: #0a2942;
  --navy-2: #123b5a;
  --accent: #08aeea;
  --accent-2: #3ee7d6;
  --gold: #f7a94a;
  --line: rgba(17, 70, 108, 0.14);
  --shadow: 0 34px 90px rgba(12, 46, 72, 0.15);
  --shadow-soft: 0 22px 60px rgba(12, 46, 72, 0.10);
  --radius: 28px;
  --mx: 50%;
  --my: 20%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(8, 174, 234, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(62, 231, 214, 0.16), transparent 26rem),
    radial-gradient(circle at 12% 78%, rgba(247, 169, 74, 0.13), transparent 24rem),
    linear-gradient(135deg, #f7fcff 0%, #eef8ff 48%, #e8f6ff 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(8, 42, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 42, 66, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.55), transparent 85%);
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.logo-script {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.logo-script::after {
  content: "";
  display: inline-block;
  width: 0.28em;
  height: 0.28em;
  margin-left: 0.09em;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: baseline;
  transform: translateY(0.03em);
  box-shadow: 0 0 20px rgba(8, 174, 234, 0.45);
}

.serif {
  font-family: "Playfair Display", Georgia, serif;
}

.nav-shell {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 70, 108, 0.12);
  box-shadow: 0 16px 50px rgba(12, 46, 72, 0.08);
  backdrop-filter: blur(22px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.nav-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(8, 174, 234, 0.18);
  box-shadow: 0 22px 70px rgba(12, 46, 72, 0.13);
}

.nav-link {
  position: relative;
  color: #38536a;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.32s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
  background: rgba(8, 174, 234, 0.07);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-menu {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(17, 70, 108, 0.12);
}

.mobile-menu a {
  color: var(--ink);
}

.mobile-menu a:hover {
  background: rgba(8, 174, 234, 0.08);
}

.hero-section {
  min-height: 100vh;
  padding-bottom: 70px;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 70, 108, 0.12);
  color: var(--navy-2);
  box-shadow: 0 14px 50px rgba(12, 46, 72, 0.08);
}

.hero-title {
  color: var(--navy);
}

.hero-title span {
  color: var(--accent);
}

.hero-section p {
  color: #486277;
}

.btn-primary,
.btn-secondary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.btn-primary::before,
.btn-secondary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.30), transparent);
  transform: translateX(-110%);
  transition: transform 0.65s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
  transform: translateX(110%);
}

.btn-primary {
  background: linear-gradient(135deg, #0a2942, #08aeea 56%, #3ee7d6);
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(8, 174, 234, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy);
  border: 1px solid rgba(17, 70, 108, 0.16);
  box-shadow: 0 14px 40px rgba(12, 46, 72, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(8, 174, 234, 0.38);
  box-shadow: 0 18px 45px rgba(8, 174, 234, 0.12);
}

.hero-facts article {
  border: 1px solid rgba(17, 70, 108, 0.12);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(12, 46, 72, 0.08);
}

.hero-facts strong {
  color: var(--navy);
}

.hero-facts span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: #557087;
}

.card {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.75, 0.18, 1), transform 0.85s cubic-bezier(0.2, 0.75, 0.18, 1);
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left.show,
.reveal-right.show {
  opacity: 1;
  transform: none;
}

.hero-photo-wrap {
  position: relative;
  transform-style: preserve-3d;
  animation: heroIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-photo-wrap::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(8, 174, 234, 0.30);
  border-radius: 38px;
  z-index: 0;
  transition: transform 0.45s ease;
  box-shadow: 0 0 45px rgba(8, 174, 234, 0.10);
}

.hero-photo-wrap::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, rgba(8, 174, 234, 0.14), rgba(255, 255, 255, 0), rgba(247, 169, 74, 0.10));
  border-radius: 44px;
  z-index: -1;
}

.hero-photo-wrap:hover::before {
  transform: translate(-10px, 10px);
}

.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 36px 95px rgba(12, 46, 72, 0.20), 0 0 0 1px rgba(8, 174, 234, 0.16);
  background: #ffffff;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 41, 66, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-photo img {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}

.hero-photo:hover img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.02);
}

.float-chip {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 70, 108, 0.14);
  box-shadow: 0 24px 70px rgba(12, 46, 72, 0.13);
  color: var(--navy);
  backdrop-filter: blur(18px);
  animation: softFloat 7s ease-in-out infinite;
  z-index: 5;
}

.float-chip:nth-child(2) {
  animation-delay: -2s;
}

.caption-12 {
  font-size: 12px;
  color: #60798e;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-2deg) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0) scale(1);
  }
}

@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.expertise-strip {
  border-color: rgba(17, 70, 108, 0.11);
  background: rgba(255, 255, 255, 0.48);
}

.marquee {
  color: #53687d;
  animation: marquee 28s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.about-mini {
  border-radius: 22px;
  background: rgba(8, 174, 234, 0.06);
  border: 1px solid rgba(8, 174, 234, 0.10);
  padding: 18px;
}

.about-mini span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.about-mini strong {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
  color: var(--navy);
}

.edu-card h3 {
  margin-top: 12px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

.edu-card p {
  margin-top: 12px;
  color: #53687d;
}

.edu-card strong {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(8, 174, 234, 0.08);
  border: 1px solid rgba(8, 174, 234, 0.14);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--navy-2);
}

.edu-year {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cap-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.cap-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(8, 174, 234, 0.13);
  border-color: rgba(8, 174, 234, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(8, 174, 234, 0.07));
}

.cap-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.cap-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #53687d;
}

.icon-line {
  background: linear-gradient(145deg, rgba(8, 174, 234, 0.11), rgba(62, 231, 214, 0.10));
}

.icon-line svg {
  stroke: var(--accent);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-card {
  transition: transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 100px rgba(8, 174, 234, 0.14);
  border-color: rgba(8, 174, 234, 0.26);
}

.project-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}
.project-card h3 a:hover{color:#08aeea}
.project-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #53687d;
}

.project-visual {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a2942, #08aeea);
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 28px 28px;
}

.project-visual::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: 36px;
  bottom: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.48), transparent 68%);
}

.visual-system {
  background: linear-gradient(135deg, #123b5a, #3ee7d6);
}

.visual-data {
  background: linear-gradient(135deg, #0a2942, #f7a94a);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  border-radius: 999px;
  background: rgba(8, 174, 234, 0.08);
  border: 1px solid rgba(8, 174, 234, 0.12);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--navy-2);
}

.freelance-card {
  background: linear-gradient(145deg, #ffffff, rgba(232, 246, 255, 0.9));
  border: 1px solid rgba(17, 70, 108, 0.12);
  box-shadow: var(--shadow-soft);
  border-radius: 28px;
  padding: 24px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.freelance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 90px rgba(8, 174, 234, 0.14);
  border-color: rgba(8, 174, 234, 0.28);
}

.freelance-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.freelance-card h3 {
  margin-top: 20px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.freelance-card p {
  margin-top: 12px;
  color: #53687d;
  font-size: 14px;
  line-height: 1.7;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 25px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--paper);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 174, 234, 0.5), 0 0 22px rgba(8, 174, 234, 0.45);
}

#experience .border-l {
  border-color: rgba(17, 70, 108, 0.14);
}

.timeline-item .date {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.timeline-item h3 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.timeline-item p:not(.date) {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: #53687d;
}

.cert-list p {
  border-radius: 18px;
  background: rgba(8, 174, 234, 0.06);
  border: 1px solid rgba(8, 174, 234, 0.10);
  padding: 16px;
  color: #38536a;
}

.testimonial-window {
  background: linear-gradient(145deg, rgba(8, 174, 234, 0.08), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(8, 174, 234, 0.12);
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testimonial-slide {
  min-width: 100%;
  color: var(--navy);
}

.testimonial-slide footer {
  color: var(--accent);
}
.testi-pad{padding:0px 45px}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(10, 41, 66, 0.16);
  transition: width 0.3s ease, background 0.3s ease;
}

.slider-dot.active {
  width: 28px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(8, 174, 234, 0.28);
}

.slider-btn {
  border: 1px solid rgba(17, 70, 108, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--navy);
  transition: background .25s ease, transform .25s ease;
}

.slider-btn:hover {
  background: rgba(8, 174, 234, 0.08);
  transform: translateY(-2px);
}

.life-masonry {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 118px;
  gap: 22px;
}

.life-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(17, 70, 108, 0.13);
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 28px 80px rgba(12, 46, 72, 0.13);
}

.life-card-large {
  grid-column: span 7;
  grid-row: span 4;
}

.life-card-tall {
  grid-column: span 5;
  grid-row: span 5;
}

.life-card-wide {
  grid-column: span 7;
  grid-row: span 3;
}

.life-card-medium {
  grid-column: span 5;
  grid-row: span 3;
}

.life-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms ease;
}

.life-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(4, 22, 36, 0.78), rgba(4, 22, 36, 0.22) 45%, transparent);
}

.life-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 2;
  border-radius: 24px;
  border: 1px solid rgba(62, 231, 214, 0);
  transition: border-color 350ms ease;
  pointer-events: none;
}

.life-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

.life-card:hover::after {
  border-color: rgba(62, 231, 214, 0.48);
}

.life-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
  transform: translateY(8px);
  transition: transform 350ms ease;
}

.life-card:hover .life-caption {
  transform: translateY(0);
}

.life-caption span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6ff6ff;
}

.life-caption h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  color: #ffffff;
}

.life-caption p {
  margin-top: 8px;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.6;
  color: #d9ecf7;
}

input,
textarea {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(17, 70, 108, 0.14) !important;
}

input::placeholder,
textarea::placeholder {
  color: #7a91a5;
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(8, 174, 234, 0.10);
  border-color: rgba(8, 174, 234, 0.55) !important;
}

address a,
footer a {
  color: var(--navy);
  transition: color .25s ease;
}

address a:hover,
footer a:hover {
  color: var(--accent);
}

footer {
  border-color: rgba(17, 70, 108, 0.12);
  color: #53687d;
}

@media (max-width: 900px) {
  .life-masonry {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 110px;
  }

  .life-card-large,
  .life-card-tall,
  .life-card-wide,
  .life-card-medium {
    grid-column: span 6;
  }

  .life-card-large,
  .life-card-medium {
    grid-row: span 4;
  }

  .life-card-tall {
    grid-row: span 5;
  }

  .life-card-wide {
    grid-row: span 3;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-photo-wrap::before {
    inset: 16px -10px -15px 12px;
    border-radius: 30px;
  }

  .hero-photo {
    border-width: 7px;
    border-radius: 28px;
  }

  .timeline-item::before {
    left: -28px;
  }
}

@media (max-width: 520px) {
  .life-masonry {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .life-card {
    min-width: 82%;
    height: 420px;
    scroll-snap-align: start;
  }

  .life-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .life-caption h3 {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .testimonial-track {
    transition: none;
  }
}
