:root{
    --primary-color:blue;
    --secondary-color:rgb(76, 76, 241);
    --dark-color:black;
    --light-color:white;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body{
    font-family:'poppins',sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.navbar{
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px black;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links{
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a{
    text-decoration: none;
    color: var(--primary-color);
    position: relative;
}

.nav-links a::after{
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after{
    width: 100%;
}

.hero{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('bg.png');
    color: white;
    padding: 0 2rem;
    background-size: cover;
}

.hero-content h1{
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInup 1s ease;
}

.features{
    padding: 5rem 2rem;
    background-color: var(--light-color);
}

.features-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features-card{
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px black;
    transform: translateY();
    cursor: pointer;
}

.features-card:hover{
    transform: translateY(-5px);
}

.modal{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.modal-content{
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.contact-form{
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background:white ;
    border-radius: 10px;
    box-shadow: 0 4px 6px black;
}

.form-group{
    margin-bottom: 1.5rem;
}

input,textarea{
    width: 100%;
    padding: 0.8rem;
    border: 1px solid white;
    border-radius: 5px;
    font-family: inherit;
}

button{
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

@keyframes fadeInUp{
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal{
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.scroll-reveal.active{
    opacity: 1;
    transform: translateY(0);
}

.dark-mode{
    background-color: var(--dark-color);
    color: var(--light-color);
}

.dark-mode .navbar{
    background-color: black;
}

.dark-mode .features-card,.dark-mode .contact-form{
    background-color: black;
}

#backToTop{
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    border-radius: 50%;
    padding: 12px 16px;
}

.features-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.features-card img{
    transition: transform 0.3s ease;
}

.features-card:hover img{
    transform: scale(1.05);
}