@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4CAF50;
    --secondary-color: #FFC107;
    --dark-color: #212121;
    --light-color: #FFFFFF;
    --text-color: #616161;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-logo img {
    width: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/iqis.jpg') no-repeat center center/cover;
    color: var(--light-color);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- Sections --- */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
}

.section-title h3 {
    font-size: 1.2rem;
    color: var(--text-color);
}

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-color);
    line-height: 1.8;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* --- Services Section --- */
.services-section {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Team Section --- */
.team-section {
    background-color: #f9f9f9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--primary-color);
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

/* --- Contact Section --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-form button {
    width: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--light-color);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 45px;
}

.footer-about p {
    color: #ccc;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links a,
.footer-contact li {
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-social {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-social a {
    color: var(--light-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 1rem;
}

/* --- Animations --- */
.scrollwatch {
    height: 5px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    width: 100%;
    scale: 0 1;
    animation: scroll-watcher linear;
    animation-timeline: scroll();
    transform-origin: left;
}

@keyframes scroll-watcher {
    to { scale: 1 1; }
}

.fadeinleft{
    animation: fade-in-left linear;
    animation-timeline: view();
}

@keyframes fade-in-left{
    0% {opacity: 0; transform: translateX(50px);}
    35% {opacity: 1; transform: translateX(0);}
    75% {opacity: 1; transform: translateX(0);}
    100% {opacity: 0; transform: translateX(50px);}
}

.fadeinright{
    animation: fade-in-right linear;
    animation-timeline: view();
}

@keyframes fade-in-right{
    0% {opacity: 0; transform: translateX(-50px);}
    35% {opacity: 1; transform: translateX(0);}
    75% {opacity: 1; transform: translateX(0);}
    100% {opacity: 0; transform: translateX(-50px);}
}

.fadeintop{
    animation: fade-in-top linear;
    animation-timeline: view();
}

@keyframes fade-in-top{
    0% {opacity: 0; transform: translateY(-50px);}
    35% {opacity: 1; transform: translateY(0);}
    75% {opacity: 1; transform: translateY(0);}
    100% {opacity: 0; transform: translateY(-50px);}
}

.fadeindown{
    animation: fade-in-down linear;
    animation-timeline: view();
}

@keyframes fade-in-down{
    0% {opacity: 0; transform: translateY(50px);}
    35% {opacity: 1; transform: translateY(0);}
    75% {opacity: 1; transform: translateY(0);}
    100% {opacity: 0; transform: translateY(50px);}
}

.fadeinsizeup{
    animation: fade-in linear;
    animation-timeline: view();
}

@keyframes fade-in{
    0% {scale: .8; opacity: 0;}
    35% {scale: 1; opacity: 1;}
    75% {scale: 1; opacity: 1;}
    100% {scale: .8; opacity: 0;}
}

/* --- Responsive --- */


@media (max-width: 992px) {

.about-content {
        grid-template-columns: 1fr;
}
}

/* modal project */
.modproj1,
.modproj2,
.modproj3 {
  display: none;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  -webkit-animation-name: modalfadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: modalfadeIn;
  animation-duration: 0.4s
}

.modprojcont1,
.modprojcont2,
.modprojcont3 {
  position: fixed;
  top: 40%;
  background-color: #fefefe;
  width: 30%;
  height: auto;
}

.close1,
.close2,
.close3 {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modhead {
  padding: 2px 16px;
  background-color: #4CAF50;
  color: white;
}

.modbody {
    padding: 2px 16px;
}

.modfoot {
  padding: 2px 16px;
  background-color: #4CAF50;
  color: white;
  bottom: 0;
}

@-webkit-keyframes modalfadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes modalfadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}
/* modal project */

/* modal profile  */
.modprof1,
.modprof2,
.modprof3,
.modprof4,
.modprof5,
.modprof6 {
  display: none;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
  -webkit-animation-name: modalfadeIn;
  -webkit-animation-duration: 0.4s;
  animation-name: modalfadeIn;
  animation-duration: 0.4s
}

.modprofcont1,
.modprofcont2,
.modprofcont3,
.modprofcont4,
.modprofcont5,
.modprofcont6 {
  position: fixed;
  top: 40%;
  background-color: #fefefe;
  width: 50%;
  height: 30%;
  border-radius: 15px 15px 15px 15px;
  border-top: #00FF15 1px solid;
  border-bottom: #00FF15 1px solid;
}

.closeprof1,
.closeprof2,
.closeprof3,
.closeprof4,
.closeprof5,
.closeprof6 {
  color: white;
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

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

.modheadprof {
  padding: 2px 16px;
  height: 30%;
  background-color: #4CAF50;
  color: white;
  display: flex;
  justify-content: space-between;
  border-radius: 15px 15px 0 0;
  border-bottom: #00FF15 1px solid;
}

.modbodyprof {
    padding: 2px 16px;
}

.modfootprof {
  padding: 2px 16px;
  background-color: #4CAF50;
  color: white;
  position: absolute;
  width: 100%;
  bottom: 0;
  border-radius: 0 0 15px 15px;
  border-top: #00FF15 1px solid;
}

/* modal profile  */

@media (max-width: 768px) {

    .modprojcont1,
    .modprojcont2,
    .modprojcont3,
    .modprofcont1,
    .modprofcont2,
    .modprofcont3,
    .modprofcont4,
    .modprofcont5,
    .modprofcont6 {
        width: 60%;
    }


    .nav-links {
        position: absolute;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding-top: 25px;
        line-height: 10px;
        padding-bottom: 25px;
    }

    .nav-links li::before{
    content: '';
	position: absolute;
	left:0;
	bottom: 0;
	background-color: #00FF15;
	height: 2px;
	box-sizing: border-box;
	width: 100%;
}
    
.nav-links a:hover {
    border-top: solid var(--dark-color) 1px;
    border-bottom: solid var(--dark-color) 1px;
}
    
    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .services-grid,
    .portfolio-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
