/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Body */
body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
  animation: slideDown 1s ease forwards;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #00c6ff;
  text-decoration: none;
  transition: 0.3s ease;
}

.logo:hover {
  color: #66fcf1;
  text-shadow: 0 0 10px #00c6ff;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #00c6ff;
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: #00c6ff;
}

.navbar a:hover::after {
  width: 100%;
}

/* ====== ABOUT SECTION ====== */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 10% 80px;
  gap: 60px;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease forwards;
}

/* About Image */
.about-image img {
  width: 350px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 198, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px #00c6ff, 0 0 80px #0072ff;
}

/* About Content */
.about-content {
  max-width: 550px;
  animation: fadeUp 1.3s ease forwards;
}

.about-content h1 {
  font-size: 2.5rem;
  color: #00c6ff;
  margin-bottom: 10px;
  animation: glow 2s ease-in-out infinite alternate;
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #66fcf1;
}

.about-content p {
  color: #ddd;
  line-height: 1.7;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.4s ease;
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px #00c6ff;
}

/* ====== SKILLS SECTION ====== */
.skills {
  padding: 80px 10%;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 1.5s ease forwards;
}

.heading {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.heading span {
  color: #00c6ff;
  animation: glow 2s ease-in-out infinite alternate;
}

.intro {
  color: #ccc;
  margin-bottom: 40px;
}

/* Skills Container */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Skill Box */
.skill-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0, 198, 255, 0.3);
}

/* Icons */
.skill-box i {
  font-size: 3rem;
  color: #00c6ff;
  margin-bottom: 10px;
  transition: transform 0.4s ease;
}

.skill-box:hover i {
  /* transform: scale(1.2); */
  color: #ff2770;
  transform: rotateY(360deg);
}

/* Skill Name and Bar */
.skill-box h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 500;
}

.bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  width: 0;
  animation: loadSkill 1.8s forwards;
}

/* Skill Percent */
.percent {
  font-size: 0.9rem;
  color: #aaa;
}

/* Individual Skill Widths */
.progress.html { width: 95%; }
.progress.css { width: 90%; }
.progress.js { width: 85%; }
.progress.react { width: 80%; }
.progress.php { width: 75%; }

/* ====== Animations ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
  from { text-shadow: 0 0 10px #00c6ff, 0 0 20px #00c6ff; }
  to { text-shadow: 0 0 25px #00c6ff, 0 0 45px #0072ff; }
}

@keyframes loadSkill {
  from { width: 0; }
  to { width: 100%; }
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 250px;
  }

  .about-content h1 {
    font-size: 2rem;
  }

  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}
