/* About Section Styles */

/* Container for the cards */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    max-width: 1400px; /* Increase max-width */
    margin: 0px auto; /* Decrease top margin */
}

/* About Me Card */
.about-card {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    color: #fff;
    animation: flyIn 1s ease-out; /* Add animation */
}

.about-card h3 {
    font-size: 2rem; /* Larger for main heading */
    margin-bottom: 20px;
}

.about-card p {
    margin-bottom: 20px;
    font-size: 1.1rem; /* Slightly larger for body text */
}

.about-card a {
    color: #50b3f4; /* Teal color for links */
    text-decoration: none;
    font-weight: bold;
}

.about-card a:hover {
    text-decoration: underline;
}

/* Profile Picture Card */
.profile-pic-card {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    animation: flyInRight 1s ease-out; /* Add animation */
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #50b3f4;
}

/* Fun Facts Card */
.fun-facts-card {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px;
    border-radius: 10px;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    color: #fff;
    animation: flyInRight 1s ease-out; /* Add animation */
}

.fun-facts-card ul {
    list-style: disc;
    padding-left: 20px;
}

.fun-facts-card li {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* Hover effect for the cards */
.about-card:hover, .fun-facts-card:hover, .profile-pic-card:hover {
    transform: translateY(-5px); /* Slight hover lift */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Shadow effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr; /* Stack everything in one column */
        grid-template-rows: auto;
        max-width: 100%; /* Ensure it fits smaller screens */
        padding: 15px; /* Reduce padding for mobile */
    }

    .about-card {
        grid-column: 1 / 2; /* Make the "About Me" card full width */
        grid-row: 2 / 3; /* Position below the profile picture */
    }

    .profile-pic-card {
        grid-column: 1 / 2; /* Full width for the profile picture */
        grid-row: 1 / 2; /* Position on top */
    }

    .fun-facts-card {
        grid-column: 1 / 2; /* Full width for the "Fun Facts" */
        grid-row: 3 / 4; /* Position below the "About Me" card */
    }
}
