*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
  font-family:'Poppins',sans-serif;
}

body{
  background:#0f172a;
  color:white;
  overflow-x:hidden;
}

section{
  min-height:100vh;
  padding:100px 10%;
}

/* Navbar */

header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  background:rgba(15,23,42,0.95);
  backdrop-filter:blur(10px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 10%;
  z-index:1000;
  border-bottom:1px solid rgba(255,255,255,0.1);
}

.logo{
  font-size:28px;
  font-weight:700;
  color:#38bdf8;
}

nav{
  display:flex;
  gap:30px;
}

nav a{
  text-decoration:none;
  color:white;
  font-size:17px;
  transition:0.3s ease;
  position:relative;
}

nav a::after{
  content:'';
  position:absolute;
  width:0;
  height:2px;
  left:0;
  bottom:-5px;
  background:#38bdf8;
  transition:0.3s;
}

nav a:hover{
  color:#38bdf8;
}

nav a:hover::after{
  width:100%;
}

.menu{
  display:none;
  font-size:28px;
  cursor:pointer;
}

/* Home */

.home{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:60px;
  flex-wrap:wrap;
}

.home-text{
  flex:1;
  min-width:280px;
}

.home-text h1{
  font-size:52px;
  margin-bottom:10px;
}

.home-text span{
  color:#38bdf8;
}

.home-text h3{
  font-size:28px;
  margin-bottom:20px;
  color:#cbd5e1;
}

.home-text p{
  line-height:1.8;
  margin-bottom:30px;
  color:#d1d5db;
}

.button-group{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

/* Buttons */

.btn{
  display:inline-block;
  padding:12px 28px;
  background:#38bdf8;
  color:#0f172a;
  text-decoration:none;
  font-weight:600;
  border-radius:8px;
  transition:0.3s ease;
  border:2px solid transparent;
}

.btn:hover{
  background:#0f172a;
  color:#38bdf8;
  border-color:#38bdf8;
  transform:translateY(-5px) scale(1.05);
  box-shadow:0 0 20px rgba(56,189,248,0.7);
}

.resume-btn{
  background:#38bdf8;
  color:#0f172a;
}

.resume-btn:hover{
  background:#38bdf8;
  color:#0f172a;
}

/* Home Image */

.home-image{
  flex:1;
  display:flex;
  justify-content:center;
}

.home-image img{
  width:350px;
  height:350px;
  border-radius:50%;
  object-fit:cover;
  border:8px solid #38bdf8;
  box-shadow:0 0 30px rgba(56,189,248,0.5);
  transition:0.4s ease;
}

.home-image img:hover{
  transform:scale(1.03);
  box-shadow:0 0 40px rgba(56,189,248,0.8);
}

/* Section Title */

.section-title{
  text-align:center;
  font-size:42px;
  margin-bottom:50px;
  color:#38bdf8;
}

/* Skills */

.skills-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:25px;
}

.skill-box{
  background:#1e293b;
  padding:30px 20px;
  border-radius:15px;
  text-align:center;
  transition:0.4s ease;
  border:2px solid transparent;
}

.skill-box:hover{
  transform:translateY(-10px);
  border-color:#38bdf8;
  box-shadow:0 0 25px rgba(56,189,248,0.5);
}

.skill-box i{
  font-size:45px;
  margin-bottom:15px;
  color:#38bdf8;
}

.skill-box h3{
  font-size:20px;
}

/* Projects */

.projects-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
  align-items:stretch;
}

.project-card{
  background:#1e293b;
  border-radius:15px;
  overflow:hidden;
  transition:0.4s ease;
  border:2px solid transparent;
}

.project-card:hover{
  transform:translateY(-10px) scale(1.02);
  border-color:#38bdf8;
  box-shadow:0 0 25px rgba(56,189,248,0.5);
}

.project-image{
  height:180px;
  background:linear-gradient(135deg,#38bdf8,#2563eb);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:60px;
}

.project-content{
  padding:25px;
}

.project-content h3{
  margin-bottom:10px;
}

.project-content p{
  color:#d1d5db;
  line-height:1.7;
  margin-bottom:20px;
}

.project-content .btn{
  margin-top:10px;
}

/* Contact */

.contact-box{
  background:#1e293b;
  padding:50px;
  border-radius:20px;
  text-align:center;
  max-width:700px;
  margin:auto;
  border:1px solid rgba(255,255,255,0.1);
}

.contact-box p{
  margin-bottom:15px;
  color:#d1d5db;
}

.email-link{
  color:#38bdf8;
  text-decoration:none;
}

.email-link:hover{
  text-decoration:underline;
}

/* Social Icons */

.social-icons{
  margin-top:25px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-direction:row;
  flex-wrap:wrap;
}

.social-icons a{
  width:50px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0f172a;
  color:#38bdf8;
  border-radius:50%;
  font-size:22px;
  text-decoration:none;
  transition:0.3s ease;
  border:2px solid transparent;
}

.social-icons a:hover{
  background:#38bdf8;
  color:#0f172a;
  transform:translateY(-5px) scale(1.1);
  box-shadow:0 0 20px #38bdf8;
  border-color:white;
}

/* Footer */

footer{
  text-align:center;
  padding:20px;
  color:#cbd5e1;
  border-top:1px solid rgba(255,255,255,0.1);
}

/* Responsive */

@media (max-width:900px){

  .home{
    flex-direction:column-reverse;
    text-align:center;
  }

  .button-group{
    justify-content:center;
  }

  .home-text p{
    margin:auto auto 30px;
  }
}

@media (max-width:768px){

  nav{
    position:absolute;
    top:80px;
    right:-100%;
    width:220px;
    flex-direction:column;
    background:#1e293b;
    padding:25px;
    border-radius:12px;
    transition:0.4s;
  }

  nav.active{
    right:10%;
  }

  .menu{
    display:block;
  }

  .home-text h1{
    font-size:40px;
  }

  .home-image img{
    width:280px;
    height:280px;
  }

  section{
    padding:100px 7%;
  }
}

@media (max-width:500px){

  .logo{
    font-size:22px;
  }

  .home-text h1{
    font-size:32px;
  }

  .home-text h3{
    font-size:22px;
  }

  .section-title{
    font-size:34px;
  }

  .contact-box{
    padding:30px 20px;
  }

  .button-group{
    flex-direction:column;
    align-items:center;
  }
}