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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #d1d5db;
  background-color: #0a0f1a;
  display: flex;
}

h1, h2, h3 {
  font-weight: 600;
  color: #ffffff;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.section-box {
  background-color: #131c2b;
  padding: 40px;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}


.sidebar {
  width: 260px;
  background: #121826;
  min-height: 100vh;
  padding: 2rem 1rem;
  position: fixed;
  border-right: 1px solid #1f2937;
}

.sidebar nav {
  text-align: left;
}

.profile-photo {
  width: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid #6366f1;
}

.sidebar h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.sidebar ul li {
  margin: 1rem 0;
}

.sidebar ul li a {
  color: #94a3b8;
  font-weight: 500;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  color: #8b5cf6;
  font-size: 1.1rem;
  transform: scale(1.05);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.7);
}


.main-wrapper {
  margin-left: 260px;
  padding: 2rem;
  width: calc(100% - 260px);
}


.hero {
  background: linear-gradient(to right, #0b0f19, #111827);
  padding: 6rem 2rem;
  text-align: left;
  position: relative;
}

.hero .overlay {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  color: #60a5fa;
}

.hero h2 {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #cbd5e1;
}

.hero p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #94a3b8;
}

.cta-button {
  display: inline-block;
  margin: 1rem 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #8b5cf6;
  color: white;
  border-radius: 8px;
  transition: background 0.3s ease;
  font-weight: 500;
}

.cta-button.alt {
  background-color: #10b981;
}

.cta-button:hover {
  background-color: #4f46e5;
}


.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.project-item {
  background-color: #1e293b;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.project-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.project-item p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.project-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}


.exp-box,
.cert-box {
  background-color: #1f2937;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item{
  border: 1px solid #2d3748;
  background: linear-gradient(to bottom right, #1f2937, #1a202c);
}
.cert-box:hover,
.project-item:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}


.tech-stack span {
  background-color: #1e293b;
  padding: 0.4rem 0.8rem;
  margin: 0.3rem;
  display: inline-block;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #60a5fa;
  font-weight: 500;
}


.marquee-wrapper {
  overflow: hidden;
  position: relative;
}

.marquee-window {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-window:hover .marquee-track {
  animation-play-state: paused;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1f2937;
  padding: 1rem;
  margin: 1rem;
  border-radius: 12px;
  min-width: 120px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.05);
}

.skill-card img {
  width: 50px;
  margin-bottom: 0.5rem;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


.btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: #10b981;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  transition: background 0.3s;
  font-weight: 500;
}

.btn:hover {
  background: #059669;
}


#contact {
  text-align: center;
}

.footer-icons a {
  margin: 0 1rem;
  font-size: 1.5rem;
  color: #8b5cf6;
  transition: transform 0.3s;
}

.footer-icons a:hover {
  transform: scale(1.2);
  color: #60a5fa;
}

footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
}


@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: relative;
    min-height: auto;
    padding: 1rem;
    text-align: center;
  }

  .sidebar nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .sidebar ul li {
    margin: 0.5rem 1rem;
  }

  .main-wrapper {
    margin-left: 0;
    padding: 1.5rem 1rem;
    width: 100%;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .cta-button {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }

  .skill-card {
    min-width: 100px;
    margin: 0.5rem;
  }

  footer {
    margin-top: 1rem;
    font-size: 0.85rem;
  }
}
button, a, .skill-card, .project-item {
  transition: all 0.3s ease;
}
