* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #ea580c;
}
html {
  font-size: 60%;
  overflow-x: hidden;
}

body{
  background-color: var(--bg-color);
  color: var(--text-color);
}
.header{
  position: fixed; 
  width: 100%;
  top: 0;
  left: 0;
  padding: 4rem 15%;
  background-color: rgb(0,0,0,0.3);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index:1000;
}

/* ===== NAVBAR RESPONSIVENESS ===== */
/* ===== NAVBAR RESPONSIVENESS ===== */
#menu-icon {
  font-size: 4rem;
  color: var(--main-color);
  cursor: pointer;
  display: none; /* Hidden on large screens */
  z-index: 10001;
}

/* Mobile styles */
@media (max-width: 991px) {
  #menu-icon {
    display: block; /* Show menu icon */
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 100%;
    background-color: rgba(3, 3, 3, 0.95);
    border-top: 2px solid var(--main-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    transition: 0.4s ease-in-out;
  }

  .navbar.show {
    right: 0; /* Slide in */
  }

  .navbar a {
    font-size: 2rem;
    color: var(--text-color);
  }

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


.big-c {
  font-size: 2em; /* Adjust size as needed */
  font-weight: bold; /* Optional: Make it bold */
  color: #e9d6c9; /* Optional: Change color */
  font-family: 'Courier New', Courier, monospace;
}

.logo{
  font-size: 3rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3 ease-in-out;
  font-family: "Montserrat", sans-serif;
  

}
.logo:hover{
  transform: scale(1.1);
}
span{
  background: linear-gradient(
    270deg,
    #df8908 10%,
    #ff1d15 100%
);
    background-clip: text;
    color: transparent; 
}

.navbar a{
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease-in-out;
  border-bottom: 3px solid transparent;
}

.navbar a:hover{
  color: var(--main-color);
  border-bottom: 3px solid var(--main-color);
}

.gradient-button{
  font-size: 1.8rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: linear-gradient(
    270deg,
    #df8908 10%,
    #ff1d15 100%
);
letter-spacing: 1px;
cursor: pointer;
transition: 0.3s ease-in-out;
color: white;
border: none;
text-wrap: nowrap;
}
.gradient-button:hover{
  transform: scale(1.05);
}
/* Adjust "I'm a" position and control animation area */
.text-animation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 3.5rem;
  font-weight: 600;
  position: relative;
  margin-right: 10px; /* 🔹 Moves the whole line slightly to the left */
}

.text-animation span {
  margin-left: 10px; /* Keeps spacing between “I’m a” and the changing word */
  color: var(--main-color);
  display: inline-block;
  min-width: 220px; /* Prevents layout shift during word changes */
  text-align: left;
}

/* Optional — cursor blink effect */
.text-animation span::after {
  content: "|";
  animation: blink 0.6s infinite;
  margin-left: 3px;
  color: var(--main-color);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 768px) {
  .text-animation span {
    min-width: 150px;
  }
}




section{
  min-height: 100vh;
  padding:10rem 15%;
}
.home{
  display: flex; 
  align-items: center;
  justify-content: center;
  gap: 15rem;
}
.home-content{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.home-content h1{
  font-size: 6rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;
}

.home-content h3{
 margin: 1rem 0;
 font-size: 4rem;
}

.home-content p{
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.8;
  

}

.home-img img{
  width: 22vw;
  height: 22vw;
  box-shadow:10 0 50px var(--main-color);
  transition: 0.4s ease-in-out;

}


.social-icons a{
  
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  padding: 1rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  margin: 3rem 0.5rem;
  transition: 0.3s ease-in-out;

}

.social-icons a:hover{
  color: var(--text-color);
  background-color: var(--main-color);
  transform: scale(1.2)translate(-5px);
  box-shadow: 0 0 25px var(--main-color);
}


.btn {
  display: inline-block;
  padding: 2rem 20rem; /* Increased padding for bigger buttons */
  font-size: 2.5rem; /* Larger text */
  border-radius: 5rem; /* More rounded corners */
  background-color: var(--main-color);
  box-shadow: 0 0 25px var(--main-color);
  color: black;
  border: 3px solid transparent;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  transform: scale(1.1); /* Slightly enlarges on hover */
  box-shadow: 0 0 40px var(--main-color), 0 0 80px var(--main-color);
  background-color: black;
  color: var(--main-color);
}

.btn:hover{
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--main-color),
              0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2){
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover{
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: black;
}

/* about page*/

.about{

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5rem;
  background-color: var(--second-bg-color);
}

.about-img img{
  width: 25vw;
  height: 25vw;
  border-radius: 50%;
  box-shadow : 0 0 25px var(--main-color);
  transition: 0.4s ease-in-out;
}
.about-img img:hover{
   box-shadow: 0 0 25px var(--main-color),
               0 0 50px var(--main-color),
               0 0 100px var(--main-color);
   
}
.about-content h2{
  font-size: 7rem;
  text-align: left;
  margin-top: 9%;
}
.about-content p{
  font-size: 1.8rem;
}

.about-content .btn{
  margin: 3rem 0;
}

::-webkit-scrollbar{
  width: 13px;
}

::-webkit-scrollbar-thumb{
  background-color: var(--main-color);
}

::-webkit-scrollbar-track{
  background-color: var(--bg-color);
}

.heading{
  text-align: center;
  font-size: 7rem;
  margin: 5rem 0;
  color: white;
}
.services {
  background-color: var(--bg-color);
  color: black;
}

.services h2 {
  color: white;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 🟢 Two cards per row */
  gap: 2.5rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

.service-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-color);
  height: 350px;
  border-radius: 3rem;
  cursor: pointer;
  border: 5px solid transparent;
  transition: 0.4s ease-in-out;
  animation: shake 2s ease-in-out infinite;
  animation-delay: 2s;
}

.service-box:hover {
  background: var(--second-bg-color);
  color: var(--main-color);
  border: 5px solid var(--main-color);
  transform: scale(1.03);
}

.service-info {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}

.service-info h4 {
  font-size: 4rem;
  margin: 2rem 0;
  font-weight: 800;
}

.service-info p {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.7;
}

.service-info i {
  font-size: 8rem;
}

/* ✅ Responsive adjustment for small screens */
@media (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr; /* stack vertically on mobile */
  }
}


.projects {
  background-color: var(--second-bg-color);
  padding: 5rem 10%;
  text-align: center;
}

.projects-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  justify-content: center;
  align-items: stretch;
  margin-top: 3rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 3rem;
  padding: 3rem 2rem;
  cursor: pointer;
  box-shadow: 0 0 5px var(--main-color);
  transition: 0.3s ease-in-out;
  min-height: 500px;
}

.project-card:hover {
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
  transform: scale(1.02);
}

.project-card img {
  max-width: 300px;
  height: auto;
  border-radius: 2em;
  margin-bottom: 1.5rem;
}

.project-card .btn {
  margin-top: 1rem;
  padding: 1rem 2rem;
  border-radius: 2rem;
  background-color: var(--main-color);
  color: black;
  font-weight: bold;
  transition: 0.3s ease-in-out;
  margin-top: 15%;
}

.project-card .btn:hover {
  background-color: black;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.project-card h3{
  font-size: 3rem;

}
.project-card p{
  margin-top: 5%;
  font-size: 1.6rem;
}


.contact{
  background-color: var(--bg-color);
}

.contact h2{
  margin-bottom: 3rem;
  color: var(--text-color);
}

.contact form{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin: 5rem 0;
  text-align: center;

}

.contact form .input-box input,
.contact form textarea{
  width: 100%;
  padding: 2.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border-radius: 2rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;

}



.footer {
  background-color: var(--bg-color);
  color: var(--text-color);
  text-align: center;
  padding: 2rem 0;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer .social-icons a {
  font-size: 1.5rem;
  color: var(--main-color);
  transition: 0.3s ease-in-out;
}

.footer .social-icons a:hover {
  color: var(--text-color);
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--text-color);
}

.list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.list li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.5rem;
  transition: 0.3s;
}

.list li a:hover {
  color: var(--main-color);
}

.copyright {
  margin-top: 1rem;
  font-size: 1.5rem;
}



/* Skills section styles */
.skills-container {
  margin: 2rem 0;
}

.skills-container h2{
  font-size: 6rem;
  margin-top: 11%;
}

.skill {
  margin-bottom: 1.5rem;
}

.skill-name {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.skill-bar {
  height: 1.5rem;
  background-color: #333;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--main-color), #ff8c00);
  border-radius: 1rem;
  width: 0;
  transition: width 2s ease-in-out;
  position: relative;
}

.skill-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}



/* Ensure existing styles work with new content */
.about-content p {
  font-size: 1.8rem;
  margin: 1rem 0;
}

.about-content {
  flex: 1;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-percentage {
  font-size: 1.4rem;
  color: var(--main-color);
}
/* Circular analytics styles */
.analytics-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 4.5%;
   position: relative; 
  z-index: 1; 
  
}

.analytics-section h1 {
  text-align: center;
  font-size: 6.5rem; /* Adjust as needed */
  margin-bottom: 2rem; /* Add proper spacing */
  position: relative; /* Prevent interference */
  z-index: 2; /* Ensure it's above other elements */
}

.circular-analytics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.analytic-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.3),
              inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.3s ease;
  z-index: 20;
}

.analytic-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--main-color),
              inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.analytic-circle::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--main-color);
  box-sizing: border-box;
  animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.circle-content {
  text-align: center;
  color: var(--text-color);
  z-index: 1;
}

.circle-content i {
  font-size: 2.5rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.circle-content span {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Skills description */
.skills-description {
   text-align: center;
  max-width: 500px;
}

.skills-description p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: #ccc;
}
/* =============================================== */
/* 🔸 Circle Popup Styles (Fixed & Responsive)     */
/* =============================================== */

.analytic-circle {
  position: relative; /* needed for absolute popup positioning */
  z-index: 2;
  overflow: visible; /* ensures popup can extend outside the circle */
}

/* Popup container */
.circle-popup {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 16, 16, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--main-color);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 220px;
  z-index: 9999; /* ✅ ensures popup appears above all other sections */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(234, 88, 12, 0.6);
  text-align: center;
  pointer-events: none; /* prevents flicker when hovering */
}

@supports not (backdrop-filter: blur(10px)) {
  .circle-popup {
    background: rgba(30, 30, 30, 0.98); /* Solid background as fallback */
  }
}

/* Popup arrow */
.circle-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid var(--main-color);
}

/* Text inside popup */
.circle-popup h4 {
  color: var(--main-color);
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.circle-popup p {
  font-size: 1.3rem;
  line-height: 1.4;
  color: #ccc;
}

/* Show popup on hover */
.analytic-circle:hover .circle-popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -10px);
}

/* Ensure surrounding containers don't clip popups */
.about,
.analytics-section,
.circular-analytics {
  position: relative;
  overflow: visible; /* ✅ popups won’t be cut off */
  z-index: 10;
}

/* Adjust positioning for better mobile experience */
@media (max-width: 768px) {
  .circle-popup {
    width: 180px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    padding: 1.2rem;
  }

  .circle-popup h4 {
    font-size: 1.4rem;
  }

  .analytic-circle:hover .circle-popup {
    transform: translate(-50%, -5px);
  }
}

/* Small devices (extra tweaks) */
@media (max-width: 480px) {
  .circle-popup {
    width: 160px;
    font-size: 1.1rem;
  }
}

.circle-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -10px);
  pointer-events: auto;
  transition: all 0.3s ease;
}



/* ============================= */
/* 📱 FULL RESPONSIVE DESIGN FIX */
/* ============================= */

@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

  section {
    padding: 8rem 10%;
  }

  .home {
    gap: 8rem;
  }
}

@media (max-width: 991px) {
  header {
    padding: 3rem 10%;
  }

  .home {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .home-content {
    align-items: center;
  }

  .home-content h1 {
    font-size: 5rem;
    
  }

  .home-content h3 {
    font-size: 3rem;
    margin-left: -20%;
  }

  .home-img img {
    width: 45vw;
    height: 45vw;
  }

  /* Navbar show/hide */
  #menu-icon {
    display: block;
  }

  .navbar {
    display: none;
  }

  .navbar.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 2rem 0;
  }

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

/* ========================== */
/* 📱 Mobile Devices (≤768px) */
/* ========================== */
@media (max-width: 768px) {
  html {
    font-size: 50%;
  }

  section {
    padding: 7rem 6%;
  }

  /* Header adjustments */
  .header {
    padding: 2rem 6%;
  }

  .gradient-button {
    display: none; /* Hide 'Contact Me' button on very small screens */
  }

  /* Home */
  .home-content h1 {
    font-size: 4rem;
  }

  .home-content h3 {
    font-size: 2.5rem;
  }

  .home-img img {
    width: 60vw;
    height: 60vw;
  }

  /* About Section */
  .about {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-content h2 {
    text-align: center;
    margin-bottom: 2rem;
  }

  /* Skills bars full width */
  .skills-container {
    width: 100%;
    padding: 0 2rem;
  }

  .skill-bar {
    width: 100%;
  }

  /* Circular Analytics - 2x2 grid */
  .circular-analytics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9rem;
    justify-items: center;
    margin-top: 20px;
  }

  .circle-content span {
    font-size: 1.5rem;

  }

  .analytic-circle {
    width: 120px;
    height: 120px;
  }

  .circle-content i {
    font-size: 2rem;
  }

  .analytics-section h1 {
    font-size: 3rem;
    margin-top: 3rem;
  }

  /* Services Section */
  .services-container {
    grid-template-columns: 1fr;
  }

  .service-box {
    height: auto;
    padding: 3rem 2rem;
  }

  /* Projects Section */
  .projects-box {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  /* Contact Section */
  .contact form {
    flex-direction: column;
    gap: 1rem;
  }

  .contact form .input-box {
    width: 100%;
  }

  .contact form input,
  .contact form textarea {
    width: 100%;
  }

  /* Footer */
  .footer .social-icons {
    flex-wrap: wrap;
  }

  .footer .list {
    flex-direction: column;
    gap: 0.5rem;
  }
  .skills-container {
    width: 100vw; /* use full viewport width */
    margin-left: -5vw; /* adjust to center visually */
    padding: 0 5vw;
  }

  /* Ensure skill bars fill the container */
  .skill-bar {
    width: 100%;
  }

  /* Center the skill titles and align spacing */
  .skill-header {
    justify-content: space-between;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .skills-container {
    width: 100vw;
    margin-left: -5vw;
    padding: 0 5vw;
  }

  .skill-bar {
    width: 100%;
  }

}

/* =============================== */
/* 📱 Small Devices (≤480px) */
/* =============================== */
@media (max-width: 480px) {
  html {
    font-size: 45%;
  }

  .home-content h1 {
    font-size: 3.5rem;
  }

  .home-content p {
    font-size: 1.4rem;
  }

  .analytic-circle {
    width: 100px;
    height: 100px;
  }

  .circle-content i {
    font-size: 3rem;
  }
  
  
  .circle-content span {
    font-size: 1.6rem;
  }

  .about-content h2,
  .analytics-section h1,
  .heading {
    font-size: 4rem;
  }

  .btn {
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
  }

   .analytics-section h1{
    margin-top: 29%; /* Reduce top margin for small screens */
   }

   .home-content h3{
    font-size: 3.5rem;
    margin-left: 50px;
   }
}