/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f9;
    scroll-behavior: smooth;
}

.comcard-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.comcard {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 500px;
    margin-top: 20px;
}

.comcard-img {
    border-radius: 50%;
    border: 3px solid #1c5ce7;
    padding: 5px;
    width: 180px;
    height: 180px;
    margin-right: 30px;
}

.comcard-content {
    text-align: left;
}

.comcard h3 {
    font-weight: bold;
    color: #333;
}

.comcard p {
    color: #666;
}

.comcard-social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comcard-social-links li {
    margin-bottom: 10px;
}

.comcard-social-links a {
    color: #1c5ce7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.comcard-social-links a:hover {
    color: #333;
}

.comcard-social-links i {
    margin-right: 8px;
}

/* Hero Section */
#hero {
    background: linear-gradient(-45deg, #1c5ce7, #333, #1e1e2f, #666);
    background-size: 400% 400%;
    color: #fff;
    text-align: center;
    padding: 100px 20px 50px;
    animation: moveGradient 8s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* New Hero Header */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    padding: 20px;
    border-radius: 10px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-header h1 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.hero-header nav ul {
    list-style: none;
    display: flex;
}

.hero-header nav ul li {
    margin-left: 20px;
}

.hero-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.hero-header nav ul li a:hover {
    color: #1c5ce7;
}

/* Responsive for Smaller Screens */
@media (max-width: 768px) {
    .hero-header {
        flex-direction: column;
        text-align: center;
    }

    .hero-header nav ul {
        flex-direction: column;
        padding: 10px;
    }

    .hero-header nav ul li {
        margin: 10px 0;
    }
}

#hero {
    background: linear-gradient(-55deg, #1c5ce7, #333, #1e1e2f, #666);
    background-size: 400% 400%;
    color: #fff;
    text-align: center;
    padding: 100px 20px 50px;
    animation: moveGradient 8s ease infinite;
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#hero h2 {
    color: #fff;
}

#hero .highlight {
    color: #1c5ce7;
}

#hero .btn {
    background: #1c5ce7;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    margin-top: 20px;
    display: inline-block;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#hero .btn:hover {
    background: #ffffff;
    color: #1c5ce7;
}

.hero-content p {
    margin-bottom: 20px;
}

/* Section Titles */
section h2 {
    text-align: center;
    margin: 20px;
    font-size: 2.5rem;
    color: #1e1e2f;
}

/* Portfolio Section */
#portfolio .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: auto;
    padding: 0 20px;
}

#portfolio .card {
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

#portfolio .card a,
#portfolio .card a:visited {
    color: black;
    text-decoration: none;
}

#portfolio .card:hover {
    transform: scale(1.05);
}

#portfolio .card img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.card p {
    text-align: justify;
    padding: 10px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0;
}

.btn {
    display: block;
    background-color: #1c5ce7;
    color: #fff !important;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
    margin: 20px auto;
}

.btn:hover {
    background-color: #ffffff;
    color: #1c5ce7 !important;
    border: 2px solid #1c5ce7;
}

/* Center the button */
.resume-button-container {
    display: flex;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically if needed */
    text-align: center;
    margin: 40px;
}

/* Resume Button */
.resume-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #4361e5, #556270);
    /* Gradient effect */
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.resume-button:hover {
    background: linear-gradient(45deg, #556270, #4361e5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Ripple Effect */
.resume-button::after {
    content: "";
    position: absolute;
    width: 300%;
    height: 300%;
    top: 50%;
    left: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: transform 0.5s ease-out;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.resume-button:active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Initial hidden state */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

/* When the section is visible */
.show {
    opacity: 1;
    transform: translateY(0);
}

.player {
    text-align: center;
    width: 300px;
    margin: 0 auto;
    /* Center the player horizontally */
}

.progress-bar {
    display: flex;
    align-items: center;
    width: 100%;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: black;
    position: relative;
}

.progress-line::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: -4px;
    left: 10%;
}

.time {
    font-size: 12px;
    margin: 5px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.controls button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.scroll-down-message {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    animation: fade-in-out 3s infinite;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Fade-in-out animation */
@keyframes fade-in-out {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {
    .comcard-container {
        flex-direction: column;
        align-items: center;
    }

    .comcard {
        flex-direction: column;
        text-align: center;
        min-width: 150%;
        padding: 15px;
        /* Adjust padding for smaller screens */
    }

    .comcard-img {
        margin: 0 auto 15px;
        /* Center the image and add bottom margin */
        width: 120px;
        /* Reduce image size */
        height: 120px;
    }

    .comcard-content {
        text-align: center;
        /* Center-align text on small screens */
    }

    .comcard-social-links ul {
        padding: 0;
    }

    .comcard-social-links li {
        margin-bottom: 10px;
    }

    .comcard-social-links a {
        font-size: 0.9rem;
        /* Adjust font size for better scaling */
    }

    .resume-button {
        font-size: 1rem;
        padding: 10px 20px;
    }
}