* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background: #0f172a;
  color: #f8fafc;
  scroll-behavior: smooth;
}
.background-overlay {
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) blur(2px);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -1;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(30, 41, 59, 0.85);
}
nav h1 {
  font-size: 1.5rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}
nav ul li a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}
.hero-content {
  text-align: center;
  padding: 4rem 2rem 1rem;
}
.profile-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  margin-bottom: 1rem;
}
.btn {
  margin-top: 1rem;
  display: inline-block;
  background: #38bdf8;
  color: #0f172a;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}
.section {
  padding: 2rem;
  max-width: 960px;
  margin: auto;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.skill-card {
  background: rgba(30, 41, 59, 0.9);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  transition: 0.2s;
}
.skill-card i {
  font-size: 2rem;
  color: #38bdf8;
}
.skill-card span {
  display: block;
  margin-top: 0.5rem;
}
.skill-card:hover {
  transform: scale(1.05);
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #1e293b;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  color: white;
  position: relative;
}
.modal-content input,
.modal-content textarea {
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
}
.modal-content .close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}
footer {
  background: rgba(30, 41, 59, 0.85);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}
.socials {
  margin-top: 1rem;
}
.socials a {
  color: #38bdf8;
  font-size: 1.5rem;
  margin: 0 0.5rem;
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.skills-icons i {
  margin: 10px;
  font-size: 2rem;
  color: #007bff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.social-icons a {
  margin: 0 10px;
  color: white;
}

.social-icons a:hover {
  color: #0e76a8; /* LinkedIn blue */
}

.skills-icons i {
  margin: 10px;
  font-size: 2rem;
  color: #007bff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.social-icons a {
  margin: 0 10px;
  color: white;
}

.social-icons a:hover {
  color: #0e76a8;
}

.social-icons {
  margin-top: 15px;
}

.social-icon {
  margin: 0 15px;
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

.social-icon i {
  color: white;
  background-color: #333;
  border-radius: 50%;
  padding: 12px;
  font-size: 24px;
  transition: all 0.3s ease-in-out;
}

.social-icon.linkedin i {
  background-color: #0077b5;
}

.social-icon.github i {
  background-color: #171515;
}

.social-icon:hover i {
  transform: scale(1.2) rotate(10deg);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.skills-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.skills-icons i {
  font-size: 2.5rem;
  color: white;
  padding: 20px;
  border-radius: 15px;
  background: linear-gradient(135deg, #007bff, #00d4ff);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: bounceIn 1.5s ease;
  transition: transform 0.3s ease-in-out;
}

.skills-icons i:hover {
  transform: scale(1.2) rotate(5deg);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-100px);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Page-wide fade-in */
body {
  animation: fadeInBody 1.2s ease-in;
}

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

.skills-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  background: linear-gradient(135deg, #1f1f1f, #3a3a3a);
  padding: 20px;
  width: 120px;
  text-align: center;
  border-radius: 15px;
  color: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease-in-out, background 0.3s;
  animation: fadeInUp 1.5s ease;
}

.skill-card i {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: pulseSkill 2s infinite;
}

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

@keyframes pulseSkill {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

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