:root {
  --bg-color: #001;
  --second-bg-color: #112;
  --text-color: #fff;
  --main-color: #16ff00;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  border: none;
  outline: none;
  font-family: system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  padding: 2rem;
}

/* Header Section */
header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 9%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Logo */
.logo {
  font-size: 3rem;
  font-weight: 800;
  cursor: pointer;
  background: -webkit-linear-gradient(#16ff00, #ffed00);
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Navbar */
.navbar {
  display: flex;
}

.navbar a {
  position: relative;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-color);
  margin-left: 4rem;
  padding-bottom: 5px;
  transition: all 0.2s ease;
}

/* Animated Underline */
.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: var(--main-color);
  transition: width 0.4s ease;
  border-radius: 2px;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* Menu Icon */
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  cursor: pointer;
  display: none;
}

/* Contact Button */
.nav-btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  color: #fff;
  background-color: rgb(8, 65, 8);
  border: 3px solid var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.1rem;
}

.nav-btn:hover {
  background: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 20px var(--main-color);
  transform: scale(1.03);
}

/* Theme Toggle Icon */
#theme-icon {
  font-size: 30px;
  border: 1px solid var(--main-color);
  border-radius: 50%;
  background: rgb(47, 57, 47);
  color: #16ff00;
  cursor: pointer;
  margin-left: 2rem;
}

/* Light Mode Variables */
body.light-mode {
  --bg-color: #a5b02a;
  --second-bg-color: #626414;
  --text-color: #111;
  --main-color: rgb(38, 83, 31);
}

body.light-mode .home-content h1 {
  background: -webkit-linear-gradient(#0077ff, #00bfff);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsive Styles */
@media (max-width: 768px) {
 .logo {
    white-space: normal;     /* Allow wrapping */
    text-align: center;      /* Center on small screens */
    line-height: 1.2;
    font-size: 2.2rem;
    max-width: 100px;        /* Force wrap by limiting width */
    overflow-wrap: break-word;
  }
  header {
    flex-direction: row;
    align-items: flex-start;
    padding-bottom: 0.5rem ;
  }
  #menu-icon {
    display: block;
    position: absolute;
    top: 1rem;
    right: 2rem;
    z-index: 2000;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 3rem 0;
    display: none;
    z-index: 2000;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    margin: 0;
    font-size: 2rem;
  }

  .nav-btn {
    position:relative;
    right: 3rem;
    top: 20%;
    transform: translateY(-50%);
    margin-left: 4rem;
    z-index: 2002;
    font-size: 1.8rem;
    margin-top: 4rem;
  }

  .top-btn {
    margin: 0.1rem auto;
  }
 #theme-icon {
    position: absolute;
    right: 2rem;
    top: 60%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2002;
  }
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--second-bg-color);
    gap:7rem;
    margin-top: 2rem;
    padding: 5rem 2rem;
    width: 100%; /* ✅ ensure full width */
  overflow-x: hidden;
}
.home-content h3{
    font-size:3.2rem ;
    font-weight: 700;
}
.home-content h3:nth-of-type(2){
    margin-bottom: 2rem;
}

span{
    color: var(--main-color);
}

.home-content h1{
    font-size: 5.8rem;
    font-weight: 700;
    line-height: 1.3;
    background: -webkit-linear-gradient(#16ff00,#ffed00);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-img {
   flex:1 1 30rem;
   /* margin-left: 6rem; */
    max-width: 300px;
    height: auto;
    border: 3px solid var(--main-color);
    border-radius: 51% 49% 48% 52% / 49% 49% 51% 51%;
    animation: borderAnimation 5s linear infinite;
    overflow: hidden; /* Important: to clip the image inside the border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media (max-width: 768px) {
  .home {
    flex-direction: column-reverse;
    margin-top: 40%;
    padding: 3rem 2rem;
  }
  .btn{
    flex-direction: column-reverse;
    padding: 3rem ;
    margin-left: 8rem;
  }


}
@keyframes borderAnimation {
    0% {
        border-radius: 51% 49% 48% 52% / 49% 49% 51% 51%;
    }
    35% {
        border-radius: 60% 40% 57% 43% / 40% 54% 46% 60%;
    }
    65% {
        border-radius: 67% 33% 68% 32% / 27% 70% 30% 73%;
    }
    100% {
        border-radius: 51% 49% 48% 52% / 49% 49% 51% 51%;
    }
}

.home-content p {
    max-width: 70rem;              /* Limits the width */
    margin-top: 2rem;
    margin-bottom: 2rem;
    /* margin-right: 7rem;            */
    text-align: justify;           /* Aligns both sides evenly */
    line-height: 1.5;
    font-size: 1.7rem;
}


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

.social-media a{
    display:flex;
    justify-content: center;
    align-items:center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.3rem solid var(--main-color);
    border-radius: 50%;
    font-size: 3.3rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease; 
}

.social-media a:hover{
    transform: scale(1.2) translateY(-8px);
    background-color: var(--main-color);
    color:var(--text-color);
    box-shadow: 0 0 15px var(--main-color);
}

.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  color: #fff; /* 👈 white text */
  background-color: var(--main-color); /* green background */
  border: 3px solid var(--main-color);
  border-radius: 5rem;
  font-size: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.1rem;
  opacity: 1;
  visibility: visible;
}

.btn:hover{
    transform: scale(1) translateY(-8px);
    /* background-color: var(--main-color); */
    color:var(--text-color);
    box-shadow: 0 0 15px var(--main-color);
}

/* ==========================
   ABOUT SECTION
========================== */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--snd-bg-color);
  padding: 5rem 9%;
  flex-wrap: wrap; /* ✅ avoids overflow */
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: space-between;
  width: 100%; /* ✅ keeps inside parent */
  max-width: 1200px; /* ✅ prevents stretching */
  margin: auto;
}

/* LEFT SIDE */
.about-left {
  flex: 1;
  min-width: 280px;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-img-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--main-color);
  margin: 4rem 0 2rem;
}

.about-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-details p {
  font-size: 1.6rem;
  margin: 0.5rem 0;
}

.label {
  font-weight: 600;
  color: var(--main-color);
}

/* Skills (Left side) */
.skills {
  margin-top: 2rem;
  width: 100%;
}

.skills h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.skill {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.progress {
  background-color: #333;
  border-radius: 2rem;
  overflow: hidden;
  height: 1.2rem;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--main-color);
  border-radius: 2rem;
  transition: width 1s ease-in-out;
}

.skill-percent {
  float: right;
  color: var(--main-color);
  font-size: 1.4rem;
  font-weight: bold;
}

/* RIGHT SIDE */
.about-right {
  flex: 1;
  min-width: 280px;
  max-width: 55%;
}

.about-right .heading {
  font-size: 3.5rem;
  margin: 5rem 0 2rem;
}

.about-text {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-align: justify;
}

.about-info li {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Professional Skills (Circle) */
.professional-skills {
  margin: 2rem 0;
  text-align: center;
  width: 100%;
}

.professional-skills h3 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.circle-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.circle-skill {
  position: relative;
  width: 120px;
  height: 120px;
  text-align: center;
  color: var(--text-color);
}

.circle-skill svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.circle-skill circle {
  fill: none;
  stroke-width: 10;
  stroke: #333;
}

.circle-skill .progress-ring {
  stroke: var(--main-color);
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.5s ease-out;
}

.circle-label {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
  white-space: nowrap;
}

.circle-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--main-color);
}

/* About Button */
.linkbtn {
  display: block;
  margin: 5rem auto 0 auto; /* ✅ centered */
  padding: 1rem 3.8rem;
  background: transparent;
  color: var(--main-color);
  border: 3px solid var(--main-color);
  border-radius: 5rem;
  font-size: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  letter-spacing: 0.1rem;
  text-align: center;
  text-decoration: none;
  max-width: fit-content;
}

.linkbtn:hover {
  background: var(--main-color);
  color: var(--text-color);
  box-shadow: 0 0 20px var(--main-color);
  transform: scale(1.03);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
  .about-container {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-left,
  .about-right {
    max-width: 100%;
  }

  .about-right .heading {
    font-size: 3rem;
  }

  .linkbtn {
    font-size: 1.6rem;
    padding: 0.8rem 2rem;
  }
}

@media (max-width: 480px) {
  .about-right .heading {
    font-size: 2.4rem;
  }

  .about-text {
    font-size: 1.4rem;
  }

  .about-info li {
    font-size: 1.3rem;
  }

  .linkbtn {
    font-size: 1.4rem;
    padding: 0.6rem 1.5rem;
  }
}

/* contact section css */
 #contact-icon {
  margin-top: 5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;  
  gap: 30rem;         
}
.icon-box {
  display: flex;
  flex-direction: column;
  gap:20%;
  align-items: center;
  text-align: center;
  margin: 10px 20px; /* Equal horizontal spacing */
}

.icon-circle {
  width: 80px;
  height: 80px;
  border: 3px solid #16ff00;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #16ff00;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.icon-circle:hover {
  color: #ffed00;
  border-color: #ffed00;
  transform: scale(1.1);
}

.icon-label {
  margin-top: 10px;
  font-size: 13px;
  color: #fff;
}
/* Responsive tweaks */
@media (max-width: 768px) {
   #contact-icon {
    gap: 2rem;       /* smaller spacing on tablets */
  }
  .social-media {
    max-width: 100%;
    gap: 20%;
    justify-content: center;
  }

  .icon-circle {
    width: 70px;
    height: 70px;
    font-size: 1.6rem;
  }

  .icon-label {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #contact-icon {
    flex-direction: column;  
    gap: 1.5rem;
  }
  .social-media {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .icon-box {
    margin: 15px 0;
  }
}

.contacts{
  padding: 50px 20px;
  background:var(--bg-color);
  width: 100%;
}
 .contacts h2 {
  text-align: center;   
  font-size: 30px;
  margin-top: 5%;
  margin-bottom: 2rem;  
}

.main-text{
  text-align: center;
  margin-top: 9rem;
  margin-bottom: 4rem;
  font-size: 2rem;
 text-decoration: underline var(--main-color);
}
.contacts form{
  text-align: center;
  max-width: 50rem;
  margin: 1rem auto;
  margin-bottom: 3rem;
}
.contacts form input,
.contacts form textarea{
  width: 100%;
  color:var(--text-color);
  background:var(--second-bg-color) ;
  margin-bottom: 0.7rem;
  border:none;
  border-radius: 5px;
  padding: 0.7rem;
}
.contacts form textarea{
  resize: none;
}
.messbtn{
  width: 100%;
  padding: 1rem;
  font-size: 20px;
  background:#16ff00;
  color:#f0f0f0;
  cursor: pointer;
  transition: background 0.3s ease;
}
/* Footer styling */
.ftco-footer {
  background: #322929ed;
  color: #ccc;
  padding: 15px 0;
  font-family: 'Segoe UI', sans-serif;
}

.ftco-footer a {
  color: #16ff00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ftco-footer a:hover {
  color: #fff;
}

.ftco-footer i {
  animation: pulse 1s infinite;
}
/* Heart icon animation */ 
 @keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.text-center {
  text-align: center;
}
form input:focus{
  border: 2px solid rgb(117, 174, 117)
}

.ftco-footers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
  padding: 15px 0;
  list-style: none;
  margin: 0;
  flex-wrap: wrap;
}

.ftco-footers li {
  color: #fff;
  font-size: 5rem;
  gap:3rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.ftco-footers a {
  color: #16ff00; 
  font-size: 4rem;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.ftco-footers a:hover {
  color: #ffed00;
  transform: scale(1.2);
}

.normal-txt {
  font-size: 1.1rem;
  color: #ccc;
  margin-right: 10px;
}
