/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #fefefe;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: linear-gradient(to right, #3a539b, #5c7cfa);


  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: gold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: gold;
}

/* Header Section */
header {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to right, #e0c3fc, #8ec5fc);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid gold;
  margin-bottom: 15px;
}

h1, h2, h3 {
  color: #4b0082;
  margin-bottom: 10px;
}

p {
  color: #444;
}

/* Section Styling */
section {
  max-width: 800px;
  margin: 0 auto 60px auto;
  background-color: white;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}

section:hover {
  transform: scale(1.01);
}

/* Skills */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0f8ff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,119,204,0.3);
  min-width: 130px;
}

.skill-item img {
  width: 30px;
  height: 30px;
}

/* Projects */
..projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px; /* space between cards */
  padding: 20px 0;
}

.project-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: 280px;           /* fixed width */
  min-height: 180px;      /* fixed minimum height */
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project-card h3 {
  color: #0077cc;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-card p {
  color: #555;
  flex-grow: 1;  /* take available space so all cards match height */
  margin-bottom: 15px;
}

.project-card a {
  color: #0077cc;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
}

.project-card a i {
  margin-right: 6px;
}


/* Footer */
footer {
  background: #1b1f3b;
  padding: 40px 20px;
  color: white;
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 0;
}

.social-links li a {
  text-decoration: none;
  color: gold;
  font-weight: 600;
}

.social-links li a:hover {
  color: #fff;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.card {
  background-color: white;
  width: 300px;
  min-height: 200px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card h3 {
  font-size: 1.5rem;
  color: #0d47a1;
  margin-bottom: 10px;
}

.card p {
  font-size: 1rem;
  color: #333;
  flex-grow: 1;
}

.projects-container {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping */
  gap: 20px;
  overflow-x: auto; /* Horizontal scroll if needed */
  padding: 20px 0;
}

.project-card {
  flex: 0 0 300px; /* Fixed width card */
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 180px;
}
