/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Body Styling */
body {
    background-color: #000; /* Black background for all pages */
    color: #fff; /* White text for readability */
    font-family: Arial, sans-serif;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333; /* Slightly lighter black for contrast */
    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 */
    }
}

/* 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 */
}

.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;
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}

.grid-item {
    text-align: center;
    border: 1px solid #ccc;
    padding: 10px;
}

.grid-item img {
    max-width: 100%;
    height: auto;
}

.grid-item a {
    text-decoration: none;
    color: inherit;
}

@media (max-width: 1200px) {
    .flex-item {
        flex: 1 1 calc(33.33% - 40px);
    }
}

@media (max-width: 800px) {
    .flex-item {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 500px) {
    .flex-item {
        flex: 1 1 calc(100% - 40px);
    }
}
/* Footer styles*/
.main-footer {
    text-align: center;
    padding: 10px;
    background: #111; /* Slight contrast for footer */
    color: #fff;
    font-size: 14px;
}

.footer-quote {
    background-color: rgba(0, 0, 0, 0.7); /* Dark background to stand out */
    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 */
}

.hero {
    position: relative;
    top: -8px; /* Adjust until perfectly aligned */
}
@media (max-width: 1080px) {
    .main-header {
        margin-left: -8px; /* Adjust this value as needed */
    }
}
@media (min-width: 1081px) {
    .main-header {
        margin-left: -8px; /* Adjust this value as needed */
    }
}

/* LANGUAGE SELECTOR POSITIONED VERTICALLY DE AJUSTAT DE AICI IN JOS */
.language-selector {
    position: fixed;
    top: 45px;
    left: 22px;
    z-index: 1000;
}

/* Styling for the language button AICIAICIAICI */
.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;
}

/* 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);
    }
}

@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;
}
.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 */
  }
}
