:root{
  --btn-main: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  --chip-background: #5d57f4;
}

html {
  scroll-behavior: smooth;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

.container{
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/*---navbar---*/

header{
  background:
    radial-gradient(circle at 0% 0%, #ffb2ec 0%, transparent 55%),   /* bright pink top left */
    radial-gradient(circle at 100% 0%, #a18cd1 0%, transparent 55%), /* purple top right */
    radial-gradient(circle at 50% 100%, #7cc6ff 0%, transparent 60%),/* blue bottom center */
    #c6bdff; 
  background-blend-mode: screen;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo{
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;  
  -webkit-text-fill-color: transparent;
  background-clip: text;          
  color: transparent;
  font-size: 32px;
  width: 74px;
  line-height: 1;
}

.nav-logo{
  text-decoration: none;
}

.nav-links{
  list-style: none;
  display: flex;
}

.nav-links a{
  text-decoration: none;
  padding: 10px 15px;
  color: #3a3939;
  transition: color 0.3s ease;

}

.nav-links a:hover{
  color: #5d57f4;
}

.nav-icons{
  display: flex;
  gap: 10px;
}

.nav-icons svg{
  display: block;
  height: 32px;
  width: 32px;
}

/*---landing page---*/

.index-hero {
  min-height: calc(100vh - 96px);
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.index-hero h1{
  font-size: 4rem;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;  
  -webkit-text-fill-color: transparent;
  background-clip: text;           
  color: transparent;  
}

.index-hero h2{
  font-size: 1.5rem;
  font-weight: normal;
  color: #212529;
  margin-bottom: 32px;
}

.hero-content a{
  text-decoration: none;
  padding: 12px 24px;
  border-radius: .5rem;
  display: inline-block;
  font-weight: bold;
  transition: transform 0.20s ease, box-shadow 0.20s ease;
}

.hero-content a:hover{
  transform: translateY(-3px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}

.left-btn{
  color: #ffffff;
  margin-right: 8px;
  border: 1px solid #5d57f4;
  background-color: #5d57f4;
}

.right-btn{
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;  
  -webkit-text-fill-color: transparent;
  background-clip: text;          
  color: transparent;  
  border: 1px solid #5d57f4;
}

.lander-arrow{
  height: 24px;
  width: 24px;
  color: #3a3939;       
  position: absolute;  
  bottom: 40px;         
  left: 50%;
  transform: translateX(-50%); 
}

@keyframes smooth-bounce {
  0%   { transform: translateX(-50%) translateY(0); }
  50%  { transform: translateX(-50%) translateY(10px); }
  100% { transform: translateX(-50%) translateY(0); }
}

.lander-arrow {
  animation: smooth-bounce 1.5s ease-in-out infinite;
}


@media (max-width: 768px){
  .nav-links{
    display: none;
  }
  .hero-content{
    flex-direction: column;
    gap: 20px;
  }
  .index-hero h1{
    font-size: 48px;
  }
  .index-hero h2{
    font-size: 20px;
  }
}

/*---section 2---*/

.section-about{
  padding: 50px 0;
  background-color: white;
}

.section-2 h2{
  font-size: 2rem;
  margin-bottom: 50px;
  color: #32353a;
  text-align: center;
}

.section-2 p{
  color: #212529;
  font-size: 1.2rem;
  line-height: 1.75rem;
}

.about-content{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text{
  max-width: 700px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
}

.about-image img{
  width: 100%;                     
  max-width: 350px;                
  height: auto;
  display: block;
}

/*---section-3---*/

.section-skills{
  padding: 50px 0;
  background-color: #f4f4f9;
}

.skill-card-container{
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .skill-card-container {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.skill-card{
  padding: 1.5rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); 
  padding: 24px;  
  text-align: center;
}

.section-3 h2{
  font-size: 2rem;
  margin-bottom: 50px;
  color: #32353a;
  text-align: center;
}

.section-3 h3{
  color: #212529;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

/*---section-4---*/

.section-projects{
  background-color: #fff;
  padding: 50px 0;
}

.section-4 h2{
  font-size: 2rem;
  margin-bottom: 50px;
  color: #32353a;
  text-align: center;
}

.project-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px){
  .project-grid{ grid-template-columns: repeat(2, 1fr); }
}

.project-item{
  display: flex;
  flex-direction: column;
  gap: 12px;           
}

.status-chip{
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid transparent;
  margin: 0;                
  width: fit-content;
}
.status-chip .dot{
  width: 8px; height: 8px; border-radius: 50%;
}

.status-chip.completed{
  background: #dcfce7;       
  color: green;
  border-color: #bbf7d0;
}
.status-chip.completed .dot{
   background:#22c55e; 
}

.status-chip.in-progress{
  background-color: color-mix(in srgb, var(--chip-background), transparent 85%);
  color: #5d57f4;
  border-color: #c1c0ff;
}

.status-chip.in-progress .dot{ background:#706bff; 
}

.project-card{
  background:#fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  transition: transform .3s ease, box-shadow .3s ease;
  backdrop-filter: blur(6px);
}
.project-card:hover{
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.project-media{
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.project-media img{
  position: absolute; 
  inset: 0;
  width: 101%; 
  height: 101%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .3s ease;
}
.project-card:hover .project-media img{
  transform: scale(1.05); 
}

.project-body{
  padding: 1.5rem;
}
.project-body h3{
  font-size: 1.25rem;
  font-weight: 800;
  color:#111827;
  margin: 0 0 .5rem;
}
.project-body p{
  color:#4b5563;
  margin: 0 0 1rem;
}
.tags{
  display:flex; flex-wrap:wrap; gap:.5rem;
}
.tags span{
  font-size: .875rem;
  padding: .375rem .75rem;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:9999px;
}

/*---section-5---*/

.section-contact{
  padding: 50px 0;
  background-color: #f4f4f9;
}

.section-5 h2{
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
  color: #32353a;
}

.form-description{
  margin-bottom: 60px;
  color: #212529;
}

.form-container{
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  text-align: center;
}

form{
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row{
  display: flex;
  gap: 20px;
}

.form-group{
  flex: 1;
  text-align: left;
}

label{
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #212529;
  margin-bottom: 6px;
  display: none;
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dadada;
  border-radius: 8px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  border-color: #5d57f4;
  outline: none;
  box-shadow: 0 0 0 2px rgba(93,87,244,0.15);
}

input::placeholder, textarea::placeholder{
  color: #bebebe;
}

button {
  padding: 14px;
  background-color: #5d57f4;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.20s ease;
}

button:hover {
  background-color: #524ddb;
}

#form-status {
  display: none;
  color: #5d57f4; 
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
}

/*---footer---*/

footer{
  padding: 30px 0px;
  text-align: center;
  background-color: #fff;
  color: #212529;
}

.heart{
  color: #ff2e2e;
}

/*---popup---*/

.popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup:target {
  display: flex; 
}

.popup-content {
  background: #fff;
  padding: 2rem;
  max-width: 400px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.popup-content h3{
  margin-bottom: 10px;
}

.popup-content p{
  line-height: 1.5rem;
}

.popup-close {
  display: inline-block;
  margin-top: 1rem;
  padding: 10px 16px;
  border-radius: 8px;
  background: #5d57f4;
  color: #fff;
  text-decoration: none;
}
.popup-close:hover {
  background: #524ddb;
}

@media (max-width: 600px) {
  .popup-content {
    margin: 0 1rem; 
    padding: 1.5rem; 
  }
}
