
html{
  scroll-behavior:smooth;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial, sans-serif;
}

body{
  background: linear-gradient(135deg, #0a192f, #112240, #020c1b);
  color:white;
  overflow-x:hidden;
}

/* =========================
   BACKGROUND EFFECTS
========================= */

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
  radial-gradient(circle at 20% 30%, rgba(77,166,255,0.15), transparent 40%),
  radial-gradient(circle at 80% 70%, rgba(0,173,181,0.15), transparent 40%),
  radial-gradient(circle at 50% 50%, rgba(155,89,182,0.10), transparent 40%);
  z-index:-1;
  animation:moveBg 10s ease-in-out infinite;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  background-image:
  linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:40px 40px;
  z-index:-1;
}

@keyframes moveBg{
  0%,100%{transform:translate(0,0);}
  50%{transform:translate(-20px,-20px);}
}

/* =========================
   HEADER
========================= */

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 8%;
  background:#06132a;
}

.logo{
  font-size:24px;
  font-weight:bold;
  color:#4da6ff;
}

nav a{
  position:relative;
  color:white;
  text-decoration:none;
  font-weight:bold;
  margin-left:20px;
  transition:0.3s;
}

/* underline animation */
nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background:#00adb5;
  transition:0.3s;
}

nav a:hover{
  color:#00adb5;
}

nav a:hover::after{
  width:100%;
}

/* =========================
   SECTIONS
========================= */

.section{
  max-width:1100px;
  margin:20px auto;
  padding:80px 8%;
  text-align:center;

  background:rgba(255,255,255,0.03);
  border-radius:15px;
  backdrop-filter: blur(5px);

  animation:fadeIn 1s ease;
}

@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* =========================
   HERO
========================= */

.hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:80px 8%;
  min-height:80vh;
}

.hero-text h1{
  font-size:40px;
  margin-bottom:10px;
}

.hero-text span{
  color:#4da6ff;
}

.hero-text p{
  margin-bottom:20px;
}

.hero-img img{
  width:300px;
  border-radius:20px;
  transition:0.4s;
  box-shadow:0 0 20px rgba(77,166,255,0.3);
}

.hero-img img:hover{
  transform:scale(1.08);
  box-shadow:0 0 30px #4da6ff;
}

/* =========================
   BUTTONS
========================= */

.buttons button{
  padding:10px 20px;
  margin-right:10px;
  border:none;
  cursor:pointer;
  transition:0.3s;
}

.btn-primary{
  background:#4da6ff;
  color:white;
}

.btn-primary:hover{
  transform:scale(1.1);
  box-shadow:0 0 15px #4da6ff;
}

.btn-secondary{
  background:transparent;
  border:1px solid #4da6ff;
  color:#4da6ff;
}

.btn-secondary:hover{
  transform:scale(1.1);
  background:#4da6ff;
  color:white;
}

/* =========================
   SKILLS
========================= */

.skills-box{
  max-width:600px;
  margin:30px auto;
  text-align:left;
}

.skill{
  margin-bottom:20px;
}

.skill p{
  margin-bottom:5px;
}

.progress-bar{
  width:100%;
  height:10px;
  background:#1c2b4a;
  border-radius:10px;
  overflow:hidden;
}

.progress{
  height:100%;
  border-radius:10px;
}

.progress.html{width:90%; background:#4da6ff;}
.progress.css{width:85%; background:#00adb5;}
.progress.js{width:60%; background:#f39c12;}
.progress.ui{width:75%; background:#9b59b6;}
.progress.responsive{width:80%; background:#00adb5;}
.progress.art{width:85%; background:#9b59b6;}
.progress.creativity{width:95%; background:#ff9800;}
.progress.communication{width:75%; background:#4da6ff;}
.progress.teamwork{width:90%; background:#00adb5;}
.progress.problem{width:80%; background:#f39c12;}
.progress.tools{width:75%; background:#4da6ff;}

/* =========================
   PROJECTS (FIXED)
========================= */

.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
  margin-top:20px;
}

.project-card{
  position:relative;
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:10px;
  background:#06132a;
}

.project-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:0.4s;
}

.project-card:hover img{
  transform:scale(1.1);
}

.overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:12px;
  opacity:0;
  transition:0.3s;
}

.project-card:hover .overlay{
  opacity:1;
}

/* =========================
   FOOTER
========================= */

footer{
  background:#06132a;
  padding:20px 8%;
  text-align:center;
  margin-top:40px;
}

.footer-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:15px;
  color:#ccc;
}

.footer-social a{
  color:#4da6ff;
  text-decoration:none;
  margin:0 10px;
  transition:0.3s;
}

.footer-social a:hover{
  color:#00adb5;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:900px){

  .hero{
    flex-direction:column;
    text-align:center;
  }

  nav a{
    margin-left:10px;
  }

  .hero-img img{
    width:220px;
  }
}

@media (max-width:600px){

  header{
    flex-direction:column;
    gap:10px;
  }

  nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
  }

  .footer-container{
    flex-direction:column;
    text-align:center;
  }
}


.about-img img{
  width:250px;
  height:250px;
  object-fit:cover;  
  border-radius:15px;
}

.progress{
  height:100%;
  border-radius:10px;
  width:0;
  animation:fillBar 2s ease forwards;
}

@keyframes fillBar{
  from{
    width:0;
  }
}

.contact-container{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:40px;
  flex-wrap:wrap;

  max-width:900px;
  margin:0 auto;   /* centers the whole container */
}

.contact-info,
.contact-form{
  flex:1;
  min-width:280px;
}

.contact-info{
  background:#06132a;
  padding:25px;
  border-radius:12px;
}

.contact-form{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
}

@media (max-width:600px){

  .contact-container{
    flex-direction:column;
    align-items:center;
  }

  .contact-info,
  .contact-form{
    width:100%;
    max-width:400px;
  }
}

/* PAGE LOAD ANIMATION */

body{
  animation:pageLoad 0.6s ease;
}

@keyframes pageLoad{
  from{
    transform:translateY(10px);
  }
  to{
    transform:translateY(0);
  }
}

.verse-box{
  margin-top:15px;
  padding:15px;
  border-left:3px solid #4da6ff;
  background:rgba(255,255,255,0.05);
  border-radius:10px;
  color:#ccc;
  font-style:italic;
  max-width:500px;
}

.video-container{
    max-width: 900px;
    margin: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

video{
    width: 100%;
    display: block;
}