/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
}

.container {
    background-color: #2d2d2d;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
    width: 90%;
    max-width: 500px; /* Max width for larger screens */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Jiggle animation */
.jiggle {
    display: inline-block;
    animation: jiggle 1.5s infinite ease-in-out alternate;
}

@keyframes jiggle {
    0% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(3deg) translateX(1px); }
    50% { transform: rotate(-3deg) translateX(-1px); }
    75% { transform: rotate(2deg) translateX(1px); }
    100% { transform: rotate(-2deg) translateX(-1px); }
}

p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

/* Buttons */
.buttons {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping of buttons on smaller screens */
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%; /* Make buttons full width on mobile */
    max-width: 150px; /* Limit button width */
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.linkedin { background-color: #4c4c4c; }
.resume { background-color: #4c4c4c; }
.github { background-color: #4c4c4c; }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem; /* Reduce the font size for smaller screens */
    }

    .container {
        padding: 20px;
    }

    p {
        font-size: 1rem;
    }

    .buttons {
        flex-direction: column;
    }

    .btn {
        max-width: 90%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem; /* Further reduce font size for very small screens */
    }

    p {
        font-size: 0.9rem;
    }
}
