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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  line-height: 1.6;
}

a {
  color: #00bcd4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #1f1f1f;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #00bcd4;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  color: #f5f5f5;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00bcd4;
}

/* Hamburger styles */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle .bar {
  width: 100%;
  height: 4px;
  background: #00bcd4;
  border-radius: 2px;
  transition: 0.3s;
}

/* Responsive Navbar */
@media (max-width: 800px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1f1f1f;
    flex-direction: column;
    width: 200px;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
  }
  .nav-links.open {
    display: flex;
  }
  .navbar {
    position: relative;
    padding: 20px 20px;
  }
}

/* Home Section */
.home-section {
  text-align: center;
  padding: 100px 20px;
}

.home-section h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.home-section span {
  color: #00bcd4;
}

.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #00bcd4;
  color: #121212;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn:hover {
  background-color: #008c9e;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 0 10px;
}

.skills-grid div {
  background-color: #1f1f1f;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  color: #00bcd4;
  box-shadow: 0 4px 8px rgba(0, 188, 212, 0.15);
  transition: transform 0.3s ease, background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.skills-grid div:hover {
  transform: scale(1.05);
  background-color: #00bcd4;
  color: #1f1f1f;
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.6); /* Light blue glow */
}

/* Projects */
/* Projects */
.project-card {
  background-color: #1f1f1f;
  padding: 20px;
  margin-top: 20px;
  border-left: 5px solid #00bcd4;
  border-radius: 8px;
  color: #f1f1f1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.4); /* Light blue glow */
}

.project-card h3 {
  color: #00bcd4;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-card ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
  color: #cccccc;
}

.project-card ul li strong {
  color: #ffffff;
}


/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #fff;
}

button[type="submit"] {
  background-color: #00bcd4;
  color: #121212;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #008c9e;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background-color: #1f1f1f;
  color: #ccc;
}

footer a {
  margin: 0 10px;
}

.invisible {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About Section Flex Layout */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px 0; /* Remove side padding for a cleaner look */
  /* background-color: #1f1f1f; */ /* Remove background */
  /* border-radius: 10px; */      /* Remove rounded corners */
  /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */ /* Remove shadow */
}

.about-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #00bcd4;
  letter-spacing: 1px;
}

.about-text {
  flex: 1;
  padding-right: 30px;
}

.about-text h2 {
  margin-bottom: 10px;
}

.about-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #0077b5; /* LinkedIn blue */
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Profile Image Modal */
.profile-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.85);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  align-items: center;
  justify-content: center;
}

.profile-modal .modal-content {
  margin: auto;
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 6px solid #0077b5;
  background: #fff;
}

.profile-modal .close-modal {
  position: absolute;
  top: 40px;
  right: 60px;
  color: #fff;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2100;
}

.cert-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Always 3 columns */
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .cert-feed {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

@media (max-width: 600px) {
  .cert-feed {
    grid-template-columns: 1fr; /* 1 column on mobile */
  }
  section {
    padding: 30px 5px;
  }
  h1, h2 {
    font-size: 1.5em;
  }
}

.cert-card {
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  text-align: center;
  transition: transform 0.2s;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0,123,212,0.15);
}

.cert-card img {
  width: 100%;
  max-width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  border: 2px solid #0077b5;
  background: #fff;
}

.cert-card p {
  color: #f5f5f5;
  font-size: 1em;
  margin: 0;
}

@media (max-width: 700px) {
  .about-container {
    flex-direction: column-reverse;

    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .about-text {
    padding-right: 0;
    text-align: center;
  }
  .about-image {
    margin-bottom: 20px;
  }
  .profile-modal .close-modal {
    top: 10px;
    right: 20px;
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}