/* ========== Global Styles ========== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  margin-top: 0;
}

/* ========== Navbar ========== */
header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.navbar .nav-link {
  font-size: 1.05rem;
  font-weight: 500;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #007bff;
}

/* ========== Hero Section ========== */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: #f9fbfd;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.profile-photo {
  width: 160px;
  height: 170px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin: 0 auto 20px;   /* ✅ centers it horizontally */
  display: block;        /* ✅ ensures auto margin works */
  object-fit: cover;     /* ✅ keeps image nicely cropped */
}
.profile-photo img {
  width: 160px;
  height: 170px;
  border-radius: 50%;
  display: block;
  border: 3px solid #fff; /* white gap inside ring */
}

.hero h1 {
  font-size: 2.2em;
  margin-bottom: 10px;
  color: #222;
}

.hero h3 {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #555;
  font-weight: normal;
}

.hero p {
  font-size: 1em;
  line-height: 1.6;
  color: #444;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #4993e2;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #28a745;
}

.btn-secondary:hover {
  background: #1e7e34;
}

.btn-print {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  margin-left: 10px;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-print:hover {
  background: #5a6268;
}

/* ========== About Section ========== */
.about {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.about-container {
  max-width: 900px;
  margin: auto;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.about p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.about ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.about ul li {
  font-size: 1rem;
  margin: 8px 0;
  color: #444;
}

/* ========== Content Pages (About & Projects) ========== */
.content {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.content h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

/* ========== Expertise Grid ========== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.expertise-card {
  background: #f5f7fa;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1rem;
  color: #333;
  text-align: center;
}

/* ========== Projects Section ========== */
.projects {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.projects-container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #222;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 30px; /* ✅ extra space below cards */
}

.project-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #007bff;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
}

.projects-container .btn {
  margin-top: 20px; /* ✅ push button downward */
  display: inline-block;
}

/* ========== Resume Page ========== */
.resume-page {
  text-align: center;
  padding: 40px 20px;
}

.resume-page h2 {
  margin-bottom: 15px;
  font-size: 2rem;
  color: #222;
}

.resume-page p {
  margin-bottom: 25px;
  font-size: 1.1rem;
  color: #555;
}

.resume-viewer {
  max-width: 900px;
  margin: auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Resume Highlights */
.resume-highlights {
  background: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.resume-highlights h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.resume-highlights ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.resume-highlights ul li {
  font-size: 1rem;
  margin: 8px 0;
  color: #333;
}

.resume-highlights h3 {
  margin: 25px 0 15px;
  font-size: 1.4rem;
  color: #007bff;
}

/* ========== Contact Page ========== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form button {
  padding: 12px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.contact-form button:hover {
  background: #0056b3;
}

/* ========== Footer ========== */
footer {
  background: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}
