* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: raleway, sans-serif;
}




a {
    color: white;
    text-decoration: none;

}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 10%;
    background: #2f3339;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.2s;
}

@keyframes show-content {
    100% {
        visibility: visible;
        opacity: 1;

    }

}


.nav-bar ul {
    display: flex;

}

.nav-bar ul li {
    list-style: none;
    display: inline-block;
    margin: 35px;

}

.nav-bar ul li a {
    font-size: 18px;
    font-weight: 500;
    transition: 0.5s;
}

.nav-bar ul li:hover a,
.nav-bar ul li.active a {
    color: #7cfe3d;
}

.nav-bar .logo {
    font-size: 30px;
    font-weight: 700;

}

.cont {
    padding: 5px 10px;
    background-color: #7cfe3d;
    border: 2px solid #7cfe3d;
    border-radius: 40px;
    font-size: 18px;

    color: #1f242d;
}

.cont:hover {
    background: transparent;
    color: #7cfe3d;
    box-shadow: none;
}


.home {
    justify-content: center;
    display: flex;
    align-items: center;
    padding-top: 10%;
    width: 100%;
    color: white;
    visibility: hidden;
    opacity: 0;
    animation: show-content 1.5s linear forwards;
    animation-delay: 1.6s;
    margin-top: 50px;
}


.home h1 {
    font-size: 48px;
    text-align: center;
    margin-top: 50px;
}


@keyframes display-text {

    25%,
    100% {
        display: none;
    }

}


.home h2 span::before {
    content: attr(data-text);
    position: absolute;
    border-right: 2px solid #7cfe3d;
    color: #7cfe3d;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {

    10%,
    100% {
        width: 0;
    }

    70%,
    90% {
        width: 100%;
    }


}

.home p {
    font-size: 25px;
    margin-bottom: 40px;
    padding: 10px 0 25px;
    text-align: center;
    border-bottom: #7cfe3d 2px solid;
}


.home-info .btn-sci {
    display: flex;
    align-items: center;

}



.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #7cfe3d;
    border: 2px solid #7cfe3d;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    color: #1f242d;

    cursor: pointer;
    transition: 0.5s;
    box-shadow: 0 0 10px #7cfe3d;
}

.btn:hover {
    background: transparent;
    color: #7cfe3d;
    box-shadow: none;
}

.bar-animation {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    z-index: -1;
}

.bar-animation .bar {
    width: 100%;
    height: 100%;
    animation: show-bar .5s ease-in-out forwards;
    background: #1f242d;
    transform: translateY(-100%);
    animation-delay: calc(var(--i) * .1s);

}

@keyframes show-bar {
    100% {
        transform: translateY(0%);
    }

}

.portfolio-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #2f3339;

}

.portfolio-item {
    padding-top: 40px;
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    margin-bottom: 70px;

}

header h2 {
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}


.portfolio-item::after {
    content: "View Work";
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    transition: bottom 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(71, 188, 55, 0.4);
}

.portfolio-item:hover::after {
    bottom: 0;
}



.footer {
    background: #1f242d;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Default (desktop) */
#menu-toggle {
  display: none;
}
.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* ============== Responsive ============== */
@media (max-width: 768px) {
  .nav-bar {
    padding: 10px 5%;
  }

  /* Show hamburger */
  .menu-icon {
    display: block;
    z-index: 110;
  }

  /* Hide nav links by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    right: 5%;
    width: 200px;
    background: #2f3339;
    flex-direction: column;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .nav-links li a {
    font-size: 16px;
    display: block;
    padding: 10px;
  }

  /* Toggle menu when checkbox is checked */
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }
}


/* ==================== Mobiles (<768px) ==================== */
@media (max-width: 767px) {
    /* Nav Bar → Hamburger */
    .nav-bar {
        padding: 10px 5%;
    }

    .nav-bar ul {
        display: none;
        position: absolute;
        top: 60px;
        right: 5%;
        background: #2f3339;
        flex-direction: column;
        width: 200px;
        border-radius: 8px;
        padding: 10px 0;
    }

    .nav-bar ul li {
        margin: 15px 0;
        text-align: center;
    }
	
	
	.cont{
		padding: 2px 4px;
		width: 150px;
		margin-left: 25px;
		
		
	}

    /* Add a toggle button */
    .menu-toggle {
        display: block;
        font-size: 28px;
        color: white;
        cursor: pointer;
    }





/* ==================== Large Screens (≥1200px) ==================== */
@media (min-width: 1200px) {
  .home h1 {
    font-size: 64px;
  }
  .home p {
    font-size: 28px;
  }
  .portfolio-gallery {
    gap: 40px;
  }
  .portfolio-item {
    width: 30%;
  }
}


/* ==================== Tablets (769px – 1199px) ==================== */
@media (max-width: 1199px) and (min-width: 769px) {
  .nav-bar {
    padding: 10px 6%;
  }

  .home h1 {
    font-size: 48px;
  }
  .home p {
    font-size: 20px;
  }

  .portfolio-gallery {
    gap: 25px;
  }
  .portfolio-item {
    width: 45%;
    height: 300px;
  }
}


/* ==================== Mobiles (≤768px) ==================== */
@media (max-width: 768px) {
  .nav-bar {
    padding: 10px 5%;
  }

  /* Show hamburger */
  .menu-icon {
    display: block;
    z-index: 110;
  }

  /* Hide nav links by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 5%;
    width: 220px;
    background: #2f3339;
    flex-direction: column;
    border-radius: 8px;
    padding: 15px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
  }

  .nav-links li {
    margin: 12px 0;
    text-align: center;
  }

  .nav-links li a {
    font-size: 16px;
    display: block;
    padding: 10px;
  }

  /* Toggle menu when checkbox is checked */
  #menu-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* Home Section */
  .home {
    padding: 80px 20px;
    margin-top: 80px;
    text-align: center;
    flex-direction: column;
  }

  .home h1 {
    font-size: 32px;
    margin-top: 20px;
  }

  .home p {
    font-size: 16px;
  }
	
	
	.portfolio-item img{
		margin-left: 20px;
	}
	

  /* Portfolio Grid → single column */
  .portfolio-gallery {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  .portfolio-item {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
	  
  }

  header h2 {
    font-size: 22px;
    padding: 0 10px;
  }

  .footer {
    font-size: 14px;
    padding: 15px;
  }
}

