@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@500&display=swap');

/* EDITABLE VARIABLES */
:root {
    /* background color of the page (only shows up if you don't use a background image */
    --page-background: #0E1525;

    /* styles related to the card */
    --card-background: #0F1726;
    --card-outline: #3C445C;
    --card-shadow: 0px 16px 32px rgba(2, 2, 3, 0.48);
    --card-shadow-hover: 0px 16px 32px rgba(2, 2, 3, 0.64);

    /* styles related to text */
    /* font family of text you can go to https://fonts.google.com/ to import a different font if you want */
    --font-family: 'IBM Plex Sans', sans-serif;
    --text-color: #F5F9FC;

    /* styles related to buttons */
    --button-primary-default: #0079F2;
    --button-primary-hover: #0053A6;
    --button-primary-active: #004182;

    --button-secondary-default: #2B3245;
    --button-secondary-hover: #3C445C;
    --button-secondary-active: #4E5569;

    /* New fancy button colors */
    --button-cyan-default: #00B8D9;
    --button-cyan-hover: #00A3BF;
    --button-cyan-active: #008DA3;

    --button-purple-default: #6554C0;
    --button-purple-hover: #5243AA;
    --button-purple-active: #403294;

    --button-green-default: #36B37E;
    --button-green-hover: #2D995B;
    --button-green-active: #237D4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: var(--page-background);
    /* background-image: url("src/backgroundimage.webp"); */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    font-family: var(--font-family);
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    font-size: 32px;
    line-height: 36px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 121, 242, 0.4);
}

p {
    font-size: 14px;
    line-height: 22px;
    text-align: center;
}

a {
    text-decoration: none;
}

.card {
    background: var(--card-background);
    border: 2px solid var(--card-outline);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 400px;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: var(--card-shadow-hover);
}

.card .top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.card .top .logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    border: 4px solid var(--button-primary-default);
    position: relative;
    z-index: 1;
}

.card .top .logo-wrapper img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
}

.card .top .logo-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px dashed var(--button-primary-default);
    opacity: 0.6;
    animation: rotate 12s linear infinite;
    z-index: -1;
}

.card .top .logo-wrapper::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 1px solid var(--button-primary-default);
    opacity: 0.4;
    animation: rotate 20s linear infinite reverse;
    z-index: -1;
}

.card .top .text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.card .top .text h4 {
    max-width: 352px;
}

.card .socials {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 320px;
}

.card .buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.card button {
    background: var(--button-secondary-default);
    color: var(--text-color);
    font-family: var(--font-family);
    border: none;
    border-radius: 20px;
    padding: 12px;
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-origin: center;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}

/* Button styles for different colors */
.card button.primary {
    background: var(--button-primary-default);
}

.card button.primary-cyan {
    background: var(--button-cyan-default);
}

.card button.primary-purple {
    background: var(--button-purple-default);
}

.card button.primary-green {
    background: var(--button-green-default);
}

.card button.icon {
    background: transparent;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    position: relative;
    overflow: visible;
    box-shadow: none;
}

.card button.icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Button hover states */
.card button:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.card button.primary:hover {
    background: var(--button-primary-hover);
}

.card button.primary-cyan:hover {
    background: var(--button-cyan-hover);
}

.card button.primary-purple:hover {
    background: var(--button-purple-hover);
}

.card button.primary-green:hover {
    background: var(--button-green-hover);
}

/* Button active states */
.card button:active {
    transform: translateY(1px);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.card button.primary:active {
    background: var(--button-primary-active);
}

.card button.primary-cyan:active {
    background: var(--button-cyan-active);
}

.card button.primary-purple:active {
    background: var(--button-purple-active);
}

.card button.primary-green:active {
    background: var(--button-green-active);
}

/* Button hover gradient backgrounds */
.card button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            var(--button-secondary-hover) 0%,
            var(--button-secondary-active) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card button.primary::before {
    background: linear-gradient(135deg,
            var(--button-primary-hover) 0%,
            var(--button-primary-active) 100%);
}

.card button.primary-cyan::before {
    background: linear-gradient(135deg,
            var(--button-cyan-hover) 0%,
            var(--button-cyan-active) 100%);
}

.card button.primary-purple::before {
    background: linear-gradient(135deg,
            var(--button-purple-hover) 0%,
            var(--button-purple-active) 100%);
}

.card button.primary-green::before {
    background: linear-gradient(135deg,
            var(--button-green-hover) 0%,
            var(--button-green-active) 100%);
}

.card button:hover::before {
    opacity: 1;
}

/* Shimmer effect for all fancy buttons */
.card button.primary::after,
.card button.primary-cyan::after,
.card button.primary-purple::after,
.card button.primary-green::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 3s infinite;
}

/* Corner ornaments for buttons */
.card button::after,
.card button span::before,
.card button span::after,
.card button i::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: border-color 0.3s ease;
}

/* Top left corner */
.card button::after {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    top: 5px;
    left: 5px;
}

/* Top right corner */
.card button span::before {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    top: 5px;
    right: 5px;
}

/* Bottom left corner */
.card button span::after {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    bottom: 5px;
    left: 5px;
}

/* Bottom right corner */
.card button i::before {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    bottom: 5px;
    right: 5px;
}

/* Apply the corner elements to buttons */
.card button span,
.card button i {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    pointer-events: none;
}

/* Ensure hover effects work consistently */
.card button:hover::after,
.card button:hover span::before,
.card button:hover span::after,
.card button:hover i::before {
    border-color: var(--text-color);
}

/* Disable ornaments for icon buttons */
.card button.icon::after,
.card button.icon span::before,
.card button.icon span::after,
.card button.icon i::before {
    display: none;
}

/* Social icon ornaments */
.card button.icon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.card button.icon:hover::before {
    border-color: var(--text-color);
    transform: scale(1.1);
}

.card button.icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px dashed transparent;
    transition: all 0.3s ease;
    display: block;
}

.card button.icon:hover::after {
    border-color: var(--text-color);
    transform: scale(1.05);
    animation: rotate 8s linear infinite;
}

/* Border animation for the card */
.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg,
            var(--button-primary-default),
            transparent,
            var(--button-primary-default));
    background-size: 400% 400%;
    animation: borderGradient 6s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 18px;
}

.card::after {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -2;
    background: linear-gradient(45deg, var(--button-primary-default), #6c5ce7, var(--button-primary-hover));
    background-size: 200% 200%;
    animation: gradientBorder 8s ease infinite;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover::before,
.card:hover::after {
    opacity: 0.7;
}

/* Custom glow effects for each button type */
.card button.primary {
    box-shadow: 0 0 0 rgba(0, 121, 242, 0);
    transition: all 0.3s ease;
}

.card button.primary:hover {
    box-shadow: 0 0 15px rgba(0, 121, 242, 0.5);
}

.card button.primary-cyan {
    box-shadow: 0 0 0 rgba(0, 184, 217, 0);
    transition: all 0.3s ease;
}

.card button.primary-cyan:hover {
    box-shadow: 0 0 15px rgba(0, 184, 217, 0.5);
}

.card button.primary-purple {
    box-shadow: 0 0 0 rgba(101, 84, 192, 0);
    transition: all 0.3s ease;
}

.card button.primary-purple:hover {
    box-shadow: 0 0 15px rgba(101, 84, 192, 0.5);
}

.card button.primary-green {
    box-shadow: 0 0 0 rgba(54, 179, 126, 0);
    transition: all 0.3s ease;
}

.card button.primary-green:hover {
    box-shadow: 0 0 15px rgba(54, 179, 126, 0.5);
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.heartbeat {
    display: inline-block;
    animation: heartbeat 1s infinite;
    position: relative;
    z-index: 1;
}

.heartbeat::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: radial-gradient(circle,
            var(--button-primary-default) 0%,
            transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    z-index: -1;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Animation keyframes */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

h5 {
    text-align: center;
}

/* Mobile responsiveness improvements */
@media only screen and (max-height: 700px) {
    .card {
        transform: scale(0.9);
        margin: 10px 0;
    }

    .card:hover {
        transform: scale(0.95);
    }
}

@media only screen and (max-width: 500px) {
    .card {
        width: 90%;
        padding: 24px;
        gap: 24px;
        margin: 20px 0;
        transform: none;
    }

    .card:hover {
        transform: scale(1.02);
    }

    .card .top .logo-wrapper img {
        width: 100px;
        height: 100px;
    }

    h1 {
        font-size: 24px;
        line-height: 28px;
    }

    p {
        font-size: 13px;
        line-height: 20px;
    }

    .card .top .text {
        gap: 6px;
    }

    .card .socials {
        gap: 12px;
        max-width: 280px;
    }

    .card button.icon {
        transform: scale(0.9);
    }

    .card .buttons {
        gap: 12px;
    }
}

@media only screen and (max-width: 350px) {
    .card {
        padding: 16px;
        gap: 16px;
    }

    .card .buttons {
        gap: 10px;
    }

    .card button {
        padding: 10px;
        font-size: 14px;
    }

    .card .top .logo-wrapper img {
        width: 80px;
        height: 80px;
    }

    .card .socials {
        gap: 10px;
    }
}

/* Gallery page mobile improvements */
@media screen and (max-width: 768px) {
    .gallery {
        padding: 0 10px;
    }

    .artwork {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
        padding: 15px;
    }

    .artwork button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media screen and (max-width: 500px) {
    .artwork {
        flex: 0 0 calc(100% - 20px);
        max-width: calc(100% - 20px);
        padding: 15px;
    }

    .fancy-title {
        padding: 15px;
        font-size: 20px;
    }
}

/* Additional fancy button effects */

/* Neon text effect for button text on hover */
.card button:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Pulse animation for buttons */
@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Individual button animations */
.card button.primary-cyan:hover {
    animation: pulse-button 2s infinite;
}

.card button.primary-purple:hover {
    animation: pulse-button 2.5s infinite;
}

.card button.primary-green:hover {
    animation: pulse-button 3s infinite;
}

.card button.primary:hover {
    animation: pulse-button 1.5s infinite;
}

/* Add fancy gradient text for buttons */
.card button {
    background-clip: text;
    -webkit-background-clip: text;
    transition: all 0.3s ease;
}

/* 3D button effect */
.card button {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card button:hover {
    transform: translateY(-3px) rotateX(5deg);
}

.card button:active {
    transform: translateY(1px) rotateX(0);
}