body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
}
/*////////////////////////////////////////////////*/
.body_video{
    position: fixed;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden !important ;
    z-index: 0000;
}
.body_video-vdo{
    width: 2300px;
    height: auto;
}
.body_layer{
    position: fixed;
    top: 0;
    left: 0%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.83);
    z-index: 2222;
}
.body_content{
    position: absolute;
    top: 0px;
    left: 0%;
    width: 100%;
    height: auto;
    z-index: 3333;
}

.body_wrapper{
    position: absolute;
    top: 0px;
    left: 0%;
    width: 100%;
    height: auto;
    z-index: 1111;
    background-color: rgba(0, 0, 0, 0.78);
}
/* Header */
.site-header {
  position: sticky;
  top: 0;
  background-color: #000;
  z-index: 3333;
  padding: 20px 20px 20px;
  border-bottom: 1px solid #0f0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  color: #ccc;
  font-weight: bold;
}

.nav-menu a {
  margin-left: 20px;
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
  color: #0f0;
}

/* Animated green bar under header */
.header-underline {
  position: relative;
  margin-top: 10px;
  height: 6px;
  background-color: #000;
  overflow: hidden;
}

.scroll-bar {
  position: absolute;
  top: 0;
  width: 70px;
  height: 10px;
  background-color: #0f0;
  animation: scrollBarAnim 1.5s ease-in-out infinite alternate;
}

@keyframes scrollBarAnim {
  0% {
    left: 0px;
  }
  100% {
    left: calc(100% - 70px);
  }
}

/* Section Title */
.section-title {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 0 10px;
  text-align: left;
}

.section-title h2 {
  font-size: 2.5rem;
  color: #ccc;
  margin: 0;
}

.underline {
  width: 60px;
  height: 5px;
  background-color: #0f0;
  border-radius: 4px;
  margin-top: 8px;
}

.modal-underline {
  margin: 8px auto 20px auto;
}

/* Services Section */
.services-section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 10px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.service-card {
  flex: 1 1 250px;
  background-color: green;
  padding: 30px 20px;
  border-radius: 8px;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-card .line {
  width: 40px;
  height: 4px;
  background-color: #fff;
  margin-bottom: 10px;
  border-radius: 2px;
}

.service-card p {
  margin: 0;
  font-weight: 500;
  font-size: 1.1rem;
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.project-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: scale(1.02);
}

.card-image img {
  width: 100%;
  height: 200px; /* Fixed height */
  object-fit: cover; /* Ensures aspect ratio is preserved and image is cropped to fit */
  display: block;
}


.card-content {
  padding: 20px;
}

.card-content h2 {
  margin-top: 0;
  color: #eee;
  font-size: 1.2rem;
}

.card-content p {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-content hr,
.modal-compatibility hr,
.modal-technologies hr {
  border: none;
  border-top: 1px solid #444;
  margin: 20px 0;
}

.compatibility h3 {
  color: #0f0;
  margin-bottom: 10px;
}

.compatibility .labels span {
  display: inline-block;
  margin-right: 15px;
  font-size: 1rem;
  color: #ccc;
}

.button-container {
  text-align: center;
  margin-bottom: 60px;
}

#loadMoreBtn {
  padding: 12px 24px;
  font-size: 1rem;
  background-color: #0f0;
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#loadMoreBtn:hover {
  background-color: #0c0;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0); /* start transparent */
  opacity: 0;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  overflow-x: hidden;
}

.modal.show {
  display: block;
  background-color: rgba(0,0,0,0.8); /* fade in background */
  opacity: 1;
}

.modal-content {
  background-color: #111;
  margin: 60px auto;
  padding: 20px;
  border: 1px solid #444;
  max-width: 900px;
  width: 95%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  opacity: 0;
  box-sizing: border-box;
  transform: scale(0.9);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: #222;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #0f0;
  border-radius: 4px;
}


.modal.show .modal-content {
  opacity: 1;
  transform: scale(1);
}


.modal-content img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.modal-button {
  padding: 10px 18px;
  background-color: #0f0;
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.modal-button:hover {
  background-color: #0c0;
}

.cancel-button {
  background-color: #444;
  color: #fff;
}

.cancel-button:hover {
  background-color: #666;
}

/* About Section */
.about-section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 10px;
  text-align: center;
}

.about-description {
  font-size: 1rem;
  color: #ccc;
  margin: 20px auto 40px auto;
  line-height: 1.8;
  max-width: 900px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
   body {
    padding: 20px 12px;
  }

  .skills-section,
  .about-section,
  .languages-section,
  .services-section,
  .certifications-section,
  .projects-section,
  .business-section {
    padding-left: 12px;
    padding-right: 12px;
  }

}

.codewars-icon{
  padding: 18px 15px 15px;
}

.stat-card {
  text-align: center;
  color: #fff;
}

.stat-card .icon {
  font-size: 2rem;
  color: #0f0;
  margin-bottom: 8px;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #0f0;
}

.stat-card p {
  margin: 4px 0 0;
  font-size: 1rem;
  color: #ccc;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 80px;
}

.hero-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid green;
}

.hero-name {
  font-size: 2.5rem;
  color: green;
  margin-bottom: 20px;
  margin-top: 10px;
}

.hero-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.icon-button {
  width: 50px;
  height: 50px;
  border: 2px solid #008000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: green;
  text-decoration: none;
  font-size: 1.4rem;
  transition: background-color 0.3s ease;
}

.icon-button:hover {
  background-color: green;
  color: black;
}

/* Business Section */
.business-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.business-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
}

.business-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.business-content {
  flex: 1;
  color: #ccc;
}

.business-subtitle {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}

.business-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
}

.business-button {
  padding: 12px 24px;
  background-color: #0f0;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.business-button:hover {
  background-color: #0c0;
}

/* Skills Section */
.skills-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.skills-container {
  margin-top: 30px;
}

.skill {
  margin-bottom: 25px;
}

.skill span {
  display: inline-block;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 5px;
}

.skill-percentage {
  float: right;
}

.skill-bar {
  background-color: #222;
  border-radius: 4px;
  overflow: hidden;
  height: 6px;
  width: 100%;
}

.bar {
  height: 6px;
  width: 0;
  background-color: #0f0;
  transition: width 1s ease-out;
}

/* Languages Section */
.languages-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.languages-container {
  margin-top: 30px;
}

.language {
  margin-bottom: 25px;
}

.language span {
  display: inline-block;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 5px;
}

.language-percentage {
  float: right;
}

.language-bar {
  background-color: #222;
  border-radius: 4px;
  overflow: hidden;
  height: 6px;
  width: 100%;
}

/* Burger icon */
.burger {
  display: none;
  font-size: 1.8rem;
  color: #0f0;
  cursor: pointer;
}

/* Mobile nav behavior */
@media (max-width: 820px) {
  .burger {
    display: block;
  }

 .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #000;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* consistent horizontal padding always */
    box-sizing: border-box;
    transition: max-height 0.4s ease, padding-top 0.3s ease;
  }

  .nav-menu.open {
    max-height: 400px;
    padding-top: 10px;
    padding-bottom: 10px;
  }


  .nav-menu a {
    display: block;
    padding: 10px 0;
    margin-left: 0;
    width: 100%;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

    .hero-icons {
    gap: 8px; /* reduce from default 20px */
    flex-wrap: wrap;
    justify-content: center;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .codewars-icon{
    padding: 16px 13px 13px;
  }
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 20px 10px;
  color: #888;
  font-size: 0.9rem;
}

.site-footer hr {
  border: none;
  border-top: 1px solid #444;
  margin-bottom: 20px;
}

.modal-compatibility {
  text-align: left;
  margin: 20px 0;
  color: #ccc;
}

.modal-compatibility h3 {
  margin: 0 0 8px;
  color: #0f0;
  font-size: 1.1rem;
}

.modal-compatibility p {
  margin: 0;
  font-size: 1rem;
}

.certifications-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}


.certifications-row {
  display: flex;
  gap: 20px;
  width: max-content;
  position: relative;
  z-index: 1;
  padding-left: 5px; /* optional safety buffer */
}


.cert-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
  transition: transform 0.3s ease;
  will-change: transform;
  transform-style: preserve-3d;
}


.cert-image:hover {
  transform: scale(1.05);
}

.certifications-container {
  padding: 10px 0;
  overflow: hidden; /* no horizontal scroll */
  display: flex;
  justify-content: center; /* center the grid inside */
}

.certifications-row {
  display: grid;
  grid-template-columns: repeat(5, 200px); /* fixed width certificates */
  gap: 20px;
  justify-content: center; /* center grid items */
}

.cert-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
  transition: transform 0.3s ease;
}

.cert-image:hover {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .certifications-row {
    grid-template-columns: repeat(3, 200px);
  }
}

@media (max-width: 700px) {
  .certifications-row {
    grid-template-columns: repeat(1, 200px);
  }
}



.github-button {
  background-color: transparent;
  border: 2px solid #0f0;
  color: #0f0;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.github-button:hover {
  background-color: #0f0;
  color: #000;
}

.modal-technologies {
  text-align: left;
  margin: 30px 0 20px;
}

.modal-technologies h3 {
  margin-bottom: 10px;
  color: #0f0;
  font-size: 1.1rem;
}

.tech-scroll-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.tech-scroll-row img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #222;
  padding: 6px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.tech-scroll-row img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

.tech-description {
  margin-top: 15px;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
  background-color: #1a1a1a;
  padding: 12px 16px;
  border-radius: 6px;
  display: none; /* initially hidden */
  border-left: 4px solid #0f0;
}
.project-filter-bar {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0 10px;
}

#filterBtn {
  padding: 8px 16px;
  border: 3px solid #0f0;
  color: #0f0;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: 600;
  background-color: #000;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  background: #111;
  border: 1px solid #0f0;
  border-radius: 8px;
}

.filter-options.hidden {
  display: none;
}

.filter-options span {
  padding: 6px 12px;
  background-color: #222;
  border-radius: 5px;
  color: #0f0;
  cursor: pointer;
  border: 1px solid #0f0;
  user-select: none;
  transition: background 0.2s;
}

.filter-options span:hover {
  background-color: #0f0;
  color: #000;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.active-filters span {
  padding: 6px 12px;
  background-color: #0f0;
  color: #000;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}
.button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}