/* =======================
   THEME & RESET
   ======================= */
:root {
  --bg: #f4f8ff;
  /* page background top */
  --bg-alt: #eef3ff;
  /* chips / alt section */
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border: rgba(30, 64, 175, 0.10);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #6ea8ff;
  /* soft sky blue */
  --primary-600: #3b82f6;
  /* interaction hover */
  --accent: #7973e0;
  /* lilac accent */
  --gold: #f4b63e;
  --shadow: 0 10px 30px rgba(59, 130, 246, 0.10);
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    /* radial-gradient(1200px 1200px at -10% -10%, #ffffff 0, transparent 50%),
    radial-gradient(1000px 1000px at 110% -10%, #ffffff 0, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%); */
    radial-gradient(1200px 1200px at -10% -10%, #ffffff 0, transparent 50%),
    radial-gradient(1000px 1000px at 110% -10%, #ffffff 0, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
  /* this line already uses --bg */
  overflow-x: hidden;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: transparent;
  /* let body gradient with --bg show through */
  pointer-events: none;
}

/* Containers */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.narrow {
  width: min(860px, 92vw);
  margin-inline: auto;
}

/* =======================
   HEADER / NAVBAR
   ======================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 2000;
  backdrop-filter: saturate(140%) blur(10px);
  background: #7973e0;
  border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: .4rem .2rem;
  border-radius: 6px;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-600);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
}

/* Burger */
.burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .4rem;
  margin-left: .4rem;
}

.burger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #f5f5f5;
  margin: 6px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.burger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Drawer (slide-in) */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 78vw;
  background: #ffffff;
  box-shadow: -20px 0 40px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .36s cubic-bezier(.22, .61, .36, 1);
  z-index: 3000;
  will-change: transform;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 90px 22px 28px;
}

.drawer-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: .75rem 1rem;
  border-radius: 10px;
}

.drawer-link:hover {
  background: var(--bg-alt);
}

.drawer-cta {
  margin-top: .5rem;
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 2500;
}

.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

/* =======================
   SECTIONS
   ======================= */
.section {
  padding: clamp(72px, 8vh, 96px) 0;
}

.section:first-of-type {
  padding-top: calc(72px + 56px);
}

/* push hero below header */
.section-title {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.1rem);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 22px);
  backdrop-filter: blur(8px);
  transition: background .25s ease, transform .2s ease, box-shadow .2s ease, border-color .25s ease;
}

/* Glass-on-hover effect */
.hover-glass:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 46px rgba(59, 130, 246, .18);
}


/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin: 0 0 10px;
  line-height: 1.1;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw + .7rem, 1.15rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.grad {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-profile {
  display: grid;
  place-items: center;
}

.hero-profile img {
  width: min(320px, 76%);
  aspect-ratio: 1/1.5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
}

/* Card hover effect */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  /* lift and slightly enlarge */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Floating animation for profile image */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-profile img {
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease;
  /* smooth hover transform */
}

/* Optional: add slight scale on hover for profile image */
.hero-profile img:hover {
  transform: scale(1.05);
}

/* About mini cards */
.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini {
  text-align: center;
}

.mini i {
  font-size: 1.6rem;
  color: var(--primary-600);
  margin-bottom: 6px;
  display: inline-block;
}

/* Timeline */
.timeline {
  position: relative;
  width: min(880px, 92vw);
  margin: 12px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0, var(--accent) 100%);
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  margin: 28px 0;
}

.tl-card {
  width: 100%;
}

.tl-item:nth-child(odd) .tl-card {
  grid-column: 1;
  justify-self: end;
}

.tl-item:nth-child(even) .tl-card {
  grid-column: 2;
  justify-self: start;
}

.tl-dot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--primary-600);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #ffffff;
}

.meta {
  color: var(--muted);
  margin: .25rem 0 .5rem;
  font-weight: 600;
}

/* Projects */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hover-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(30, 58, 138, .15);
}

.proj .proj-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: .35rem;
}

.proj .proj-head i {
  color: var(--primary-600);
  font-size: 1.2rem;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: .6rem;
}

.tags span {
  font-size: .8rem;
  padding: .35rem .55rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #7973e0;
}

/* Certifications */
#certs .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}

#certs i {
  color: var(--gold);
}

/* Contact */
.contact {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social a {
  color: var(--text);
  font-size: 1.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: background .18s, transform .18s;
}

.social a:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #2c2c2c;
  backdrop-filter: blur(8px);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.to-top {
  color: var(--primary-600);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* =======================
   ANIMATIONS / REVEAL
   ======================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
  }

  .reveal.visible {
    opacity: 1;
    transform: none;
    transition: opacity .5s ease, transform .5s ease;
  }

  .delay-1 {
    transition-delay: .08s;
  }

  .delay-2 {
    transition-delay: .16s;
  }

  .delay-3 {
    transition-delay: .24s;
  }
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-profile {
    order: 2;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tl-item {
    grid-template-columns: 1fr;
  }

  .tl-card {
    width: 100%;
  }

  .timeline::before {
    left: 24px;
  }

  .tl-dot {
    left: 24px;
  }

  .tl-item .tl-card {
    margin-left: 46px;
    justify-self: stretch !important;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: block;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.site-header,
.site-header a,
.site-footer,
.site-footer a {
  color: #f5f5f5;
}

.site-header a:hover,
.site-footer a:hover {
  color: #a89df5;
  /* accent hover */
}

/* about section css :start */

/* About Section */
.about-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)),
    url('../images/bg-animation.svg');
  /* overlay to improve readability */
  background-size: cover;
  background-attachment: fixed;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

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

.profile-pic {
  width: 100%;
  max-width: 450px;
  /* don’t stretch beyond this */
  height: auto;
  min-height: 750px;
  /* ensures it doesn’t shrink too small */
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.25);
}


.tagline {
  font-size: 16px;
  color: #555;
  margin-top: 10px;
  font-style: italic;
}

.about-right h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 15px;
}

.about-right .intro {
  font-size: 16px;
  color: #444;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Skill Cards Grid  start*/
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.skill-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 24px rgba(0, 0, 0, 0.18);
}

.skill-card .icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.skill-card h3 {
  font-size: 18px;
  color: #2b2b2b;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* Details & CTA */
.details {
  font-size: 15px;
  color: #444;
  margin-bottom: 15px;
  line-height: 1.6;
}

.cta {
  font-size: 16px;
  color: #7973e0;
  font-weight: bold;
}

@media (max-width: 960px) {
  .about-container {
    grid-template-columns: 1fr;
    /* stack columns */
    text-align: center;
  }

  .about-left {
    margin-bottom: 30px;
  }

  .about-right h1 {
    font-size: 26px;
    /* scale heading */
  }

  .about-right .intro {
    font-size: 15px;
    /* scale body text */
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
    /* one skill card per row */
  }
}

/* Mobile layout adjustments */
@media (max-width: 1000px) {
  .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-left {
    order: 2;
    /* move image below text */
    min-height: auto;
    /* remove fixed min-height */
  }

  .about-right {
    order: 1;
    /* heading & intro first */
    width: 100%;
  }

  .skills-grid {
    order: 3;
    /* skill cards after image */
    width: 100%;
  }

  .profile-pic {
    max-width: 80%;
    min-height: auto;
    /* ensure proper height */
  }
}

.beyond-work {
  margin-top: 40px;
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9f9f9, #eef2f7);
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.beyond-work h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.beyond-content p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
  max-width: 750px;
  margin: 0 auto;
}

.beyond-content p span {
  font-weight: 600;
  color: #2a5d9f;
  /* highlight words if needed */
}

/*about section css :end */

/* ===== Experience Timeline ===== */
/* Experience Timeline */
.experience-section {
  position: relative;
  padding: 80px 20px;
  color: #fff;
  background: transparent;
}

.experience-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 50px;
  color: #333;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #6a11cb, #7973e0);
}

.timeline-item {
  display: flex;
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 15px;
  width: 15px;
  height: 15px;
  background: #7973e0;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 10px #807bdd;
}

.timeline-card {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-left: 40px;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px #8d89da;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.timeline-header h3 {
  font-size: 1.3rem;
  color: #7973e0;
}

.timeline-header .company {
  font-size: 0.95rem;
  color: #333;
  margin-left: 10px;
  font-weight: bold;
}

.timeline-header .tenure {
  font-size: 0.9rem;
  color: #333333ae;
}

.timeline-details {
  list-style: none;
  /* remove default bullets */
  padding-left: 0;
  /* we’ll pad on li instead */
  margin-top: 10px;
  padding-right: 20px;
}

.timeline-details li {
  position: relative;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
  padding-left: 28px;
  /* room for the icon */
}

/* Font Awesome check-circle bullet */
.timeline-details li::before {
  content: "\f058";
  /* check-circle */
  font-family: "Font Awesome 6 Free";
  /* you already load FA 6 */
  font-weight: 900;
  /* solid style */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.95rem;
  color: #7973e0;
  line-height: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-card {
    margin-left: 30px;
    width: calc(100% - 30px);
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Fade-in animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* experience css end  */

/* projects css begin */
.project-header {
  text-align: center;
  color: rgba(0, 0, 0, 0.69);
}

.project-desc {
  color: #6b7c94;
}

/* projects css end  */
.confetti-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.confetti-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* contact css begin */

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  background: linear-gradient(135deg, #f9f9ff, #f3f3fb);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Contact Info */
.contact-info h3 {
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  color: #4b47c2;
  font-weight: 600;
}

.contact-info p {
  margin: 0.8rem 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  color: #444;
  transition: color 0.3s ease;
}

.contact-info p:hover {
  color: #7973e0;
}

.contact-info i {
  margin-right: 10px;
  color: #7973e0;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-info p:hover i {
  transform: scale(1.3);
  color: #4b47c2;
}

/* Social Icons */
.social {
  margin-top: 1rem;
}

.social a {
  margin: 0 12px;
  font-size: 1.8rem;
  color: #555;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social a:hover {
  transform: scale(1.3) rotate(10deg);
  color: #7973e0;
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.contact-form:hover {
  transform: translateY(-5px);
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7973e0;
  background: #fff;
  box-shadow: 0 0 8px rgba(121, 115, 224, 0.3);
}

/* Button */
.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #7973e0, #7873e099);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(121, 115, 224, 0.4);
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   Responsive Design
========================= */

/* Tablets and smaller desktops */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    /* Stack grid items */
    gap: 1.5rem;
  }

  .contact-info p {
    font-size: 0.95rem;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
    padding: 8px;
  }
}

/* Mobile Devices */
@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: 1fr;
    /* Single column layout */
    text-align: center;
  }

  .contact-info h3 {
    font-size: 1.2rem;
  }

  .contact-info p {
    font-size: 0.9rem;
    justify-content: center;
    /* Align icons + text to center */
  }

  .social a {
    font-size: 1.2rem;
    margin: 0 6px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9rem;
    padding: 8px;
  }

  .btn {
    width: 100%;
    /* Full-width button for mobile */
    padding: 12px;
    font-size: 1rem;
  }

  .popup-content {
    width: 90%;
    padding: 1.5rem;
  }
}

/* contact css end  */

/* footer css begin */

/* Footer */
.site-footer {
  background: #0f172a;
  /* Dark navy to match scheme */
  color: #f1f5f9;
  /* Light text */
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #7973e0;
  /* Accent blue */
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #7973e0;
}

.social-icons a {
  margin-right: 1rem;
  font-size: 1.4rem;
  color: #f1f5f9;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #7973e0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: center;
  /* ✅ Center the text */
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #7973e0;
  /* Accent color */
  color: #f1f5f9;
  /* White arrow */
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(121, 115, 224, 0.5);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  z-index: 999;
  /* Always visible above content */
}

.to-top:hover {
  background: #f1f5f9;
  /* Light hover background */
  color: #0f172a;
  /* Dark arrow */
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 16px rgba(121, 115, 224, 0.7);
}

/* footer css end  */

/* preloader css begin  */
/* Preloader Styles */
/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(#ffffff, #c3c1e3, #8e8bc2);
  /* light background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

#preloaderCanvas {
  width: 300px;
  height: 300px;
}

#loadingBarContainer {
  width: 220px;
  height: 8px;
  background: #b4b6ba;
  /* light gray */
  border-radius: 4px;
  margin-top: 20px;
  position: relative;
}

#loadingBar {
  height: 100%;
  width: 0;
  background: #7973e0;
  border-radius: 4px;
  transition: width 0.1s ease;
}

#loadingPercent {
  position: absolute;
  top: -25px;
  right: 0;
  font-weight: 600;
  color: #7973e0;
  font-family: 'Inter', sans-serif;
}

/* preloader css end  */