html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    z-index: 1000;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.hero {
    height: 100vh;
    background: url("../img/background.jpg") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3rem;
    border-radius: 10px;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-content a {
    padding: 0.75rem 2rem;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s;
}

.hero-content a:hover {
    background-color: #138496;
}

.features {
    padding: 1rem 0rem;
    background-color: #111;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature {
    background: #1c1c1c;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact {
    padding: 4rem 2rem;
    background-color: #000;
    text-align: center;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact a {
    color: var(--accent);
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: #000;
    color: #777;
}


.language-switcher-modern {
    position: absolute;
    /*top: 1rem;*/
    right: 2rem;
    z-index: 1000;
}

.lang-block {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #444;
    cursor: pointer;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 128%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 160px;
    flex-direction: column;
    z-index: 999;
}

.lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
}

.lang-dropdown a:hover {
    background-color: #17a2b8;
    color: black;
}

.features-container {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
}

.features-container-header {
    width: 100%;
    text-align: center;
}

/* Show full button (text + icon) on desktop */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Mobile responsive rule */
@media (max-width: 768px) {
    .lang-toggle .lang-text {
        display: none;
    }

    .lang-toggle .lang-icon img {
        width: 24px;
        height: 24px;
    }
}
