@font-face {
    font-family: 'BellavoirSerif';
    src: url('assets/fonts/BellavoirSerif_PERSONAL_USE_ONLY.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0%;
    padding: 0%;
    font-family: 'Times New Roman', Times, serif;
}

html,
body {
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100vw;
}

body {
    background-image: url('assets/img/space.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    width: 100vw;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(222, 126, 126, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(102, 0, 0, 1) 100%);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.parent {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr;
    grid-template-rows: auto 1fr 1fr;
    gap: 2rem 0.5rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Logo - Top left */
.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
}

.logo img {
    max-width: 7rem;
    height: auto;
}

/* Circle - Top left area */
/* .circle-container {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 200px;
} */

/* .circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: transparent;
} */

/* Hearts container - Left side, below circle */
.hearts-container {
    grid-column: 1;
    grid-row: 2 / 4;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Heart styles - progressively darker from top to bottom */
.heart {
    height: 100px;
    width: 100px;
    position: relative;
    transform: rotate(-45deg);
    opacity: 1;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: rotate(-45deg) scale(1);
    }

    50% {
        transform: rotate(-45deg) scale(1.1);
    }
}

.heart::before,
.heart::after {
    content: "";
    border-radius: 50%;
    height: 100px;
    width: 100px;
    position: absolute;
    opacity: 1;
}

.heart::before {
    top: -50px;
    left: 0;
}

.heart::after {
    left: 50px;
    top: 0;
}

/* Top heart - light colored red */
.heart-1 {
    background-color: #ffcccc;
}

.heart-1::before,
.heart-1::after {
    background-color: #ffcccc;
}

/* Middle heart - medium red */
.heart-2 {
    background-color: #ff6666;
}

.heart-2::before,
.heart-2::after {
    background-color: #ff6666;
}

/* Bottom heart - darker red */
.heart-3 {
    background-color: #cc0000;
}

.heart-3::before,
.heart-3::after {
    background-color: #cc0000;
}

/* Image placeholders - Middle section */
.image-placeholder-1,
.image-placeholder-2 {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    min-height: 200px;
    overflow: hidden;
    box-sizing: border-box;
}

.image-placeholder-1 img,
.image-placeholder-2 img {
    width: 100%;
    height: auto;
    max-width: 22rem;
    max-height: 22rem;
    object-fit: cover;
    border-radius: 10px;
}

.image-placeholder-1 {
    height: 25rem;
    width: 25rem;
    grid-column: 2;
    grid-row: 2;
}

.image-placeholder-2 {
    height: 25rem;
    width: 25rem;
    grid-column: 2;
    grid-row: 3;
}

/* Text placeholder - Right side */
.text-placeholder {
    grid-column: 3;
    grid-row: 2 / 4;
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    box-sizing: border-box;
}

.text-placeholder .txt-label {
    font-family: 'BellavoirSerif', serif;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.text-placeholder .text-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    padding-right: 1rem;
}

.text-placeholder .text-content::-webkit-scrollbar {
    width: 8px;
}

.text-placeholder .text-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.text-placeholder .text-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.text-placeholder .text-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.text-placeholder .text-content p {
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.text-placeholder .text-content h3 {
    font-family: 'BellavoirSerif', serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem 0 1rem 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.text-placeholder .text-content strong {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
}

.text-placeholder .text-content em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

/* Custom Cursors */
body.select-crosshair,
body.select-crosshair * {
    cursor: url('./assets/curoshair/normsl u.cur'), auto;
}

body.select-crosshair a,
body.select-crosshair button,
body.select-crosshair .heart {
    cursor: url('./assets/curoshair/link 700.cur'), pointer;
}

body.select-crosshair input,
body.select-crosshair textarea,
body.select-crosshair [contenteditable="true"] {
    cursor: url('./assets/curoshair/Text Select.cur'), text;
}

/* Back Button */
.back-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    z-index: 10000;
    display: grid;
    place-items: center;
    animation: float 3s ease-in-out infinite;
}

.back-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
}

.back-button a:hover,
.back-button a:focus {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.back-button a svg {
    width: 60%;
    height: 60%;
}

@keyframes float {

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

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

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .parent {
        grid-template-columns: 1fr 2fr;
        grid-template-rows: auto auto auto auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .hearts-container {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        gap: 2rem;
    }

    .image-placeholder-1 {
        grid-column: 2;
        grid-row: 2;
        height: auto;
        width: 100%;
    }

    .image-placeholder-2 {
        grid-column: 2;
        grid-row: 3;
        height: auto;
        width: 100%;
    }

    .text-placeholder {
        grid-column: 1 / 3;
        grid-row: 4;
    }
}

@media screen and (max-width: 768px) {
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        padding: 1rem;
    }

    .logo img {
        max-width: 5rem;
    }

    .hearts-container {
        grid-column: 1;
        grid-row: 2;
        flex-direction: row;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .heart {
        height: 60px;
        width: 60px;
    }

    .heart::before,
    .heart::after {
        height: 60px;
        width: 60px;
    }

    .heart::before {
        top: -30px;
    }

    .heart::after {
        left: 30px;
    }

    .image-placeholder-1,
    .image-placeholder-2 {
        grid-column: 1;
        height: auto;
        width: 100%;
        min-height: 250px;
    }

    .image-placeholder-1 {
        grid-row: 3;
    }

    .image-placeholder-2 {
        grid-row: 4;
    }

    .image-placeholder-1 img,
    .image-placeholder-2 img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .text-placeholder {
        grid-column: 1;
        grid-row: 5;
        padding: 1.5rem;
    }

    .text-placeholder .txt-label {
        font-size: 1.5rem;
    }

    .text-placeholder .text-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .text-placeholder .text-content h3 {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .parent {
        padding: 0.75rem;
        gap: 1rem;
    }

    .logo {
        top: 1rem;
        left: 1rem;
    }

    .logo img {
        max-width: 4rem;
    }

    .heart {
        height: 50px;
        width: 50px;
    }

    .heart::before,
    .heart::after {
        height: 50px;
        width: 50px;
    }

    .heart::before {
        top: -25px;
    }

    .heart::after {
        left: 25px;
    }

    .text-placeholder .txt-label {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .text-placeholder .text-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .text-placeholder .text-content h3 {
        font-size: 1.1rem;
    }

    .image-placeholder-1,
    .image-placeholder-2 {
        padding: 1rem;
        min-height: 200px;
    }

    .back-button {
        width: 50px;
        height: 50px;
        bottom: max(16px, env(safe-area-inset-bottom));
        right: max(16px, env(safe-area-inset-right));
    }
}