/* ========== BASE STYLES ========== */
body {
  margin: 0;
  padding: 0;
  background-color: white;
  color: black;
  font-family: 'Poppins', sans-serif;
}

/* ========== NAVBAR ========== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #007acc, #00bfff);
  padding: 12px 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 999;
}
.logo img {
  height: 60px; 
  width: auto;
  border-radius: 12px;
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.05);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px; /* Updated: 100 instead of 60 */
  background: linear-gradient(to right, #fdfbfb, #ebedee);
  min-height: 100vh;
}
.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: auto;
  animation: fadeIn 1.2s ease-in;
}
.hero-text {
  flex: 1;
  text-align: left;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: black;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-text span {
  color: #007acc;
  font-weight: bold;
}
.hero-text .tagline {
  font-size: 20px;
  font-style: italic;
  color: #444;
  margin: 10px 0;
}
.hero-text p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
}
.cta-button {
  display: inline-block;
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #007acc;
  color: white;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.cta-button:hover {
  background-color: #005f99;
  transform: scale(1.05);
}
.hero-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideIn 1.5s ease-in-out;
}
.hero-img img {
  width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}
.hero-img img:hover {
  transform: scale(1.05);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.about h2 {
  font-size: 38px; /* Increased from 32px */
  margin-bottom: 25px;
  color: #007acc;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.circular-photo img {
  width: 200px; /* Slightly larger */
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #007acc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 750px;
  font-size: 18px; /* Increased from 16px */
  line-height: 1.8; /* Increased line height for readability */
  text-align: left;
}

.about-text h3 {
  font-size: 24px; /* Increased from 20px */
  color: #333;
  margin-top: 25px;
}


.skills-bars {
  margin-top: 15px;
}

.skill {
  margin-bottom: 10px;
}

.skill span {
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 4px;
  color: #004080;
}

.bar {
  width: 100%;
  background-color: #ffffff;
  border: 1.5px solid #007BFF;
  border-radius: 12px;
  height: 14px;
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 12px;
  background-color: #007BFF;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
  line-height: 14px; /* vertically centers the text */
  transition: width 0.8s ease-in-out;
}

/* Skill widths */
.fill.html { width: 95%; }
.fill.css { width: 90%; }
.fill.javascript { width: 80%; }
.fill.java { width: 70%; }
.fill.responsive { width: 85%; }

.resume-button a {
  display: inline-block;
  background-color: #00bfff;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  margin-top: 25px;
  border-radius: 30px;
  font-size: 17px;
  transition: 0.3s;
}

.resume-button a:hover {
  background-color: #009acd;
}

.social-links a {
  display: inline-block;
  margin-right: 15px;
  font-size: 18px;
  color: #000;
  text-decoration: none;
}

.social-links a i {
  margin-right: 8px;
  color: #007acc; /* or your theme color */
}


/* ========== PROJECTS SECTION ========== */
/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 60px 20px;
  background-color: #ffffff;
  text-align: center;
}

.projects h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #007acc;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.project-card {
  background-color: #f3f9ff;
  border: 2px solid #e0f0ff;
  border-radius: 15px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 24px;
  color: #007acc;
  margin-bottom: 15px;
}

.project-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.project-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #00bfff;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.project-link:hover {
  background-color: #009acd;
}


/* ========== CERTIFICATES SECTION ========== */
.certificates {
  padding: 40px;
  background-color: #f9f9f9;
  text-align: center;
}
.certificate-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.certificate-images img {
  width: 300px;
  max-width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.certificate-images img:hover {
  transform: scale(1.05);
}

/* ========== CONTACT SECTION ========== */
.contact {
  background-color: #f7f9fc;
  padding: 60px 20px;
  text-align: center;
  border-top: 2px solid #e0e0e0;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #007acc;
}

.contact p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #333;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007acc;
}

.submit-btn {
  background-color: #007acc;
  color: white;
  padding: 12px 25px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #005f99;
}

.success-msg {
  margin-top: 15px;
  color: green;
  font-weight: 500;
}


/* ========== FOOTER ========== */
footer {
  background-color: #f5f5f5;
  color: black;
  text-align: center;
  padding: 1rem;
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
  0% {
    transform: translateX(50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-content, .circular-layout {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    padding: 0 10px;
  }
}
