:root {
  --navy-1: #0b1f3b;
  --navy-2: #102c6b;
  --card-bg: #ffffff;
  --accent: #1e3a8a;
  --text-dark: #0b1f3b;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% 10%, #173c8f33, transparent),
    linear-gradient(135deg, #102c6b, #0b1f3b);
  overflow-x: hidden;
}

.ck {
  justify-content: center !important;
}

#particles-js {
  pointer-events: none;
  opacity: 0.85;
}

#particles-js canvas {
  filter: blur(0.3px);
}


/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;

  background-image: url("hero-bg.png");
  /* your image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65));
  z-index: 1;
}

.hero .bg-layer {
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg,
      rgba(8, 12, 28, 0.9),
      rgba(32, 55, 110, 0.65),
      rgba(15, 25, 60, 0.85));

  background-size: 500% 500%;
  animation: heroCinematic 22s ease-in-out infinite;
  z-index: 1;
}

.hero .bg-layer {
  animation:
    heroCinematic 22s ease-in-out infinite,
    heroDepth 22s ease-in-out infinite;
}

@keyframes heroDepth {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes heroCinematic {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* IMPORTANT */
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("noise.png");
  /* subtle grain */
  opacity: 0.05;
  z-index: 2;
  pointer-events: none;
}

/* GLASS BACK PLATE */
.glass-layer {
  position: absolute;
  width: 92%;
  max-width: 1200px;
  height: 520px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  border-radius: 28px;
  z-index: 1;
}

/* MAIN CARD */
.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: 1100px;
  height: 480px;
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
  transition: transform 0.6s ease;
}

/* CINEMATIC HOVER */
.hero-container:hover {
  transform: translateY(-6px) scale(1.01);
}

.hero-image {
  padding: 24px;
}

.hero-image img {
  border-radius: 14px;
}

/* CONTENT */
.hero-content {
  width: 58%;
  padding: 90px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-dark);
  opacity: 0;
  transform: translateX(60px);
  transition: all 1s cubic-bezier(.19, 1, .22, 1);
}

.hero.active .hero-content {
  opacity: 1;
  transform: translateX(0);
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 700;
  color: var(--navy-2);
  margin-bottom: 10px;
}

.hero-content h3 {
  font-size: 13px;
  letter-spacing: 3px;
  color: #5c6f95;
  margin-bottom: 36px;
}

/* INFO GRID */
.info p {
  font-size: 15px;
  margin-bottom: 12px;
}

/* ICONS */
.icons {
  margin-top: 42px;
}

.icons span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--navy-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.icons span:hover {
  transform: translateY(-3px);

  background: var(--navy-2);
  color: #fff;
}

/* ABOUT SECTION */
.about-section {
  background: #ffffff;
  padding: 70px 20px;
  display: flex;
  justify-content: center;
}

.about-inner {
  max-width: 980px;
  width: 100%;
}

/* SMALL EYEBROW TEXT */
.about-eyebrow {
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* MAIN TEXT */
.about-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.55;
  font-weight: 400;
  color: #0b1f3b;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(.19, 1, .22, 1);
  text-align: justify;
}

/* ANIMATION ON SCROLL */
.about-section.active .about-eyebrow,
.about-section.active .about-text {
  opacity: 1;
  transform: translateY(0);
}

/* EXPERIENCE SECTION */
.experience-section {
  background: #f5f5f5;
  padding: 70px 20px;
  display: flex;
  justify-content: center;
}

.experience-inner {
  max-width: 1000px;
  width: 100%;
}

/* TITLE */
.experience-title {
  text-align: center;
  font-size: 34px;
  letter-spacing: 6px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 100px;
  position: relative;
}

.experience-title span {
  display: block;
  width: 50px;
  height: 3px;
  background: #1e3a8a;
  margin: 16px auto 0;
}

/* ITEM */
.experience-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s cubic-bezier(.19, 1, .22, 1);
}

.experience-section.active .experience-item {
  opacity: 1;
  transform: translateY(0);
}

.experience-item:nth-child(2) {
  transition-delay: 0.1s;
}

.experience-item:nth-child(3) {
  transition-delay: 0.2s;
}

.experience-item:nth-child(4) {
  transition-delay: 0.3s;
}

.experience-item:nth-child(5) {
  transition-delay: 0.4s;
}

/* LEFT */
.exp-left {
  text-align: right;
  padding-right: 50px;
}

.exp-date {
  font-size: 13px;
  letter-spacing: 2px;
  color: #1e3a8a;
  display: block;
  margin-bottom: 6px;
}

.exp-role {
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  color: #0b1f3b;

}

/* DOT */
.exp-dot {
  position: relative;
}

.exp-dot::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #1e3a8a;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* RIGHT */
.exp-right {
  padding-left: 0px;
}

.exp-right h4 {
  font-size: 16px;
  letter-spacing: 2px;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.exp-right p {
  font-size: 15px;
  line-height: 1.6;
  color: #5c6f95;
}

/* EDUCATION & CERTIFICATIONS */
.education-section {
  background: #f9fbff;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
}

.education-inner {
  max-width: 1000px;
  width: 100%;
}

/* SHARED SECTION TITLE */
.section-title-edu {
  text-align: center;
  font-size: 34px;
  letter-spacing: 6px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 80px;
}

.section-title span {
  display: block;
  width: 50px;
  height: 3px;
  background: #1e3a8a;
  margin: 16px auto 0;
}

.education-item {
  display: grid;
  grid-template-columns: 130px auto;
  gap: 40px;

  width: 720px;
  /* 👈 THIS is the magic */
  margin-bottom: 70px;

  align-items: start;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(.19, 1, .22, 1);
}

/* EDUCATION SECTION */
.education-section {
  display: flex;
  justify-content: center;
  padding: 120px 20px;
  background: #f8fafc;
}

.education-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* centers the whole block */
}

/* Inner container */
.education-inner {
  max-width: 900px;
  width: 100%;
}

/* Section title */
.section-title {
  text-align: center;
  font-size: 26px;
  letter-spacing: 6px;
  font-weight: 600;
  color: #1e3a8a;
  margin-bottom: 80px;
  position: relative;
}



/* Education items */
/* =========================
   EDUCATION SECTION (FINAL)
========================= */

.education-section {
  background: #f8fafc;
  padding: 120px 20px;
  display: flex;
  justify-content: center;
}

.education-inner {
  width: 100%;
  max-width: 900px;
}

/* Title */
.section-title {
  text-align: center;
  font-size: 34px;
  letter-spacing: 6px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 80px;
}

.section-title span {
  display: block;
  width: 50px;
  height: 3px;
  background: #1e3a8a;
  margin: 16px auto 0;
}

/* Center the BLOCK, not the text */
.education-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Item */
.education-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 50px;
  width: 100%;
  max-width: 720px;
  margin-bottom: 80px;
  align-items: start;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(.19, 1, .22, 1);
}

/* Scroll animation */
.education-section.active .education-item {
  opacity: 1;
  transform: translateY(0);
}

/* Year */
.edu-year {
  font-size: 14px;
  letter-spacing: 2px;
  color: #1e3a8a;
  font-weight: 600;
  white-space: nowrap;
}

/* Degree */
.edu-degree {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #0b1f3b;
  margin-bottom: 10px;
}

/* College */
.edu-college {
  font-size: 13px;
  letter-spacing: 1.8px;
  color: #6b7fa6;
  font-weight: 600;
}


/* CERTIFICATIONS */
.certifications-title {
  margin-top: 60px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.cert-card {
  background: #ffffff;
  padding: 26px 28px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(.19, 1, .22, 1);
}

.education-section.active .cert-card {
  opacity: 1;
  transform: translateY(0);
}

.cert-icon {
  font-size: 20px;
}

.cert-card p {
  font-size: 15px;
  color: #0b1f3b;
  line-height: 1.5;
}

.cert-card small {
  color: #5c6f95;
}

/* SECTION */
.projects-section {
  padding: 120px 20px;
  background: #ffffff;
  display: flex;
  justify-content: center;
}

.projects-inner {
  width: 100%;
  max-width: 1100px;
}

/* EYEBROW */
.eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #2f5cff;
  display: block;
  margin-bottom: 10px;
}

/* TITLE */
.projects-title {
  font-size: 42px;
  font-weight: 500;
  color: #0b1f3b;
  margin-bottom: 40px;
}

/* FILTER BUTTONS */
.project-filters {
  display: flex;
  gap: 15px;
  margin-bottom: 60px;
}

.filter {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #cdd6ee;
  background: #fff;
  color: #8a9ac4;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter.active {
  background: #0f1f4d;
  color: #fff;
  border-color: #0f1f4d;
}

.filter:hover {
  border-color: #0f1f4d;
  color: #0f1f4d;
}

/* GRID */
.projects-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding: 40px 20px;
}



/* CARD */
.project-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(15, 31, 77, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15, 31, 77, 0.1);
}

/* CARD CONTENT */
.project-card h3 {
  font-size: 24px;
  color: #0f1f4d;
  margin-bottom: 14px;
}

.project-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #7a89b6;
  margin-bottom: 30px;
}

/* TAGS */
.project-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tags span {
  background: #f3f6ff;
  color: #0f1f4d;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* SKILLS SECTION */
.skills-section {
  background: linear-gradient(135deg, #102c6b, #0b1f3b);
  color: #fff;
}

.skills-title {
  letter-spacing: 6px;
  font-weight: 600;
}

.skills-divider {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
}

/* Cards */
.skills-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s ease;
}

.skills-card:hover {
  transform: translateY(-6px);
}

.skills-card-title {
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 2px;
  font-size: 18px;
}

/* Skill Pills */
.skill-pill {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  position: relative;
  padding-left: 28px;
}

.skill-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #5aa9ff;
  border-radius: 50%;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* CONTACT SECTION */
.contact-section {
  background: #ffffff;
}

.contact-title {
  font-weight: 600;
  color: #0b1f3b;
}

.contact-text {
  color: #7a86a5;
  max-width: 600px;
}

/* Contact items */
.contact-item {
  max-width: 420px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: #f1f4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3a8a;
  font-size: 20px;
}

.resume-footer {
  padding: 22px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: #ffffff;
  background: linear-gradient(270deg,
      #1e3a8a,
      #2563eb,
      #0ea5e9,
      #1e3a8a);
  background-size: 600% 600%;
  animation: footerGradient 10s ease infinite;
}

.resume-footer p {
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  animation: footerFade 1.2s ease forwards;
}

.resume-footer .heart {
  color: #ff4d6d;
  animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes footerGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes footerFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }
}

/* Mobile spacing */
@media (max-width: 576px) {
  .skills-card {
    padding: 24px;
  }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    height: auto;
  }

  .hero-image,
  .hero-content {
    width: 100%;
  }

  .hero-content {
    padding: 0px 50px 20px 30px;
  }

  .hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy-2);
    margin-bottom: 10px;
  }

  .hero-content h3 {
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 010px;
    ;
  }

  .glass-layer {
    height: 90%;
  }

  .about-text {
    font-size: 26px;
    text-align: left;
  }

  .experience-title {
    margin-bottom: 40px;
  }

  .experience-item {
    max-width: 720px;
    margin: 0 auto 22px;
    /* space BETWEEN jobs only */
  }

  /* DATE */
  .exp-date {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    color: #1e3a8a;
    margin-bottom: 6px;
  }

  /* ROLE */
  .exp-role {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px;
    /* kill default h margin */
  }

  /* COMPANY */
  .exp-company {
    font-size: 14px;
    letter-spacing: 2px;
    color: #1e3a8a;
    margin: 0 0 8px;
  }

  /* DESCRIPTION */
  .exp-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    /* VERY IMPORTANT */
  }

  .experience-row {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .exp-left {
    text-align: left;
    padding-right: 0;
    margin-bottom: 10px;
  }

  .exp-dot {
    display: none;
  }

  .exp-right {
    padding-left: 0;
  }

  .education-section {
    padding: 50px 10px 50px 10px;
  }

  .section-title-edu {
    text-align: center;
    font-size: 28px;
    letter-spacing: 6px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 40px;
  }

  .education-item {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    margin: 20px 10px 20px 10px;
  }

  .edu-year {
    font-size: 12px;
  }

  .edu-degree {
    font-size: 18px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }

  .cert-card {
    padding: 16px 20px;
  }

  .projects-section {
    padding: 50px 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-title {
    font-size: 34px;
  }

  .filter {
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid #cdd6ee;

  }

  .filter.active {
    color: #fff;
  }

  .project-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
  }

  .project-card h3 {
    font-size: 20px;
  }

  .ck {
    justify-content: initial !important;

    padding: 5px 50px !important;
  }
}