/* Dark Mode */
:root[data-theme="dark"] {
  --bg-gradient: linear-gradient(to bottom, #050505, #080121);
  --text-color: #fff;
  --header-bg: rgba(5, 5, 5, 0.5);
  --header-backdrop: blur(8px);
  --navbar-bg: #050505;
  --navbar-shadow: rgba(0, 0, 0, 0.2);
  --link-color: white;
  --link-hover-bg-gradient: linear-gradient(#050505, #A89BF2);
  --project-border: white;
--project-shadow: 0 4px 8px rgba(168, 155, 242, 0.6); 
  --project-hover-shadow: 0 8px 16px rgba(168, 155, 242, 0.8); 
  --project-p: #fff;
  --project-bg: #0f0f1f; 
  --skill-shadow: 0 4px 8px rgba(168, 155, 242, 0.6);
  --button-bg-gradient: linear-gradient(#A89BF2, #4A1985);
  --input-bg: #E2DCF4;
  --form-border: white;
  --avatar-border: white;
  --social-border: white;
  --footer-bg-gradient: linear-gradient(#260656, #050505);
  --logo-gradient: linear-gradient(90deg, #A89BF2, #6E48AA);
  --skill-i:  #fff;
  --theme-toggle: black;
  --project-img-border: #6b5b95;
}

/* Light Mode */
:root[data-theme="light"] {
  --bg-gradient: linear-gradient(to bottom, #ffffff, #f0f0f5);
  --text-color: #000;
  --header-bg: rgba(255, 255, 255, 0.7);
  --header-backdrop: blur(8px);
  --navbar-bg: #ffffff;
  --navbar-shadow: rgba(0, 0, 0, 0.1);
  --link-color: black;
  --link-hover-bg-gradient: linear-gradient(#ffffff, #d1c4ff);
  --project-border: #000;
  --project-p: #333;
  --project-bg: white;
--project-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
--project-hover-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  --skill-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  --button-bg-gradient: linear-gradient(#d1c4ff, #8e7cc3);
  --form-bg: #ffffff;
  --input-bg: #E2DCF4;
  --form-border: #000;
  --avatar-border: #000;
  --social-border: #000;
  --footer-bg-gradient: linear-gradient(#d1c4ff, #f0f0f5);
  --logo-gradient: linear-gradient(90deg, #8e7cc3, #6e48aa);
    --skill-i: #000;
  --theme-toggle: white;
   --project-img-border: #d9d9d9;

}



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

html {
    transition: background 0.4s ease, color 0.4s ease;
    scroll-behavior: smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-gradient);
    line-height: 1.6;
    min-height: 100vh;

    font-weight: 400;
}

body.no-scroll{
    overflow: hidden;
}

a, button{
    font-size: 0.95rem;
    cursor: pointer;
}

header {  
    display: flex;  
    align-items: center;  
    justify-content: space-between;  
    padding: 0.5rem 1.2rem;  
    position: fixed;  
    top: 0;  
    width: 100%;  
    background: var(--header-bg); 
    backdrop-filter: var(--header-backdrop);  
    z-index: 2000;  
    
}  
.wrapper{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
}

#theme-toggle{
    font-size: 2rem;
    background: none;
    border: none;
    z-index: 2001;
    padding: 1px;
    color: var(--text-color);
}

.logo {  
    font-size: 2rem;  
    font-family: 'Raleway'; 
    letter-spacing: -3px;
     background: var(--logo-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;


}  

#hamburger {  
    font-size: 2rem;  
    background: none;  
    color: var(--text-color);  
    cursor: pointer;  
    border: none;  
    z-index: 2001;
}

.navbar {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100vh;
    width: 250px;
    background: var(--navbar-bg);
    flex-direction: column;
    padding-top: 5rem;
    gap: 1rem;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    z-index: 1000;
}

.navbar a:hover {
  background: var(--link-hover-bg-gradient);
  border-radius: 0.5rem;
}

.navbar a {
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    text-align: center;
}

.navbar.active {
    right: 0; 
}

section{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem;
  margin-top: 3rem;
  scroll-margin-top: 4rem;
}

h1{ 
    font-weight: 800;
    font-family: 'Raleway';
}

h2{ 
    font-family: 'Raleway';
    font-weight: 600;
}

h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0.5rem 0;
}


#hero{
    padding-top: 1rem;
}

.content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    
}

.text{
    flex: 1;
}

.image{
    flex: 1;
}

.hero-content{
    text-align: center;
    padding-bottom: 3rem;
}

.hero-content h1{
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero-content h2{
    font-family: 'Poppins';
    margin-bottom: 1rem;
    font-size: 1.17rem;
    font-weight: bold;
}

.hero-content p{
    font-size: 0.8rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-content .avatar{
    border: 2px solid var(--avatar-border);
    border-radius: 3rem 0;
    margin-bottom: 2rem;
    width: 70%;
    
}



.hero-content .cta{
    display: inline-block;
    padding: 0.5rem;
    background: linear-gradient(#A193C6, #A89BF2);
    color: #050505;
    margin: 0 1rem;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 155, 242, 0.4);
}

.cta:hover {
    background: linear-gradient(#A89BF2, #A193C6);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(168, 155, 242, 0.6);
}

.social-links{
    font-size: 0;
}

.social-links i{
    display: inline-block;
    color: var(--text-color);
    margin: 2rem 1rem;
    margin-bottom: 0;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--social-border);
    border-radius: 0.5rem;
}

.about-me{
    text-align: center;
}

.about-me p{
    text-align: center;
}

#about .profile-pic{
    width: 50%;
    border-radius: 50%;
}

#about h2{
    padding: 1rem;
}

.about-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #A193C6, #A89BF2);
    color: #050505;
    border-radius: 2rem;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 155, 242, 0.4);
    margin: 2rem auto;
    display: block;
}

.about-cta:hover {
    background: linear-gradient(135deg, #A89BF2, #A193C6);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(168, 155, 242, 0.6);
}

#skills{
    text-align: center;
}
#skills .skills{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: auto;
    justify-content: center;
    
}

.skill{
    padding: 2rem;
    margin: 2rem;
    width: 60%;
    box-shadow: var(--skill-shadow);
    border-radius: 1rem;
    color: var(--text-color);
}

.skill i{
    font-size: 3rem;
    color: var(--skill-i
    );
}




.meter{
    width: 100%;
    height: 15px;
    overflow: hidden;
    border-radius: 5px;
    background: #ddd;
    margin-top: 0.5rem;
}

.meter-fill{
    height: 100%;
    width: 0;
    background: #846dce;
    transition: width 2s ease-in-out;
}

#projects{
    text-align: center;
}

#projects h2{
    margin-top: 4rem;
}


.my-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  padding: 20px;
 
}

.project {
  border-radius: 1rem 0;
  box-shadow: var(--project-shadow);
  overflow: hidden;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  margin: 0.5rem;
  background: var(--project-bg);
  height: 24rem; 
  display: flex;
  flex-direction: column;
}

.project img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 7px solid var(--project-img-border);
  border-radius: 1rem 0;
}

.project-content {
  flex: 1; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.project h3 {
  margin: 10px 0 5px;
  font-size: 1.3rem;
}

.project p {
  color: var(--project-p);
  font-size: 0.95rem;
  margin-bottom: 1rem;

}

.technologies{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.technologies i{
    font-size: 1.5rem;
    color: #bfbfbf;
}

.project-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: auto; 
}
.project-links a {
  text-decoration: none;
  background: linear-gradient(#050505, #A89BF2);
  color: white;
  padding: 8px 14px ;
  border-radius: 1rem;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.project-links a:hover {
  background: linear-gradient(#A89BF2, #050505);
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: var(--project-hover-shadow);
}


#contact {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 1.5rem;
}

#contact .social-links i{
    margin: 2rem 1rem;
}


#contact h2{
    margin-bottom:  1rem;
    margin-top: 4rem;
}

#contact p{
    margin-bottom: 0rem;
}



form{
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: var(--project-shadow);
}

input{
    font-size: 1rem;
    width: 100%;

}

.form-group{
    display: flex;
    align-items: center;
}

.form-group input{
    height: 2.5rem;
    margin-left: 1rem;
    border: none ;
    background: var(--input-bg);
    border-radius: 8px;
    color: #000;
    padding-left: 1rem;
}


.message-group textarea{
    border: none;
    width: 100%;
    background: var(--input-bg);
    border-radius: 3px;
    margin-top: 0.5rem;
    font-family: 'Poppins';
    padding: 0.5rem;
}

form button{
    width: 100%;
    border: none;
    background: linear-gradient( #A89BF2, #4A1985);
    color: #fff;
    padding: 0.7rem;
    border-radius: 2rem;
}

footer{
    margin-top: 0.5rem;
    text-align: center;
    background: var(--footer-bg-gradient);
    width: 100%;
}



/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.animate {
  opacity: 0;
}

.animate.show {
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
}

.fade-up.show { animation-name: fadeUp; }
.fade-in.show { animation-name: fadeIn; }
.scale-up.show { animation-name: scaleUp; }

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

.cta {
  animation: shake 0.5s ease-in-out;
  animation-delay: 0.8s;
}

.cta:hover {
  animation: shake 0.5s ease-in-out;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }
@media (min-width: 768px) {
    
    .content {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
        margin: 1rem;
        align-items: center;
    }
    .content h1{ font-size: 3rem;}
    .content h2{ font-size: 2rem;}
    .content p{ font-size: 1.2rem;}
    #hero{
        margin-top: 5rem;
    }

    .skill{
    padding: 2rem;
    margin: 2rem;
    width: 30%;
    box-shadow: var(--skill-shadow);
    border-radius: 1rem;
    color: white;
}
    .text {
        padding-right: 2rem;
    }
    .image{
        margin-right: auto;
        display: flex;
        justify-content: flex-end;
    }
    .image img {
        max-width: 70%;
        height: auto;
    }
    .avatar {
        max-width: 70%;
        height: auto;
    }
  .navbar {
    position: static;   
    display: flex !important;
    flex-direction: row;
    height: auto;
    width: auto;
    gap: 2rem;
    box-shadow: none;
    padding: 0;
    background: none;
    font-size: 1.3rem;
  }
  
  .logo{
      font-size: 3rem;
  }
    #hamburger{
    display: none;
  }
  
  .projects{
      margin-top: 3rem;
  }
  
  .project img{
      height: 10rem;
  }
  .project{
      height: auto;
  }
 
  #contact {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 2rem;
    padding: 0;
    margin: 20rem 1rem 1rem 1rem;
  }
  section{
      margin-bottom: 20rem;
  }
  .contact-info,
  .contact-form {
    flex: 1;
}
#contact > div {
    flex: 1;
  }
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
    p { font-size: 1.3rem; }
  .skill i { font-size: 4rem; }
  .project h3 { font-size: 1.5rem; }
  .project p { font-size: 1.2rem; }
  input, textarea, button{ font-size: 1.3rem; }
  form{
      font-size: 1.3rem;
  }
 a{ 
     font-size: 1.5rem;
    
}
#hero i{
    margin-top: 3rem;
}


}


#overlay{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1040;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

