/* Base Styles */

:root {
  --primary: #2ecc71;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section h2 {
  text-align: center;  /* Center the heading text */
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
 
  gap: 2rem; /* Space between the logo and the links */
}

/* Navbar content - container for logo and links */
.navbar .logo {
  display: flex;
  align-items:center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center; /* Vertically center the nav links */
}

/* Styling for navbar links */
.navbar a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

.navbar a:hover {
  color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger .bar {
  width: 30px;
  height: 3px;
  background-color: var(--dark);
}

/* Mobile view - Show hamburger and hide the links */
@media (max-width: 768px) {
  .hamburger {
    display: flex; /* Show hamburger */
  }

  .nav-links {
    display: none; /* Hide the nav links by default */
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  /* Show nav links when the menu is open */
  .nav-links.open {
    display: flex; /* Display the links when open */
  }
}

/* About Section */
#about {
  margin-top: 100px;
  display: flex;
  justify-content: center; /* Centers content horizontally */
  align-items: center; /* Aligns items vertically */
  flex-direction: row; /* Places image on left, text on right */
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 10px; /* Makes it card-like */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Adds soft shadow */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Profile Picture */
.profile-pic {
  border-radius: 50%;
  width: 180px; /* Larger size for better visibility */
  height: 180px;
  object-fit: cover;
  margin-right: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Adds depth */
}

/* Profile Text Content */
.profile-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Social Links */
.social-links {
  margin-top: 10px;
}

.social-links a {
  font-size: 1.5rem;
  margin: 10px;
  color: var(--dark);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

/* Button Styling - Shorter Width */
.btn {
  padding: 0.4rem 1rem; /* Good height, balanced width */
  font-size: 0.85rem; /* Slightly smaller text */
  background: #041927; /* Dark navy */
  color: white;
  border-radius: 3px;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 1rem;
  display: inline-block; /* Prevent full-width stretching */
  width: fit-content; /* Button only takes needed space */
  max-width: 150px; /* Ensures button doesn’t grow too long */
}

.btn:hover {
  background: #06344a; /* Slightly lighter navy for better effect */
  transform: translateY(-3px);
}

/* Education Section */


#education {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6%;
}

.education-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  margin: auto;
}

/* Header for the logo and college name */
.education-header {
  display: flex;
  justify-content: space-between; /* Space between logo and text */
  align-items: center;
  margin-bottom: 1rem;
}

/* Logo styling */
.college-logo {
  width: 100px;
  height: auto;
  margin-right: 3rem;
}

/* College name and date */
.college-info {
  display: flex;
  flex-direction: column;
  align-items: center; /* Changed from flex-end to center alignment */
  color: rgb(20, 11, 107); /* Added dark green color */
}

.college-info h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--dark);
}

.date {
  font-size: 1rem;
  color: var(--dark);
  margin-top: 0.5rem;
}

/* Relevant courses list */
.relevant-courses {
  margin-top: 1.5rem;
}

.relevant-courses h3 {
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 1rem;
}

.relevant-courses ul {
  list-style-type: none;
  padding-left: 0;
}

.relevant-courses ul li {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}
/* Styling for the social media icons */
.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center; /* Center the icons */
  gap: 1rem; /* Space between the icons */
}

.social-links a {
  display: inline-block;
}

.social-links img {
  width: 40px; /* Set the width for the icons */
  height: 40px; /* Set the height for the icons */
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1); /* Slight zoom effect on hover */
}


/* Footer */
footer {
  background: var(--light);
  padding: 2rem;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary);
}

/* JavaScript Toggle Menu Function */
