/* ===== CSS Variables & Theme ===== */
:root {
    --color-red: #FF6B6B;
    --color-red-light: #FF8A8A;
    --color-purple: #A855F7;
    --color-purple-light: #C084FC;
    --color-purple-dark: #7C3AED;
    --color-blue: #38BDF8;
    --color-blue-light: #7DD3FC;
    --color-blue-dark: #0EA5E9;
    --color-yellow: #FCD34D;
    --color-yellow-light: #FDE68A;
    --color-pink: #F472B6;
    --color-white: #FFFFFF;
    --color-dark: #1E1B4B;

    --gradient-main: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 50%, var(--color-red-light) 100%);
    --gradient-card: linear-gradient(145deg, var(--color-white) 0%, #F8F7FF 100%);
    --gradient-header: linear-gradient(135deg, var(--color-red) 0%, var(--color-purple) 50%, var(--color-blue) 100%);

    --shadow-soft: 0 4px 20px rgba(168, 85, 247, 0.2);
    --shadow-card: 0 8px 30px rgba(168, 85, 247, 0.25);
    --shadow-card-hover: 0 15px 40px rgba(168, 85, 247, 0.35);

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --border-radius: 20px;
    --border-radius-lg: 30px;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--gradient-main);
    min-height: 100vh;
    color: var(--color-dark);
    overflow-x: hidden;
    position: relative;
}

/* ===== Background Decorations ===== */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    animation: float 8s ease-in-out infinite;
}

.bubble-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 10%;
    animation-delay: 1.5s;
}

.bubble-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 10%;
    animation-delay: 3s;
}

.bubble-4 {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 5%;
    animation-delay: 2s;
}

.bubble-5 {
    width: 50px;
    height: 50px;
    top: 85%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    animation: sparkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 25%;
    right: 20%;
    animation-delay: 1s;
}

.sparkle-3 {
    top: 50%;
    left: 8%;
    animation-delay: 2s;
}

.sparkle-4 {
    top: 75%;
    right: 15%;
    animation-delay: 0.5s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
}

.sun-decoration {
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 4rem;
    animation: sun-glow 4s ease-in-out infinite;
}

@keyframes sun-glow {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px var(--color-yellow));
    }

    50% {
        transform: scale(1.1) rotate(20deg);
        filter: drop-shadow(0 0 25px var(--color-yellow));
    }
}

/* ===== Header ===== */
.main-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--color-white);
    text-shadow:
        3px 3px 0 var(--color-purple-dark),
        6px 6px 0 rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: title-bounce 2s ease-in-out infinite;
}

@keyframes title-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.title-art {
    font-size: 0.8em;
    animation: wiggle 1s ease-in-out infinite;
}

.title-art:last-child {
    animation-delay: 0.5s;
}

@keyframes wiggle {

    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--color-white);
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* ===== Gallery Section ===== */
.gallery-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== Art Cards ===== */
.art-card {
    background: var(--gradient-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.art-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-header);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.art-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

.art-card:hover .card-overlay {
    opacity: 1;
}

.art-card:hover .card-image {
    transform: scale(1.05);
}

.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.7) 0%, rgba(56, 189, 248, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.click-hint {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-purple-dark);
    padding: 1.25rem;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.05) 100%);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 27, 75, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    border: none;
    background: var(--gradient-header);
    color: var(--color-white);
    font-size: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: var(--shadow-card);
}

.modal-header {
    background: var(--gradient-header);
    padding: 2rem;
    text-align: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-body {
    padding: 2rem;
}

.modal-image-section {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 5px solid var(--color-white);
    outline: 3px solid var(--color-purple-light);
}

.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.description-box,
.how-to-draw-box {
    background: linear-gradient(135deg, #F8F7FF 0%, #EEF2FF 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border-left: 5px solid var(--color-purple);
}

.description-box h3,
.how-to-draw-box h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-purple-dark);
    margin-bottom: 0.75rem;
}

.description-box p,
.how-to-draw-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-dark);
}

.how-to-draw-box {
    border-left-color: var(--color-blue);
}

.video-container {
    margin-top: 1.5rem;
}

.video-container h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-red);
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* ===== Footer ===== */
.main-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.main-footer p {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .modal-content {
        margin: 0.5rem;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        flex-direction: column;
        gap: 0.25rem;
    }

    .gallery-container {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-purple-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-header);
    border-radius: 10px;
    border: 2px solid var(--color-purple-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-dark);
}

/* ===== Navigation ===== */
.main-nav {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-white);
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    background: var(--color-white);
    color: var(--color-purple-dark);
    border-color: var(--color-yellow);
}

/* ===== Coming Soon Section ===== */
.coming-soon-section {
    text-align: center;
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    box-shadow: var(--shadow-card);
    max-width: 600px;
    margin: 2rem auto;
}

.coming-soon-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.coming-soon-title {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-purple-dark);
    margin-bottom: 1rem;
    background: var(--gradient-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon-text {
    font-size: 1.3rem;
    color: var(--color-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.coming-soon-decoration {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 2.5rem;
}

.coming-soon-decoration span {
    animation: wiggle 1s ease-in-out infinite;
}

.coming-soon-decoration span:nth-child(2) {
    animation-delay: 0.2s;
}

.coming-soon-decoration span:nth-child(3) {
    animation-delay: 0.4s;
}

.coming-soon-decoration span:nth-child(4) {
    animation-delay: 0.6s;
}

.coming-soon-decoration span:nth-child(5) {
    animation-delay: 0.8s;
}

/* ===== About Page ===== */
.about-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
    border-left: 6px solid var(--color-purple);
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card:nth-child(2) {
    border-left-color: var(--color-blue);
}

.about-card:nth-child(3) {
    border-left-color: var(--color-red);
}

.about-card.highlight-card {
    background: var(--gradient-header);
    border-left: none;
}

.about-card.highlight-card .about-icon,
.about-card.highlight-card .about-title,
.about-card.highlight-card .about-text {
    color: var(--color-white);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.about-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-purple-dark);
    margin-bottom: 0.75rem;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-dark);
}

.about-text strong {
    color: var(--color-purple-dark);
}

.about-card.highlight-card .about-text strong {
    color: var(--color-yellow);
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }

    .coming-soon-section {
        padding: 2rem 1rem;
    }

    .coming-soon-title {
        font-size: 2rem;
    }

    .coming-soon-decoration {
        font-size: 1.8rem;
        gap: 1rem;
    }
}