/* Import the Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

/* CSS Custom Properties */
:root {
  --primary: #007bff;
  --secondary: #6c757d;
  --background: #f8f9fa;
  --text: #343a40;
  --white: #ffffff;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
header {
  width: 100%;
  background: var(--secondary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

header .container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

header .logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
header .logo a:hover {
  color: #ffffff; /* Brighter white on hover */
}
.nav_links {
  list-style: none;
  display: flex;
}

.nav_links li {
  margin-left: 2rem;
}

.nav_links li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color 0.3s;
}

.nav_links li a:hover {
  color: #ffffff;
}

.nav_btn button {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary);
  background: var(--white);
  color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav_btn button:hover {
  background: var(--primary);
  color: var(--white);
}

/* Section Base */
section {
  padding: 6rem 0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* About Section */
#about {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 7rem; /* extra space to account for fixed header */
}

#about h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

#about p {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.1rem;
  color: var(--text);
}

.about-icons {
  margin-top: 1.5rem;
}

.about-icons a {
  margin: 0 0.5rem;
  color: var(--text);
  font-size: 2rem;
  transition: color 0.3s;
}

.about-icons a:hover {
  color: var(--primary);
}

/* Education Section */
#education {
  background: var(--background);
}

.edu-title {
  text-align: center;
  margin-bottom: 3rem;
}

.edu-title h1 {
  font-size: 2rem;
  color: var(--primary);
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.row > div {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex: 0 0 48%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.row > div:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.row h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.date-edu {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Skills Section */
#skills {
  background: var(--white);
}

.skill-title {
  text-align: center;
  margin-bottom: 3rem;
}

.skill-title h1 {
  font-size: 2rem;
  color: var(--primary);
}

.flex-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
/* projects section*/
#projects {
  padding: 60px 20px;
}

.projects-title {
  text-align: center;
  margin-bottom: 40px;
}

.projects-title h1 {
  font-size: 2.5rem;
  color: #333;
}

.projects-title p {
  font-size: 1.2rem;
  color: #666;
}

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

.project-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: scale(1.05);
}

.project-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project-item h3 {
  font-size: 1.5rem;
  margin: 15px 0;
}

.project-item p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.project-link {
  text-decoration: none;
  color: #0073e6;
  font-weight: bold;
}

.project-link:hover {
  color: #005bb5;
}

/* Hover effect for skill items */
.items {
  background: var(--background);
  border-radius: 10px;
  padding: 1rem;
  margin: 0.5rem;
  flex: 0 0 200px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.items:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.items img {
  width: 80px;
  margin-bottom: 1rem;
}

.items p {
  margin: 0.5rem 0;
}

/* Certifications Section */
#certifications {
  background: var(--background);
}

.certifications-title {
  text-align: center;
  margin-bottom: 3rem;
}

.certifications-title h1 {
  font-size: 2rem;
  color: var(--primary);
}

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

.certification-item {
  background: var(--white);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.certification-item img {
  max-width: 150px;
  margin-bottom: 1rem;
}

/* Contact Section */
#contact {
  background: var(--white);
  padding-top: 7rem;
}

.contact-title {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-title h1 {
  font-size: 2rem;
  color: var(--primary);
}

.contact p {
  max-width: 700px;
  margin: 1rem auto;
  font-size: 1.1rem;
}

/* Optional Contact Form Styles */
form {
  max-width: 600px;
  margin: 0 auto;
}

form input,
form textarea,
form button {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ced4da;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #0056b3;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
}

footer p {
  margin: 0.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .row > div {
    flex: 0 0 100%;
  }
  .nav_links {
    display: none; /* Consider adding a mobile menu here */
  }
}
