* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}
body {
  color: #ededed;
  background: #081b29;
  font-family: 'Poppins', sans-serif;
}
@media (max-width: 768px) {
  .home {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 100px 5% 20px !important;
    height: 100vh !important;
    justify-content: center;
  }

  .home-content h1 {
    font-size: 2rem !important;
  }

  .home-content h3 {
    font-size: 1.5rem !important;
  }

  .home-content p {
    font-size: 1rem !important;
  }

  .home-sci {
    justify-content: center !important;
  }

  .btn-box {
    margin-top: 20px !important;
  }
}

.home {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 70px 10% 0;
  /* background: linear-gradient(rgba(8, 27, 41, 0.95), rgba(8, 27, 41, 0.95)),
    url('https://www.transparenttextures.com/patterns/hexellence.png') center center / cover no-repeat;
  background-color: #081b29; */
  background: linear-gradient(to right, #081b29, #0f2a40);
  backdrop-filter: blur(2px);
  color: white;
}
.home-content {
  max-width: 600px;
}
.home-content h3 {
  font-size: 32px;
  font-weight: 700;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.7s;
}
.home-content h3:nth-of-type(2) {
  margin-bottom: 10px;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.7s;
}
.home-content h3 span {
  color: #14b8a6;
}
.home-content h1 {
  font-size: 45px;
  font-weight: 700;
  margin: -3px 0;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1s;
}
.home-content p {
  font-size: 20px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
}
.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid #14b8a6;
  border-radius: 50%;
  font-size: 20px;
  color: #14b8a6;
  text-decoration: none;
  transition: 0.5s ease;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: calc(0.2s * var(--i));
  margin: 30px 15px 30px 0;
}
.home-sci a:hover {
  background: #14b8a6;
  color: #081b29;
  box-shadow: 0 0 20px #14b8a6;
}
.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #14b8a6;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px #14b8a6, 0 0 25px #14b8a6;
}
.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.about-img img {
  padding-bottom: 20%;
  max-width: 630px;
  height: auto;
  width: 100%;
  border-radius: 8px;
}
.about-text h2 {
  font-size: 60px;
}
.about-text h2 span {
  color: #14b8a6;
}
.about-text h4 {
  font-size: 29px;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 15px 0 30px;
}
.about-text p {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}
#services {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}
.sub-title {
  text-align: center;
  font-size: 50px;
  padding-bottom: 50px;
  padding-top: 50px;
}
.sub-title span {
  color: #14b8a6;
}
.container {
  padding: 90px;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}
.services-list div {
  background-color: transparent;
  padding: 40px;
  font-size: 13px;
  font-weight: 13px;
  border-right: 10px;
  border-radius: 20px;
  transition: background 0.5s, transform 0.5s;
  box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
}
.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
}
.services-list div h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
}
.services-list div a {
  text-decoration: none;
  color: #000;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}
.read {
  display: inline-block;
  padding: 12px 28px;
  background: #14b8a6;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px #14b8a6, 0 0 25px #14b8a6;
}
.read:hover {
  background: #14b8a6;
  color: #081b29;
  box-shadow: 0 0 20px #14b8a6;
}
.services-list div:hover {
  transform: translateY(-10px);
}

/* About Section */
.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 2rem;
  padding: 50px 10%;
  background-color: #0b1120;
}

.about-img img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 238, 255, 0.5);
  background-color: #081b29;
  padding: 10px;
}

.about-text h2 {
  font-size: 60px;
}

.about-text h2 span {
  color: #14b8a6;
}

.about-text h4 {
  font-size: 29px;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 15px 0 30px;
}

.about-text p {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}
@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}
/* Header */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #050e1f;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #14b8a6;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
  color: #14b8a6;
}

/* Show full name by default */
.logo-short {
  display: none;
}
.logo-full {
  display: inline;
}

/* Mobile: show short name only */
@media (max-width: 768px) {
  .logo-short {
    display: inline;
  }
  .logo-full {
    display: none;
  }
}

.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  color: #ededed;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  transition: 0.3s;
}

.navbar a.active,
.navbar a:hover {
  color: #14b8a6;
}

.navbar a.active::after,
.navbar a:hover::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #14b8a6;
  left: 0;
  bottom: -4px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #14b8a6;
  cursor: pointer;
}

/* Mobile responsive */
/* Inside media query: Mobile styles */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 64px;
    right: 41px; /* was 4%, now a fixed value for consistency */
    background: #0b1120;
    flex-direction: column;
    width: 240px; /* slightly wider */
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.3);
    animation: slideIn 0.3s ease forwards;
  }
  .navbar a {
    padding: 10px 0;
    font-size: 1.1rem;
  }
  .navbar.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    /* margin-right: 20px; */
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* myskill */

.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  color: #1e40af;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #3b82f6;
  animation: floatIn 1s ease forwards;
}

.skill-item:hover {
  transform: scale(1.1);
  color: #1a3599;
}

.skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 50px;
  justify-content: center;
  padding: 0 20px;
}

.skills-badges span {
  background-color: #14b8a6; /* Your brand teal */
  color: #081b29; /* Dark text on teal */
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.2);
}

.skills-badges span:hover {
  background-color: #0d9488;
  transform: scale(1.05);
}
#skills {
  text-align: center;
}

@media (max-width: 600px) {
  .skills-badges {
    justify-content: flex-start;
  }
  .skill-item i {
    font-size: 32px;
  }
}

@keyframes floatIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* my-experience */
.experience {
  padding: 50px 10%;
}

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

.experience-card {
  background-color: transparent;
  padding: 30px 25px;
  border-radius: 20px;
  transition: 0.5s ease;
  animation: slideTop 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
  box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
  color: #ededed;
  position: relative;
}

.experience-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(0, 238, 255, 0.05);
  box-shadow: 0 0 25px #14b8a6;
}

.experience-card i {
  font-size: 50px;
  color: #14b8a6;
  margin-bottom: 20px;
}

.experience-card h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.experience-card h4 {
  font-size: 16px;
  color: #90cdf4;
  margin-bottom: 8px;
}

.experience-card .duration {
  font-size: 13px;
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 15px;
}

.exp-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exp-detail div {
  display: flex;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: #cbd5e1;
}

.exp-detail i {
  color: #14b8a6;
  margin-right: 10px;
  font-size: 20px;
  flex-shrink: 0;
}

/* Education */
.education-certifications {
  padding: 50px 10%;
}

.education-cert-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 40px;
}

.edu-card {
  background-color: transparent;
  padding: 30px 25px;
  border-radius: 20px;
  transition: 0.5s ease;
  animation: slideTop 1s ease forwards;
  animation-delay: calc(0.3s * var(--i));
  box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
  color: #ededed;
  position: relative;
}

.edu-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(0, 238, 255, 0.05);
  box-shadow: 0 0 25px #14b8a6;
}

.edu-card i {
  font-size: 50px;
  color: #14b8a6;
  margin-bottom: 20px;
}

.edu-card h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-card h4 {
  font-size: 15px;
  color: #90cdf4;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.cert-item {
  display: flex;
  align-items: baseline; /* Aligns text and icon more naturally */
  gap: 10px;
  font-size: 15px;
  color: #cbd5e1;
}

.cert-item i {
  color: #14b8a6;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px; /* Small nudge to fix alignment */
}

.cert-item span {
  line-height: 1.4;
}

/* Contact */

.contact-section {
  padding: 80px 10%;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #ededed;
  font-family: 'Segoe UI', sans-serif;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s ease-in-out;
}

.contact-left {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.contact-left h1 {
  font-size: 2.5rem;
  color: #14b8a6;
  margin-bottom: 10px;
}

.contact-left p {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.contact-icons {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.contact-icons a i {
  font-size: 30px;
  color: #14b8a6;
  transition: 0.3s ease;
}

.contact-icons a:hover i {
  transform: scale(1.2);
  color: #00eaff;
}

.contact-card {
  flex: 1;
  min-width: 280px;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 25px;
  animation: slideUp 1s ease forwards;
}

.contact-info {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: #cbd5e1;
}

.contact-info i {
  font-size: 24px;
  color: #14b8a6;
}

.contact-info a {
  text-decoration: none;
  color: #ededed;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #14b8a6;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
  }

  .contact-icons {
    justify-content: center;
  }

  .contact-info {
    justify-content: center;
  }
}

/* Project section */
.projects {
  padding: 50px 10%;
  background-color: #0b1120;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  color: #ededed;
  box-shadow: 1px 1px 20px #012290f7, 1px 1px 30px #0053b8f7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #14b8a6;
}

.project-card h3 {
  margin-bottom: 10px;
  color: #14b8a6;
}

.project-card p {
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.6;
  color: #cbd5e1;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: #14b8a6;
  font-weight: 600;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}
.project-feature {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  margin: 10px 0;
  border-left: 4px solid #14b8a6;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-title {
  font-weight: 600;
  color: #14b8a6;
  display: block;
  margin-bottom: 4px;
}
.feature-description {
  color: #000000;
}
/* Modal project */
/* Modal base */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding: 1rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal content */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding: 1rem;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal content box */
.modal-content {
  background-color: #ffffff;
  color: #000000;
  margin: 5% auto;
  padding: 1.5rem;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Header with close button aligned right */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Close button */
.close {
  font-size: 1.8rem;
  cursor: pointer;
  color: #000;
}

/* Body content */
.modal-body {
  margin-top: 1rem;
  line-height: 1.6;
}

.project-feature {
  margin: 0.5rem 0;
}

.see-more-btn {
  margin-top: 1rem;
  background-color: #007bff;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
}

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

.project-links {
  margin-top: 8px;
  font-size: 0.9em;
}
.project-links a {
  color: #007bff;
  text-decoration: none;
}
.project-links a:hover {
  text-decoration: underline;
}
