@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    line-height: 1.4;
    font-weight: 300;
    font-family: "Roboto", sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #000000cb 0%, #000000dd 100%);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Wrap for smaller screens */
}

.navbar-logo {
    height: 40px;
    margin-right: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s, transform 0.3s, color 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: #3d9970;
}

.hero_section {
    background-image: url(./images/m3.JPG);
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text_container {
    color: white;
    text-align: center;
}

.lg_text {
    font-size: 72px;
    font-weight: 400;
}

.black_box {
    padding: 20px;
    background-color: #000;
    text-align: center;
}

.black_box h2 {
    font-size: 48px;
    font-weight: 300;
    color: white;
}

.black_box h2 span {
    font-size: 64px;
    font-weight: 400;
    transition: font-size 0.3s ease;
}

.black_box h2:hover {
    font-size: 64px;
}

.work {
    padding: 50px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white;
}

.image-container {
    padding-top: 10px;
}

.card {
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    box-shadow: 3px 5px 5px rgba(1, 1, 1, 0.1);
    text-align: center;
    margin: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 6px 10px 15px rgba(1, 1, 1, 0.2);
}

.card-content {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-content p {
    letter-spacing: 1.1px;
    margin: 0;
}

.card-content a {
    color: #3d9970;
    text-decoration: none;
    margin-top: 10px;
}

.card-content a:hover {
    text-decoration: underline;
}

.skills {
    padding: 50px 20px;
    background-color: #ffffff;
    text-align: center;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    margin: 20px;
    width: 200px;
}

.progress-bar {
    background-color: #ccc;
    border-radius: 5px;
    overflow: hidden;
    height: 10px;
}

.progress {
    background-color: #3d9970;
    height: 100%;
    transition: width 0.3s;
}

.bottom-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.contact-me, .about-me {
    margin: 10px;
    max-width: 100%;
    height: auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 5px 5px rgba(1, 1, 1, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 300px;
}

.contact-me {
    background-color: #3d9970;
    color: #ffffff;
}

.about-me {
    background-color: #85144b;
    color: #ffffff;
}

.contact-me h2, .about-me h2 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 1.7px;
}

.contact-me p, .about-me p {
    font-size: 1rem;
    padding: 10px 10px;
    font-weight: 300;
}

.contact-me a {
    text-decoration: none;
    color: #ffffff;
    text-shadow: 0 0 2px #ffffff;
}

.contact-me a:hover {
    text-shadow: 0 0 10px #ffffff;
}

.contact-me:hover, .about-me:hover {
    transform: scale(1.05);
    box-shadow: 6px 10px 15px rgba(1, 1, 1, 0.2);
}

footer {
    text-align: center;
    text-transform: uppercase;
    background-color: #000;
    padding: 20px;
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #ffffff;
}

footer:hover {
    text-shadow: 0 0 10px #ffffff;
}

.autoText {
    display: inline-block;
    min-width: 1px; /* Ensures cursor positioning */
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.typed-cursor {
    font-size: 5em;
    opacity: 1;
    animation: blink 0.7s infinite;
    color: #ffffff;
}

.contact-me form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.contact-me input, .contact-me textarea {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-me button {
    background-color: #ffffff;
    color: #3d9970;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-me button:hover {
    background-color: #3d9970;
    color: #ffffff;
}

/* Responsive styles */
@media (max-width: 768px) {
    .navbar-logo {
        height: 30px; /* Smaller logo for mobile */
    }

    .lg_text {
        font-size: 36px; /* Smaller hero text */
    }

    .black_box h2, .black_box h2 span {
        font-size: 36px; /* Smaller text */
    }

    .work, .skills, .bottom-section {
        padding: 20px 10px; /* Reduced padding */
    }

    .card {
        max-width: 90%; /* Adjust card width */
        margin: 10px; /* Reduced margin */
    }

    .contact-me, .about-me {
        flex: 1 1 100%; /* Full width on mobile */
    }

    .contact-me h2, .about-me h2 {
        font-size: 1.5rem; /* Smaller heading */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px 0;
    }

    .nav-link {
        margin: 0 5px; /* Smaller margins */
        font-size: 14px; /* Smaller font size */
    }

    .contact-me form {
        width: 90%; /* Wider form inputs */
    }

    .contact-me h2, .about-me h2 {
        font-size: 1.2rem; /* Further reduced heading size */
    }

    footer {
        font-size: 1rem; /* Smaller footer font size */
    }
}
