﻿@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');


:root {
    --primary-color: #004b91;
    --secondary-color: #1c4b82;
    --accent-color: #004b91;
    --text-dark: #27303F;
    --text-light: #6B7280;
    --bg-light: #f8fbff;
    --bg-white: #ffffff;
    --radius-card: 16px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}


body {
    margin: 0;
    padding: 0 !important;
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}


.hero-fullscreen {
    position: relative;
    
    height: 45vh;
    min-height: 500px;
    width: 100%;
    display: flex;
    align-items: center; 
    justify-content: center; 
    padding-top: 80px;
    box-sizing: border-box; 

    text-align: center;
    color: white;
    overflow: hidden;
}


.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size:cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 50, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative; 
    z-index: 5;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}



.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;  
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    padding-bottom:20px;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: #dce5f3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.intro-section {
    background-color: #f8fbff;
    padding: 6rem 1rem;
    position: relative;
    z-index: 5;
}

.intro-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.intro-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.intro-divider {
    height: 4px;
    width: 80px;
    background: var(--accent-color);
    margin: 0 auto 2rem auto;
    border-radius: 2px;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    font-weight: 400;
   
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}




.projects-section {
    background-color: var(--bg-white);
    padding: 5rem 0 8rem 0;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-heading {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.grid-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    border-top: 4px solid var(--accent-color);
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    }

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #085899;
    background: radial-gradient(circle,rgba(8, 88, 153, 0.14) 0%, rgba(255, 255, 255, 1) 100%, rgba(183, 215, 237, 0.41) 100%);
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: transform 0.5s ease;
    }

.card:hover .card-image img {
    transform: scale(1.08);
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.card-content h3 {
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    margin-top: auto;
    background: none;
    border: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    text-align: left;
    width: fit-content;
    transition: color 0.2s;
}

    .read-more-btn:hover {
        color: var(--primary-color);
        /*text-decoration: underline;*/
    }


.card.featured {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    min-height: 300px;
}

    .card.featured .card-image {
        width: 55%;
        height: auto;
    }

    .card.featured .card-content {
        width: 45%;
        justify-content: center;
        padding: 1.5rem;
    }

    .card.featured h3 {
        font-size: 1.8rem;
        margin-bottom:0.5rem;
    }

    .card.featured .description {
        -webkit-line-clamp: 5;
    }



.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .modal-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.modal-card {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.modal-body {
    padding: 40px 50px;
}

    .modal-body h2 {
        color: var(--primary-color);
        font-family: var(--font-heading);
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .close-modal:hover {
        background: var(--accent-color);
        color: white;
    }



@media (max-width: 991px) {
  
    .hero-fullscreen {
        height: auto;
        min-height: 400px;
        padding-top: 60px; 
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }

   
    .grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card.featured {
        grid-column: span 1;
        flex-direction: column;
        min-height: auto;
    }

        .card.featured .card-image,
        .card.featured .card-content {
            width: 100%;
        }

        .card.featured .card-image {
            height: 250px;
        }

        .card.featured .card-content {
            padding: 2rem;
        }

        .card.featured h3 {
            font-size: 1.6rem;
        }

    .modal-body {
        padding: 25px;
    }

    .modal-header-image {
        height: 200px;
    }
}
.cta-final-section {
    background: #f8fbff;
    color: #1b1b1b;
}

    .cta-final-section h2 {
        color: #0d3c85; 
    }

    .cta-final-section p {
        color: #4a4a4a;
    }

    .cta-final-section .btn {
        border-radius: 10px;
        border: 2px solid #145ec3;
        color: #145ec3;
    }

        .cta-final-section .btn:hover {
            background: #145ec3;
            color: white;
        }

/* =====================================================
   BTN PARTNERS – STIL DE BAZĂ
===================================================== */

.btn-partners {
    background-color: #ffffff;
    color: #004b91;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

    /* Icon */
    .btn-partners .icon-arrow {
        transition: transform 0.3s ease;
    }


/* =====================================================
   CTA – DIMENSIUNI SPECIFICE
===================================================== */

.cta-final-section .btn-partners {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 60px;
}


/* =====================================================
   DESKTOP – HOVER REAL
===================================================== */

@media (hover: hover) and (pointer: fine) {

    .btn-partners:hover {
        background-color: #004b91;
        color: #ffffff;
        border-color: #004b91;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 75, 145, 0.2);
    }

        .btn-partners:hover .icon-arrow {
            transform: translateX(5px);
        }
}


/* =====================================================
   MOBILE – TAP FEEDBACK
===================================================== */

@media (hover: none) and (pointer: coarse) {

    .btn-partners:active {
        background-color: #004b91;
        color: #ffffff;
        border-color: #004b91;
        transform: scale(0.97);
        box-shadow: 0 6px 12px rgba(0, 75, 145, 0.2);
    }
}


/* =====================================================
   FOCUS & ACCESIBILITATE
===================================================== */

.btn-partners:focus {
    outline: none;
}

.btn-partners:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 75, 145, 0.25), 0 6px 12px rgba(0, 0, 0, 0.1);
}

.btn-partners:focus:not(:focus-visible) {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
