/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: #000; /* Black background */
    color: #fff; /* White text */
    font-family: Arial, sans-serif;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333; /* Slightly lighter black */
    z-index: 10;
}

/* Main Navigation */
.main-nav {
    position: absolute; /* Position the nav over the content */
    top: 0;
    left: 0;
    right: 0;
    z-index: 10; /* Ensure the navigation is above other content */
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.65); /* Semi-transparent black background (65% opacity) */
    display: flex;
    justify-content: center;
    padding: 10px 0;
    transition: background-color 0.3s ease; /* Smooth transition when changing background */
}

.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.main-nav li {
    margin: 0 20px;
}

/* Style for the main-nav buttons */
.main-nav a {
    display: inline-block;
    color: white; 
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px; /* Add padding to create button effect */
    margin: 0px; /* Optional: space between buttons */
    background-color: transparent; /* No background by default */
    border: 1px solid #fff; /* White border for the button */
    border-radius: 5px; /* Rounded corners for buttons */
    transition: all 0.3s ease; /* Smooth transition for button hover */
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.3); /* Lighter shadow for visibility */
}

/* Hover effect for the buttons */
.main-nav a:hover {
    color: #fff; /* Keep text white */
    background-color: #4f4f4f; /* Background color on hover */
    border-color: #666666; /* Border color change on hover */
    box-shadow: 0 8px 12px rgba(255, 255, 255, 0.4); /* More pronounced shadow on hover */
    transform: translateY(-4px); /* Lift the button when hovered */
}

/* Active state for when the button is pressed */
.main-nav a:active {
    transform: translateY(2px); /* Button pressed down */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3); /* Smaller shadow on press */
}
/* Hero Section */
/* Button - Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 40vh; /* Adjust this as needed */
    cursor: pointer;
    overflow: hidden; /* Hide any overflow */
    background-color: #000; /* Fallback background color in case the image fails to load */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scale and shadow */
    border: none; /* Remove default button border */
    padding: 0; /* Remove any internal padding */
    display: block; /* Make the button behave like a block-level element */
    transform: scale(0.8); /* Shrink the hero section to 80% of its size */
    transform-origin: center; /* Ensure it scales from the center */
}

/* Image inside Hero Section */
.hero img {
    width: 90%;
    height: 90%;
    object-fit: contain; /* Make sure the entire image is contained within the button */
    transition: transform 0.3s ease; /* Smooth transition for image zoom */
}

/* Hover Effect */
.hero:hover {
    transform: scale(1.05); /* Slightly scale up the button */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6); /* Add a shadow for depth effect */
}

.hero:hover img {
    transform: scale(1.1); /* Slightly zoom the image */
}

/* Landscape Mode (Lower Image, Avoid Excess Height) cod de pus in restul ceseseurilor */
@media (orientation: landscape) {
    .hero {
        height: 40vh; /* Adjust height for landscape */ - setare cheie
    }
    .hero img {
        object-position: center bottom; /* Moves image lower */
    }
}

.hero-content {
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(to bottom, #444, #222); /* Adds contrast to the hero content */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}


.hero h1 {
    font-size: 3em;
    font-family: 'Verdana', sans-serif;
    margin-bottom: 10px;
    color: #ffcc00;
}

.hero p {
    font-size: 1.2em;
}

/* Gallery Section */
.container {    
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding-top: 50px; /* Adds some spacing on top of the container */
}

.container h1 {
    background-color: #333; /* Grey background for the header */
    color: #fff; /* White text color */
    padding: 20px; /* Space around the text */
    margin-bottom: 20px; /* Space below the header */
    font-size: 24px; /* Adjust font size */
    font-weight: bold; /* Make the text bold */
    text-transform: uppercase; /* Uppercase text */
    width: 100%; /* Full width of the container */
    box-sizing: border-box; /* Ensure padding is included in the width */
}

.container p {
    color: #f39c12;
    font-size: 18px;
}

/* Carousel styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  overflow: clip; /* 🧠 safer than 'hidden' for Firefox, avoids clipping scrollbars */
  border: 1px solid silver;
}

.carousel-images {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: auto;
}

.carousel-images img {
  flex: 0 0 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.carousel-images {
  min-width: 100%;
}


/* Arrow styling for the carousel */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 165, 0, 0.1); /* Transparent orange background */
    color: #fff; /* White arrow color */
    padding: 10px; /* Padding around the arrow */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 24px; /* Arrow size */
    transition: all 0.3s ease; /* Smooth transition for size change */
}

/* Hover effect for arrows */
.arrow:hover {
    transform: translateY(-50%) scale(1.25); /* Slightly increase size on hover */
    background-color: rgba(255, 165, 0, 0.2); /* orange background on hover */
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

/* Styling for the Video Gallery Bar */
.video-gallery-bar {
    width: 100%;  /* Full width */
    background-color: #333; /* Grey background */
    padding: 20px 0;
    text-align: center;
    color: white;
    font-size: 20px;
    text-transform: uppercase;
	margin-top: 2px; /* Adds 2px space on top */
}

/* Optional: Ensure the video gallery bar doesn't overlap with content */
.container {
    padding-top: 20px; /* Adjust the padding to avoid overlap */
}

/* Video section */
.video-container {
    display: inline-block;
    width: 100%;  /* For desktop: wide layout */
    max-width: 600px; /* Match carousel container size */
    margin: 10px 1%;  
    background-color: #222222;
    border-radius: 8px;
    padding: 10px;
}

.video-container video {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
}

/* Optional: Styling for video descriptions */
.video-container p {
    margin-top: 10px;
    color: #f39c12;
    font-size: 18px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .carousel-container,
    .video-container {
        width: 100%; /* Ensure it takes up full width on mobile */
        margin: 10px 0; /* Adjust margin for single column */
        padding: 10px;
    }
	
	/* When in portrait mode, apply black bars */
    video.portrait {
        object-fit: contain; /* Keeps the aspect ratio and adds black bars */
        background-color: black; /* Add black background for letterboxing */
    }
	
    .carousel-container img,
    .video-container video {
        width: 100%; /* Ensure the image and video take up full width */
        height: auto; /* Allow height to adjust based on the width */
    }
}

/* Video section for desktops optimization */
@media (min-width: 768px) {
    .video-container {
        width: 48%; /* Adjust to make videos side-by-side */
    }
}

/* Footer styles */
.main-footer {
    text-align: center;
    padding: 10px;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.footer-quote {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    font-style: italic;
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap; /* Allow buttons to wrap if they don't fit */
        justify-content: center; /* Center them */
        gap: 5px; /* Reduce spacing */
        padding: 0 10px; /* Add some padding */
    }

    .main-nav li {
        margin: 0; /* Remove large margins */
    }

    .main-nav a {
        font-size: 14px; /* Reduce text size */
        padding: 4px 6px; /* Reduce padding */
        white-space: nowrap; /* Prevent buttons from breaking into multiple lines */
    }
}

html {
    overflow-y: scroll; /* Ensures scrollbar is always present to prevent layout shifting */
}

/* LANGUAGE SELECTOR POSITIONED VERTICALLY */
.language-selector {
    position: fixed;
    top: 45px;
    left: 22px;
    z-index: 1000;
}

/* Styling for the language button */
.language-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 30px; /* Thinner button */
	height: 58px;
    padding: 5px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: silver;
	border: 1px solid silver; /* 1px silver border */
    background: #000000; /* Dark background */
    border-radius: 5px;
    transition: filter 0.2s ease-in-out; /* Smooth effect */
}

/* Negative effect on hover */
.language-button:hover {
    filter: invert(1); /* Inverts colors (negative effect) */
}
@media (max-width: 768px) {  
    /* Adjust the language selector for mobile */
    .language-selector {
        position: fixed;
        top: 20px; /* Adjust position */
        left: 15px;
        z-index: 1000;
    }

    /* Make the button oval and resize to 85% */
    .language-button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 85%; /* Scale down */
        max-width: 50px; /* Adjust size */
        height: 44px; /* Oval shape */
        text-align: center;
        font-size: 10px; /* Slightly smaller font */
        font-weight: bold;
        text-decoration: none;
        color: silver;
        background: #222; /* Dark background */
		border: 1px solid silver; /* 1px silver border */
        border-radius: 40px; /* Oval shape */
        transition: filter 0.2s ease-in-out;
    }

    /* Negative effect on hover */
    .language-button:hover {
        filter: invert(1);
    }
}
/* Further adjustment for very NARROW PORTRAIT mode (phones) */
@media (max-width: 480px) {
    .language-selector {
        top: 45px; /* Lowered even more for small phones */
    }
}

/* NAVBAR BUTTONS PORTRAIT FORCE SINGLE LINE */
@media (max-width: 768px) {
    /* Force navigation into a single line */
    .main-nav ul {
        display: flex;
        flex-wrap: nowrap; /* Prevents line breaks */
        overflow-x: auto; /* Allows scrolling if needed */
        justify-content: space-around;
        white-space: nowrap; /* Ensures text stays in one line */
        padding: 5px;
    }

    .main-nav ul li {
        margin: 0 0px; /* Reduce spacing between items */
        font-size: 10px; /* Adjust font size for better fit */
    }

    .main-nav ul li a {
        padding: 5px 8px;
        font-size: 10px; /* Smaller font to fit */
    }
}

.contact-info {
    display: flex;
    justify-content: center; /* Centers icons horizontally */
    align-items: center; /* Aligns icons vertically */
    gap: 20px; /* Adds spacing between icons */
    flex-wrap: wrap; /* Ensures responsiveness */
}

.contact-info a {
    display: inline-flex; /* Ensures inline layout */
    align-items: center; /* Aligns icon & text */
    gap: 5px; /* Adds space between icon and text */
    text-decoration: none;
    color: #f0f0f0;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.contact-info img {
    display: inline-block !important;
    width: 64px !important;
    height: 64px !important;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

@keyframes silverToRedGlow {
    0% { text-shadow: 0 0 4px silver; }
    50% { text-shadow: 0 0 6px red, 0 0 8px red; }
    100% { text-shadow: 0 0 4px silver; }
}

.language-button span:first-child {
    color: inherit; /* Keeps the original text color */
    animation: silverToRedGlow 4s infinite ease-in-out;
}

/* Hover effect: Slightly increase size & add red glow */
.contact-info a:hover img {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8); /* Red glow */
}

@keyframes glow {
    0% {
        text-shadow: 0 -3px 5px rgba(192, 192, 192, 0.5), 0 -6px 10px rgba(192, 192, 192, 0.5), 0 -9px 15px rgba(192, 192, 192, 0.5);
    }
    100% {
        text-shadow: 0 3px 5px rgba(192, 192, 192, 1), 0 6px 10px rgba(192, 192, 192, 1), 0 9px 15px rgba(192, 192, 192, 1);
    }
}
.main-footer {
  position: relative;
  padding: 5px 10px;
  font-size: 13px;
  color: #ccc;
}

.footer-container {
  position: relative;
  text-align: center;
}

.signature {
  position: absolute;
  right: 10px; /* ← changed from 0 to 10px */
  top: 0;
  color: #ccc;
  font-size: 13px;
}

.signature a {
  color: #ccc;
  text-decoration: none;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
@media (max-width: 600px) {
  .footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .signature {
    position: static;
    margin-top: 5px;
  }

  .copyright {
    order: -1; /* this ensures it comes first */
  }
}
