:root {
    --alb: #ffffff;

    --albastru-inchis: #0A2540;
    --albastru: #1F4FD8;
    --albastru-deschis: #EAF0FF;

    --rosu: #D72638;
    --rosu-soft: #FFE6E9;

    --negru: #0F172A;
    --gri-inchis: #475569;
    --gri-deschis: #F8FAFC;

    --blur-bg: rgba(255, 255, 255, 0.75);
    --card-bg: rgba(255, 255, 255, 0.85);
    --header-bg: rgba(255, 255, 255, 0.85);
    --overlay: rgba(10, 37, 64, 0.65);
    --menu-bg: rgba(10, 37, 64, 0.85);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--negru);
    background: var(--gri-deschis);
    overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.5);; /* Am schimbat din 0.85 în 0.9 pentru mai multă opacitate */
    border-bottom: 1px  rgba(10, 37, 64, 0.85);;
    color: #ffffff;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

/* LOGO */
nav .logo {
    font-weight: bold;
    font-size: 1.6rem;
    color: #ffffff;
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 40px;
    margin-right: 8px;
}

/* MENU LINKS */
nav .menu {
    display: flex;
    gap: 25px;
    margin: 0 auto;
}

nav .menu a {
    color: #0A2540;
    font-weight: 600;
    position: relative;
}

nav .menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--rosu);
    transition: 0.3s;
}

nav .menu a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: #0A2540;;
    border-radius: 2px;
}

/* ================= MOBILE MENU ================= */
@media (max-width: 768px) {
    nav {
        justify-content: space-between;
    }

    nav .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 10px;
        background: rgba(10, 37, 64, 0.95);
        backdrop-filter: blur(12px);
        padding: 20px;
        border-radius: 10px;
        gap: 15px;
        width: 200px;
        text-align: center;
    }

    nav .menu.active {
        display: flex;
    }

    nav .menu a {
        color: #ffffff !important;
        font-size: 1.1rem;
    }

    nav .menu a:hover::after {
        background: #ffffff;
    }

    .hamburger {
        display: flex;
    }
}

/* ================= HERO ================= */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: url('./principal1copy.jpg') no-repeat center/cover;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(1px);
}

#hero .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

#hero h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #fff;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

/* HERO BUTTONS */
#hero .btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

#hero .btns a {
    display: inline-block;
    margin: 0 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buton primar */
.btn-primary {
    background: var(--albastru);
    color: #fff;
}

.btn-primary:hover {
    background: var(--rosu);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 38, 56, 0.5);
}

/* Buton secundar */
.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--albastru-inchis);
    border: 2px solid var(--albastru);
}

.btn-secondary:hover {
    transform: translateY(-3px);
}

/* ================= MEDIA QUERY PENTRU MOBIL ================= */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    #hero .btns {
        flex-direction: column;
        gap: 15px;
    }

    #hero .btns a {
        width: 70%;
        text-align: center;
        margin: 0 auto;
    }
}

/* ================= SECTIONS ================= */
section {
    padding: 120px 20px;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h1,
section h2 {
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--negru);
}

section p {
    max-width: 800px;
    margin-bottom: 20px;
    color: var(--negru);
}

/* ================= CARDS ================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
    color: var(--negru);
    border-left: 5px solid var(--albastru);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(215, 38, 56, 0.9);
    border-left-color: var(--rosu);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* ================= FORMS ================= */
form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
}

form button[type="submit"] {
    background-color: #1F4FD8;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

form button[type="submit"]:hover {
    background-color: #D72638;
    transform: translateY(-1px);
}

form button[type="submit"]:active {
    transform: translateY(0);
}

/* ================= CONTACT SECTION ================= */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

/* FORM & INFO */
.contact-form,
.contact-info {
    flex: 1 1 400px;
    padding: 20px;
    border-radius: 15px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease, opacity 0.6s ease;
    color: var(--negru);
    border-left: 5px solid var(--albastru);
}

/* TITLURI */
.contact-form h2,
.contact-info h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    color: var(--negru);
}

/* INPUTURI */
.contact-form p {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
}

.input-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gri-inchis);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus+label,
.input-group textarea:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: -8px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--negru);
    background: rgba(255, 255, 255, 0.7);
    padding: 0 4px;
}

/* LINKURI CONTACT */
.contact-info p a {
    color: var(--albastru);
    font-weight: 600;
}

.contact-info p a:hover {
    color: var(--rosu);
}

/* SOCIAL */
.socials {
    margin-top: 15px;
}

.social-btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--albastru);
    color: #fff;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn:hover {
    background: var(--rosu);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(215, 38, 56, 0.9);
}

/* ================= RESPONSIVE MOBIL ================= */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form,
    .contact-info {
        width: 90%;
        flex: unset;
    }
}

/* ================= ANIMATII SCROLL ================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FOOTER ================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(50px);
    background: rgba(255, 255, 255, 0.5);
    color: #0A2540;
    text-align: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(10, 37, 64, 0.85);
    z-index: 1000;
    transition: all 0.3s ease;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

/* ================= TOP BUTTON ================= */
#topBtn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--albastru);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    transition: all 0.3s ease;
}

#topBtn img {
    width: 52px;
    height: 45px;
    display: block;
    margin: 0;
    object-fit: contain;
}

#topBtn:hover {
    background: var(--rosu);
    transform: scale(1.15);
}

/* ================= SCROLL BEHAVIOR ================= */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
}

/* ================= FLOTA ================= */
.flota-section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
    background: url('./bus22.jpg') no-repeat center/cover;
    text-align: center;
    font-family: inherit;
}

.flota-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

.flota-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
}

.flota-section h2 {
    width: 100%;
    max-width: 950px;
    margin: 0 auto 50px auto;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
    font-family: inherit;
}

.flota-section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--albastru);
    display: block;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ================= CARDS FLOTA ================= */
.flota-cards {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.flota-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    width: 100%;
    max-width: 430px;
    padding: 30px 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transform: scale(1);
    transition: transform 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
    opacity: 1;
    cursor: pointer;
    color: var(--negru);
    border-left: 5px solid var(--albastru);
    text-align: center;
    font-family: inherit;
}

.flota-card h4 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.45;
    margin: 0;
    color: var(--negru);
    word-break: break-word;
    overflow-wrap: break-word;
    font-family: inherit;
    font-weight: 800;
}

.flota-card p {
    font-size: 1rem;
    color: var(--negru);
    font-family: inherit;
}

/* Hover smooth */
.flota-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(215, 38, 56, 0.9),
                0 6px 15px rgba(0, 0, 0, 0.25);
    border-left-color: var(--rosu);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .flota-section {
        padding: 80px 18px;
    }

    .flota-section h2 {
        max-width: 800px;
        margin: 0 auto 40px auto;
    }
}

@media (max-width: 768px) {
    .flota-section {
        padding: 70px 16px;
    }

    .flota-container {
        max-width: 100%;
    }

    .flota-section h2 {
        max-width: 100%;
        font-size: clamp(2rem, 9vw, 3.5rem);
        line-height: 1.18;
        margin: 0 auto 35px auto;
    }

    .flota-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .flota-card {
        width: 100%;
        max-width: 100%;
        padding: 26px 18px;
        border-radius: 14px;
    }

    .flota-card h4 {
        font-size: 1.15rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .flota-section {
        padding: 60px 14px;
    }

    .flota-section h2 {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .flota-section h2::after {
        width: 70px;
        margin-top: 12px;
    }

    .flota-card {
        padding: 22px 16px;
    }

    .flota-card h4 {
        font-size: 1.05rem;
        line-height: 1.35;
    }
}

/* ================= WOW TITLE SECTIONS ================= */
.section-wow-title {
    height: 20vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding-top: 0px;
    background: var(--gri-deschis);
    color: var(--negru);
    position: relative;
    overflow: hidden;
}

.section-wow-title h2 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease forwards;
}

.section-wow-title p {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
}

/* ANIMATIE WOW */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .section-wow-title h2 {
        font-size: 3rem;
    }
    .section-wow-title p {
        font-size: 1.5rem;
    }
}

/* ================= TITLU SECȚIUNE ================= */
.section-title {
    text-align: center;
    margin: 0px 0 50px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--negru);
    padding-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 4px;
    background-color: var(--rosu);
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin: 10px 0 30px 0;
    }
}

/* Reduce spațiul dintre titlu și carduri */
#servicii .section-title {
    margin-bottom: 20px;
}

/* Reduce padding-ul secțiunii dacă e prea mare */
#servicii {
    padding-top: 0px;
    padding-bottom: 50px;
}

/* Cards */
#servicii .cards {
    gap: 15px;
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #b30000; 
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b30000; 
}

/* ================= MINI PAGINA ================= */
#mini-pagina {
    padding: 90px 20px;
    text-align: center;
    position: relative;
}

/* Titlu cu bară animată */
#mini-pagina .section-title {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--negru);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

#mini-pagina .section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--rosu);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underlineGrow 1s ease forwards;
}

@keyframes underlineGrow {
    to { transform: scaleX(1); }
}

/* Reduce distanța de sub secțiunea mini-pagina */
#mini-pagina + section {
    padding-top: 40px !important;
    margin-top: 0 !important;
}

/* Card mini pagină */
.mini-page-card {
    max-width: 900px;
    margin: 45px auto 0;
    padding: 40px 45px;
    background: var(--card-bg);
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12),
                0 4px 0 var(--albastru);
    position: relative;
    overflow: hidden;
    font-size: 1.17rem;
    line-height: 1.75;
    color: var(--negru);
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

/* Shine effect subtil pe card */
.mini-page-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.20) 50%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shineMove 6s infinite;
}

@keyframes shineMove {
    0%   { left: -100%; }
    55%  { left: 120%; }
    100% { left: 120%; }
}

/* Animatie scroll-appear */
.animate-on-scroll.visible .mini-page-card {
    opacity: 1;
    transform: translateY(0);
}

/* Hover elegant */
.mini-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15),
                0 4px 0 var(--rosu);
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.contact-line .label {
    white-space: nowrap;
    font-weight: 600;
}

.contact-line .value {
    word-break: break-all;
}

/* ================= GLOBAL LINK STYLING ================= */
a {
    text-decoration: none;
    transition: 0.3s ease;
}