* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial Black', Arial, sans-serif;
    background: #0E0D22;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 73px 29px, #ffffff, transparent),
        radial-gradient(1px 1px at 147px 91px, #FEA9DC, transparent),
        radial-gradient(2px 2px at 234px 156px, #ffffff, transparent),
        radial-gradient(1px 1px at 89px 234px, #ffffff, transparent),
        radial-gradient(2px 2px at 456px 67px, #FEA9DC, transparent),
        radial-gradient(1px 1px at 321px 298px, #ffffff, transparent),
        radial-gradient(1px 1px at 578px 189px, #ffffff, transparent),
        radial-gradient(2px 2px at 123px 367px, #FEA9DC, transparent),
        radial-gradient(1px 1px at 689px 123px, #ffffff, transparent),
        radial-gradient(2px 2px at 345px 412px, #ffffff, transparent),
        radial-gradient(1px 1px at 512px 345px, #FEA9DC, transparent),
        radial-gradient(2px 2px at 167px 489px, #ffffff, transparent),
        radial-gradient(1px 1px at 723px 267px, #ffffff, transparent),
        radial-gradient(1px 1px at 434px 523px, #FEA9DC, transparent),
        radial-gradient(2px 2px at 289px 78px, #ffffff, transparent),
        radial-gradient(1px 1px at 634px 367px, #ffffff, transparent),
        radial-gradient(2px 2px at 78px 156px, #FEA9DC, transparent),
        radial-gradient(1px 1px at 567px 489px, #ffffff, transparent),
        radial-gradient(2px 2px at 789px 134px, #ffffff, transparent),
        radial-gradient(1px 1px at 234px 567px, #FEA9DC, transparent);
    background-repeat: repeat;
    background-size: 900px 600px;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.container {
    background: #2B294C;
    border: 6px solid #0E0D22;
    border-radius: 15px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 0 #000000;
    position: relative;
    z-index: 1;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-image {
    margin-bottom: 20px;
}

.profile-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 32px;
    font-weight: 900;
    color: #FEA9DC;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #272F62;
}

.profile-bio {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 0;
    font-weight: 700;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 900;
    font-size: 18px;
    transition: all 0.2s ease;
    border: 4px solid;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

.link-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

.link-button i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.link-button span {
    font-weight: 500;
}

.link-button { 
    background: #272F62; 
    border-color: #0B1034;
}

.footer {
    text-align: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    border-top: 3px solid #FEA9DC;
    padding-top: 20px;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
        border-width: 4px;
        box-shadow: 0 6px 0 #2B294C;
    }
    
    .profile-name {
        font-size: 28px;
    }
    
    .profile-bio {
        font-size: 16px;
    }
    
    .link-button {
        padding: 16px 20px;
        font-size: 16px;
        border-width: 3px;
    }
    
    .profile-image img {
        width: 100px;
        height: 100px;
        border-width: 4px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.6s ease-out;
}

.link-button {
    animation: fadeInUp 0.6s ease-out;
}

.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }
.link-button:nth-child(6) { animation-delay: 0.6s; }

.modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: #2B294C;
            border: 4px solid #FEA9DC;
            border-radius: 15px;
            padding: 30px;
            max-width: 400px;
            width: 90%;
            text-align: center;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        }

        .modal-header {
            margin-bottom: 20px;
        }

        .warning-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 10px;
        }

        .modal-header h2 {
            color: #FEA9DC;
            font-size: 24px;
            margin: 0;
            font-weight: 900;
        }

        .modal-body {
            margin-bottom: 25px;
        }

        .modal-body p {
            color: #FFFFFF;
            font-size: 16px;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .modal-footer {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        .modal-btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 3px solid transparent;
        }

        .cancel-btn {
            background: #666;
            color: white;
            border-color: #444;
        }

        .cancel-btn:hover {
            background: #555;
            transform: translateY(-2px);
        }

        .confirm-btn {
            background: #FEA9DC;
            color: #2B294C;
            border-color: #E91E63;
        }

        .confirm-btn:hover {
            background: #E91E63;
            color: white;
            transform: translateY(-2px);
        }


.animation-section.left { 
    position: fixed; 
    bottom: -20px; 
    left: 20px; 
    z-index: 2;
    pointer-events: none;
 }
  #animation_container_left, #canvas_left {
    background: transparent !important;
    pointer-events: none;
 }
/* Gallery (right side) */
.gallery-section {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 440px;
    background: #2B294C;
    border: 6px solid #0E0D22;
    border-radius: 12px;
    padding: 18px;
    z-index: 3;
    box-shadow: 0 8px 0 #000000;
    text-align: center;
}

.gallery-title {
    color: #FEA9DC;
    font-weight: 900;
    margin-bottom: 10px;
    font-size: 18px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid #0B1034;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb:hover { transform: translateY(-3px); box-shadow: 0 6px 0 rgba(0,0,0,0.3); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* Slideshow specific styles */
.slideshow-inner {
    position: relative;
}

.slide-img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #111;
    border: 3px solid #0B1034;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.slide-btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: #272F62;
    color: #FEA9DC;
    border: 3px solid #0B1034;
    font-size: 20px;
    cursor: pointer;
    font-weight: 900;
    min-width: 64px;
}

.slide-btn:active { transform: translateY(1px); }

.slide-credit {
    margin-top: 10px;
    color: #FEA9DC;
    font-weight: 700;
    font-size: 14px;
    min-height: 18px;
}

.slide-credit a {
    color: white;
    text-decoration: underline;
}

@media (max-width: 1200px) {
    body {
        display: block;
    }
    .container {
        margin: 20px auto;
    }
    .gallery-section { 
        position: static; 
        width: 100%; 
        margin: 40px auto 0; 
        max-width: 400px; 
        text-align: center; 
        transform: none; 
        display: block;
    }
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 26px;
    color: #FEA9DC;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.slide-indicators { margin-top: 8px; display:flex; gap:6px; justify-content:center; }
.indicator { width:10px; height:10px; border-radius:50%; background:#444; border:2px solid #0B1034; cursor:pointer; }
.indicator.active { background:#FEA9DC; }