/* =========================================================
    GLOBAL STYLES
========================================================= */
*{
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #222;
  color: #fff;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.container-xxl,
.container {
  overflow-x: hidden;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  border-bottom: 1px solid black;
  padding-bottom: 35px;
}

/* =========================================================
    THEME-DEFAULT OVERRIDES
========================================================= */
body.theme-default {
  overflow-x: hidden;
  background: linear-gradient(to right, #222222, #aa0000);
  color: #ffffff;
}

body.theme-default .footer {
  background-color: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

body.theme-default .hero-image {
  opacity: 0.32;
  filter: saturate(1.1) contrast(1.05);
}

body.theme-default .main h2,
body.theme-default .main h3,
body.theme-default .hero-text-line {
  color: #ffffff;
}

body.theme-default .main,
body.theme-default section {
  background: transparent;
}

body.theme-default .main::before,
body.theme-default section::before,
body.theme-default .main::after {
  display: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: -1;
}

/* =========================================================
    THEME TOGGLE
========================================================= */
.navbar-nav .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  font-weight: bolder;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.navbar-nav .theme-toggle:hover {
  transform: scale(1.05);
}

.navbar-nav .theme-toggle:focus {
  outline: none;
}

.navbar-nav .theme-toggle i {
  pointer-events: none;
}

/* =========================================================
    NAVBAR
========================================================= */
.navbar {
  overflow-x: hidden;
  background-color: #171a26;
  color: bold;
  text-align: center;
  padding: 0 25px;
}

.navbar-brand .logo {
  margin-left: 50px;
  border-radius: 50%;
  transition: transform 1.4s ease-in-out;
}

.navbar-brand .logo:hover {
  transform: scale(1.8);
}

nav {
  overflow-x: hidden;
  background-color: #171a26;
  color: bold;
  text-align: center;
  padding: 10px 0;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
  margin-right: 20px;
}

nav ul li a {
  color: #fff;
  font-weight: bolder;
  text-decoration: none;
  font-size: 18px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.571);
  color: black;
  border-radius: 10px;
  text-decoration: underline;
  transform: scale(11.3s);
}

.navbar-toggler {
  background-color: #171a26;
  border-color: white;
}

.navbar-toggler:hover {
  background-color: #171a26;
  color: #fff;
}

/* =========================================================
 ANIMATIONS
========================================================= */
@keyframes floatLeaves {
  0% { background-position: 0 0; }
  50% { background-position: 80px 300px; }
  100% { background-position: 0 600px; }
}

@keyframes driftStars {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 400px 600px, -300px 400px, 200px 500px; }
}

@keyframes pulseNebula {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.08); }
}

/* =========================================================
  MAIN SECTION
========================================================= */
.main {
  padding-top: 50px;
  margin: 0;
  background: transparent;
  color: inherit;
  height: 90vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

.main > * {
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.main > .hero-image-wrapper {
  z-index: -2;
}

.main h1 {
  color: inherit;
  font-weight: bolder;
}

.main h2 {
  font-size: 40px;
  color: inherit;
  font-weight: bolder;
  text-transform: uppercase;
}

.main h3 {
  font-size: 3.9rem;
  font-weight: 600;
  transition: transform 0.3s ease-in-out;
}

.main h3:hover {
  transition: background-color 1.3s, color 1.9s, transform 1.6s ease-in-out;
  transform: scale(1.05);
}

/* HERO SECTION */
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  pointer-events: none;
  z-index: -2;
}

.hero-image-wrapper::after {
  display: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.3;
  filter: saturate(1.05) contrast(1.02);
}

.hero-caption {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  max-width: 520px;
  padding: 0 20px;
}

.hero-actions {
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center;      /* Center vertically */
  gap: 20px;                /* Space between buttons */
  margin-top: 20px;
}
.hero-actions a {
  background-color: rgb(107, 5, 5);
  color: #ffffff;
  border-color: black;
  font-weight: bolder;
  padding: 12px 30px;
  border-radius: 6px;
}

.hero-actions #btn1:hover,
.hero-actions #btn2:hover {
  background-color: black;
  border-color: rgb(107, 5, 5);
  color: rgb(107, 5, 5);
  font-weight: bolder;
}

/* HERO TEXT LINES ANIMATION */
.hero-text-line {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-line-1 { animation-delay: 0.15s; }
.hero-line-2 { animation-delay: 0.3s; }
.hero-line-3 { animation-delay: 0.45s; }
.hero-line-4 { animation-delay: 0.6s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-visual {
    margin-top: 32px;
  }

  .hero-image-wrapper {
    position: absolute;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* ========================== GENERIC SECTIONS   ================================================== */
section {
  padding: 40px 0;
  background: transparent;
  color: inherit;
}

section h1 {
  font-size: 36px;
  text-align: center;
  margin-bottom: 20px;
}

section p {
  font-size: 18px;
  text-align: center;
}

/* ========================================== ABOUT SECTION =============================================== */
.about-section {
  background-size: cover;
  color: inherit;
  margin: 0;
  font-weight: bolder;
  padding: 20px 20px;
  text-align: center;
}

.about-section p {
  text-align: justify;
}

#btn1:hover,
#btn2:hover {
    background-color:black; 
    border-color: rgb(107, 5, 5);
    color: rgb(107, 5, 5); 
    font-weight: bolder;
}
#btn1,#btn2 {
    background-color: rgb(107, 5, 5); 
    color: #ffffff; 
    border-color: black;
    font-weight: bolder;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin: 5px
}

.skills {
  margin-top: 20px;
}

.skills h3,
.other-skills h3 {
  color: white;
  text-align: center;
}

.skill,
.other-skill {
  margin-bottom: 5px;
}

.skill-name {
  text-align: left;
  color: white;
  font-weight: bold;
  margin-bottom: 5px;
}

.skill-bar {
  position: relative;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: white;
  text-align: center;
}

.skill-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--skill-level, 0%);
  transition: width 3s ease;
}

.skill-percentage {
  position: absolute;
  top: 0;
  left: 10;
  text-align: center;
  padding: 3px 10px;
  border-radius: 0 10px 10px 0;
  transform: translateX(-100%);
  opacity: 0;
  animation: show-percentage 4s ease-out forwards;
}

.skill-bar[data-skill]::after {
  animation: show-percentage s ease-out forwards;
  width: var(--skill-level, 0%);
  background: linear-gradient(to right, #1f0101, #000000);
  background-color: black;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0 10px;
  box-sizing: border-box;
  content: attr(data-skill) '%';
  transition: width 1s ease;
}

.skill-bar[data-skill]:hover::after {
  width: attr(data-skill '%');
}

.profile-pic:hover {
  transform: scale(1.1);
}

#toggle-skills {
  background-color: black;
  font-weight: bolder;
  color: white;
  border: 2px solid rgb(107, 5, 5);
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 1.3s, color 1.9s, transform 1.5s ease-in-out;
}

#toggle-skills:hover {
  background-color: rgb(107, 5, 5);
  color: black;
}

.other-skills {
  display: none;
}

/* =========================================================
   SERVICES SECTION
========================================================= */
.services {
  background: transparent;
  color: inherit;
  font-weight: bolder;
  padding: 70px 20px;
}

.services .card {
  transition: all 1.3s ease;
  color: inherit;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: none;
}

#circle {
  height: 600px;
  width: 900px;
  border-radius: 50%;
}

.services .circle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  background-color: rgba(37, 36, 36, 0.416);
}

.services .circle span {
  font-size: 30px;
  color: #fff;
}

.card:hover {
  animation: none;
  transform: scale(1.02);
  color: inherit;
  box-shadow: none;
  background-color: rgba(255, 0, 0, 0.388);
  transition: all 1.3s ease;
  transform: scale(1.05);
}


/* =========================================================
   9️⃣ PROJECTS SECTION
========================================================= */
.projects-section {
  text-align: center;
}

.filter-buttons {
  transition: background-color 1.3s, color 0.9s, transform 1.6s;
  margin: 20px auto;
  text-align: center;
}

.filter-button {
  display: inline-block;
  margin: 5px;
  font-weight: bolder;
  padding: 10px 20px;
  background-color: rgb(107, 5, 5);
  color: white;
  border: 2px solid rgb(107, 5, 5);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 1.3s, color 0.9s, transform 1.6s;
  font-size: 16px;
}

.filter-button:hover {
  background-color: black;
  color: rgb(107, 5, 5);
}

.filter-button.active {
  background-color: rgb(77, 6, 6);
  color: white;
}

/* Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0 10px 30px 10px;
}

.project {
  background: #181818;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 4s cubic-bezier(0.19, 1, 0.22, 1), 
              box-shadow 0.45s cubic-bezier(0.19, 1, 0.22, 1), 
              background 2s ease-in-out;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

.project-image {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.project-content {
  padding: 16px 14px 10px 14px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-card {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  overflow: hidden;
}

.project p {
  font-size: 16px;
  line-height: 1.6;
  font-weight: bolder;
  flex-grow: 1;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.view-project-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: black;
  color: white;
  border: 2px solid black;
  border-radius: 5px;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.7s, color 0.7s, transform 0.7s;
}

.view-project-button:hover {
  transform: scale(1.1);
  color: rgb(107, 5, 5);
}

.show-more-button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background-color: black;
  color: white;
  font-weight: bolder;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 1.3s, color 0.9s, transform 2.6s;
}

.show-more-button:hover {
  background-color: rgb(107, 5, 5);
  color: black;
  border: 1px solid black;
  transform: scale(1.1);
}

@media (max-width: 700px) {
  .project-grid {
    padding: 0 2vw 30px 2vw;
    gap: 12px;
  }

  .project-image {
    height: 140px;
  }
}

/* =========================================================
    CERTIFICATIONS SECTION
========================================================= */
.certifications-list {
  list-style-type: none;
  padding: 0;
}

.certifications-list li {
  margin-bottom: 10px;
}

.certification-link {
  display: block;
  text-align: center;
  padding: 10px 15px;
  color: white;
  font-size: 25px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 1.3s ease;
}

.certification-link:hover {
  color: black;
  transform: scale(1.1);
}

/* =========================================================
    CONTACT SECTION
========================================================= */
#contact {
  padding: 60px 0;
  color: white;
}

.contact-item {
  padding: 15px;
  border-radius: 8px;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  transition: background-color 1.3s ease-in-out 2s;
}

.contact-item:hover {
  background-color: rgba(255, 255, 255, 0.415);
  transform: scale(1.05);
  color: #00000065;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-links a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  transition: transform 2.3s ease-in-out 1s;
}

.contact-links a:hover {
  transform: translateY(-3px) scale(1.0);
  color: #00000065;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  font-weight: bold;
  font-size: 24px;
  color: white;
  margin-right: 2px;
  transition: color 0.3s ease;
  flex-shrink: 0;
}

.contact-text {
  font-size: 18px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.contact-links a:hover .contact-icon {
  color: #000000;
}

.contact-links a:hover .contact-text {
  color: white;
  transition: background-color 1.3s, color 1.9s;
  transform: scale(1.9);
}
/* ============================ CONTACT SECTION =================================== */
body.theme-default footer {
    background-color: rgba(35, 36, 35, 0.59);
    color: #ffffff;
}


/* =====================================================
   🌌 THEME: GALAXY
===================================================== */

/* ---------- 1. GLOBAL THEME COLORS ---------- */
body.theme-galaxy {
    background: linear-gradient(135deg, #09125f, #190c50);
    color: #e5e8ff;
    overflow-x: hidden;

}

/* Disable default section overlays from Leaf theme */
body.theme-galaxy::before,
body.theme-galaxy::after {
    display: none;
}

/* Keep section positioning for decorative stars */
body.theme-leaf section,
body.theme-galaxy section {
    position: relative;
    z-index: 0;
    overflow: hidden;
}

/* ---------- 2. TYPOGRAPHY ---------- */
body.theme-galaxy h1,
body.theme-galaxy h2,
body.theme-galaxy h3,
body.theme-galaxy h4,
body.theme-galaxy h5,
body.theme-galaxy h6,
body.theme-galaxy p,
body.theme-galaxy span,
body.theme-galaxy li,
body.theme-galaxy a {
    color: #e5e8ff;
}

body.theme-galaxy .hero-text-line {
    color: #dde2ff;
}

body.theme-galaxy .about-section p {
    color: #d5dbff;
}

/* ---------- 3. MAIN SECTION ---------- */
body.theme-galaxy .main h2,
body.theme-galaxy .main h3 {
    color: #e5e8ff;
}
body.theme-galaxy .hero-caption {
    color: #dde2ff;
    text-shadow: 0 6px 24px rgba(24, 32, 84, 0.6);
}
body.theme-galaxy .hero-image {
    opacity: 0.45;
    filter: saturate(1.45) brightness(0.9);
}
body.theme-galaxy .hero-image-wrapper {
    box-shadow: 0 26px 60px rgba(27, 38, 108, 0.45);
    background: radial-gradient(circle at 20% 20%, rgba(124, 77, 255, 0.35), rgba(11, 14, 47, 0.9));
}
body.theme-galaxy .hero-image-wrapper::after {
    box-shadow: inset 0 0 0 2px rgba(142, 162, 255, 0.25);
}

/* ---------- 4. NAVBAR ---------- */
body.theme-galaxy .navbar,
body.theme-galaxy .theme-toggle i {
    color: #e5e8ff;
}

/* ---------- 5. ABOUT SECTION ---------- */
body.theme-galaxy .about-section {
    background: transparent;
}

/* ---------- 6. SKILLS SECTION ---------- */
body.theme-galaxy .skill-bar {
    background-color: rgba(88, 101, 242, 0.2);
}
body.theme-galaxy .skill-bar[data-skill]::after {
    background: linear-gradient(135deg, #5c6bff, #311b92);
    color: #ffffff;
}
body.theme-galaxy .skill-name,
body.theme-galaxy .skill-percentage {
    color: #e5e8ff;
}
body.theme-galaxy #toggle-skills {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(63, 76, 255, 0.6));
    color: #e5e8ff;
    border-color: rgba(99, 110, 255, 0.6);
}
body.theme-galaxy #toggle-skills:hover {
    background: linear-gradient(135deg, rgba(99, 110, 255, 0.6), rgba(68, 82, 255, 0.85));
    color: #fff;
}

/* ---------- 7. PROJECTS SECTION ---------- */
body.theme-galaxy .project {
    background: linear-gradient(135deg, #5c6bff, #311b92);
    color: #e5e8ff;
    box-shadow: none;
    border: none;
}
body.theme-galaxy .project h2,
body.theme-galaxy .project p {
    color: #e5e8ff;
}
body.theme-galaxy .filter-button,
body.theme-galaxy .show-more-button,
body.theme-galaxy .view-project-button {
    background: linear-gradient(135deg, #4255ff, #311b92);
    border: none;
    color: #ffffff;
    box-shadow: none;
}
body.theme-galaxy .filter-button:hover,
body.theme-galaxy .filter-button.active,
body.theme-galaxy .show-more-button:hover,
body.theme-galaxy .view-project-button:hover {
    background: linear-gradient(135deg, #7986ff, #4527a0);
    color: #ffffff;
}

/* ---------- 8. SERVICES SECTION ---------- */
body.theme-galaxy .services .card {
    background: linear-gradient(135deg, #5c6bff, #311b92);
    color: #e5e8ff;
    box-shadow: none;
    border: none;
}
body.theme-galaxy .services .card h3,
body.theme-galaxy .services .card p {
    color: #e5e8ff;
}

/* ---------- 9. CERTIFICATIONS ---------- */
body.theme-galaxy .certification-link {
    color: #cfd4ff;
}
body.theme-galaxy .certification-link:hover {
    color: #8ab4ff;
}

/* ---------- 10. CONTACT SECTION ---------- */
body.theme-galaxy .contact-item a,
body.theme-galaxy .contact-text {
    color: #e5e8ff ;
}
body.theme-galaxy .contact-item a:hover {
    color: #8ab4ff;
}

/* ---------- 11. FOOTER ---------- */
body.theme-galaxy footer {
    background: rgba(31, 31, 31, 0.285);
    color: #e5e8ff;
}

/* ---------- 12. DECORATIVE ELEMENTS (STARS) ---------- */
body.theme-galaxy section::after {
    content: "";
    position: absolute;
    inset: -10% -5% -10% -5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='rgba(255,255,255,0.4)'%3E%3Ccircle cx='22' cy='24' r='2.4'/%3E%3Ccircle cx='96' cy='70' r='1.8'/%3E%3Ccircle cx='168' cy='42' r='3.4'/%3E%3Ccircle cx='210' cy='150' r='2.8'/%3E%3Ccircle cx='44' cy='182' r='2.1'/%3E%3Ccircle cx='138' cy='200' r='3.6'/%3E%3Ccircle cx='198' cy='214' r='1.8'/%3E%3Ccircle cx='72' cy='124' r='2.6'/%3E%3Ccircle cx='182' cy='104' r='2.2'/%3E%3C/g%3E%3Cg fill='rgba(122,161,255,0.4)'%3E%3Ccircle cx='58' cy='92' r='2.8'/%3E%3Ccircle cx='155' cy='24' r='2'/%3E%3Ccircle cx='222' cy='78' r='2.4'/%3E%3Ccircle cx='126' cy='146' r='3.2'/%3E%3Ccircle cx='48' cy='226' r='2.3'/%3E%3Ccircle cx='196' cy='190' r='2.7'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 260px 260px;
    opacity: 0.65;
    mix-blend-mode: screen;
    animation: starDrift 40s linear infinite;
    pointer-events: none;
    z-index: -2;
}

/* ---------- 13. BUTTONS ---------- */
body.theme-galaxy #btn1,
body.theme-galaxy #btn2 {
    background: linear-gradient(135deg, #5c6bff, #311b92);
    border-color: #311b92;
    color: #fff;
}
body.theme-galaxy #btn1:hover,
body.theme-galaxy #btn2:hover {
    background: linear-gradient(135deg, #7986ff, #4527a0);
    color: #fff;
}

/* ---------- 14. ANIMATIONS ---------- */
@keyframes starDrift {
    0% { background-position: 0 0; }
    50% { background-position: 150px 110px; }
    100% { background-position: 300px 220px; }
}


/* =====================================================
   🌿 THEME: LEAF  
===================================================== */

/* ---------- 1. GLOBAL THEME VARIABLES ---------- */
body.theme-leaf {
    overflow-x: hidden;
    --leaf-primary: #196E38;
    --leaf-dark: #196E38;
    --leaf-light: #eef9f1;
    background-color: #ffffff;
    color: var(--leaf-primary);
}

/* Universal color inheritance */
body.theme-leaf h1,
body.theme-leaf h2,
body.theme-leaf h3,
body.theme-leaf h4,
body.theme-leaf h5,
body.theme-leaf h6,
body.theme-leaf p,
body.theme-leaf .contact-text,
body.theme-leaf .about-section p {
    color: var(--leaf-primary) !important;
}

/* Common section visuals */
body.theme-leaf section {
    background: transparent;
    box-shadow: none;
}

/* ---------- 2. NAVBAR ---------- */
/* body.theme-leaf .navbar {
    background: transparent;
    box-shadow: none;
} */

/* body.theme-leaf .theme-toggle i {
    color: var(--leaf-primary) !important;
} */

/* ---------- 3. MAIN SECTION ---------- */
body.theme-leaf .main {
    background: linear-gradient(140deg, #ffffff 0%, rgba(25, 110, 56, 0.12) 50%, #ffffff 100%);
    color: var(--leaf-dark);
}
body.theme-leaf .hero-text-line {
    color: var(--leaf-primary);
}
body.theme-leaf .hero-image {
    opacity: 0.22;
    filter: saturate(1.3) brightness(1.05);
}
body.theme-leaf .hero-image-wrapper {
    box-shadow: 0 22px 50px rgba(46, 139, 87, 0.28);
    border: 3px solid rgba(46, 139, 87, 0.25);
}
body.theme-leaf .hero-caption {
    color: #124828;
    text-shadow: none;
}
body.theme-leaf #btn1,
body.theme-leaf #btn2,
body.theme-leaf .hero-actions .btn {
    background-color: var(--leaf-primary) !important;
    color: #ffffff !important;
    border: none;
}
body.theme-leaf #btn1:hover,
body.theme-leaf #btn2:hover,
body.theme-leaf .hero-actions .btn:hover {
    background-color: #104b25 !important;
}

/* ---------- 4. ABOUT SECTION ---------- */
body.theme-leaf .about-section {
    background: transparent;
}

/* ---------- 5. SKILLS SECTION ---------- */
body.theme-leaf .skill-bar {
    background-color: rgba(88, 242, 121, 0.2);
}
body.theme-leaf .skill-bar[data-skill]::after {
    background: linear-gradient(135deg, #313134, #01b641);
    color: #ffffff;
}
body.theme-leaf .skill-name,
body.theme-leaf .skill-percentage {
    color: #104b25;
}
body.theme-leaf #toggle-skills {
    /* background: linear-gradient(135deg, rgba(88, 242, 109, 0.35), rgba(7, 135, 24, 0.6)); */
    background: #004318;
    color: #ffffff;
    /* border-color: rgba(16, 152, 45, 0.6); */
}
body.theme-leaf #toggle-skills:hover {
    background: linear-gradient(135deg, rgba(14, 137, 33, 0.6), rgba(28, 28, 35, 0.85));
    color: #ffffff;
}


/* ---------- 6. PROJECTS SECTION ---------- */
body.theme-leaf .project {
    background-color: var(--leaf-primary) !important;
    color: #ffffff !important;
    border: none;
}
body.theme-leaf .project h2,
body.theme-leaf .project p {
    color: #ffffff !important;
}
body.theme-leaf .filter-button,
body.theme-leaf .show-more-button{
    background-color: var(--leaf-primary) !important;
    color: #fff !important;
    border: none !important;
}

body.theme-leaf .filter-button:hover,
body.theme-leaf .filter-button.active,
body.theme-leaf .show-more-button:hover,
body.theme-leaf .view-project-button:hover {
    background-color: #104b25 !important;
    color: #ffffff !important;
}
body.theme-leaf .view-project-button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #012e10;
  color: white;
  border: 2px solid #012e10;
  border-radius: 5px;
  text-decoration: none;
  align-self: flex-start;
  transition: background-color 0.7s, color 0.7s, transform 0.7s;
}

body.theme-leaf .view-project-button:hover {
  transform: scale(1.1);
  color: rgb(3, 100, 17);
}

/* ---------- 7. SERVICES SECTION ---------- */
body.theme-leaf .services {
    background: transparent;
    color: var(--leaf-primary);
}
body.theme-leaf .services .card {
    background-color: var(--leaf-primary);
    color: #ffffff;
    border: none;
    box-shadow: none;
}
body.theme-leaf .services .circle {
    background-color: white;
    border: 2px solid var(--leaf-primary);
}
body.theme-leaf .services .circle span {
    color: #104b25 !important;
}
body.theme-leaf .services .card h3,
body.theme-leaf .services .card p {
    color: #ffffff !important;
}

/* ---------- 8. CERTIFICATIONS ---------- */
body.theme-leaf .certification-link {
    color: #1f1f1f;
}
body.theme-leaf .certification-link:hover {
    color: var(--leaf-primary);
}

/* ---------- 9. CONTACT SECTION ---------- */
body.theme-leaf .contact-item i {
    color: var(--leaf-primary) !important;
}
body.theme-leaf .contact-item a:hover {
    color: #c4ffce;
}


/* ---------- 10. FOOTER ---------- */
body.theme-leaf footer {
    background-color: rgba(193, 251, 213, 0.59);
    color: #ffffff;
}

/* ---------- 11. SECTION DECORATIVE ELEMENTS ---------- */
body.theme-leaf section::before,
body.theme-leaf section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.38;
    pointer-events: none;
    filter: drop-shadow(0 18px 20px rgba(46, 139, 87, 0.25));
    z-index: -1;
}
body.theme-leaf section::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23196E38' d='M415.85 96.15c-41.09-41.1-95.76-63.75-153.85-63.75s-112.76 22.65-153.85 63.75S45.4 191.91 45.4 250s22.65 112.76 63.75 153.85S205.21 467.6 263.3 467.6s112.76-22.65 153.85-63.75S480.6 308.09 480.6 250 456.94 137.25 415.85 96.15zM263.3 428.6c-98.53 0-178.6-80.07-178.6-178.6S164.77 71.4 263.3 71.4 441.9 151.47 441.9 250 361.83 428.6 263.3 428.6z'/%3E%3C/svg%3E");
    animation: leafDriftLeft 20s linear infinite;
}
body.theme-leaf section::after {
    bottom: -18%;
    right: -14%;
    width: 310px;
    height: 310px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%230f4d24' d='M447.9 228.1c-1.6-18.3-9.8-36.1-23.6-49.9l-91.5-91.5c-13.8-13.8-31.6-22-49.9-23.6-17.5-1.5-34.9 3.2-49.1 13.1-12.2 8.4-21.4 20.2-26.6 34.1-27.2-5.7-56 1.4-77 22.4-20.9 20.9-28.1 49.6-22.5 76.7-14 5.2-25.9 14.4-34.4 26.6-9.8 14.2-14.5 31.6-13 49.1 1.6 18.3 9.8 36.1 23.6 49.9l91.5 91.5c13.8 13.8 31.6 22 49.9 23.6 2.8.3 5.6.4 8.4.4 15.1 0 30.1-4.7 42.5-13.5 12.2-8.4 21.4-20.2 26.6-34.1 27.2 5.7 56-1.4 77-22.4 20.9-20.9 28.1-49.6 22.5-76.7 14-5.2 25.9-14.4 34.4-26.6 9.9-14.2 14.6-31.6 13.1-49.1z'/%3E%3C/svg%3E");
    animation: leafDriftRight 24s linear infinite;
}

/* ---------- 12. ANIMATIONS ---------- */
@keyframes leafDriftLeft {
    0% { transform: translate(-25%, -15%) rotate(0deg); opacity: 0.15; }
    40% { transform: translate(15%, 20%) rotate(10deg); opacity: 0.35; }
    70% { transform: translate(-10%, 40%) rotate(-6deg); opacity: 0.25; }
    100% { transform: translate(-30%, 10%) rotate(4deg); opacity: 0.2; }
}
@keyframes leafDriftRight {
    0% { transform: translate(30%, 25%) rotate(-6deg); opacity: 0.2; }
    35% { transform: translate(-5%, -20%) rotate(8deg); opacity: 0.32; }
    65% { transform: translate(20%, -40%) rotate(-4deg); opacity: 0.28; }
    100% { transform: translate(10%, 15%) rotate(6deg); opacity: 0.22; }
}
@keyframes nebulaSweep {
    0% { transform: scale(1) translate(0, 0); opacity: 0.55; }
    50% { transform: scale(1.05) translate(-2%, 1%); opacity: 0.7; }
    100% { transform: scale(1.08) translate(1%, -2%); opacity: 0.6; }
}
@keyframes starDrift {
    0% { background-position: 0 0; }
    50% { background-position: 150px 110px; }
    100% { background-position: 300px 220px; }
}
@keyframes codeScroll {
    0% { background-position: 0 0, 0 0, 0 0; }
    50% { background-position: 25% 0, 0 -120px, -60px 0; }
    100% { background-position: 50% 0, 0 -240px, -120px 0; }
}
