@import url(https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Delicious+Handrawn&display=swap);
@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,600);

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --body-color: rgba(250, 250, 250);
    --color-white: rgba(250, 250, 250);
    --text-color: rgb(0, 0, 0);
    --first-color: rgb(24, 132, 55);
    --first-shadow: rgba(0, 0, 0, 0.1);
    --box-color: #fff;
    --nav-color: #fff;
    --nav-icon: #000;
    --logo-color: #000;
    --icon-color: #000000;
    --mode-color: #cfcfcf;
}

body {
    background: var(--body-color);
    margin: 0;
    line-height: 1.6;
}

/*-----Dark mode------*/
body.dark {
    --body-color: #111212;
    --box-color: #242525;
    --nav-color: #111212;
    --color-white: #fff;
    --text-color: #fff;
    --nav-icon: #fff;
    --logo-color: #fff;
    --icon-color: #ffffff;
    --mode-color: #ffffff;
}
/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden; /* prevent horizontal scrollbar */
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

/* ABOUT PAGE WRAPPER */
.about-section {
  position: relative;
  width: 100%;   /* use percentage, not 100vw */
  min-height: 100vh;
  background: linear-gradient(to right, #2b5876, #4e4376);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  overflow: hidden; /* stops inner overflows */
}

/* CONTENT BOX */
.about-content {
  max-width: 1000px;
  text-align: center;
  z-index: 2;
  position: relative;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  animation: fadeInUp 1.2s ease forwards;
}

/* SIMPLE, SMOOTH ANIMATIONS */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* BACKGROUND EFFECTS (NO OVERFLOW) */
.about-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;  /* fixed */
  height: 100%;
  background: url('your-bg.svg') no-repeat center/cover;
  z-index: 0;
  opacity: 0.15;
  pointer-events: none; /* don't block clicks */
}

/* FOOTER */
footer {
  background: #111;
  color: #ddd;
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 5; /* above backgrounds */
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  margin: 0 10px;
}




/* Ensure all text turns white in dark mode */
body.dark,
body.dark p,
body.dark a,
body.dark span,
body.dark li {
    color: var(--text-color);
}

.container {
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
nav {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    background: var(--nav-color);
    padding: 0 5%;
    z-index: 999;
    transition: top 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(197, 209, 200, 0.5);
    border-radius: 8px;
}

.nav-menu,
.nav_menu_list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--first-color);
}

/* Active Link Styling */
.active-link {
    color: var(--first-color);
}

.nav-menu-btn {
    display: none;
}

.nav-menu-btn i {
    font-size: 24px;
    cursor: pointer;
    color: var(--nav-icon);
}

/* Mode Toggle */
.mode {
    display: flex;
    align-items: center;
}

.moon-sun {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    background: var(--mode-color);
    transition: all 0.3s ease;
}

.moon-sun:hover {
    transform: scale(1.1);
}

.moon-sun :is(#moon, #sun) {
    position: absolute;
    font-size: 18px;
    color: black;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#sun {
    opacity: 0;
    transform: scale(0.8);
}

#moon {
    opacity: 1;
    transform: scale(1);
}

body.dark #moon {
    opacity: 0;
    transform: scale(0.8);
}

body.dark #sun {
    opacity: 1;
    transform: scale(1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: black;
}

.wrapper {
    padding-inline: 10vw;
}

.features-box {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

.features-text {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
    margin-top: 1%;
}

.features-text .hello {
    font-size: 50px;
    font-weight: 500;
    margin-bottom: -10px;
    color: var(--text-color);
}

.features-name {
    font-size: 50px;
    font-weight: 600;
    margin-block: 20px;
    color: #0d9d3d;
    margin-bottom: 10px;
}

.typedText {
    font-family: sans-serif;
    color: #1a8d22;
    font-size: 24px;
    font-weight: 600;
    text-transform: capitalize;
    height: 30px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #149e3d;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #146233;
    }
}

.text-info {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.text-btn {
    display: flex;
    border-radius: 8px;
    cursor: pointer;
    gap: 20px;
}

.btn {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    background-color: #43a946;
    font-weight: 500;
    transition: all 0.5s ease;
}

.btn i {
    margin-right: 10px;
}

i {
    font-size: 16px;
}

/*--Social Icons - FIXED ANIMATION--*/
.social-icons {
    display: flex;
    margin-top: 100px;
    margin-left: 5px;
    gap: 32px;
}

.social-icons .icon_circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--icon-color);
    border-radius: 50%;
    box-shadow: 0px 1px 5px 3px #22b24a;
    cursor: pointer;
    position: relative;
    /* Fixed: Simple gentle float animation instead of complex spin+slide */
    animation: gentleFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* REMOVED: Problematic duplicate .icon_circle class with absolute positioning */

/* Fixed: Simple gentle floating animation */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Enhanced hover effect */
.social-icons .icon_circle:hover {
    transform: translateY(-12px) scale(1.1);
    box-shadow: 0px 2px 8px 4px #22b24a;
    animation-play-state: paused;
}

/* REMOVED: Problematic @keyframes spin and @keyframes iconSlide */

.social_icons:hover .icon_circle {
    animation-play-state: paused;
    cursor: pointer;
}

li i {
  color: #1a8d22;
  margin-right: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #1a8d22;
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.8; }
}

.about-me-section {
  padding: 4rem 2rem;
  color: #333;
}

.about-me-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 15px auto;
}

.about-left {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
}

.profile-pic {
  width: 600px;
  height: 600px;
  object-fit: cover;
}

.about-right h2{
  flex: 2 1 500px;
  margin: 40px 0;
  text-align: center;
}

.about-right h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #1a6d28;
}

.about-right .bio {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-right h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.about-right ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.about-right li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Dark mode */
body.dark .about-me-section {
  background-color: #121212;
  color: #ffffff;
}

body.dark .about-right h2 {
  color: #266131;
}

body.dark .about-right h3 {
  color: #ccc;
}

body.dark .profile-pic {
  border-color: #f7a400;
}

body.dark .about-right ul {
  color: #fffbfb;
}

.skills-section {
  margin: 10px 0;
  text-align: center;
}

.skills-section h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #19781e;
}

.card-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #ffffff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 200px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.circle {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
}

.circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.circle .bg {
  stroke: #ccfbd7;
}

.circle .progress {
  stroke: #25833b;
  stroke-dasharray: 440;
  transition: stroke-dashoffset 0.5s ease;
}

.percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
}

.label {
  font-size: 1.2rem;
  color: #666;
}

/* Dark mode styling */
body.dark .card {
  background: #121212;
  box-shadow: 0 8px 20px rgba(255 255 255 / 0.1);
}

body.dark .percentage {
  color: #eee;
}

body.dark .label {
  color: #aaa;
}

body.dark .circle .bg {
  stroke: #444;
}

body.dark .circle .progress {
  stroke: #237424;
}

body.dark .skill::after {
  background: #444;
  color: var(--color-white);
}

body.dark .goals-section {
  flex: 1 1 45%;
  background-color: #111111;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(105, 105, 105, 0.1);
}

body.dark .tech-section {
  flex: 1 1 45%;
  background-color: #111111;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(137, 137, 137, 0.1);
}

.info-columns {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.goals-section,
.tech-section {
  flex: 1 1 45%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Added smooth transition */
}

.goals-section h3,
.tech-section h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-align: center;
}

ul.goals {
  list-style: none;
  padding-left: 0;
}

ul.tech {
  list-style: none;
  padding-left: 0;
}

/* Main tools section container */
.tools-section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;   /* push behind content */
  pointer-events: none; /* prevent blocking clicks */
}


.tools-section h2 {
  color: #175c27;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.tech-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.tech-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}




.tech-section h3 {
  margin-bottom: 18px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #214d25;
  position: relative;
  display: inline-block;
}

.tech-section h3::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #66ea7e, #4ba261);
  border-radius: 1px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  justify-items: center;
}

.tool-card {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  /* Fixed: Only animate on page load, not continuously */
  animation: fadeInUp 0.6s ease forwards;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #66ea75, #55a24b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover::before {
  opacity: 0.1;
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 30px rgba(102, 234, 113, 0.3);
}

.tool-card img, 
.tool-card i {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.tool-card:hover img,
.tool-card:hover i {
  transform: scale(1.2);
  filter: brightness(1.1) saturate(1.1);
}

.tool-card span {
  font-size: 10px;
  font-weight: 500;
  color: #30502c;
  text-align: center;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.tool-card:hover span {
  color: #7aea66;
  font-weight: 600;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* Dark mode */
body.dark .tools-section {
  background: linear-gradient(135deg, #101010 0%, #1b1b1b 100%);
}

body.dark .tech-section {
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .tech-section h3 {
  color: #e2e8f0;
}

body.dark .tool-card {
  background: #102311;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .tool-card span {
  color: #e2e8f0;
}

body.dark .tool-card:hover span {
  color: #66ea6a;
}

body.dark .tools-section h2 {
  color: #e2e8f0;
}

/* Footer */
footer {
    background: var(--nav-color);
    color: var(--text-color);
    padding: 3rem 5% 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.top-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark .top-footer {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-logo-image {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-links h3,
.footer-social h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--first-color);
}

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

.footer-menu-list {
    margin-bottom: 0.5rem;
}

.footer-menu-list a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-menu-list a:hover {
    color: var(--first-color);
}
.footer-menu,
.footer-menu ul,
.footer-menu-list {
    list-style: none !important;
    padding-left: 0 !important;
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--box-color);
    border-radius: 50%;
    color: var(--icon-color);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
}

.social-icon:hover {
    background: var(--first-color);
    color: white;
    transform: translateY(-3px);
}

.bottom-footer {
    text-align: center;
    padding-top: 2rem;
}

.bottom-footer p {
    font-size: 0.85rem;
    color: var(--text-color);
}

.bottom-footer a {
    text-decoration: none;
    color: var(--first-color);
    font-weight: 600;
}

.bottom-footer a:hover {
    text-decoration: underline;
}

/* Popup Message */
#popup-message {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #4ade80;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav_menu_list {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--nav-color);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }
    
    .nav-menu-btn {
        display: block;
    }
    
    .about-me-container,
    .skills-card {
        max-width: 100%;
    }
    
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    
    .top-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .tech-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tools-section {
        margin: 30px 10px;
        padding: 30px 15px;
    }
    
    .tools-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .tech-section {
        padding: 15px 12px;
    }
    
    .tools-grid {
        gap: 8px;
    }
    
    .tool-card {
        width: 70px;
        height: 70px;
    }
    
    .tool-card img, 
    .tool-card i {
        width: 28px;
        height: 28px;
    }
    
    .tool-card span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .tech-container {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        width: 60px;
        height: 60px;
    }
    
    .tool-card img, 
    .tool-card i {
        width: 24px;
        height: 24px;
    }
    
    .tool-card span {
        font-size: 8px;
    }
  }
  /* QR Modal (no horizontal scroll at all) */
.qr-modal {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);

  /* Center content safely */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Kill scrollbars */
  overflow-x: hidden;
  overflow-y: auto;
}

/* Modal Card */
.qr-modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  width: min(90%, 350px); /* responsive: max 350px */
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  position: relative;
}

/* Title */
.qr-modal-content h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #222;
}

/* QR Image */
.qr-image {
  width: 180px;
  height: 180px;
  margin: 10px auto;
  display: block;
}

/* Close Button */
.qr-close {
  position: absolute;
  top: 10px; 
  right: 15px;
  font-size: 26px;
  font-weight: bold;
  color: #444;
  cursor: pointer;
}

.qr-close:hover {
  color: #e63946;
}

/* Subtext */
.qr-modal-content p {
  font-size: 0.9rem;
  color: #555;
}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* 🔑 no horizontal scroll ever */
}
/* Hide modal initially */
.qr-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
