/* --- Blurred Background Image & Variables --- */
:root {
    --primary-color: #fff;
    --secondary-color: #f4f4f4;
    --accent-color: #edda73;
    --text-color: #fff;
    --light-text: #fff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -22;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('Otherimages/Background.png');
    background-size: cover;
    background-position: center;
    filter: blur(7px);
    transform: scale(1.1);
}

body {
    margin: 0;
    font-family: 'Source Code Pro', "SF Mono", "Consolas", "Liberation Mono", "Menlo", "Courier", monospace;
    line-height: 1.6;
    background-color: transparent;
    color: var(--text-color);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Wrapper for Sticky Footer --- */
.site-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- General Layout --- */
main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    margin-bottom: 6px;
    display: flex;
    gap: 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- Reusable Blurred Pane Class --- */
.blurred-pane {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 1%;
    position: relative;
}

.site-header.blurred-pane {
    background-color: rgba(0, 0, 0, 0.5);
}

.site-title {
    font-weight: bold;
    font-size: 1.6em;
    margin: 0;
    position: relative;
    z-index: 2;
}

.site-title.has-icon {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}
/* --- Glowing Name Effect --- */
.site-title.centered-title {
    text-align: center;
    width: 100%;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
}

.site-title.has-icon a {
    color: inherit;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
}
.site-title.centered-title {
    text-align: center;
    width: 100%;
}

.site-icon-img {
    height: 1.0em;
    width: auto;
}

.has-icon .separator {
    width: 1px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.2);
}

.header-right-side {
    position: absolute;
    right: 1.5%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
}

.date-display {
    font-size: 1.2em;
    font-weight: bold;
}


/* --- Star Effect Styles --- */
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation-name: twinkle;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.2); }
}


/* --- Footer --- */
.site-footer {
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1%;
    z-index: 10;
    overflow: hidden;
}

.footer-icons, .footer-copyright {
    position: relative;
    z-index: 2;
}

.footer-icons a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.footer-icons a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-icons a i {
    color: inherit;
}

.footer-icon-img {
    height: 1em;
    width: auto;
    vertical-align: middle;
}

.footer-copyright {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* --- Entrance Page & General Button Style --- */
.centered-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    text-align: center;
}

.centered-container h1 {
    font-size: 4em;
    margin-bottom: 10px;
}

.centered-container .subtitle {
    font-size: 1.2em;
    font-style: italic;
    opacity: 0.8;
    margin-top: -10px;
}

.button {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, text-shadow 0.3s ease;
}

.button:hover {
    background-color: rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 8px #fff;
}


/* --- SCROLLING PANEL LAYOUT --- */
#main-window, #side-panel, #left-panel {
    border-radius: 25px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#left-panel {
    flex: 1; 
}

#main-window {
    flex: 2;
}

#side-panel {
    flex: 1;
}


/* --- Window Content Styles --- */
.window-header {
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px 20px;
    text-align: center;
}

.window-header p {
    margin: 8px 0;
    font-weight: bold;
    font-size: 1.1em;
}

.window-content {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

/* --- Linksbar Button Styles --- */
.links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-button {
    display: block;
    width: 100%;
    padding: 12px 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    color: var(--light-text);
    font-weight: bold;
    text-decoration: none;
    transition: box-shadow 0.3s ease, text-shadow 0.3s ease, background-color 0.3s ease;
}

.link-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

/* --- Separation Bar --- */
#mid-bar {
    height: 40px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0;
    gap: 0;
    box-sizing: border-box;
    position: relative;
}

.mid-bar-square {
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
}

.mid-bar-square:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

#mid-bar-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.spacer {
    height: 15px;
}

/* --- Language Slider Styles --- */
.language-slider-container {
    margin-bottom: 20px;
}

.language-slider, .mini-slider {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-slider {
    width: 80px;
    height: 40px;
    border-radius: 20px;
    padding: 0 4px;
}

.lang-option {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 2;
}

.lang-option img {
    border-radius: 50%;
    object-fit: cover;
    transition: filter 0.4s ease;
}

.language-slider .lang-option img {
    width: 28px;
    height: 28px;
}

.slider-thumb {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.4s ease-in-out;
    z-index: 1;
}

.language-slider .slider-thumb {
    top: 3px;
    left: 4px;
    width: 34px;
    height: 34px;
}

.lang-en .lang-option[data-lang="pt"] img,
.lang-pt .lang-option[data-lang="en"] img {
    filter: brightness(0.3);
}

.lang-pt .slider-thumb {
    transform: translateX(36px);
}

/* --- Mini Slider Styles --- */
.mini-slider {
    width: 60px;
    height: 28px;
    border-radius: 14px;
    padding: 0 3px;
}

.mini-slider .lang-option img {
    width: 20px;
    height: 20px;
}

.mini-slider .slider-thumb {
    top: 2px;
    left: 3px;
    width: 22px;
    height: 22px;
}

.mini-slider.lang-pt .slider-thumb {
    transform: translateX(29px);
}

/* --- Hexagon Menu Styles --- */
.hexagon-menu-container {
    position: relative;
}

#hexagon-menu-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hexagon-menu-button .site-icon-img {
    transition: transform 0.3s ease;
}

#hexagon-menu-button.active-icon .site-icon-img {
    animation: expand-anim 0.4s ease;
}

@keyframes expand-anim {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#hexagon-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 150px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#hexagon-menu.active {
    display: block;
}

.menu-option {
    display: block;
    padding: 8px 15px;
    font-size: 0.9em;
    color: var(--light-text);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-option:hover {
    background-color: rgba(255, 255, 255, 0.1); 
}

/* --- Cookie Page Background --- */
body.cookie-page::before {
    background-image: linear-gradient(to bottom, black, hotpink);
    filter: blur(7px);
    transform: scale(1.1);
}

/* --- Cookie Page Layout --- */
.cookie-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding-top: 25px;  /* Increased from 5px to give breathing room */
    padding-bottom: 10px;
}

.logo-placeholder {
    width: 80%;
    max-width: 800px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    top: -40px;  /* Changed from -80px to leave some space at top */
    z-index: 5;
}

.cookieimage-placeholder {
    width: 450px;  /* Increased from 400px */
    height: 600px;  /* Increased from 500px */
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

/* --- Cookie Page Header --- */
.cookie-header-container {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cookie-name-bar {
    padding: 8px 15px;
    border-radius: 0 0 15px 0;
    position: relative;
}

.cookie-name-content {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.cookie-name-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.2;
    display: block;
}

.cookie-controls-bar {
    padding: 8px 15px;
    border-radius: 0 0 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.cookie-controls-bar .date-display {
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.cookie-controls-bar .mini-slider {
    position: relative;
    z-index: 2;
}

/* --- Cookie Gallery and Title --- */
.cookie-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: -20px 0 10px 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(255, 255, 255, 0.4);
}

.cookie-gallery {
    display: flex;
    align-items: center;
    gap: 30px;
}

.side-placeholder {
    width: 224px;  /* Doubled from 112px */
    height: 300px;  /* Doubled from 150px */
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.side-placeholder:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.nav-arrow {
    font-size: 2.5em;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.9);
}

.nav-text {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

/* --- Cookie Gallery Updates --- */
.main-cookie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookieimage-placeholder {
    width: 450px;
    height: 600px;
    object-fit: cover;
    border-radius: 15px;
}

.cookie-number {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.side-placeholder {
    width: 224px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.side-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.side-placeholder:hover .nav-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

/* --- Who Am I Page Styles --- */
body.whoami-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.whoami-page::before {
    background-image: url('Otherimages/Background.png');
    background-size: cover;
    background-position: center;
    filter: blur(7px) brightness(0.3);
    transform: scale(1.1);
}

.whoami-container {
    width: calc(100vw - 40px);
    flex-grow: 1;
    margin: 20px 20px 10px 20px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.panel-header p {
    margin: 8px 0;
    font-weight: bold;
    font-size: 1.3em;
    color: var(--light-text);
}

.panel-content {
    display: flex;
    flex-grow: 1;
    position: relative;
}

.photo-section {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    width: 450px;
}

.photo-and-info {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.image-box {
    width: 180px;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-sections {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-item {
    padding: 10px 0;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:first-child {
    padding-top: 0;
}

.additional-text-area {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.main-content-area {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}