body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #1e1e2f;
  color: #ffffff;
}

nav {
  background-color: #2a2a40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
}

.logo {
  font-size: 20px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}
nav ul li a {
  color: #ccc;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  font-size: 16px;
  font-family: 'Segoe UI', sans-serif;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #1f90ff;
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: #1f90ff;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}


.resume-button {
  background: linear-gradient(135deg, #01060b, #040e11);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(239, 242, 245, 0.4);
  transition: all 0.3s ease;
  border: none;
}

.resume-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(234, 239, 244, 0.6);
  background: linear-gradient(135deg, #02080a, #eff4f8);
}

header {
  padding: 60px 40px;
}

.intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.intro-text {
  text-align: center;
  max-width: 500px;
}

.intro-text h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.intro-text p {
  font-size: 18px;
  color: #b0b0b0;
}

.socials img {
  width: 30px;
  margin: 10px 5px;
  filter: brightness(0) invert(1);
}

.buttons button {
  margin: 10px 10px 0 10px;
  padding: 10px 20px;
  background-color: #39395f;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.buttons button:hover {
  background-color: #50507a;
}

.intro-img img {
  width: 300px;
  height: 300px;
  border-radius: 25px;
  object-fit: cover;
  border: 3px solid #444;
}

footer {
   position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    text-align: center;
    background-color: #2a2a40;
    font-size: 14px;
    color: #999;
    margin-top: 30px;
  
}
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
  min-height: 90vh;
}

.contact-box {
  margin-top: 50px;
  background-color: #110e0e;
  color: #f6eaea;
  padding: 30px 40px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(240, 237, 237, 0.958);
}

.contact-box h2 {
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 40px;
  color: #1f90ff;
  margin-bottom: 10px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #e6dbdb;
  border-radius: 6px;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-box textarea {
  resize: none;
  height: 100px;
}


.submit-button {
  background-color: #1f90ff;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.submit-button:hover {
  background-color: #0f70d1;
}

nav ul li a.active {
  border-bottom: 2px solid #f5f3eb;
}
/* Certificate Card Grid Layout */
.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 50px;
}

/* Certificate Card Styling */
.cert-card {
  background-color: #2e2e2e;
  border-radius: 8px;
  width: 250px;
  height: 350px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.cert-card:hover {
  transform: scale(1.05);
}

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

/* Info section of the card */
.cert-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  color: white;
  
}

.cert-info h3 {
  font-size: 16px;
  margin: 0 0 10px;
  flex-grow: 1;
}

.cert-info p {
  font-size: 13px;
  color: #ccc;
  margin: 0 0 12px;
}

/* Credential link pinned to bottom */
.cert-info a {
  color: #5c6bc0;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
  display: inline-block;
}
.cert-info a {
  color: #1f90ff;
  font-weight: bold;
  text-decoration: none;
  margin-top: 12px;
  display: inline-block;
  transition: color 0.3s ease;
}

.cert-info a:hover {
  color: #63b3ed;
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  display: block;
  margin: auto;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

/* Footer */
footer {
  text-align: center;
  padding: 5px 8px;   /* smaller padding */
  color: #ccc;
  font-size: 12px;    /* smaller font */
  background-color: #1a1a1a;
}

.project-heading {
  text-align: center;
  margin-top: 30px;
  font-size: 2.5rem;
  color: white;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}
/* ✅ White project card style */
.project-card {
  background-color: #ffffff;
  border-radius: 12px;
  width: 280px;
  padding: 20px;
  color: #000; /* Dark text */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.project-card p {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

.project-buttons {
  display: flex;
  justify-content: space-between;
}

.project-buttons a {
  text-decoration: none;
  padding: 8px 12px;
  background-color: #1f90ff;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s;
}

.project-buttons a:hover {
  background-color: #0f70d1;
}

/* Footer */
footer {
  background-color: #1f1f1f;
  padding: 10px 15px;
  text-align: center;
  color: #ffffff;
  margin-top: 30px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .project-section {
    flex-direction: column;
    align-items: center;
  }
}
.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
}
/* Scrollable two-column layout for about.html */
.about-scroll-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  padding: 60px 40px;
  justify-content: center;
  align-items: flex-start;
  background-color: #1e1e2f;
  color: #ffffff;
  min-height: 100vh;
}

.about-column {
  flex: 1 1 500px;
  max-width: 600px;
  padding: 20px;
}

.about-column h2 {
  font-size: 24px;
  margin-top: 30px;
  border-bottom: 1px dashed #666;
  padding-bottom: 6px;
  color: #ffffff;
}

.about-column p,
.about-column ul {
  font-size: 15px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 16px;
}

.about-column ul {
  padding-left: 20px;
}

footer {
  text-align: center;
  padding: 10px 15px;
  font-size: 14px;
  color: #ccc;
  background-color: #1a1a1a;
  margin-top: 30px;
}

/* Responsive stacking on small screens */
@media (max-width: 768px) {
  .about-scroll-layout {
    flex-direction: column;
    padding: 40px 20px;
  }

  .about-column {
    max-width: 100%;
  }
}
