/* General Styling for the White Card */
#unique-about-card {
    background: linear-gradient(90deg, rgba(142, 93, 192, 0.7) 35%, rgba(184, 158, 88, 0.7) 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    margin: 0 auto 40px auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Add a gradient border to the top */
#unique-about-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(180deg, rgba(184, 158, 88, 0.7), rgba(142, 93, 192, 0.7), rgba(255, 255, 255, 0));
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    z-index: -1;
}

/* Add a similar gradient to the bottom */
#unique-about-card:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(0deg, rgba(184, 158, 88, 0.7), rgba(142, 93, 192, 0.7), rgba(255, 255, 255, 0));
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: -1;
}

/* Grid Styling */
#unique-about-card-grid {
    display: grid;
    grid-template-columns: 30% 70%;
    grid-gap: 20px;
    width: 100%;
}

/* Profile Image Section */
#unique-about-card-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 15px;
}

#unique-about-card-image img {
    width: auto;
    height: 275px !important;
    border-radius: 10px;
    border: 3px solid #d3d3d3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Right-Side Text Section with Adjusted Margin */
#grid-2 {
    margin-right: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Gradient Text for "Hi, I'm Smartin" */
#smartin-text {
    font-family: 'Playfair Display', serif;
    font-size: 45px;
    font-weight: 700;
    background: linear-gradient(135deg, #000000, #4d4d4d, #ffffff);
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: none;
}

/* After animation completion, set the final state */
#smartin-text.complete {
    color: black;
    background: none;
    -webkit-background-clip: unset;
}

/* Ensure responsiveness */
#smartin-text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Social Media Icons */
#unique-social-links-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

#unique-social-links {
    display: flex;
    gap: 15px;
}

#unique-social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 57px;
    height: 57px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

#unique-social-links a img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* Hover Effect for Social Media Icons */
#unique-social-links a:hover {
    transform: translateY(-5px);
}

/* What I Do Section */
#what-i-do-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: #2a2a2a;
}

#what-i-do-container {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

/* Adding Icon Styling for Cards */
.card-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Adjusting Card Titles to 18px */
.what-i-do-box h4 {
    font-size: 18px;
    font-weight: bold;
    color: #2a2a2a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Cards Styling with 3D Hover Effect */
.what-i-do-box {
    background: linear-gradient(135deg, #d4e6f1, #b2d3e5);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: all 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    opacity: 1;
    margin-bottom: 10px;
}

/* Ensure the list is hidden inside the cards initially */
.what-i-do-box ul {
    display: none;
}

/* Show the list only when the card is expanded */
.what-i-do-box.expanded ul {
    display: block;
}

/* Hover Effect */
.what-i-do-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #8e5cbf, #ffffff);
}

/* Active (Pressed) State */
.what-i-do-box.expanded {
    background: linear-gradient(135deg, #f06a6a, #ffffff);
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 1;
    position: fixed;
    top: 10%;
    left: 32.5%;
    width: 35vw;
    height: auto;
    max-height: 70vh;
    z-index: 1000;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

/* Icon for Expanded View (100px size for large icon on left) */
.what-i-do-box.expanded .card-icon {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

/* Overlay for Pop-out Expanded Cards */
#card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    opacity: 0;
    z-index: 900;
    display: none;
    transition: opacity 0.3s ease;
}

/* Contact Form Section */
#unique-contact-form-wrapper {
    background: linear-gradient(135deg, #e6e0f8, #fff);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 75%;
    margin: 40px auto 0 auto;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #unique-about-card {
        max-width: 95%;
        padding: 10px;
    }

    #unique-about-card-grid {
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }

    #unique-about-card-text {
        font-size: 14px;
        padding-right: 10px;
        padding-left: 10px;
    }

    #unique-about-card-image img {
        width: 100%;
        max-width: 250px;
        height: auto;
        margin-bottom: 15px;
    }

    #grid-2 {
        margin-right: 0px;
        padding: 15px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 25px;
    }

    #smartin-text {
        font-size: 32px;
    }

    #unique-social-links-wrapper {
        margin-top: 15px;
    }

    #unique-social-links a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 57px;
        height: 57px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
        background-color: #fff;
        border-radius: 50%;
    }

    #i-love-icon img {
        width: 80px;
        height: auto;
    }

    /* Reduce padding for "What I Do" section */
    .what-i-do-box {
        padding: 10px;
        font-size: 14px;
        width: 85%; /* Adjusted width */
        margin: 0 auto 10px auto; /* Center the cards */
    }

    /* Specific margin for the last card (Fin & EdTech Apps) */
    .what-i-do-box:last-child {
        margin-bottom: 15px;
    }

    /* Vertical expansion for mobile */
    .what-i-do-box.expanded {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-height: none;
        box-shadow: none;
        padding: 15px;
        z-index: 1;
        opacity: 1;
        display: block;
    }

    .what-i-do-box:hover {
        transform: none;
        box-shadow: none;
    }

    /* Remove overlay for mobile */
    #card-overlay {
        display: none;
    }

    /* Adjust Get in Touch section */
    #unique-contact-form-wrapper {
        max-width: 95%;
        margin: 20px auto;
        padding: 20px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
        background: linear-gradient(135deg, #e6e0f8, #fff);
    }
}

/* Ensure padding-right for the text section */
#unique-about-card-text {
    padding-right: 20px;
    padding-left: 20px;
    text-align: justify;
    font-size: 16px;
    line-height: 1.6;
    position: relative;
}

#unique-about-card-text:after {
    content: "";
    display: block;
    background: url('/images/ending.png') no-repeat center center;
    background-size: contain;
    width: 100%;
    height: 60px;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Adjust the grid for images and text on mobile */
@media (max-width: 768px) {
    #unique-about-card-grid {
        display: block;
    }

    #unique-about-card-image {
        margin-bottom: 20px;
    }

    #what-i-do-container {
        grid-template-columns: 1fr;
        grid-gap: 10px;
    }
}