/* /* =========================
   Base / Global
   ========================= */

/* Smooth scroll & base reset */
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  background-color: var(--background-color); /* fallback */
}

/* LIGHT THEME BACKGROUND: soft pink gradient */
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(
      1200px 800px at 85% 110%,
      #ffe7f5 0%,
      #fff0f9 26%,
      #fff6fa 52%,
      #fff6fa 100%
    );
  background-color: var(--background-color); /* fallback */
}

/* DARK THEME BACKGROUND */
[data-theme="dark"] body {
  background: none;
  background-color: var(--background-color-dark);
}

/* =========================
   Header (Sticky Navbar)
   ========================= */
#profileHeader {
  width: 100%;
  z-index: 1000;
  position: fixed;
  top: 0;
  transition: all 0.3s ease;
  background-color: transparent; /* let gradient show */
  margin: 0;
}

#profileHeader.scrolled {
  /* subtle glass when scrolled */
  background: rgba(255, 246, 250, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

#profileHeader nav {
  width: 100%;
  background-color: transparent; /* let gradient show */
  padding: 0.5rem 0;
  margin: 0;
}

/* =========================
   Main wrapper
   ========================= */
main {
  padding-top: 80px;
  background-color: transparent; /* let gradient show */
  position: relative;
  z-index: 1;
}

/* =========================
   Animations
   ========================= */
@keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } }

@keyframes fade-bottom {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fade-left {
  0% { transform: translateX(-10px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-right {
  0% { transform: translateX(20px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes fade-up {
  0% { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

header .navbar.animate { animation: fade-up 0.5s ease-in; }

/* =========================
   Tooltips
   ========================= */
.tooltip { line-height: 1rem; border-radius: .5rem !important; }
.tooltip-inner { line-height: 1rem; }
.tooltip .tooltip-arrow { visibility: hidden !important; }

/* =========================
   HERO
   ========================= */
#hero {
  position: relative;
  background-color: transparent; /* let gradient show */
  min-height: 100vh;
  line-height: 2rem;
  max-width: 100%;
}

#hero .content.animate { animation: fade-left 1s ease-out; }

#hero .hero-bottom-svg {
  opacity: 0.5;
  position: absolute;
  bottom: -50px;
  left: -150px;
}

/* subtitle */
#hero .subtitle {
  font-size: clamp(14px,5vw,16px);
  color: var(--primary-color) !important;
  opacity: 1;
}

/* HERO HEADING – gradient text */
#hero h2 {
  font-size: clamp(40px, 8vw, 80px);
  background: linear-gradient(90deg, #863781 0%, #e47df4 40%, #ff9fdc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Dark theme variant of gradient text */
[data-theme="dark"] #hero h2 {
  background: linear-gradient(90deg, #863781 0%, #f3a7ff 50%, #ffb7e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 165, 255, 0.2));
}

#hero h3 {
  font-size: clamp(40px, 8vw, 60px);
  opacity: 0.5;
}

#hero p {
  margin: 20px 0 0;
  max-width: 640px;
  opacity: 0.8;
}

/* ---------- HERO IMAGE – true rounded gradient border (no sharp edges) ---------- */
/* Replace any previous border-image rules with this block */
/* --- HERO IMAGE SIZE + ALIGNMENT FIX --- */
/* --- HERO IMAGE: refined size + alignment --- */
#hero .hero-photo,
#hero .image img {
  width: 100%;
  max-width: 180px;         /* ✅ slightly smaller */
  height: auto;
  border-radius: 16px;
  margin-top: 24px;         /* balances vertical alignment */
  margin-left: -24px;       /* ✅ pulls image closer to the text */
  padding: 3px;
  background:
    linear-gradient(var(--secondary-color), var(--secondary-color)) padding-box,
    linear-gradient(135deg, #863781, #e47df4, #ff9fdc) border-box;
  border: 2px solid transparent;
  box-shadow: 0 6px 18px rgba(181, 122, 255, 0.15);
  transition: transform 0.3s ease, margin 0.3s ease;
}

/* Make image a touch smaller on mobile */
@media (max-width: 768px) {
  #hero .hero-photo,
  #hero .image img {
    max-width: 150px;
    margin-left: 0;         /* centers nicely on stacked layout */
    margin-top: 16px;
  }
}

/* Keep a clean, subtle hover effect */
#hero .hero-photo:hover,
#hero .image img:hover {
  transform: scale(1.03);
}


/* On large monitors, you can allow it to grow slightly */
@media (min-width: 1400px) {
  #hero .hero-photo,
  #hero .image img {
    max-width: 220px;
  }
}


/* keep the entrance animation */
#hero .image.animate img {
  animation: fade-in 1s ease-out;
  transition: box-shadow 0.3s;
}

#hero .image img:hover { cursor: pointer; }

#hero .image.animate img:hover {
  box-shadow: 0 0 11px rgba(15, 80, 100, 0.2);
  filter: contrast(1.02);
  cursor: pointer;
}

/* Social icons */
#hero a.btn.social-icon {
  color: var(--primary-color) !important;
  line-height: 0%;
  border-radius: 50%;
  margin-top: 50px;
  padding: 0.7rem;
  border: 1px solid var(--primary-color);
  transition: none;
}

#hero a.btn.social-icon img { width: 1em; }
#hero a.btn.social-icon:hover { opacity: 0.8; }

/* CTA buttons */
#hero a.btn {
  margin-top: 50px;
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--primary-color);
  color: var(--text-color) !important;
  border-radius: .75rem;
  transition: none;
}

#hero a.btn:focus { box-shadow: none; }

#hero a.btn:hover {
  background-color: var(--secondary-color) !important;
  color: var(--text-color) !important;
  opacity: 0.9;
}

/* Gradient hover for round social icons */
#hero a.btn.social-icon:hover {
  background: var(--accent-gradient);
  color: white !important;
  border: none;
  transform: scale(1.05);
  transition: 0.3s ease;
}

/* Inline links underline on hover */
#hero .hero-content > a {
  display: inline-block;
  text-decoration: none;
  color: var(--text-link-color) !important;
}
#hero .hero-content > a::after {
  content: "";
  display: block;
  width: 0px;
  height: 2px;
  bottom: 0.37em;
  background-color: var(--primary-color);
  transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
  opacity: 0.5;
}
#hero .hero-content > a:hover::after,
#hero .hero-content > a:focus::after,
#hero .hero-content > a:active::after {
  width: 100%;
}

/* --- HERO IMAGE SIZE CONTROL --- */
#hero .hero-photo {
  width: 100%;
  max-width: 320px; /* smaller cap so it stays beside the intro nicely */
  height: auto;
  border-radius: 16px;
  padding: 3px;
  background:
    linear-gradient(var(--secondary-color), var(--secondary-color)) padding-box,
    linear-gradient(135deg, #863781, #e47df4, #ff9fdc) border-box;
  border: 2px solid transparent;
  box-shadow: 0 10px 24px rgba(181, 122, 255, 0.18);
}

@media (max-width: 768px) {
  #hero .hero-photo { max-width: 280px; }
}

@media (min-width: 1400px) {
  #hero .hero-photo { max-width: 360px; }
}


/* =========================
   ABOUT
   ========================= */
#about { position: relative; z-index: 1; }

#about h3 { color: var(--text-secondary-color) !important; }

/* Card-style container to match Experience section */
#about .about-card {
  position: relative;
  padding: 1.25rem;
  background-color: var(--secondary-color) !important;
  border-radius: 1.5rem;
  border: 2px solid var(--text-secondary-color) !important;
  box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
  transition: box-shadow 0.2s linear, opacity 0.2s linear, transform 0.2s, border 0.2s;
}

#about .about-card * { background-color: var(--secondary-color) !important; }

#about .about-card:hover,
#about .about-card:focus,
#about .about-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
  border: 2px solid var(--primary-color) !important;
  transition: 0.3s;
}

/* Image styling within About */
#about .image img {
  box-shadow: 0px 8px 56px rgba(15, 80, 100, 0.16);
  transition: box-shadow 0.3s;
  padding: 0;
  border: 0;
  border-radius: 1rem;
}
#about .image img:hover { box-shadow: 0 0 11px rgb(15 80 100 / 20%); }

/* Content text */
#about .content {
  font-weight: 500;
  opacity: 0.9 !important;
  line-height: 1.7rem !important;
  padding-top: 0.25rem;
}

/* Skills list */
#about ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 200px));
  gap: 0px 10px;
  padding: 0px;
  margin: 20px 0px 0px;
  overflow: hidden;
  list-style: none;
}
#about ul li { position: relative; margin-bottom: 10px; padding-left: 20px; }
#about ul li::before {
  content: "▹";
  color: var(--primary-color);
  position: absolute; left: 0px;
}

/* Links */
#about a { display: inline-block; text-decoration: none; color: var(--text-link-color) !important; }
#about a::after {
  content: ""; display: block; width: 0px; height: 2px; bottom: 0.37em;
  background-color: var(--primary-color);
  transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1); opacity: 0.5;
}
#about a:hover::after, #about a:focus::after, #about a:active::after { width: 100%; }

/* Responsive tweaks */
@media all and (max-width:768px) {
  #about .about-card { padding: 1.25rem 1rem; }
  #about ul { grid-template-columns: repeat(2, minmax(140px, 200px)); }
}

/* =========================
   EXPERIENCE
   ========================= */
#experience h3 { color: var(--text-secondary-color) !important; }

.experience-container { display: flex; flex-direction: column; gap: 0.3rem; }

.experience-item {
  position: relative;
  padding: 1.25rem;
  background-color: var(--secondary-color) !important;
  border-radius: 1.5rem;
  border: 2px solid var(--text-secondary-color) !important;
  box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
  transition: box-shadow .2s linear, opacity .2s linear, transform 0.2s;
}

.experience-item * { background-color: var(--secondary-color) !important; }

.experience-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
  border: 2px solid var(--primary-color) !important;
  transition: 0.3s;
}

.experience-item:focus, .experience-item:focus-within {
  border: 2px solid var(--primary-color) !important;
  transition: 0.3s;
}

.company-header { display: flex; align-items: center; margin-bottom: 0.5rem; }
.company-detail-logo { width: 45px; height: 45px; margin-right: 15px; object-fit: contain; }
.company-info { flex: 1; }

#experience ul { overflow: hidden; list-style: none; margin-bottom: 0; padding-left: 0; }
#experience li { position: relative; margin-bottom: 6px; padding-left: 20px; opacity: 0.9; }
#experience li::before { content: "▹"; color: var(--primary-color); position: absolute; left: 0px; }

#experience a { opacity: 0.9; display: inline-block; text-decoration: none; color: var(--text-link-color) !important; }
#experience a::after {
  content: ""; display: block; width: 0px; height: 2px; bottom: 0.37em;
  background-color: var(--primary-color);
  transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1); opacity: 0.5;
}
#experience a:hover::after, #experience a:focus::after, #experience a:active::after { width: 100%; }

#experience .featuredLink { padding: 0.25rem 0; margin: 0.25rem 0; }
#experience .featuredLink a::after { display: none; }

#experience .featuredLink a.btn {
  opacity: 0.9;
  border: 1px solid var(--primary-color) !important;
  border-radius: .75rem;
  box-shadow: none;
  transition: all 0.2s ease;
  padding: 0.25rem 0.75rem;
  margin: 0;
  color: var(--text-color) !important;
  background-color: transparent;
}
#experience .featuredLink a.btn:hover { background-color: var(--primary-color) !important; color: white !important; opacity: 1; }

#experience small { opacity: 0.9; }
#experience .content { padding-top: 0.25rem; }

@media all and (max-width:768px) { .experience-item { padding: 1.25rem 1rem; } }

/* =========================
   EDUCATION
   ========================= */
#education .container > h3 { color: var(--text-secondary-color) !important; }
#education .row .index {
  opacity: 0.8; padding: 13px 20px; line-height: 0%; border-radius: 50%; max-height: 50px;
  z-index: 2; background-color: var(--primary-color) !important; color: var(--secondary-color) !important; font-weight: bold;
}
#education .card * { background-color: var(--secondary-color) !important; }
#education .card {
  border-radius: 1.5rem; box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
  border: 2px solid var(--text-secondary-color) !important;
  transition: box-shadow .2s linear,opacity .2s linear, transform 0.2s;
}
#education .card .card-body { border-radius: 1.5rem; padding: 2rem; }
@media all and (max-width:768px) { #education .card .card-body { padding: 2rem 1rem; } }
#education .card:hover { transition: 0.3s; box-shadow: 0 4px 11px rgb(15 80 100 / 16%); border: 2px solid var(--primary-color) !important; }
#education .card .card-body .education-content a { color: var(--text-link-color) !important; text-decoration: none; opacity: 0.9; }
#education .card .card-body > a h6 { display: inline-block; text-decoration: none; color: var(--text-link-color) !important; }
#education .card .card-body > a h6::after {
  content: ""; display: block; width: 0px; height: 2px; bottom: 0.37em; background-color: var(--primary-color);
  transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1); opacity: 0.5;
}
#education .card .card-body > a h6:hover::after, #education .card .card-body > a h6:focus::after, #education .card .card-body > a h6:active::after { width: 100%; }
#education .card .card-body a.btn { opacity: 0.9; border: 1px solid var(--primary-color) !important; color: var(--text-color) !important; border-radius: .75rem; box-shadow: none; transition: none; }
#education .card .card-body a.btn:hover { opacity: 0.8; }

/* Logos */
#education .school-logo { max-height: 60px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
#education .school-logo:hover { transform: scale(1.05); }
#education .logo-column { display: flex; align-items: center; justify-content: center; }
@media all and (max-width: 768px) {
  #education .school-logo { max-height: 50px; margin-bottom: 1rem; }
  #education .card .card-body { padding: 1.5rem 1rem; }
  #education .logo-column { margin-bottom: 1rem; }
}

/* =========================
   ACHIEVEMENTS
   ========================= */
#achievements a { text-decoration: none; }
#achievements h3 { color: var(--text-secondary-color) !important; }
#achievements .card {
  cursor: context-menu;
  background-color: var(--secondary-color) !important;
  border-radius: 1rem;
  box-shadow: 0 0 36px rgba(0,0,0,0.1);
  transition: box-shadow .2s linear,opacity .2s linear;
  border: 2px solid transparent;
}
#achievements a.card { cursor: alias; }
#achievements .card h5 { color: var(--text-color) !important; opacity: 0.9; }
#achievements .card:hover, #achievements .card:focus { border: 2px solid var(--text-color); transition: .3s; }
#achievements .card-text { background-color: var(--secondary-color) !important; color: var(--text-secondary-color) !important; }
#achievements img { border-radius: 0.7rem; }
#achievements .card a { color: var(--text-link-color) !important; text-decoration: none; opacity: 0.9; }

/* =========================
   Arrows (keep)
   ========================= */
.arrows { width: 60px; height: 72px; position: absolute; left: 50%; margin-left: -30px; bottom: 20px; }
.arrows path { stroke: #2994D1; fill: transparent; stroke-width: 1px; animation: arrow 2s infinite; -webkit-animation: arrow 2s infinite; }
@keyframes arrow { 0% {opacity:0} 40% {opacity:1} 80% {opacity:0} 100% {opacity:0} }
@-webkit-keyframes arrow { 0% {opacity:0} 40% {opacity:1} 80% {opacity:0} 100% {opacity:0} }
.arrows path.a1 { animation-delay:-1s; -webkit-animation-delay:-1s; }
.arrows path.a2 { animation-delay:-0.5s; -webkit-animation-delay:-0.5s; }
.arrows path.a3 { animation-delay:0s; -webkit-animation-delay:0s; }

/* =========================
   Company logos
   ========================= */
.company-logo { width: 20px; height: 20px; margin-right: 8px; object-fit: contain; vertical-align: middle; }
.company-detail-logo { width: 40px; height: 40px; margin-right: 15px; object-fit: contain; }
.company-header { display: flex; align-items: center; margin-bottom: 20px; }
.company-info { flex: 1; }
.company-tab { display: flex !important; align-items: center; }

/* Ensure logos stay crisp */
.company-logo img, .company-detail-logo img {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =========================
   Feedback
   ========================= */
#feedback h3 { color: var(--text-secondary-color) !important; }
#feedback .card {
  background-color: var(--secondary-color) !important;
  border-radius: 1.5rem;
  box-shadow: 0px 8px 56px rgb(15 80 100 / 16%);
  border: 2px solid var(--text-secondary-color) !important;
  transition: box-shadow .2s linear, opacity .2s linear, transform 0.2s;
}
#feedback .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 11px rgb(15 80 100 / 16%);
  border: 2px solid var(--primary-color) !important;
  transition: 0.3s;
}
#feedback .card-body { border-radius: 1.5rem; padding: 2rem; }
#feedback .btn {
  opacity: 0.9;
  border: 1px solid var(--primary-color) !important;
  color: var(--text-color) !important;
  border-radius: .75rem;
  box-shadow: none;
  transition: all 0.2s ease;
  padding: 0.7rem 1.75rem;
}
#feedback .btn:hover { background-color: var(--primary-color) !important; color: white !important; opacity: 1; }
@media all and (max-width:768px) { #feedback .card-body { padding: 2rem 1rem; } }

/* =========================
   Newsletter
   ========================= */
#newsletter { text-align: center; padding: 2rem 0; }
#newsletter .newsletter-content { max-width: 600px; margin: 0 auto; padding: 1rem; }
#newsletter iframe { margin: 2rem auto; max-width: 100%; display: block; }
@media (max-width: 480px) { #newsletter iframe { width: 100%; height: 320px; } }
