* {
  margin: 0%;
  padding: 0%;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Keeps sections safely below the normal navbar */
}


html,
body {
  height: 100%;
  width: 100%;
  color: white;
}

body {
  background-color: rgb(0, 0, 0);
}

nav {
  padding: 15px;
  display: flex;
}

.logo {
  margin-left: 80px;
  width: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 50px;
  text-decoration: none;
  color: rgb(255, 0, 0);
}

.point {
  font-size: 70px;
  margin-left: -2px;
  padding-bottom: 12px;
}

#Header ul {
  height: 10%;
  width: 70%;
  font-size: 23px;
  justify-content: right;
  display: flex;
  list-style: none;
}

.nav a {
  text-decoration: none;
  margin: 30px;
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  position: relative;
}

.nav a::after {
  content: '';
  width: 0;
  height: 3px;
  background: #ffffff;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.nav a:hover {
  color: #ff0000;
}

.nav a:hover::after {
  width: 100%;
}

.hero-role{
font-size:28px;
color:#bbb;
}

.hero-desc{
font-size:18px;
max-width:500px;
color:#aaa;
margin-top:10px;
}

.sticky-top {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 5px 20px;
}

.sticky-top {
  transition: all 0.3s ease;
}

.right {
  order: 2;
}

.moon {
  background: url(Images/home_img.png);
  background-color: #000000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  position: relative;
  margin-left: 100px;
  margin-top: 220px;
}

.moon::before {
  content: "";
  background-color: #ff0000;
  position: absolute;
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 50%;
  z-index: -1;
  animation: 3.2s animation linear infinite alternate;
}

@keyframes animation {
  0% {
    transform: translateX(65px) scale(0.9);
    box-shadow: none;
  }

  50% {
    transform: translate(0px, 0px) scale(1.02);
    box-shadow: 0 0 20px #ff0000, 0 0 60px 1px #ff0000;
  }

  100% {
    transform: translateX(-65px) scale(0.9);
    box-shadow: none;
  }
}


.text {
  color: rgb(255, 255, 255);
  width: auto;
  height: auto;
 margin-top:150px;
margin-left:120px;
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-size: 50px;
}

.text p {
  color: #ffffff;
  font-size: 35px;
  margin-bottom: 20px;
}

.text h1 {
  font-size: 90px;
}

.text span {
  color: #ff0000;
}

.social-icons.top {
  margin-top: 10px;
}

.fa-facebook {
  color: #1877f2;
}

.fa-x-twitter {
  color: #676767;
}

.fa-instagram {
  color: #e1306c;
}

.fa-linkedin {
  color: #0a66c2;
}

.fa-github {
  color: #544e4e;
}

.fa-whatsapp {
  color: #25d366;
}

.btn.btn2 {
  display: inline-block;
  border-color: red;
  font-size: 15px;
  margin: 0;
}

.about-container {
  color: #ffffff;
}

.about-container {
  width: 85%;
  margin-left: 90px;
  padding-left: 90px;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 img {
  width: 100%;
  border-radius: 15px;
  background-color: #222222;
}

.about-col-2 {
  flex-basis: 60%;
}

.sub-title {
  font-size: 45px;
  font-weight: 600;
  color: #ffffff;
}

.intro {
  font-size: 21px;
  margin: 5px;
  padding: 1px;
  word-spacing: 6px;
  letter-spacing: 1px;
  color: rgb(135, 135, 135);
  line-height:1.6;
max-width:700px;
}

.tab-titles {
  display: flex;
  margin: 20px 0px 40px;
}

.tab-links {
  margin-right: 50px;
  font-size: 25px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

.tab-links::after {
  content: '';
  width: 0;
  height: 3px;
  background: #e13030;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents ul li {
  list-style: none;
  margin: 10px 0;
}

.tab-contents ul li span {
  color: #e13030;
  font-size: 20px;
}

.tab-contents {
  display: none;
}

.tab-contents.active-tab {
  display: block;
}

.skills-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
text-align:center;
margin-top:30px;
}

.skill i{
font-size:50px;
color:#ff004f;
}

.hero-role{
font-size:28px;
color:#bbb;
height:40px;
}

.services-container {
  width: 85%;
  margin-left: 90px;
  padding-left: 90px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
  margin-right: 50px;
}

.services-list div {
  background: #222222;
  padding: 50px;
  font-size: 18px;
  font-weight: 300;
  border-radius: 10px;
  color: rgb(255, 255, 255);
  transition: background 0.5s, transform 0.5s;
}

.services-list div i {
  font-size: 50px;
  margin-bottom: 15px;
}

.services-list div h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}

.services-list div a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  margin-top: 20px;
  display: inline-block;
}

.services-list div:hover {
  background-color: #e1306c;
  transform: translateY(-10px);
}

.project-intro{
color:#aaa;
margin-bottom:20px;
max-width:600px;
}

.portfolio-container {
  width: 85%;
  margin-left: 90px;
  padding-left: 90px;
}

.project-links{
display:flex;
gap:15px;
margin-top:15px;
}

.project-links a{
display:flex;
align-items:center;
justify-content:center;
}

.tech{
font-size:13px;
margin-top:12px;
color:#ddd;
letter-spacing:1px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
  margin-right: 50px;
}

.work {
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.work img {
  width: 100%;
  border-radius: 10px;
  display: block;
  transition: transform 0.5s;
}

.layer {
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
  border-radius: 10px;
  position: absolute;
  left: 0;
  bottom: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0px 40px;
  text-align: center;
  font-size: 14px;
  transition: height 0.5s;
}

.layer h3 {
  font-weight: 500;
  margin-bottom: 20px;
}

.layer a {
  margin-top: 20px;
  color: #ff004f;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  align-items: center;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.work{
border-radius:10px;
position:relative;
overflow:hidden;
transition:transform .3s ease, box-shadow .3s ease;
}

.work:hover{
transform:translateY(-8px);
box-shadow:0 20px 40px rgba(0,0,0,.5);
}

.btn{
display:inline-block;
margin-top:25px;
margin-right:15px;
border:1px solid #ff004f;
padding:12px 28px;
border-radius:6px;
text-decoration:none;
color:white;
transition:all .3s ease;
font-size:15px;
}

.btn:hover{
background:#ff004f;
transform:translateY(-3px);
box-shadow:0 10px 20px rgba(255,0,79,0.3);
}

.contact-left {
  flex-basis: 35%;
}

.fa-solid {
  margin-left: 10px;
}

.contact-left a {
  text-decoration: none;
  color: #ffffff;
  display: inline-block;
  transition: transform 0.5s;
}

.contact-left a:hover {
  transform: translateY(-5px);
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin-top: 15px;
  font-size: 25px;
}

.contact-left p i {
  color: #ff004f;
  margin-right: 10px;
  font-size: 39px;
}

.social-icons {
  margin-top: 20px;
}


.social-icons a {
  text-decoration: none;
  font-size: 50px;
  margin: 5px;
  margin-right: 15px;
  display: inline-block;
  transition: transform 0.5s;
}

.social-icons a i{
transition:.3s ease;
margin: 0;
}

.social-icons a i:hover{
color:#ff004f;
transform:scale(1.2);
}

.social-icons a:hover {
  transform: translateY(-5px);
}

.cta-button {
  color: #c1c1c1;
}

.btn.btn3 {
  display: inline-block;
  font-size: 15px;
  background: none;
  margin: 0;
  cursor: pointer;
  width: fit-content;
  border: 1px solid #ff004f;
  padding: 14px 50px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.5s;
  transition: transform 0.5s;
}

.btn.btn3:hover {
  background: #ff004f;
  transform: translateY(-5px);
}

.btn.btn3.wa {
  font-size: 15px;
  margin-left: 10px;
}

.contact-container {
  width: 85%;
  margin-left: 90px;
  padding-left: 90px;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  background: #222222;
  padding: 15px;
  margin: 15px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
}

.footer{
  position: relative;
  text-align: center;
  padding: 25px;
  background: #111;
  margin-top: 0px;
}


nav .fas {
  display: none;
}

#msg {
  color: #61b752;
  margin-top: 5px;
  display: block;
}

#scroll-bar{
position:fixed;
top:0;
left:0;
height:4px;
background:linear-gradient(90deg,#ff004f,#ff7a18);
width:0%;
z-index:9999;
transition:width .2s ease;
}

.github-container{
width:85%;
margin-left:90px;
padding-left:90px;
}

.github-stats{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
gap:25px;
margin-top:50px;
}

.github-stats img{
width:100%;
max-width:450px;
border-radius:10px;
}

.certifications-container{
width:85%;
margin-left:90px;
padding-left:90px;
}

.certifications-list{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
margin-top:50px;
margin-right:50px;
}

.certificate{
background:#222;
padding:20px;
border-radius:10px;
text-align:center;
transition:transform .3s ease;
}

.certificate img{
width:100%;
border-radius:8px;
margin-bottom:10px;
transition:transform .3s ease;
}

.certificate-img{
width:100%;
border-radius:10px;
cursor:pointer;
transition:transform .4s ease, box-shadow .4s ease;
}

.certificate-img:hover{
transform:scale(1.05);
box-shadow:0 15px 35px rgba(0,0,0,.6);
}

.certificate p{
color:#aaa;
font-size:14px;
}

.certificate:hover{
transform:translateY(-10px);
}

.certificate-img{
width:100%;
border-radius:10px;
cursor:pointer;
transition:transform .3s ease;
}

.certificate-img:hover{
transform:scale(1.05);
}

.cert-modal{
display:none;
position:fixed;
z-index:9999;
padding-top:100px;
left:0;
top:0;
width:100%;
height:100%;
background-color:rgba(0,0,0,0.9);
}

.cert-modal-content{
margin:auto;
display:block;
max-width:80%;
border-radius:10px;
}

.close-cert{
position:absolute;
top:40px;
right:60px;
color:white;
font-size:40px;
cursor:pointer;
}

.opensource-container{
width:85%;
margin-left:90px;
padding-left:90px;
}

.opensource-list{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:40px;
margin-top:50px;
margin-right:50px;
}

.opensource-list div{
background:#222;
padding:40px;
border-radius:10px;
transition:transform .3s ease;
}

.opensource-list div:hover{
transform:translateY(-10px);
background:#ff004f;
box-shadow:0 15px 35px rgba(255,0,79,0.4);
}

.opensource-list h3{
margin-bottom:10px;
font-size:20px;
}

.opensource-list p{
font-size:14px;
color:#ccc;
}

#About,
#skills,
#portfolio,
#certifications,
#github,
#opensource,
#contact{
padding:100px 0;
}

#skills{
  padding-top: 15px;
  margin-top: -50px;
}

#About,
#certifications,
#opensource{
background:#0a0a0a;
}

.about-container,
.skills-container,
.portfolio-container,
.certifications-container,
.github-container,
.opensource-container,
.contact-container{
width:90%;
margin:auto;
}

.sub-title{
font-size:45px;
font-weight:600;
color:#ffffff;
position:relative;
margin-bottom:40px;
}

.sub-title::after{
content:'';
width:60px;
height:4px;
background:#ff004f;
position:absolute;
left:0;
bottom:-10px;
}

body{
background:black;
animation:fadeIn 1s ease;
}

@keyframes fadeIn{
from{
opacity:0;
}
to{
opacity:1;
}
}

section{
border-bottom:1px solid #1a1a1a;
}

#scrollBtn{
position:fixed;
bottom:30px;
right:30px;
background:#ff0004b5;
color:white;
border:none;
width:50px;
height:50px;
border-radius:50%;
font-size:18px;
cursor:pointer;
z-index:999;
display:flex;
align-items:center;
justify-content:center;
}

#scrollBtn:hover{
transform:translateY(-5px);
box-shadow:0 10px 20px rgba(255,0,79,.4);
}

#scrollBtn{
opacity:0;
transition:0.3s;
}

#scrollBtn:hover{
opacity:1;
}

.nav a.active{
color:#ff004f;
}

#Header{
height:100%;
width:100%;
position:relative;
overflow:hidden;
}

.Header-container{
  display: flex;
position:relative;
z-index:2;
}

#Header::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:radial-gradient(circle at 70% 30%, rgba(255,0,79,0.15), transparent 40%);
pointer-events:none;
z-index:0;
}

.scroll-indicator{
position:absolute;
bottom:40px;
left:50%;
transform:translateX(-50%);
font-size:28px;
color:#ff004f;
animation:bounce 1.5s infinite;
}

@keyframes bounce{
0%,20%,50%,80%,100%{
transform:translate(-50%,0);
}
40%{
transform:translate(-50%,10px);
}
60%{
transform:translate(-50%,5px);
}
}



/* =========================================
   REBUILT MOBILE RESPONSIVENESS (< 768px)
   ========================================= */

@media only screen and (max-width: 768px) {
  
  /* 1. Reset Global Spacing & Containers */
  .about-container, .portfolio-container, .contact-container, 
  .certifications-container, .github-container, .opensource-container,
  .skills-container {
    width: 100%;
    margin-left: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Slash the massive 100px padding to save screen space */
  #About, #skills, #portfolio, #certifications, #github, #opensource, #contact {
    padding: 50px 0;
  }

  /* 2. Hamburger Menu Fixes */
  nav {
    justify-content: space-between;
    align-items: center;
  }
  .logo {
    margin-left: 10px;
    font-size: 30px;
    width: auto;
  }
  .point {
    font-size: 40px;
    padding-bottom: 5px;
  }
  
  /* Show BOTH the hamburger and the X (close) icon */
  nav .fas {
    display: block;
    font-size: 25px;
    cursor: pointer;
    z-index: 1001;
  }
  .fa-bars {
    margin-right: 15px;
  }

   /* 1. Accordion Dropdown Menu (Centered & Premium UI) */
  ul#sidemenu {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    position: absolute; 
    top: 100%; 
    left: 0;     
    width: 100%; 
    height: auto !important; /* <--- THIS WAS MISSING! It stops the menu from being squished to 0px */
    background: rgba(17, 17, 17, 0.98); 
    z-index: 10000;
    margin: 0;
    padding: 0;
    max-height: 0; 
    overflow: hidden; 
    transition: all 0.4s ease-in-out;
  }
  
  ul#sidemenu.active {
    max-height: 400px; 
    padding-top: 20px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ff004f;
    box-shadow: 0 15px 25px rgba(0,0,0,0.6); 
  }

  /* Make the list items take up full width for better spacing */
  ul#sidemenu li { 
    margin: 10px 0; 
    width: 100%;
    text-align: center;
  } 
  
  /* Upgrade the links to large, tappable buttons */
  ul#sidemenu li a { 
    font-size: 22px; 
    font-weight: 500;
    margin: 0; 
    display: inline-block;
    padding: 12px 30px; 
    border-radius: 30px; 
    transition: all 0.2s ease-out; 
  }

  /* Remove the desktop underline effect on mobile */
  ul#sidemenu li a::after {
    display: none; 
  }

  /* Premium Tap/Hover Feedback */
  ul#sidemenu li a:hover,
  ul#sidemenu li a:active {
    background: rgba(255, 0, 79, 0.15); 
    color: #ff004f; 
    transform: scale(1.05); 
  }

  
  /* Close (X) button positioning */
  ul#sidemenu .fa-times {
    position: absolute;
    top: 15px;
    right: 25px; 
    font-size: 35px;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  ul#sidemenu .fa-times:active {
    color: #ff004f; /* X turns red when tapped */
  }

  
  /* ... Keep your .Header-container blocks exactly as they were ... */

  /* Fix the cut-off typing animation text */
  .hero-role { 
    font-size: 20px; 
    height: auto !important; /* Kills the 40px desktop height bug */
    min-height: 30px; /* Gives the text room to breathe */
    margin-bottom: 10px; 
  }

  
  /* 2. Push Content Down */
  .Header-container {
    flex-direction: column;
    margin-top: 120px; 
    transition: margin-top 0.4s ease-in-out;
  }

    /* 1. Push the entire website down smoothly */
  body {
    transition: margin-top 0.4s ease-in-out;
  }
  
  html.menu-expanded body {
    margin-top: 350px; /* Pushes everything down globally! */
  }

  /* 2. Make the transparent navbar solid when the menu is open */
  nav.sticky-top {
    transition: background 0.3s ease-in-out; /* Smooth fade effect */
  }
  
  nav.sticky-top.solid-bg {
    background: rgba(17, 17, 17, 0.98) !important; /* Matches your dropdown perfectly */
  }



  .right {
    order: 1; 
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .moon {
    width: 200px;
    height: 200px;
    margin: 0;
    animation: none; 
  }
  .text {
    order: 2; 
    margin-left: 0;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    padding: 0 15px;
  }
  .text h1 { font-size: 40px; }
  .text p { font-size: 18px; }
  .hero-role { font-size: 20px; height: auto; margin-bottom: 10px; }
  .hero-desc { font-size: 15px; margin: 15px auto; }
  
  .social-icons.top, 
  .text > div:last-child {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
  }
  .btn.btn2 { margin: 0; }

  .scroll-indicator{
position:absolute;
bottom:170px;
left:50%;
transform:translateX(-50%);
font-size:28px;
color:#ff004f;
animation:bounce 1.5s infinite;
}

  /* 4. Fix About Section Layout */
  .row { flex-direction: column; }
  .about-col-1, .about-col-2, .contact-left, .contact-right { flex-basis: 100%; }
  .about-col-1 { margin-bottom: 30px; }
  .tab-titles { flex-wrap: wrap; gap: 15px; justify-content: flex-start; }
  .tab-links { margin-right: 20px; font-size: 16px; }

  /* 5. Fix Project Cards & Lists Overlapping */
  .work-list, .certifications-list, .opensource-list, .github-stats {
    grid-template-columns: 1fr;
    margin-right: 0;
    gap: 30px;
  }
  
  .sub-title { font-size: 32px; }
  .intro { font-size: 16px; text-align: left; }

  /* 6. Form, Modals & Scroll Button */
  .btn.btn3.wa {
    margin-left: 0;
    margin-top: 15px;
    display: block; 
  }
  .cert-modal-content { max-width: 90%; margin-top: 50px; }
  .close-cert { top: 15px; right: 15px; }

  /* Ensure scroll button is easily accessible on mobile */
  #scrollBtn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    z-index: 9999;
  }

    /* Creates a large scroll buffer when the menu is open */
  html.menu-expanded {
    scroll-padding-top: 430px; 
  }

}
