:root {
    /* Updated aesthetic color palette */
    --primary-color: #fdf6f0; /* Soft beige for a calming background */
    --secondary-color: #2a2a2a; /* Dark gray for strong contrast */
    --accent-color: #ff7b54; /* Warm coral for vibrant highlights */
    --highlight-color: #ffbe86; /* Light peach for accents */
    --text-color: #2a2a2a; /* Consistent text color */
    --background-gradient: linear-gradient(135deg, #fdf6f0, #f5e8dc);
}

body {
    font-family: 'Poppins', sans-serif; /* Modern, clean font */
    background: var(--background-gradient);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

header {
    text-align: center;
    padding: 50px 0;
    background: var(--background-gradient);
    color: var(--secondary-color);
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    animation: slideDown 1.2s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#profile {
    text-align: center;
    padding: 30px;
    background-color: var(--highlight-color);
    border-radius: 15px;
    margin: 20px auto;
    max-width: 80%;
    animation: bounceIn 1.8s ease-in-out;
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-30px); }
    60% { transform: translateY(-15px); }
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--accent-color);
    margin-bottom: 20px;
    box-shadow: 0 8px 15px rgba(255, 123, 84, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.05); /* Subtle scaling effect */
    box-shadow: 0 12px 20px rgba(255, 123, 84, 0.4), 0 6px 10px rgba(0, 0, 0, 0.2); /* More pronounced shadow on hover */
}

p{
    font-size: 1.2em;
    font-weight: bold;
    
}

@keyframes rotatePulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(360deg); }
    100% { transform: scale(1) rotate(720deg); }
}

h1, h2 {
    margin: 0;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-color);
    animation: fadeInText 1.5s ease-out;
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

.skill {
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    height: 15px;
    width: 60%;
    margin: 10px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.progress {
    background: var(--accent-color);
    height: 100%;
    width: 0;
    animation: fillBar 2.5s forwards ease-in-out;
}

@keyframes fillBar {
    to { width: var(--progress-width); }
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 20px;
    width: 100%;
    height: auto;
    animation: zoomIn 1.5s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.flip-card {
    flex: 1 1 21%;
    max-width: 180px;
    height: 200px;
    position: relative;
    margin: 10px;
    background-color: transparent;
    perspective: 1000px;
    transition: transform 0.6s, top 0.6s, left 0.6s;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(255, 123, 84, 0.5);
    animation: floating 5s ease-in-out infinite;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flip-card-back {
    transform: rotateY(180deg);
    background-color: var(--highlight-color);
    white-space: normal;
    overflow: hidden;
}

footer {
    background: var(--accent-color);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    animation: fadeIn 1.5s ease-in-out;
}

footer h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-details {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

#contact-me a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
}

#contact-me a:hover {
    color: var(--highlight-color);
    transform: translateY(-3px);
}

#contact-me i {
    font-size: 1.5em;
}

footer p {
    margin-top: 20px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
    .flip-card {
        flex: 1 1 30%;
    }
    header {
        font-size: 2.5em;
    }
    .profile-pic {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .flip-card {
        flex: 1 1 45%;
    }
    header {
        font-size: 2em;
    }
    .profile-pic {
        width: 110px;
        height: 110px;
    }
    #profile {
        padding: 20px;
        max-width: 90%;
    }
    footer {
        padding: 30px 15px;
        font-size: 1em;
    }
    footer h2 {
        font-size: 1.5em;
    }
    .contact-details {
        padding: 15px;
    }
    .social-links {
        gap: 10px;
    }
    #contact-me a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    #contact-me i {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .flip-card {
        flex: 1 1 100%;
    }
    header {
        font-size: 1.5em;
    }
    .profile-pic {
        width: 90px;
        height: 90px;
    }
    #profile {
        padding: 15px;
        max-width: 95%;
    }
    p {
        font-size: 1em;
    }
    h1, h2 {
        font-size: 1.5em;
    }
    footer {
        padding: 20px 10px;
        font-size: 0.9em;
    }
    footer h2 {
        font-size: 1.2em;
    }
    .contact-details {
        padding: 10px;
    }
    .social-links {
        gap: 8px;
    }
    #contact-me a {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    #contact-me i {
        font-size: 1em;
    }
}

.flip-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
section {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 80%;
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}

section h2 {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

section ul {
    list-style-type: none;
    padding: 0;
}

section ul li {
    font-size: 1.2em;
    margin: 10px 0;
    color: var(--text-color);
    text-align: center;
    font-weight: bold;
}

section p {
    font-size: 1.2em;
    color: var(--text-color);
    text-align: center;
    margin: 10px 0;
}

#contact-me p {
    font-size: 1.2em;
    color: var(--text-color);
    text-align: center;
    margin: 10px 0;
}

#contact-me a {
    color: var(--highlight-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
   
}

#contact-me a:hover {
    color: var(--text-color);
}

#contact-me i {
    font-size: 1.2em; /* Adjust icon size */
}

strong {
    font-weight: bolder; /* Make the text more bold */
    font-size: 1em; /* Increase the text size */
}