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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

header img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: cover;
  border: 5px solid #22d3ee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

header img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.5);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

header h1 {
  font-size: 3.5rem;
  color: #22d3ee;
  font-weight: 700;
}

header p {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  color: #cbd5e1;
}

nav {
  margin-top: 1.5rem;
}

nav a {
  color: #94a3b8;
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover {
  color: #22d3ee;
  transform: translateY(-2px);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #22d3ee;
  transition: all 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  left: 0;
}

section {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Loading animation */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #334155;
  border-top: 3px solid #22d3ee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #22d3ee;
  text-align: center;
  border-bottom: 2px solid #334155;
  padding-bottom: 0.5rem;
}

ul li {
  list-style: disc;
  margin-left: 2rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.project {
  background-color: #1e293b;
  padding: 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid #22d3ee;
  border-radius: 0.5rem;
  box-shadow: 0 6px 14px rgba(34, 211, 238, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
  transition: left 0.5s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(34, 211, 238, 0.25);
  border-left-width: 8px;
}

.project:hover::before {
  left: 100%;
}

.project h3 {
  margin-bottom: 0.5rem;
  color: #f1f5f9;
  font-size: 1.9rem;
}

.project p {
  color: #cbd5e1;
  font-size: 1rem;
}

.project a {
  color: #22d3ee;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.project a:hover {
  text-decoration: underline;
  color: #67e8f9;
}

.skill-card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.skill-card {
  background-color: #1e293b;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid transparent;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.15);
  border: 1px solid #22d3ee;
}

.skill-card h3 {
  font-size: 1.3rem;
  color: #22d3ee;
  margin-bottom: 0.75rem;
}

.skill-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.skill-tag {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: #e2e8f0;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #475569;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-tag:hover {
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 36px;
  height: 36px;
  filter: invert(90%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.3);
  filter: invert(60%) sepia(100%) saturate(500%) hue-rotate(180deg);
}

footer {
  text-align: center;
  padding: 2.5rem;
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #334155;
}

.btn {
  display: inline-block;
  background-color: #22d3ee;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: #67e8f9;
  transform: translateY(-2px);
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
  header {
    padding: 3rem 1rem;
  }

  header h1 {
    font-size: 2.5rem;
  }

  header p {
    font-size: 1rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  nav a {
    margin: 0.3rem 0.5rem;
    font-size: 0.9rem;
    padding: 0.3rem 0;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .project {
    padding: 1.5rem;
  }

  .skill-card-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .social-icons {
    gap: 1.5rem;
  }

  .social-icons a img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  header img {
    width: 120px;
    height: 120px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .project h3 {
    font-size: 1.5rem;
  }

  nav a {
    font-size: 0.8rem;
  }
}