:root{
    --cycladesWhite: #FFFFFF;
    --cycladesBlack: #000000;
    --cycladesGreenish: #0180a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'ComfortaaLight';
  src: url('assets/fonts/Comfortaa/Comfortaa-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ComfortaaNormal';
  src: url('assets/fonts/Comfortaa/Comfortaa-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ComfortaaMedium';
  src: url('assets/fonts/Comfortaa/Comfortaa-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ComfortaaSemiBold';
  src: url('assets/fonts/Comfortaa/Comfortaa-SemiBold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'ComfortaaBold';
  src: url('assets/fonts/Comfortaa/Comfortaa-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body {
    font-family: 'ComfortaaNormal', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.cyclades-icons-hidden{ display: none;}

h1.cyclades-hidden{
    position: absolute; 
    left: -9999px;
}

.cyclades-info-text{
    max-width: 940px;
    padding: 22px;
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 8;
    background: var(--cycladesWhite);
    border-radius: 14px;
    transform: translateY(250px);
    transition: transform 0.4s ease; 
}

.cyclades-info-text-title {
    font-family: "ComfortaaBold", sans-serif;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--cycladesGreenish);
}

.cyclades-info-text p:last-child{
    font-family: "ComfortaaLight", sans-serif;
    font-size: 14px;
    line-height: 22px;
    text-align: justify;
}

.cyclades-info-copyright{
    font-family: "ComfortaaBold", sans-serif !important;
    font-size: 12px;
    margin: 16px 0 0 0;
}

.cyclades-info-copyright a{
    text-decoration: none;
    color: var(--cycladesGreenish);
}

.cyclades-info-icon{
    position: absolute;
    z-index: 9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
    transition: all 350ms ease;
}

.cyclades-info-icon circle{
    fill: #B8B8B854;
    stroke: none;
    stroke-width: 0.2;
    stroke-linecap: round;
    paint-order: stroke fill markers;
}

.cyclades-info-icon #path1,
.cyclades-info-icon #path3{
    fill: var(--cycladesWhite);
    stroke-width: 1;
}

.cyclades-info-icon:hover{ 
    cursor: pointer;
    transform: scale(1.1);
}

.cyclades-info-icon #path1,
.cyclades-info-icon #path2{ transition: all 350ms ease;}

.cyclades-info-icon:hover #path2{ fill: var(--cycladesWhite) !important;}
.cyclades-info-icon:hover #path1{ fill: #353535 !important;}


.hero-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 50%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.cycl-logo{
    position: absolute;
    z-index: 7;
    max-width: 220px;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: .7;
}

/* Background Images */
.left-section { background-image: url('assets/images/santorini-island-church.webp');}

.right-section {
    background-image: url('assets/images/cyclades-chamber.webp');
    background-position: right center;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: background 1.4s ease;
}

/* Content Styling */
.hero-content {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: var(--cycladesWhite);
    z-index: 2;
    width: 40%;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.hero-content .active{
    max-width: 875px;
    margin: 0 auto;
}

.left-section .hero-content { left: 5%;}
.right-section .hero-content { right: 5%;}

/* Re-enable pointer events for buttons */
.hero-content .enter-button { pointer-events: auto;}

.hero-subtitle {
    font-family: 'ComfortaaBold', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero-title {
    font-family: 'ComfortaaLight', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.25;
    transition: font-size 1.4s ease;
    margin-bottom: 2rem;
}

/* Description and Button - Hidden by default */
.hero-description {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
    margin-top: 2rem;
    pointer-events: none;
}

.description-text {
    font-family: 'ComfortaaLight', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 0 auto;
    margin-bottom: 30px;
}

.enter-button {
    background: transparent;
    border: 0px;
    color: var(--cycladesWhite);
    padding: 0.9rem 2.5rem;
    font-size: 0.85rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.05);
}

.enter-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--cycladesWhite);
    transform: translateX(5px);
}

.enter-button .arrow {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.enter-button:hover .arrow { transform: translateX(5px);}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--cycladesWhite);
}

.logo {
    font-size: 0.75rem;
    letter-spacing: 4px;
    font-weight: 400;
}

/* Hover Effects */
.hero-section:hover { width: 80%;}
.hero-section:hover .hero-overlay { background: rgba(0, 0, 0, 0.1);}

.hero-section.left-section:hover .hero-overlay { background: linear-gradient(to right, rgba(0,0,0,0.5), transparent) !important;}
.hero-section.right-section:hover .hero-overlay {  background: linear-gradient(to right, transparent,  rgba(0,0,0,0.5)) !important;}

.hero-section:hover .hero-title { font-size: 4.2rem;}

/* Show description and button on hover */
.hero-section:hover .hero-description {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* When one section is hovered, keep the other at 20% */
.hero-container:has(.left-section:hover) .right-section,
.hero-container:has(.right-section:hover) .left-section { width: 20%;}

/* Darken the non-hovered section */
.hero-container:has(.left-section:hover) .right-section .hero-overlay,
.hero-container:has(.right-section:hover) .left-section .hero-overlay { background: rgba(0, 0, 0, 0.7);}

/* Hide content of the non-hovered section smoothly */
.hero-container:has(.left-section:hover) .right-section .hero-content,
.hero-container:has(.right-section:hover) .left-section .hero-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Language Switcher Dropdown Styles */
.language-switcher {
    position: absolute;  
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;
}

.language-dropdown {
    position: relative;
    min-width: 140px;
}

.lang-selected {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--cycladesWhite);;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    user-select: none;
}

.lang-selected:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Flag Icons using CSS - Works in ALL browsers */
.lang-flag {
    width: 24px;
    height: 18px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    flex-shrink: 0;
    border-radius: 50%;
}

.lang-option .lang-flag{ width: 20px;}

.flag-el { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect fill="%230D5EAF" width="27" height="18"/><rect fill="%23FFF" y="0" width="27" height="2"/><rect fill="%23FFF" y="4" width="27" height="2"/><rect fill="%23FFF" y="8" width="27" height="2"/><rect fill="%23FFF" y="12" width="27" height="2"/><rect fill="%23FFF" y="16" width="27" height="2"/><rect fill="%230D5EAF" width="10" height="10"/><rect fill="%23FFF" x="4" y="0" width="2" height="10"/><rect fill="%23FFF" x="0" y="4" width="10" height="2"/></svg>'); }
.flag-zh { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect fill="%23DE2910" width="27" height="18"/><polygon fill="%23FFDE00" points="5,3 5.8,5.4 3.3,3.8 6.7,3.8 4.2,5.4"/></svg>'); }
.flag-de { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect width="27" height="6"/><rect y="6" fill="%23D00" width="27" height="6"/><rect y="12" fill="%23FFCE00" width="27" height="6"/></svg>'); }
.flag-en { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"><clipPath id="a"><path d="M0 0v30h60V0z"/></clipPath><clipPath id="b"><path d="M30 15h30v15zv15H0zH0V0zV0h30z"/></clipPath><g clip-path="url(%23a)"><path d="M0 0v30h60V0z" fill="%23012169"/><path d="M0 0l60 30m0-30L0 30" stroke="%23fff" stroke-width="6"/><path d="M0 0l60 30m0-30L0 30" clip-path="url(%23b)" stroke="%23C8102E" stroke-width="4"/><path d="M30 0v30M0 15h60" stroke="%23fff" stroke-width="10"/><path d="M30 0v30M0 15h60" stroke="%23C8102E" stroke-width="6"/></g></svg>'); }
.flag-es { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect fill="%23AA151B" width="27" height="18"/><rect fill="%23F1BF00" y="4.5" width="27" height="9"/></svg>'); }
.flag-fr { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect fill="%23ED2939" width="27" height="18"/><rect fill="%23FFF" width="18" height="18"/><rect fill="%23002395" width="9" height="18"/></svg>'); }
.flag-it { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect fill="%23CE2B37" width="27" height="18"/><rect fill="%23FFF" width="18" height="18"/><rect fill="%23009246" width="9" height="18"/></svg>'); }
.flag-ru { background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 27 18"><rect fill="%23FFF" width="27" height="18"/><rect fill="%230039A6" y="6" width="27" height="6"/><rect fill="%23D52B1E" y="12" width="27" height="6"/></svg>'); }

.lang-code {
    text-transform: uppercase;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.language-dropdown.open .dropdown-arrow { transform: rotate(180deg);}

.lang-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: rgba(20, 20, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 400px;
    overflow-y: auto;
}

.language-dropdown.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.7rem 1rem;
    color: var(--cycladesWhite);;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-option:last-child { border-bottom: none;}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 1.3rem;
}

.lang-option.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.lang-name { flex: 1;}

/* Scrollbar for dropdown */
.lang-options::-webkit-scrollbar { width: 6px;}
.lang-options::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05);}

.lang-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.lang-options::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5);}

/* Hide non-active language content */
[data-lang] { display: none;}
[data-lang].active { display: block;}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container { flex-direction: column;}
    
    .hero-section {
        width: 100%;
        height: 50vh;
        transition: height 1.4s cubic-bezier(0.4, 0, 0.2, 1);
        background-attachment: scroll;
    }
    
    .hero-content {
        position: absolute;
        width: 80%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .left-section .hero-content,
    .right-section .hero-content {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        padding: 100px 0 0 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .hero-section:hover .hero-title{ font-size: 2rem !important;}
    
    .description-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .enter-button {
        padding: 0.75rem 2rem;
        font-size: 0.75rem;
    }
    
    .hero-section:hover { height: 80vh;}
    
    .hero-container:has(.left-section:hover) .right-section,
    .hero-container:has(.right-section:hover) .left-section {
        height: 20vh;
        width: 100%;
    }
    
    .hero-container:has(.left-section:hover) .right-section .hero-overlay,
    .hero-container:has(.right-section:hover) .left-section .hero-overlay { background: rgba(0, 0, 0, 0.7);}
    
    .hero-container:has(.left-section:hover) .right-section .hero-content,
    .hero-container:has(.right-section:hover) .left-section .hero-content {
        opacity: 0;
        transition: opacity 0.8s ease;
    }

    .language-switcher {
        top: 16px;
        left: 16px !important;
        transform: unset;
    }
    
    .lang-selected {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .lang-flag {
        width: 15px !important;
        height: 15px;
    }
    .lang-options { min-width: 160px;}
    
    .lang-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }

    .hero-section:hover { width: 100%;}
    .hero-section:hover .hero-title{ font-size: 3rem;}

    .hero-section.right-section{ background-position: center center;}

    .hero-container .hero-section:hover .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.4)) !important;
    }

    .lang-options{ left: 0 !important;}
    .language-dropdown,.lang-selected{ min-width: 70px;}
    
    .cycl-logo{
        max-width: 120px;
        left: 20px;
        transform: translateX(0);
    }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-title {
        font-size: 3.2rem;
        transition: font-size 1.4s ease;
        margin-bottom: 1.5rem;
    }
    .hero-section:hover .hero-title { font-size: 3.2rem;}
    .description-text { font-size: 1rem;}
    .enter-button { padding: 0.8rem 2.2rem;}
}

@media (max-width: 1024px){
    .cyclades-info-text{ 
        max-width: 650px;
        margin-left: 16px;
        transform: translateY(500px);
    }
    .cyclades-info-text-title{ font-size: 1rem;}
    .cyclades-info-text p:last-child { font-size: 11px;}
}


@media (max-width: 1400px) and (min-width: 769px) {
  .hero-section .hero-title{ font-size: 3.8rem !important;}
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
