:root {
  --navy-deep: #020824;
  --navy: #050f33;
  --navy-soft: #0c163a;
  --white: #ffffff;
  --text-main: #f7f8ff;
  --text-soft: #c2c9f5;
  --accent: #4ac1ff;
  --accent-soft: rgba(74, 193, 255, 0.16);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius-lg: 40px;

  --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--navy-deep);
  color: var(--text-main);
}

/* layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 90px 0;
}

.section-light {
  background: #f7f9ff;
  color: #111827;
}

.section-dark {
  background: var(--navy-soft);
}

.section-title {
  font-size: 2rem;
  margin: 0 0 1rem;
}

.section-sub {
  max-width: 580px;
  color: rgba(17, 24, 39, 0.7);
  margin: 0 0 2rem;
}

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #061023;
  box-shadow: 0 12px 30px rgba(74, 193, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(74, 193, 255, 0.65);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

/* ===== header / nav ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(2, 8, 36, 0.95);
  backdrop-filter: blur(18px);
  z-index: 1000;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);

  /* center "RD" inside the circle */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.nav-links a.active::after {
  width: 18px;
}

/* nav CTA */

.nav-cta {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-soft);
}

/* hamburger */

.hamburger {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 999px;
}

/* ===== hero ===== */
.hero-image {
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.hero {
  position: relative;
  padding-top: 110px;
  padding-bottom: 120px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--text-main);
  overflow: hidden;
}

.hero-bg-layer {
  position: absolute;
  top: 90%;          /* ⬅️ move wave lower (try 88–92% if you want to fine-tune) */
  left: 0;
  right: -20%;
  height: 55%;       /* you can keep 50–60%, just a big white area below */
  background: #f7f9ff;
  border-radius: 65% 0 0 0;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 1fr);
  align-items: center;
  gap: 3rem;
}

.hero-text {
  max-width: 560px;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.highlight{
    font-size: clamp(2.3rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
}

.hero-heading {
  font-size: clamp(2.3rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
}

.hero-copy {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-soft);   /* ⬅️ back to light blue */
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-photo-wrap {
  display: flex;
  justify-content: flex-end;
}

.hero-photo-mask {
  width: 270px;
  height: 270px;
  border-radius: 45% 55% 55% 45%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

.hero-photo-mask img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

/* ===== why section ===== */

.why {
  background: #f7f9ff;
  color: #111827;
  padding: 90px 0;
}

.why-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.why-left h2 {
  font-size: 2rem;
  margin-top: 0;
}

.why-left p {
  color: rgba(17, 24, 39, 0.75);
  line-height: 1.7;
}

.why-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--navy-deep);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.35);
}

.why-content h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.why-content p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(17, 24, 39, 0.7);
}

/* ===== achievements ===== */

.achievements {
  background: var(--navy-deep);
  padding: 80px 0 100px;
  text-align: center;
  color: var(--text-main);
}

.achievements-heading {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.achievements-sub {
  margin: 0 0 2rem;
  color: var(--text-soft);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.2rem;
}

.ach-card {
  background: var(--navy-soft);
  border-radius: 20px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.ach-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.ach-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===== experience timeline ===== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.timeline-item {
  background: #ffffff;
  border-radius: 22px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.section-dark .timeline-item {
  background: var(--navy-deep);
  color: var(--text-main);
  box-shadow: var(--shadow-soft);
}

.timeline-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1.1rem;
}

.timeline-meta {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.9);
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.timeline-item li + li {
  margin-top: 0.25rem;
}

/* ===== education ===== */

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

.edu-card {
  background: var(--navy-deep);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.edu-card h3 {
  margin: 0 0 0.4rem;
}

.edu-meta {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ===== projects ===== */

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

.project-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.3rem;
}

.project-card h3 {
  margin: 0 0 0.4rem;
}

.project-card p {
  margin: 0 0 0.7rem;
  font-size: 0.93rem;
  color: rgba(17, 24, 39, 0.75);
}

.project-card ul {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(17, 24, 39, 0.78);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(17, 24, 39, 0.65);
}

.project-links a {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
  margin-left: 0.7rem;
}

/* ===== resume ===== */

.resume-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #01051a;
  height: 500px;
}

.resume-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.resume-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== contact ===== */

.highlight {
    color: var(--primary-color);
}

.contact {
  padding-top: 40px;
}

.contact-inner {
  max-width: 640px;
}

.contact-form {
  background: #ffffff;
  padding: 1.8rem 1.6rem;
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.form-row input,
.form-row textarea {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  font-family: var(--font-main);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.26);
}

.contact-alt {
  margin-top: 1.3rem;
  font-size: 0.93rem;
  color: rgba(17, 24, 39, 0.8);
}

.contact-alt a {
  color: #2563eb;
}


/* ===== footer ===== */

.site-footer {
  background: var(--navy-deep);
  color: var(--text-soft);
  text-align: center;
  padding: 1.4rem 0 2rem;
  font-size: 0.85rem;
}

/* ===== responsive ===== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero-photo-wrap {
    justify-content: flex-start;
  }

  .why-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 840px) {
  .nav-links {
    position: fixed;
    inset: 70px 0 0 35%;
    background: rgba(2, 8, 36, 0.98);
    flex-direction: column;
    padding: 1.5rem 1.4rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-bg-layer {
    top: 58%;
    height: 60%;
    border-radius: 55% 0 0 0;
  }

  .hero {
    padding-top: 100px;
  }

  .section {
    padding: 70px 0;
  }

  .resume-frame {
    height: 380px;
  }
}

.hero-heading {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  margin: 0 0 1rem;
  text-shadow: 0 10px 30px rgba(2, 8, 36, 0.7);
}


/* ===== Certificates ===== */

.certificates {
  position: relative;
  overflow: hidden;
}

.certificates::before {
  /* soft curved background accent like a subtle wave */
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  background: radial-gradient(circle at top right, #e0f2ff 0, transparent 55%);
  opacity: 0.6;
  pointer-events: none;
}

.cert-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.cert-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.cert-card::before {
  /* colored strip on the left edge */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #4ac1ff, #2563eb);
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.cert-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.cert-meta {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: rgba(55, 65, 81, 0.8);
}

.cert-desc {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: rgba(31, 41, 55, 0.85);
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.cert-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
}

.cert-link {
  text-decoration: none;
  color: #2563eb;
  font-weight: 500;
}

.cert-link:hover {
  text-decoration: underline;
}

/* stack footer nicely on small screens */
@media (max-width: 600px) {
  .cert-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Certificate Cards With Image =====

.cert-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0,0,0,0.12);
  padding: 0;
  border: 1px solid rgba(148,163,184,0.25);
}

.cert-image-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.cert-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-card h3 {
  padding: 1rem 1.2rem 0.2rem;
  margin: 0;
  font-size: 1rem;
}

.cert-meta {
  padding: 0 1.2rem 1rem;
  margin: 0;
  color: #475569;
  font-size: 0.85rem;
}

.cert-footer {
  display: flex;
  justify-content: flex-start;
  padding: 0 1.2rem 1.3rem;
}

.cert-btn {
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.cert-btn:hover {
  background: #1d4ed8;
} */

/* ===== Certificates (JPG + PDF friendly) ===== */

.certificates {
  position: relative;
}

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

/* card container */
.cert-card {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-direction: column;
}

/* top media area: works for both img and iframe */
.cert-media {
  width: 100%;
  height: 210px;              /* same height for JPG + PDF previews */
  background: #e5edf7;
  overflow: hidden;
}

.cert-media img,
.cert-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;          /* makes JPG fill nicely; PDF just scales */
}

/* text body */
.cert-body {
  padding: 1.1rem 1.3rem 1.3rem;
}

.cert-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.cert-meta {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* actions row */
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.cert-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  transition: 0.2s ease;
}

.cert-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.cert-link {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.cert-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cert-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ===== Contact Modal ===== */

.modal {
  position: fixed;
  inset: 0;
  display: none;                 /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65); /* dark overlay */
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: 92%;
  background: #ffffff;
  border-radius: 24px;
  padding: 1.8rem 1.7rem 1.6rem;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.6);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: #64748b;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-dialog h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.modal-sub {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.modal-alt {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #6b7280;
}

.modal-alt a {
  color: #2563eb;
}

/* you already have .contact-form, .form-row, input, textarea styles;
   they will apply inside the modal too. If needed, you can tweak spacing: */

.modal .contact-form {
  margin-top: 0.3rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #263445;              /* dark blue tone like screenshot */
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;       /* social icons on right side */
  align-items: center;
}

.footer-socials a {
  color: #ffffff;
  font-size: 1.7rem;
  margin-left: 18px;
  display: inline-flex;
  transition: 0.2s ease;
}

.footer-socials a:hover {
  color: #4ac1ff;                   /* slight teal/blue accent on hover */
  transform: translateY(-2px);
}

/* ---------- FORCE DARK TEXT INSIDE CONTACT MODAL ---------- */

#contact-modal .modal-dialog {
  color: #111827; /* default dark text inside modal */
}

/* Heading */
#contact-modal h2 {
  color: #111827;
}

/* Subtitle, "Prefer email?" text, and labels */
#contact-modal .modal-sub,
#contact-modal .modal-alt,
#contact-modal label {
  color: #4b5563;
}

/* Inputs + textarea text */
#contact-modal input,
#contact-modal textarea {
  color: #111827;          /* text you type */
  background: #f9fafb;     /* light gray so border stands out */
}

/* Placeholders (Name, Email, Message) */
#contact-modal input::placeholder,
#contact-modal textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}

/* Certificates: View All toggle */
.cert-toggle {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.cert-hidden {
  display: none !important;
}


