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

body {
  font-family: Arial, sans-serif;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  overflow-x: hidden;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  width: 50px;
  height: 50px;
  margin-left:20px;
  margin-top:10px;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: white;
  transition: 0.3s ease;
  cursor: pointer;
  position: relative;
}
.nav-links a:hover {
  color: cyan;
}
.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: cyan;
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.nav-links a:hover::after {
  width: 100%;
}
.section {
  display: none;
  padding: 80px 40px;
  min-height: 90vh;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.text{ 
  flex:1;                    }
.home-txt{ 
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.home-img {
  flex: 1;
  width: 250px;
  aspect-ratio:1/1;
  background: url("photo.jpg") no-repeat center center / cover;
  border-radius: 30px;
  box-shadow: 0 12px 25px rgba(0, 255, 255, 0.7), 0 0 30px rgba(0, 255, 255, 0.5);
  animation: float 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.more-btn {
  margin-left: 40px;
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 30px;
  background:linear-gradient(45deg, #00f2fe, #4facfe);
  color: white;
  font-weight: bold;
  cursor: pointer;
  animation: glow 1.5s infinite alternate;
  transition: transform 0.3s;
}
.more-btn:hover {
  transform: scale(1.2);
}
@keyframes glow {
  from { box-shadow: 0 0 10px #00f2fe; }
  to { box-shadow: 0 0 20px #4facfe; }
}
.about-container {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  }
.about-text {
  flex:1;
  animation: slideIn 2s ease forwards;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: cyan;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
}
#home{
  animation: slideIn 2s ease forwards;
}
#name{
  color:cyan;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
}
h2 {
  font-size: 18px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 255, 255, 0.4);
}
p {
  font-size: 18px;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.horizontal-list {
  display: flex;
  flex-direction: column; 
  gap: 20px;
  margin-top: 20px;
}
.skill-item {
  padding: 10px 15px;
  font-size: 16px;
  opacity: 0;
  animation: fadeInSkill 0.5s ease forwards;
  transform: translateY(20px);
}
.contact-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.1);
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}

.contact-icon:nth-child(1) { animation-delay: 0.3s; }
.contact-icon:nth-child(2) { animation-delay: 0.6s; }
.contact-icon:nth-child(3) { animation-delay: 0.9s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSkill {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
  .last {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid cyan;
  box-shadow: 0 -5px 25px rgba(0, 255, 255, 0.4);
}

.last-text p {
  color: cyan;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 0 5px cyan, 0 0 10px cyan;
  margin: 0;
  letter-spacing: 1px;
}
@media(max-width: 768px) {
  .logo{
    width:90px;
  }
  .home-img{
    width:250px;
    height:250px;
    border-radius:25px;
  }
  .home {
    flex-direction: column;
  }
  
  .about-container {
    flex-direction: column;
  }
  .abt-image img {
    max-width: 100%;
  }
  .horizontal-list {
    flex-direction: column;
    align-items: flex-start;
  }
}
  
