:root {
    --primary-bg: #1a73e8; /* Primary blue color */
    --card-bg: #ffffff; /* Background color for cards */
    --text-primary: #333333; /* Primary text color */
    --text-secondary: #666666; /* Secondary text color */
    --border-radius: 12px; /* Border radius for rounded corners */
    --python-color: #3776AB; /* Color specific to Python projects */
    --button-color: #1a73e8; /* Button background color */
    --button-hover: #1557b0; /* Button hover color */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: linear-gradient(144deg, #3416b6, #26291f, #3331f4, #512364, #a2a3a3); /* Gradient background */
    background-size: 300% 300%;
    animation: gradient-animation 20s ease infinite; /* Animation for gradient background */
    min-height: 100vh;
    padding: 2rem;
    color: var(--text-primary);
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile Card */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .profile-card img {
        width: 104px;
        height: 104px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
    }

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-status {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/* Social Accounts Card */
.social-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

    .social-link:hover {
        background-color: #f5f5f5;
    }

.social-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .social-icon img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

/* Projects Card */
.projects-card {
    grid-column: span 2;
}

.projects-title {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Project Item */
.project-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: #f8f9fa;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

    .project-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.project-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--python-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--button-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .project-link:hover {
        background-color: var(--button-hover);
    }




.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.875rem 1.75rem;
    background-color: #24292e; /* Button color */
    color: #fff; /* Text color */
    text-decoration: none; /* Remove underline */
    border-radius: 0.5rem; /* Rounded corners */
    font-weight: 500; /* Text weight */
    font-size: 1rem; /* Font size */
    transition: background-color 0.2s; /* Transition effect */
}

    .github-link:hover {
        background-color: #2f363d; /* Button hover color */
    }

/* Carousel Styles */
.project-detail,
.carousel {
    position: relative;
    width: 100%; /* Full width to fill the container */
    max-width: 600px;
    overflow: hidden;
    border: 2px solid #ccc; /* Border around carousel */
    border-radius: 10px;
    background-color: #fff;
    margin: 1rem auto; /* Center the carousel */
    align-items: center;
    justify-content: center;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%; /* Make sure it stretches to container height */
}

.carousel-image {
    min-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain; /* Maintain aspect ratio while filling container */
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    z-index: 1;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.carousel-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

    .projects-card {
        grid-column: span 1; /* Adjust card width on mobile */
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Single column for project items */
    }
}

.carousel-image {
    min-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}