@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    background-color: black;
    overflow-x: hidden;
}

nav {
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.9);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: #0a7b33;
    text-shadow: 0 0 10px #0a7b33;
}

.hamburg,
.cancel {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    display: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links {
    display: flex;
}

.nav-container .links a {
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: #0a7b33;
    transition: 0.2s linear;
}

.nav-container .links a:hover::before {
    width: 100%;
}

.nav-container .links a:hover {
    color: #0a7b33;
}

.dropdown {
    z-index: 100;
    position: fixed;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a {
    display: flex;
    color: white;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover {
    background-color: #0a7b33;
}

section {
    width: 100%;
    min-height: 100vh;
    padding-top: 10vh;
}

.main-container {
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image {
    width: 500px;
    height: 80vh;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px #0a7b33;
}

.main-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-container .image:hover {
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
    0% { scale: 1; }
    50% { scale: 1.05; }
    100% { scale: 1; }
}

.main-container .content {
    color: white;
    width: 40%;
    min-height: 100px;
}

.content h1 {
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span {
    color: #0a7b33;
    text-shadow: 0 0 10px #0a7b33;
}

.content .typewriter {
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 600;
}

.content .typewriter-text {
    color: #0a7b33;
    text-shadow: 0 0 10px #0a7b33;
}

.content p {
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid #0a7b33;
    border-radius: 50%;
    color: #0a7b33;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover {
    scale: 1.3;
    color: black;
    background-color: #0a7b33;
    filter: drop-shadow(0 0 10px #0a7b33);
}

.content button {
    width: 50%;
    height: 6vh;
    margin: 30px;
    background-color: #0a7b33;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
    cursor: pointer;
}

.content button:hover {
    scale: 1.1;
    color: #0a7b33;
    border: 2px solid #0a7b33;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #0a7b33;
}

/* About Section */
.section {
    padding: 80px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
}

.about-container {
    width: 80%;
    max-width: 1200px;
}

.about-content {
    display: flex;
    gap: 50px;
    color: white;
}

.about-text h3 {
    color: #0a7b33;
    margin-bottom: 20px;
}

.about-info {
    margin-top: 30px;
}

.info-item {
    margin: 15px 0;
}

.info-item span {
    color: #0a7b33;
    font-weight: 600;
    margin-right: 10px;
}

/* Skills Section */
.skills-container {
    width: 80%;
    max-width: 1200px;
}

.skill-category {
    color: white;
    margin-bottom: 40px;
}

.skill-item {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: #0a7b33;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #0a7b33;
}

.service-card i {
    color: #0a7b33;
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Contact Section */
.contact-container {
    width: 80%;
    max-width: 1200px;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    color: white;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item i {
    color: #0a7b33;
    font-size: 2rem;
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #0a7b33;
    border-radius: 5px;
    color: white;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    background: #0a7b33;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    background: transparent;
    border: 1px solid #0a7b33;
    color: #0a7b33;
    box-shadow: 0 0 20px #0a7b33;
}

@media (max-width: 884px) {
    nav .logo {
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container {
        flex-direction: column;
        height: auto;
        padding: 50px 0;
    }

    .nav-container .links {
        display: none;
    }

    .hamburg,
    .cancel {
        display: block;
    }

    .main-container .content {
        width: 80%;
        text-align: center;
    }

    .social-links i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .main-container .image {
        width: 50%;
        height: 60%;
        margin-bottom: 30px;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .services-grid {
        padding: 0 20px;
    }

    .section {
        padding: 60px 20px;
    }
}

@media (max-width: 440px) {
    .main-container .image {
        width: 70%;
        height: auto;
        aspect-ratio: 1;
        margin-bottom: 30px;
    }

    .main-container .content {
        width: 90%;
    }

    .content button {
        width: 70%;
        margin: 20px auto;
    }

    .section-title {
        font-size: 2rem;
    }
}
/* ... existing code ... */

/* Projects Section */
.projects-container {
    width: 80%;
    max-width: 1200px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px #0a7b33;
}

.project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    color: white;
}

.project-content h3 {
    color: #0a7b33;
    margin-bottom: 10px;
}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.project-tags {
    margin-bottom: 15px;
}

.project-tags span {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(10, 123, 51, 0.2);
    color: #0a7b33;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 5px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s ease;
}

.project-links a:hover {
    color: #0a7b33;
}

.project-links i {
    margin-right: 5px;
}

@media (max-width: 884px) {
    .projects-grid {
        padding: 0 20px;
    }
}

#tsparticles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;            /* behind your content */
    pointer-events: none;  /* let clicks through to JS handler */
  }
  
/* —— Chatbot pin button —— */
.chatbot-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px; height: 50px;
    background: var(--accent, #ff4e50);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
  }
  
  /* —— Chatbot window —— */
  .chatbot-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    max-height: 400px;
    background: #fff;
    color: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
  }
  .chatbot-window.open {
    display: flex;
  }
  
  .chatbot-header {
    background: var(--accent, #ff4e50);
    color: #fff;
    padding: 0.5rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .chatbot-close {
    cursor: pointer;
  }
  
  .chatbot-body {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
    font-size: 0.9rem;
  }
  .chatbot-body .message {
    margin: 0.5rem 0;
  }
  .chatbot-body .user {
    text-align: right;
  }
  .chatbot-body .bot {
    text-align: left;
  }
  
  .chatbot-footer {
    display: flex;
    border-top: 1px solid #ddd;
  }
  #chat-input {
    flex: 1;
    border: none;
    padding: 0.5rem;
  }
  #chat-send {
    border: none;
    background: var(--accent, #ff4e50);
    color: #fff;
    padding: 0 1rem;
    cursor: pointer;
  }
  
  .project-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light background with transparency */
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    color: white;
    backdrop-filter: blur(5px);
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid green;
    padding: 10px;
}

.contact-form button {
    background-color: #138A36;
    color: white;
    padding: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}
