@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #0e0e0e;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #0073b1;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #0073b1;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Banner */
.banner {
  width: 100%;
  background: linear-gradient(to right, #000, #1a1a1a);
  text-align: center;
  padding: 35px 20px 50px;
  position: relative;
  scroll-margin-top: 60px; /* Add offset for fixed navbar */
}

.banner h1 {
  font-size: 2.4rem;
  letter-spacing: 3px;
  margin-bottom: 6px;
  font-weight: 700;
}

.banner p {
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  color: #ccc;
}

.logo {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 1.6rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
}

/* Profile Section */
.profile {
  background: #fff;
  color: #111;
  width: 90%;
  max-width: 850px;
  margin-top: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: left;
  scroll-margin-top: 80px; /* Add offset for fixed navbar */
}

.profile img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px;
  border: 4px solid #000;
}

.profile-info {
  flex: 1;
  min-width: 250px;
}

.profile-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-info span {
  color: #555;
  font-size: 1rem;
  margin-left: 8px;
}

.profile-info p {
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.location {
  margin-top: 12px;
  color: #555;
  font-size: 0.95rem;
}

.contact {
  margin-top: 4px;
}

.contact a {
  color: #0073b1;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.contact a:hover {
  text-decoration: underline;
}

/* White Box Container */
.white-box {
  background: #fff;
  color: #111;
  width: 95%;
  max-width: 1200px;
  margin: 30px auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  padding: 40px;
  scroll-margin-top: 80px; /* Add offset for fixed navbar */
}

/* Experience Section */
.experience-item {
  padding: 25px;
  background: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 25px;
  border-left: 4px solid #0073b1;
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateX(10px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.experience-item:last-child {
  margin-bottom: 0;
}

.exp-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.exp-company {
  color: #0073b1;
  font-weight: 600;
  font-size: 1.1rem;
}

.exp-duration {
  color: #666;
  font-size: 0.95rem;
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.exp-location {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.exp-details {
  margin-top: 15px;
}

.exp-details p {
  color: #444;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.exp-details p::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #0073b1;
}

.exp-skills {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-skill-tag {
  background: #e8f4ff;
  color: #0073b1;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.skill-category {
  margin-bottom: 40px;
}

.skill-category:last-child {
  margin-bottom: 0;
}

.skill-category h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
}

.skill-category h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 20px;
  background: #0073b1;
  margin-right: 12px;
  border-radius: 3px;
}

.skill-item {
  background: #f8f8f8;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #444;
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid #eee;
}

.skill-item:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-color: #0073b1;
}

.section-title {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: #0073b1;
  border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }
  
  .nav-logo {
    font-size: 1.2rem;
  }

  .profile, .white-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .profile img {
    margin: 0 0 20px 0;
  }

  .profile-info h2 {
    font-size: 1.7rem;
  }

  .banner h1 {
    font-size: 2rem;
  }
}