/* ----------------- General Styles ----------------- */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #4b0000, #a10000); /* dark maroon → light maroon */
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ----------------- Header ----------------- */
header {
  background: #000000;
  color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header h1 {
  font-size: 3rem;
  margin: 10px 0;
  font-weight: 700;
}

header p {
  font-size: 1.5rem;
  margin-top: 10px;
  font-weight: 500;
}

header .profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

header .profile-pic:hover {
  transform: scale(1.1);
}

/* ----------------- Scrolling Banner ----------------- */
.scroll-banner {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin-top: 20px;
  margin-bottom: 30px;
}

.scroll-banner p {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: scroll-left 15s linear infinite;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

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

/* ----------------- Sections ----------------- */
.section {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  padding: 60px 20px;
  background: #2c2c2c;
  color: #f5f5f5;
  border-radius: 12px;
  margin-bottom: 30px;
}

.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
}

.section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ff4e50, #f9d423);
  margin: 10px auto 0;
  border-radius: 2px;
}

.fade-in {
  animation-delay: 0.3s;
}

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

/* ----------------- Portfolio ----------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ----------------- Education & Experience ----------------- */
.edu-exp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  text-align: center;
}

.card-content h3 {
  margin: 10px 0;
  font-size: 1.4rem;
  color: #ffcccb;
}

.card-content p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.card-content span {
  display: inline-block;
  font-size: 0.9rem;
  color: #ddd;
  background: rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ----------------- Social Links ----------------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.social-links a {
  color: #f5f5f5;
  font-size: 1.8rem;
  transition: color 0.3s;
}

.social-links a:hover .fa-instagram { color: #C13584; }
.social-links a:hover .fa-facebook { color: #3b5998; }
.social-links a:hover .fa-github { color: #fff; }
.social-links a:hover .fa-linkedin { color: #0077b5; }

/* ----------------- Footer ----------------- */
footer {
  text-align: center;
  background: #222;
  color: #f5f5f5;
  padding: 15px;
  margin-top: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
