/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
.navbar {
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-text .name {
  font-weight: 700;
  font-size: 1.15rem;
}

.profile-text .role {
  font-size: 0.85rem;
  color: #666;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #007bff;
}

.hire-btn {
  border: 1px solid #007bff;
  padding: 0.4rem 0.9rem;
  border-radius: 5px;
  color: #007bff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.hire-btn:hover {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Navigation Toggle Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  background: #f7f7f7;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #222;
}

.hero-text strong {
  color: #000;
}

.hero-text .accent {
  color: #007bff;
  font-weight: 700;
}

.hero-text p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  color: #555;
}

.btn.accent {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 2px 10px rgb(0 123 255 / 0.2);
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn.accent:hover {
  background-color: #0056b3;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.background-image {
  position: absolute;
  max-width: 450px;
  border-radius: 20px;
  filter: brightness(0.85);
  z-index: 0;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-height: 450px;
  object-fit: cover;
}

.profile-hero {
  position: relative;
  width: 220px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgb(30 30 30 / 0.2);
  z-index: 1;
  object-fit: cover;
}

/* Two-column Layout */
.two-column {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.about-left,
.about-right,
.education,
.experience {
  flex: 1 1 45%;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.05);
}

.about-left p,
.about-right ul {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.about-right ul {
  list-style: disc inside;
  padding-left: 0;
}

.about-right li {
  margin-bottom: 0.75rem;
}

h2 {
  font-weight: 900;
  margin-bottom: 1.5rem;
}

/* Timeline Cards */
.timeline-card {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.04);
}

.timeline-card h3 {
  font-weight: 700;
  margin-bottom: 10px;
}

/* Portfolio Section */
#portfolio h2 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  font-weight: 900;
  color: #222;
}

.filters {
  display: flex;
  gap: 15px;
  list-style: none;
  margin-bottom: 2rem;
  padding: 0;
  user-select: none;
}

.filters li {
  padding: 8px 18px;
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.filters li.active,
.filters li:hover {
  background-color: #007bff;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 25px;
}

.portfolio-item {
  background: #fff;
  padding: 1.4rem 1.2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 55px rgb(0 0 0 / 0.15);
}

.portfolio-item h3 {
  margin-bottom: 15px;
  font-weight: 700;
}

.portfolio-item p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}

/* FAQ Section */
#faq h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.accordion-item {
  background: #fff;
  border-radius: 15px;
  margin-bottom: 15px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.05);
  padding: 1.5rem 1.3rem;
}

.accordion-item h3 {
  cursor: pointer;
  font-weight: 700;
}

.accordion-item p {
  max-height: 0;
  overflow: hidden;
  line-height: 1.5;
  margin-top: 0.8rem;
  transition: max-height 0.5s ease;
}

.accordion-item p.open {
  max-height: 500px;
}

/* Stats Section */
#stats {
  margin-bottom: 4rem;
}

#stats .grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat-card {
  background: #fff;
  padding: 2.3rem 2.5rem;
  border-radius: 22px;
  box-shadow: 0 4px 32px rgba(40,60,120,0.11);
  text-align: center;
  min-width: 200px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s, transform 0.3s;
  margin-bottom: 1.5rem;
}

.stat-card:hover {
  box-shadow: 0 8px 40px rgba(30,80,180,0.16);
  transform: translateY(-6px) scale(1.04);
}

.stat-number {
  font-size: 2.6rem;
  font-weight: 900;
  color: #007bff;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-number span {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  color: #1e334a;
  margin-top: 0.15rem;
  letter-spacing: 0.5px;
}

.stat-label {
  font-size: 1.07rem;
  font-weight: 600;
  color: #22313f;
  margin-top: 0.35rem;

}

.counter {
  padding: 2rem 1.5rem;
  background: #fff;
  border-radius: 60px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.05);
  font-weight: 900;
  font-size: 1.5rem;
  text-align: center;
  color: #007bff;
}

/* Blog Section */
#blog h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: #222;
}

#blog .filters {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  user-select: none;
}

#blog .filters li {
  padding: 8px 18px;
  background-color: #fff;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 2px 14px rgb(0 0 0 / 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#blog .filters li.active,
#blog .filters li:hover {
  background-color: #007bff;
  color: white;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.blog-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.07);
  font-weight: 600;
  color: #222;
}

/* Contact Section */
#contact .container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

.contact-info {
  flex: 1 1 30%;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.contact-form {
  flex: 1 1 65%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 7px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 7px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background: #0056b3;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 1rem;
}

footer .social-links a {
  color: #ddd;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

footer .social-links a:hover {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .two-column {
    flex-direction: column;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-image {
    margin-top: 2rem;
  }
  
  nav ul.nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  
  nav ul.nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: auto;
  }
  
  .hamburger,
  .hamburger::before,
  .hamburger::after {
    background-color: #333;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  #stats .grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .counter {
    font-size: 1.2rem;
  }
  .btn.accent {
    width: 100%;
    padding: 1rem 0;
  }
  .hire-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}
.filters {
  display: flex;
  gap: 18px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filters li {
  background: white;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7rem 2rem;
  border: 2px solid #f0f3ff;
  box-shadow: 0 4px 18px rgba(100,120,200,0.09);
  color: #112e63;
  cursor: pointer;
  transition: background .21s, color .21s, border-color .21s;
}

.filters li.active,
.filters li:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 2.4rem;
}

.blog-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(100deg,#fafdff 60%, #e9f3ff 100%);
  border-radius: 18px;
  min-height: 84px;
  padding: 1.35rem 2rem;
  box-shadow: 0 8px 36px rgba(44,92,185,0.09);
  font-size: 1.14rem;
  font-weight: 700;
  color: #22313f;
  transition: box-shadow .3s, transform .3s;
  cursor: pointer;
  position: relative;
}

.blog-card i {
  font-size: 1.55rem;
  color: #007bff;
  background: #e5f1ff;
  border-radius: 50%;
  padding: 0.45em;
  min-width: 2.3em;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,123,255,0.07);
  transition: background .3s;
}

.blog-card:hover {
  box-shadow: 0 16px 48px rgba(44,92,185,0.14);
  transform: translateY(-5px) scale(1.03);
  background: linear-gradient(100deg,#e6f3ff 60%, #d1eaff 100%);
}

.blog-card:hover i {
  background: #b3d8ff;
  color: #0056b3;
}
.contact-form input,
.contact-form textarea {
  background: #f5fafe;
  border-radius: 13px;
  border: 1.5px solid #d2e6f9;
  margin-bottom: 1.3rem;
  padding: 1.05rem;
  font-size: 1.09rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(20,70,180,0.04);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 4px 18px rgba(0,123,255,0.08);
}

.contact-form button {
  background: linear-gradient(90deg,#337eff, #19c8fa);
  color: white;
  border: none;
  padding: 1rem 0;
  font-size: 1.12rem;
  border-radius: 13px;
  font-weight: 900;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 3px 16px rgba(70,110,230,0.10);
  transition: background .26s;
}

.contact-form button:hover {
  background: linear-gradient(90deg,#007bff, #0070bb);
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.blog-card {
  animation: fadeInUp 0.8s cubic-bezier(.5,1.5,.7,.9) both;
}
body {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}
#blog .blog-grid {
  margin-bottom: 2.5rem;
}

.blog-card {
  margin-bottom: 0 !important; /* remove bottom margin if it exists */
}

#blog + #contact {
  margin-top: 3.5rem;
}

#contact .contact-form {
  margin-top: 2.2rem;
}

#contact .contact-form input:first-of-type {
  margin-top: 1.2rem;
}

@media (min-width: 900px) {
  #blog .blog-grid {
    margin-bottom: 0;
  }
  #contact .container {
    align-items: flex-start;
  }
}
/* Ensure proper scaling on mobile devices */
@media (max-width: 460px) {
  /* Hero section adjustments */
  .hero-text h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
  }

  .hero-text p,
  .about-left p,
  .about-right ul {
    font-size: 1rem !important;
  }

  /* Navigation */
  .nav-links {
    display: none !important;
  }

  .nav-toggle {
    display: block !important;
  }

  /* Two-column layouts stack vertically */
  .two-column {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  /* Portfolio and blog grids single column */
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Buttons full width and accessible */
  .btn.accent,
  .hire-btn {
    width: 100% !important;
    font-size: 1rem !important;
    padding: 1rem 0 !important;
  }

  /* Contact form full width */
  .contact-form {
    flex-basis: 100% !important;
  }

  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
  }
}


