/* ================= GLOBAL ================= */
.html-theme .progress { stroke:#ff4d6d; filter:drop-shadow(0 0 10px #ff4d6d); }
.css-theme .progress { stroke:#00f5ff; filter:drop-shadow(0 0 10px #00f5ff); }
.js-theme .progress { stroke:#f7df1e; filter:drop-shadow(0 0 10px #f7df1e); }
.php-theme .progress { stroke:#a074ff; filter:drop-shadow(0 0 10px #a074ff); }
.html-theme h5{ color:#ff4d6d; }
.css-theme h5{ color:#00f5ff; }
.js-theme h5{ color:#f7df1e; }
.php-theme h5{ color:#a074ff; }
.html-theme .number{ color:#ff4d6d; }
.css-theme .number{ color:#00f5ff; }
.js-theme .number{ color:#f7df1e; }
.php-theme .number{ color:#a074ff; }
html{
scroll-behavior:smooth;
}

body{
background:#050816;
color:white;
font-family:'Poppins',sans-serif;
overflow-x:hidden;
margin:0;
}

.progress{
  stroke-linecap:round;
  stroke-dasharray:314;
  stroke-dashoffset:314;
  transition:2s ease;
}

/* MYSQL FINAL PROFESSIONAL COLOR */
.mysql-theme .progress{
  stroke:#00A896;
  filter:drop-shadow(0 0 15px #00A896);
}

.mysql-theme .number{
  color:#00A896;
}

.mysql-theme .flip-front h5{
    color:#00A896;
}
.mysql-theme h4,
.mysql-theme h5{
  color:#00A896 !important;
  text-shadow:0 0 10px #00A896;
}

.logo-text{
  font-weight:700;
  font-size:22px;
  background:linear-gradient(
    90deg,
    #00ff9d,
    #00c3ff,
    #00ff9d
  );
  background-size:200%;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:shine 3s linear infinite;
}

@keyframes shine{
  0%{background-position:0%;}
  100%{background-position:200%;}
}

/* ================= NAVBAR ================= */

.navbar{
background:rgba(0,0,0,0.6);
backdrop-filter:blur(10px);
}

.nav-link{
color:white !important;
margin-left:20px;
transition:0.3s;
}

.nav-link:hover{
color:#00ff9d !important;
}

.top-slogan{
  display:inline-block;
  font-size:14px;
  letter-spacing:2px;
  text-transform:uppercase;
  color:#00ff9d;
  margin-bottom:15px;
  position:relative;
}

.top-slogan::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-5px;
  width:50%;
  height:2px;
  background:#00ff9d;
  box-shadow:0 0 10px #00ff9d;
}
/* ================= SECTION BASE ================= */

section{
padding:120px 0;
position:relative;
}

/* ================= HERO ================= */

.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  background:linear-gradient(135deg,#081b29,#0f2027);
  position:relative;   /* ADD THIS */
  overflow:hidden;   /* ADD THIS */
}

.main-title{
font-size:48px;
font-weight:700;
}

.highlight{
color:#00ff9d;
text-shadow:0 0 15px #00ff9d;
}

.hello{
color:#ff4d6d;
}

/* Gradient Button */

.btn-gradient{
background:linear-gradient(45deg,#ff4d6d,#00ff9d);
border:none;
color:white;
padding:10px 25px;
transition:0.3s;
}

.btn-gradient:hover{
transform:scale(1.05);
box-shadow:0 0 15px #00ff9d;
}

.hero-objective{
  max-width:500px;
  color:#b5b5b5;
  font-size:15px;
  line-height:1.6;
  margin-top:25px;
  animation:fadeUp 1.2s ease forwards;
  opacity:0;
}

.hero-objective span{
  color:#00ff9d;
  font-weight:600;
}

@keyframes fadeUp{
  from{
    transform:translateY(20px);
    opacity:0;
  }
  to{
    transform:translateY(0);
    opacity:1;
  }
}
/* Profile Image Glow */

.profile-img{
   width:300px;
  height:300px;
  max-width:90vw;            /* equal height for perfect circle */
  object-fit:cover;         /* image stretch aagathu */
  border-radius:50%;
  position:relative;
  z-index:2;
  box-shadow:0 0 40px #00ff9d;   /* stronger glow */
  transition:0.4s;
}

.profile-img:hover{
  transform:scale(1.05);
}

.circle-glow{
  position:absolute;
   width:350px;
  height:350px;
  max-width:90vw;
  background:radial-gradient(circle,#00ff9d33,#00000000);
  border-radius:50%;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  animation:pulse 3s infinite;
}

@keyframes pulse{
0%{transform:translate(-50%,-50%) scale(1);}
50%{transform:translate(-50%,-50%) scale(1.1);}
100%{transform:translate(-50%,-50%) scale(1);}
}


.profile-img:hover{
transform:scale(1.05);
}

.tech-stack{
  position:absolute;
  bottom:60px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  gap:15px;
  flex-wrap:wrap;
  justify-content:center;
}

.tech-stack span{
  display:inline-block;
  background:rgba(0,255,157,0.08);
  border:1px solid rgba(0,255,157,0.6);
  padding:6px 18px;
  border-radius:30px;
  font-size:14px;
  color:#00ff9d;
  backdrop-filter:blur(10px);
  transition:0.3s ease;
}

.tech-stack span:hover{
  background:#00ff9d;
  color:#050816;
  box-shadow:0 0 15px #00ff9d;
  transform:translateY(-5px);
}

@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}



/* ================= ABOUT ================= */

.about-section{
background:#071a14;
}

.section-title{
font-size:40px;
font-weight:700;
color: #fff;
}

.section-title span{
color:#00ff9d;
text-shadow:0 0 15px #00ff9d;
}

.about-text{
color:#ccc;
line-height:1.7;
}

.stat-box{
background:rgba(255,255,255,0.05);
padding:30px;
border-radius:15px;
backdrop-filter:blur(10px);
border:1px solid rgba(255,255,255,0.1);
transition:0.4s;
}

.stat-box:hover{
transform:translateY(-8px);
box-shadow:0 0 20px #00ff9d;
}

.stat-box h3{
color:#00ff9d;
}

.stat-box p{
    color: #fff;
}

/* ================= SKILLS ================= */

.skills-section{
background:#050816;
text-align:center;
}

.flip-card{
width:250px;
height:260px;
margin:auto;
perspective:1000px;
}

.flip-inner{
width:100%;
height:100%;
position:relative;
transform-style:preserve-3d;
transition:0.8s;
}

.flip-card:hover .flip-inner{
transform:rotateY(180deg);
}

.flip-front,
.flip-back{
position:absolute;
width:100%;
height:100%;
backface-visibility:hidden;
border-radius:15px;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
background:rgba(255,255,255,0.05);
backdrop-filter:blur(10px);
border:1px solid rgba(255,255,255,0.1);
}

.flip-front h5{
text-shadow:0 0 8px currentColor;
}

.flip-back{
transform:rotateY(180deg);
}



.flip-back p{
color:#ccc;
}

.flip-back span{
color:#00ff9d;
font-weight:600;
}

.circle{
position:relative;
width:120px;
height:120px;
margin-bottom:15px;
}

svg{
width:120px;
height:120px;
transform:rotate(-90deg);
}

circle{
fill:none;
stroke-width:10;
stroke:#1a1a1a;
}

.number{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-weight:bold;
}
/* ================= PROJECTS ================= */

.projects-section{
background:#071a14;
padding:120px 0;
}

.project-card{
transform-style:preserve-3d;
transition:transform 0.2s ease;
will-change: transform;
}

.project-card:hover{
box-shadow:0 0 30px #00ff9d;
}


.project-img{
width:100%;
height:200px;
object-fit:cover;
transition:0.4s;
}

.project-card:hover .project-img{
transform:scale(1.1);
}

.project-content{
padding:20px;
}

.project-content h4{
color:#00ff9d;
}

.project-content p{
color:#ccc;
font-size:14px;
}

.project-buttons{
margin-top:10px;
}

/* ================= CONTACT ================= */

.contact-section{
background:#050816;
padding:120px 0;
}

.contact-card{
background:rgba(255,255,255,0.05);
padding:40px;
border-radius:20px;
backdrop-filter:blur(15px);
border:1px solid rgba(255,255,255,0.1);
transition:0.4s;
}

.contact-card:hover{
box-shadow:0 0 30px #00ff9d;
}

.form-control{
background:transparent;
border:1px solid rgba(255,255,255,0.2);
color:white;
}

.form-control:focus{
background:transparent;
box-shadow:0 0 10px #00ff9d;
border-color:#00ff9d;
color:white;
}

.form-floating label{
color:#aaa;
}

.social-icons a{
color:white;
font-size:22px;
margin:0 10px;
transition:0.3s;
}

.social-icons a:hover{
color:#00ff9d;
transform:translateY(-5px);
}

/* SUCCESS POPUP */
.success-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.8);
display:flex;
align-items:center;
justify-content:center;
opacity:0;
pointer-events:none;
transition:0.4s;
z-index:9999;
}

.success-popup.active{
opacity:1;
pointer-events:auto;
}

.popup-content{
background:#071a14;
padding:40px;
border-radius:20px;
text-align:center;
box-shadow:0 0 30px #00ff9d;
animation:pop 0.4s ease;
}

@keyframes pop{
0%{transform:scale(0.5);}
100%{transform:scale(1);}
}

/* Animated Checkmark */
.checkmark{
width:80px;
height:80px;
border-radius:50%;
border:4px solid #00ff9d;
margin:0 auto 20px;
position:relative;
}

.checkmark::after{
content:'';
position:absolute;
left:22px;
top:40px;
width:25px;
height:12px;
border-left:4px solid #00ff9d;
border-bottom:4px solid #00ff9d;
transform:rotate(-45deg);
animation:tick 0.4s ease forwards;
}

@keyframes tick{
0%{opacity:0;transform:rotate(-45deg) scale(0);}
100%{opacity:1;transform:rotate(-45deg) scale(1);}
}

/* ================= FOOTER ================= */

.custom-footer{
  background:#000;
  padding:60px 0 30px;
  border-top:1px solid rgba(0,255,157,0.2);
}

.footer-logo{
  font-size:24px;
  font-weight:700;
  color:#00ff9d;
}

.footer-logo span{
  color:#00c3ff;
}

.footer-tagline{
  color:#aaa;
  font-size:14px;
  margin-top:10px;
}

.footer-links a{
  color:#ccc;
  margin:0 10px;
  text-decoration:none;
  transition:0.3s;
}

.footer-links a:hover{
  color:#00ff9d;
}

.footer-social a{
  color:white;
  font-size:20px;
  margin:0 10px;
  transition:0.3s;
}

.footer-social a:hover{
  color:#00ff9d;
  transform:translateY(-5px);
}

.custom-footer hr{
  margin:30px 0;
  border-color:rgba(255,255,255,0.1);
}

.copyright{
  color:#777;
  font-size:14px;
}

/* FORCE MYSQL COLOR FIX */
.flip-card.mysql-theme .flip-front h5,
.flip-card.mysql-theme .flip-back h4 {
    color: #00E0C6 !important;
    text-shadow: 0 0 15px #00E0C6;
}

.flip-card.mysql-theme .number {
    color: #00E0C6 !important;
}

.html-theme .flip-back h4{
    color:#ff4d6d;
    text-shadow:0 0 10px #ff4d6d;
}

.css-theme .flip-back h4{
    color:#00f5ff;
    text-shadow:0 0 10px #00f5ff;
}

.js-theme .flip-back h4{
    color:#f7df1e;
    text-shadow:0 0 10px #f7df1e;
}

.php-theme .flip-back h4{
    color:#a074ff;
    text-shadow:0 0 10px #a074ff;
}
/* FINAL MOBILE FIX */
html, body{
    overflow-x:hidden;
}

@media (max-width:768px){

    section{
        padding:80px 15px;
    }

    .circle-glow{
        width:280px;
        height:280px;
    }

    .profile-img{
        width:240px;
        height:240px;
    }

    .flip-card{
        width:100%;
        max-width:300px;
    }

}

*{
   box-sizing:border-box;
}