@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #7cf03d;
    --secondary-color: #1f242d;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
    gap: 30px;
}

.navbar ul li {
    list-style: none;
}

.navbar ul li a {
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

/* Home Section */
.home {
    padding: 120px 0 80px;
    background-color: var(--secondary-color);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.home-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.home-info {
    flex: 1;
}

.home-info h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.typing-text {
    font-size: 32px;
    margin-bottom: 20px;
    height: 40px;
    overflow: hidden;
}

.typing-text span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 0.7px var(--primary-color);
}

.typing-text span::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    color: var(--primary-color);
    border-right: 2px solid var(--primary-color);
    overflow: hidden;
    animation: typing 6s steps(30) infinite;
}

@keyframes typing {
    0%, 90%, 100% {
        width: 0;
    }
    30%, 60% {
        width: 100%;
    }
}

.home-info p {
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #6ad82d;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about h2 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about p {
    margin-bottom: 20px;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.services h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
}

.service-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.service {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-10px);
}

.service i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background-color: var(--white);
}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-align: center;
}

.portfolio > p {
    text-align: center;
    margin-bottom: 50px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
}

.project h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project p {
    margin-bottom: 20px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 50px;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar ul {
        display: none;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .home-img {
        margin-top: 50px;
    }

    .service-container {
        flex-direction: column;
    }

    .service {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .home-info h1 {
        font-size: 36px;
    }

    .typing-text {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .img-box {
        width: 100px;
        height: 100px;
    }
}