/* ========== COLORS (Lebanon) ==========



   Change a color here → it changes everywhere */


/* ========== FONTS (stored in the fonts/ folder) ========== */







:root {
    --red: rgb(177, 28, 53);         /* flag red: menu, footer, main title */
    --red-dark: rgb(140, 14, 30);    /* section titles */
    --white: rgb(255, 252, 248);     /* warm white: page background */
    --card: rgb(255, 255, 255);      /* pure white: text boxes */
    --ink: rgb(45, 30, 30);          /* paragraphs: almost black, easy to read */
    --cedar: rgb(0, 122, 77);        /* cedar green: small details */
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--white);
    font-family: georgia, serif;
    color: var(--ink);
}

/* Text selected with the mouse turns green */
::selection {
    background-color: var(--cedar);
    color: white;
}

/* ========== MENU = top red band of the flag ========== */
#navigation {
    margin: 0;
    padding: 18px 10px;
    background-color: var(--red);
    text-align: center;
}

#navigation li {
    display: inline-block;
    margin: 5px 12px;
}

#navigation a {
    color: var(--card);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

#navigation a:hover {
    border-bottom-color: var(--card);
}

/* ========== HEADER (top of the page) ========== */
header {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 20px 50px;
    text-align: center;
}

h1 {
    color: var(--red);
    font-size: 40px;
    margin: 10px 0 20px;
}

header p {
    text-align: center;
}

/* ========== SECTIONS = white cards ========== */
section {
    width: calc(100% - 40px);
    max-width: 820px;
    box-sizing: border-box;
    margin: 0 auto 40px;
    padding: 35px 30px;
    background-color: var(--card);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(140, 14, 30, 0.08);
}

h2 {
    color: var(--red);
    font-family: "Cormorant Garamond", georgia, serif;
    font-style: normal;
    font-weight: 600;
    text-align: center;
    font-size: 36px;
    margin: 0 0 30px;
}

/* Small green line under each title */
h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin: 12px auto 0;
    background-color: var(--cedar);
    border-radius: 2px;
}

p {
    font-size: 20px;
    line-height: 1.7;
    margin: 0 0 20px;
}

/* ========== FOOTER = bottom red band of the flag ========== */
footer {
    margin-top: 60px;
    padding: 30px 20px;
    background-color: var(--red);
    text-align: center;
}

footer p {
    color: var(--card);
    font-size: 16px;
    margin: 0;
}

/* ========== PHOTO GALLERY (polaroid style) ========== */
.galerie {
    text-align: center;
    margin-bottom: 30px;
}

.galerie img {
    position: relative;
    width: 30%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-sizing: border-box;
    margin: 1%;
    border: 6px solid var(--card);
    box-shadow: 0 6px 18px rgba(45, 30, 30, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.4s;
}

/* Every second photo leans the other way */
.galerie img:nth-child(even) {
    transform: rotate(2deg);
}

/* On hover: the photo straightens and grows a little */
.galerie img:hover {
    transform: rotate(0deg) scale(1.08);
    z-index: 1;
}

/* ========== 3D CUBE ========== */
.scene {
    --cube-size: 200px;          /* change the size here only */
    position: relative;
    width: var(--cube-size);
    height: var(--cube-size);
    margin: 30px auto 80px;
    perspective: 800px;
    touch-action: none;          /* on phone: dragging turns the cube, not the page */
    user-select: none;           /* no text selection while dragging */
    -webkit-user-select: none;   /* same, for Safari */
    cursor: grab;
}

.scene.grabbing {
    cursor: grabbing;
}

/* Soft shadow under the cube */
.scene::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 10%;
    bottom: -60px;
    width: 80%;
    height: 24px;
    background: radial-gradient(ellipse, rgba(45, 30, 30, 0.25), transparent 70%);
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-20deg) rotateY(30deg);
}

.face {
    position: absolute;
    box-sizing: border-box;
    width: var(--cube-size);
    height: var(--cube-size);
    background-image: url("cube.photo.jpeg");   /* ← your image */
    background-size: cover;
    background-position: center;
    border: 3px solid var(--cedar);
}

.front  { transform: rotateY(0deg)   translateZ(calc(var(--cube-size) / 2)); }
.back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.right  { transform: rotateY(90deg)  translateZ(calc(var(--cube-size) / 2)); }
.left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.top    { transform: rotateX(90deg)  translateZ(calc(var(--cube-size) / 2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }




/* ========== FLOATING HEARTS (background) ========== */
.hearts {
    position: fixed;          /* stays in place when you scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;              /* behind everything */
    overflow: hidden;
    pointer-events: none;     /* clicks go through the hearts */
}

.heart {
    position: absolute;
    bottom: -50px;            /* starts just below the screen */
    color: var(--red);
    opacity: 0;
    animation: float-up linear infinite;
}

.heart img {
    display: block;
    width: 100%;
    height: 100%;
}

@keyframes float-up {
    0%   { transform: translate(0, 0) rotate(0deg);                    opacity: 0; }
    10%  { opacity: 0.35; }
    90%  { opacity: 0.35; }
    100% { transform: translate(var(--drift), -115vh) rotate(25deg);   opacity: 0; }
}