@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  overflow: hidden;
  color: #fff;
}

/* Moving Gradient Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: linear-gradient(120deg, #007bff, #004aad, #00d4ff);
  background-size: 200% 200%;
  z-index: -1;
  animation: moveGradient 10s infinite alternate;
}
@keyframes moveGradient {
  0% {
    background-position: left;
  }
  100% {
    background-position: right;
  }
}

/* Container Layout */
.container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 90vh;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Sidebar */
.sidebar {
  width: 30%;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: 4px solid #00e0ff;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.4s;
}

.profile-img:hover {
  transform: scale(1.05);
}

.sidebar h2 {
  font-size: 1.4rem;
}

.sidebar h4 {
  color: #00e0ff;
  margin-bottom: 1.5rem;
}

/* Navigation */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.nav-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.nav-btn.active,
.nav-btn:hover {
  background: #00abf0;
  border-color: #00abf0;
}

/* Social Icons */
.social-media {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-media a {
  font-size: 1.5rem;
  color: #00e0ff;
  transition: 0.3s;
}

.social-media a:hover {
  color: #fff;
}

/* Main Section */
.main-content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.content-section {
  display: none;
  animation: fadeIn 0.5s ease;
}
.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Projects */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.3s, background 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.project-card .tag {
  display: inline-block;
  background: #00e0ff;
  color: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* Home Stats */
.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.stat {
  text-align: center;
}
.stat h2 {
  color: #00e0ff;
  font-size: 2rem;
}

/* Personal Info Section (New Style) */
.personal-section {
  background: linear-gradient(135deg, #111, #1e1e2e, #3c3c8b);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease-in-out;
}

.personal-section h1 {
  color: #00ffe0;
  text-shadow: 0 0 10px #00ffe0;
  margin-bottom: 1rem;
}

.personal-dynamic-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #a8e4ff;
  min-height: 40px;
}

.info-card {
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid #00e0ff;
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.3s;
}
.info-card:hover {
  transform: translateY(-5px);
}

.info-list li {
  list-style: none;
  padding: 0.3rem 0;
  font-size: 1rem;
  color: #d6f2ff;
}
.info-list strong {
  color: #00e0ff;
}

/* Contact Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

#contact-form input,
#contact-form textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn {
  background: #00abf0;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #0088cc;
}

#form-status {
  margin-top: 1rem;
  font-weight: 500;
  color: #00e0ff;
}

/* Responsive */
@media (max-width: 850px) {
  .container {
    flex-direction: column;
    height: auto;
  }
  .sidebar {
    width: 100%;
  }
}
