/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}
body {
  background-color: #f9fafe;
  color: #222;
  line-height: 1.6;
  font-size: 16px;
  scroll-behavior: smooth;
}
a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #004999;
}
ul {
  list-style-type: disc;
  margin-left: 20px;
}
h1, h2, h3, h4 {
  font-weight: 600;
  color: #111;
}
h1 { font-size: 2.5rem; margin-bottom: 0.3em; }
h2 { font-size: 2rem; border-bottom: 2px solid #0066cc; padding-bottom: 0.25em; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
p { color: #333; }
.container { max-width: 900px; margin: 0 auto; padding: .5rem .5rem; }

/* ===== NAVBAR ===== */
nav {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
nav li { list-style: none; }
nav a {
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
nav a:hover { color: #004999; }

/* ===== HEADER ===== */
/* ===== HEADER ===== */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
  background-color: #e6f0ff;
  border-radius: 8px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0,102,204,0.15);
}

header .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

header .profile-img-wrapper {
  width: 350px;
  height: 350px;
  border-radius: 30%;
  overflow: hidden;
  border: 4px solid #0066cc;
  margin-bottom: 1rem;
}

header .profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

header h1 {
  color: #003d99;
  margin-bottom: 0.2rem;
  font-size: 2.5rem;
}

header .role {
  font-weight: 500;
  font-size: 1.2rem;
  color: #004999;
  margin-bottom: 0.25rem;
}

header .skills {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #222;
  font-weight: 600;
}

header .contact-info {
  margin-top: .05rem;
  text-align: center;
  font-weight: 500;
}

header .contact-info p {
  margin: 0.3rem 0;
}

header .contact-info a {
  font-weight: 600;
  color: #0066cc;
  margin: 0 0.4rem;
}

header .social-links {
  margin-top: 0.5rem;
}

header .social-links a {
  font-weight: 600;
  margin: 0 0.5rem;
}

header .social-links a:hover {
  color: #004999;
}

header .quote {
  font-style: italic;
  color: #555;
  margin: 2rem auto 0;
  font-size: 1.2rem;
  max-width: 600px;
  text-align: center;
  padding: 1rem 1.5rem;
  background-color: #f0f4f8;
  border-left: 4px solid #0078d7;
  border-radius: 4px;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 700px) {
  header h1 { font-size: 2rem; }
  header .role { font-size: 1.1rem; }
  header .skills { font-size: 0.95rem; }
  header .profile-img-wrapper { width: 120px; height: 120px; }
}


/* ===== BUTTONS ===== */
.btn-download, .project-link, .linkedin-button {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-download, .project-link { background-color: #0066cc; color: #fff; }
.btn-download:hover, .project-link:hover { background-color: #004999; }
.linkedin-button { background-color: #0a66c2; color: #fff; margin-top: 1rem; }
.linkedin-button:hover { background-color: #004182; }

/* ===== SECTIONS ===== */
section { margin-bottom: 3.5rem; }

/* ===== PROJECTS ===== */

.project-item {
  box-sizing: border-box; /* ensures padding doesn't cause overflow */
  width: 100%;
}

.video-wrapper {
  width: 100%;
  max-width: 100%;   /* never exceed parent */
  overflow: hidden;  /* prevent horizontal scroll */
  padding: 0;        /* remove padding inside wrapper */
  margin: 1rem 0;    /* optional spacing above/below video */
}

.video-wrapper video {
  width: 100%;       /* scale to parent width */
  max-width: 100%;   /* never exceed container */
  height: auto;      /* maintain aspect ratio */
  display: block;
  margin: 0;
}


.project-item {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-item:hover { box-shadow: 0 6px 18px rgba(0,102,204,0.3); transform: translateY(-2px); }
.project-item h3 { color: #004999; margin-bottom: 0.5rem; }
.project-links { margin-top: 0.75rem; margin-bottom: 0.5rem;}
.project-image {
  margin-top: 1rem;
  max-width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.project-image:hover { transform: scale(1.05); }

/* ===== BLOG ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.blog-thumbnail { width: 100%; height: 180px; object-fit: cover; }
.blog-content { padding: 15px; }
.blog-content h3 { margin: 0 0 10px; font-size: 1.1rem; color: #004999; }
.blog-content p { margin: 0 0 10px; font-size: 0.95rem; color: #333; }
.blog-date { font-size: 0.85rem; color: #777; }

/* ===== EXPERIENCE ===== */
.job-item {
  background: #fff;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}
.job-item h3 a { color: #0066cc; font-weight: 700; }
.job-item h3 a:hover { color: #004999; }
.job-item ul { margin-top: 0.7rem; color: #444; }

/* ===== SKILLS ===== */
.skills-list { display: flex; flex-wrap: wrap; gap: 1.7rem 2.2rem; }
.skill-item {
  flex: 1 1 280px;
  background: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 9px rgba(0,0,0,0.05);
}
.skill-item h4 { margin-bottom: 0.7rem; color: #003d99; }
.skill-bar {
  background: #e0e7ff;
  border-radius: 20px;
  overflow: hidden;
  height: 12px;
  margin-bottom: 0.75rem;
  width: 100%;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 20px;
  animation-fill-mode: forwards;
}
.fill-react { background: #61dafb; --width:90%; animation: fillWidth 1.5s ease forwards; }
.fill-node { background: #6cc24a; --width:85%; animation: fillWidth 1.5s 0.2s ease forwards; }
.fill-csharp { background: #68217a; --width:85%; animation: fillWidth 1.5s 0.4s ease forwards; }
.fill-azure { background: #007fff; --width:80%; animation: fillWidth 1.5s 0.6s ease forwards; }
.fill-postman { background: #ff6c37; --width:75%; animation: fillWidth 1.5s 0.8s ease forwards; }
.skill-item p { font-size: 0.9rem; color: #555; }

/* ===== CERTIFICATIONS ===== */
.certifications-list { list-style: none; padding-left: 0; }
.certifications-list li {
  background: #fff;
  margin-bottom: 1.1rem;
  padding: 1rem 1.3rem;
  border-radius: 7px;
  box-shadow: 0 1px 7px rgba(0,0,0,0.07);
}
.certifications-list li a { font-weight: 600; color: #0066cc; font-size: 1.05rem; }
.certifications-list li a:hover { color: #004999; }
.certifications-list li p { font-size: 0.85rem; color: #555; margin-top: 0.3rem; }

/* ===== ABOUT ===== */
#about p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; line-height: 1.5; text-align: center; font-weight: 500; }

/* ===== CONTACT ===== */
#contact { text-align: center; margin-top: 4rem; }

/* ===== FOOTER ===== */
footer {
  background-color: #e6f0ff;
  text-align: center;
  padding: 1rem 0;
  font-weight: 600;
  color: #004999;
  border-top: 1.5px solid #0066cc;
  margin-top: 3rem;
}

/* ===== ANIMATION ===== */
@keyframes fillWidth { from { width: 0; } to { width: var(--width); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  nav ul { gap: 1rem; }
  .skills-list { flex-direction: column; }
  .skill-item { flex: 1 1 100%; }
}
