/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0b0b0b;
  color: #f0f0f0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

section {
  padding: 70px 10%;
}

h2 {
  color: #ffd700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: #ffd700;
  margin: 10px auto;
  border-radius: 5px;
}
/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  padding: 12px 25px;
  z-index: 9999;
  transition: top 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4); /* soft shadow */
  border-radius: 0 0 0 12px;
}

/* Smooth shadow on hover */
#navbar:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

/* Horizontal right-aligned links */
.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: gold;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

/* Glow hover effect */
.nav-links li a:hover {
  background: gold;
  color: black;
  box-shadow: 0 0 10px gold;
}

/* Hide navbar on mobile */
@media (max-width: 768px) {
  #navbar {
    display: none;
  }
}
/* Hover Effect */
.side-nav a:hover {
  background: #007bff;
  color: #fff;
  border-radius: 8px 0 0 8px;
  transform: translateX(-5px);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background: linear-gradient(to right, #000000, #1a1a1a);
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}

.hero-content {
  z-index: 2;
  color: #fff;
}

.profile-photo {
  width: 180px;       /* Increased size from 120px to 180px */
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4af37; /* gold border for a premium look */
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  margin-bottom: 20px;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.6);
}

.hero {
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.2rem;
}

.hero h1 span {
  color: #ffd700;
}

.tagline {
  font-size: 1rem;
  color: #bbb;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  background: #ffd700;
  color: #000;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background: transparent;
  border: 2px solid #ffd700;
  color: #ffd700;
}

/* ===== About Section ===== */
.about p {
  max-width: 800px;
  margin: auto;
  text-align: center;
  color: #ccc;
  font-size: 1.05rem;
}

/* ===== Skills Section ===== */
.skills .skill {
  margin-bottom: 20px;
}

.skills p {
  font-weight: 500;
  color: #ffd700;
}

.skill-bar {
  background: #222;
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: #ffd700;
  border-radius: 10px;
  transition: width 1s ease-in-out;
}

/* ===== Projects Section ===== */
.projects .project-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 25px;
}

.project {
  background: #111;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(255,215,0,0.2);
  transition: transform 0.3s;
}

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

.project h3 {
  color: #ffd700;
  margin-bottom: 10px;
}

.project p {
  color: #ccc;
}
/* ===== Certifications Section ===== */
.certifications {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 20px; /* optional padding around section */
}

.certifications .cert-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
  gap: 30px; /* space between boxes */
  width: 100%;
  max-width: 900px; /* center the grid */
  margin: 20px auto 0 auto; /* top margin and center horizontally */
}

.cert-item {
  background: #111;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #333;
  box-shadow: 0 0 10px rgba(255,215,0,0.2);
  transition: transform 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 130px; /* uniform box height */

  cursor: pointer; /* shows pointer on hover */
  text-decoration: none; /* remove underline */
  color: inherit;        /* keep text color from parent */
}

.cert-item:hover {
  transform: translateY(-5px);
}

.cert-item h3 {
  color: #ffd700;  /* gold */
  margin-bottom: 0;
  font-size: 1.1rem;
}

.cert-item p {
  color: #fff;      /* white */
  font-size: 0.95rem;
  line-height: 1.8;
  text-decoration: none; /* remove underline from p */
}

/* Remove underline for any link inside h3 or p */
.cert-item h3 a,
.cert-item p a {
  color: inherit;       /* inherit color */
  text-decoration: none; /* remove underline */
}

.cert-item h3 a:hover,
.cert-item p a:hover {
  color: inherit;       /* keep color on hover */
}

/* ===== Responsive Design ===== */

/* Mobile: 1 certificate per row */
@media screen and (max-width: 768px) {
  .certifications .cert-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cert-item {
    height: auto; /* let box adjust height to content */
  }
}
/* ===== Resume Section ===== */
.resume p {
  text-align: center;
  color: #ccc;
  margin-bottom: 20px;
}

.resume .btn {
  display: block;
  width: fit-content;
  margin: auto;
}
/* ===== Mobile Responsive: Stack Projects and Certifications ===== */
@media (max-width: 768px) {
  .projects .project-container,
  .certifications .cert-list {
    grid-template-columns: 1fr;       /* Make one column */
    justify-items: center;            /* Center items horizontally */
  }

  .project,
  .cert-item {
    width: 90%;                       /* Optional: control width on small screens */
    max-width: 400px;
  }
}

/* ===== Contact Section ===== */
/* Contact Section Styling */
.contact-section {
  text-align: center;
  padding: 80px 20px;
  background: #0b0b0b;
  color: #fff;
}

/* Contact Form Styling */
.contact-form {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Input and Textarea Styling */
.contact-form input,
.contact-form textarea {
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-size: 1rem;
  transition: 0.3s ease;
}

/* Focus Effect */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffcc00;
  outline: none;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Button Styling */
.contact-form button {
  background: #d4af37;
  color: #000;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s ease;
}
.icon-btn {
  color: gold;
  font-size: 38px;
  background-color: transparent;
  border: 2px solid gold;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.icon-btn:hover {
  transform: scale(1.2);
  color: black;
  background-color: gold;
  box-shadow: 0 0 20px gold, 0 0 40px gold;
}

.contact-form button:hover {
  background: #ffcc00;
  transform: scale(1.05);
}

/* Note Text Styling */
.note {
  margin-top: 10px;
  color: #999;
  font-size: 0.9rem;
}

/* Success Message Styling */
#successMessage {
  display: none; /* Hidden by default */
  margin-top: 15px;
  color: #d4af37; /* Gold color */
  font-size: 1rem;
  font-weight: 600;
}

/* ===== Footer ===== */
footer {
  background: #000;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  color: #999;
  font-size: 0.9rem;
}
