/* General Body Styling */
body {
    font-family: Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header Styling */
header {
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: #ffffff;
    padding-top: 30px;
    min-height: 100px;
    border-bottom: #0e8c78 3px solid;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header h1 {
    margin: 0;
    font-size: 3em;
    font-weight: 700;
}

header p {
    font-size: 1.2em;
    font-weight: 300;
}

/* Main Content Sections */
main section {
    padding: 40px 0;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

main section:nth-child(even) {
    background-color: #e9f2f0;
}

main section:hover {
    transform: translateY(-5px);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Delay for sequential animation */
#about { animation-delay: 0.2s; }
#skills { animation-delay: 0.4s; }
#experience { animation-delay: 0.6s; }
#contact { animation-delay: 0.8s; }


main h2 {
    color: #1abc9c;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    position: relative;
}

main h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #1abc9c;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

main h3 {
    color: #16a085;
    margin-top: 25px;
    font-size: 1.5em;
}

/* List Styling */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #e9f2f0;
    margin-bottom: 10px;
    padding: 12px 20px;
    border-left: #1abc9c 5px solid;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

ul li:hover {
    background-color: #d7e7e4;
}

/* Link Styling */
a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #16a085;
    text-decoration: underline;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #ffffff;
    margin-top: 30px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-in-out 1s forwards; /* Delayed fadeIn */
    opacity: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 95%; /* Adjust container width for smaller screens */
        padding: 10px 0;
    }

    header {
        padding-top: 20px;
        min-height: 80px;
    }

    header h1 {
        font-size: 2.2em; /* Smaller font size for header title */
    }

    header p {
        font-size: 1em; /* Smaller font size for header description */
    }

    main section {
        padding: 20px 10px; /* Adjust section padding */
        margin-bottom: 15px;
    }

    main h2 {
        font-size: 1.8em; /* Smaller font size for section titles */
        margin-bottom: 20px;
    }

    main h3 {
        font-size: 1.2em; /* Smaller font size for sub-titles */
    }

    ul li {
        padding: 10px 15px; /* Adjust list item padding */
        border-left-width: 3px; /* Smaller border for list items */
    }

    footer {
        padding: 15px;
    }
}
