@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Raleway:wght@400;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 70px; /* Adjust based on navbar height */
}

/* Navigation Bar */
.navbar {
  background-color: rgba(0, 0, 0, 0.85); /* Semi-transparent dark */
  backdrop-filter: blur(10px);
  transition: background-color 0.3s ease-in-out;
  font-family: 'Raleway', sans-serif;
}

.navbar.scrolled {
  background-color: #000; /* Solid black on scroll */
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
}

.nav-link {
  color: #fff !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Content Sections General */
.content-section {
  padding: 100px 0;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.content-section h2.display-4 {
    margin-bottom: 1rem;
}

.title-hr {
    width: 80px;
    height: 4px;
    background-color: #fff; /* Default white, will be overridden */
    margin: 0 auto 3rem auto;
    border: none;
    opacity: 0.8;
}

/* Home Section */
.home-section {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: #fff;
}
.home-section .title-hr { background-color: #fff; }

.profile-picture {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#main-headline {
    letter-spacing: 1px; /* Subtle spacing */
}

/* About Section */
.about-section {
  background-color: #f8f9fa; /* Light gray background */
  color: #333;
}
.about-section .title-hr { background-color: #007bff; } /* Blue accent */

.about-card, .education-card, .via-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover, .education-card:hover, .via-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.education-card ul {
    list-style-type: none;
    padding-left: 0;
}
.education-card li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}
.education-card li::before {
    content: "\f058"; /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #007bff;
}


/* Projects Section */
.projects-section {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: #fff;
}
.projects-section .title-hr { background-color: #fff; }

.project-card {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card .card-img-top {
  height: 200px;
  object-fit: cover;
}
.project-card .card-body {
    display: flex;
    flex-direction: column;
}
.project-card .card-title {
    font-weight: 600;
}
.project-card .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.7em;
}

/* Skills Section */
.skills-section {
  background: linear-gradient(135deg, #f9d423 0%, #ff4e50 100%);
  color: #fff;
}
.skills-section .title-hr { background-color: #fff; }
.skills-section h3 { color: #fff; font-weight: 600; }

.skill-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.skill-card i, .skill-card svg {
  color: #fff;
  margin-bottom: 0.5rem; /* Adjusted from original */
}
.skill-card h5 {
    font-weight: 600;
    margin-top: 0.5rem;
}

.experience-list {
  list-style: none;
  padding-left: 0;
  color: #fff;
}

.experience-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}
.experience-list li:hover {
    background: rgba(255, 255, 255, 0.2);
}
.experience-list i {
  color: #fff; /* Gold color from gradient */
  margin-right: 0.75rem;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
  color: #fff;
}
.contact-section .title-hr { background-color: #fff; }
.contact-section a {
    text-decoration: none;
    border-bottom: 2px dotted rgba(255,255,255,0.7);
    transition: border-bottom-color 0.3s;
}
.contact-section a:hover {
    border-bottom-color: #fff;
}


/* Footer */
.footer {
  background-color: #222; /* Darker than navbar for distinction */
}
.footer a:hover {
    color: #00f2fe !important; /* Accent color from home */
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.fade-in {
  opacity: 0;
  transform: translateY(30px);
}
.animate-on-scroll.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
}
.animate-on-scroll.fade-in-down {
  opacity: 0;
  transform: translateY(-50px);
}
.animate-on-scroll.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
}
.animate-on-scroll.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Typewriter Cursor */
#main-headline::after {
  content: '|';
  animation: blink 0.7s infinite;
  font-weight: 300; /* Make cursor thinner */
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
  body {
    padding-top: 60px; /* Adjust for smaller navbar */
  }
  .navbar-nav {
    background-color: rgba(0,0,0,0.95);
    border-radius: 5px;
    margin-top: 10px;
    padding: 10px;
  }
  .nav-link {
    margin: 0.5rem 0;
    text-align: center;
  }
  .content-section {
    padding: 60px 15px;
  }
  .display-4 {
    font-size: 2.5rem;
  }
  .profile-picture {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 767.98px) {
    .skills-grid .col-6 {
        margin-bottom: 1rem; /* Add some space between stacked skill cards */
    }
    .education-card h4 {
        font-size: 1.1rem;
    }
    .education-card li {
        font-size: 0.9rem;
    }
    .display-3 {
        font-size: 2.8rem; /* Adjust main headline size */
    }
}