﻿:root {
    --color-primary: #004b91;
    --color-accent: #007bff;
    --color-hero-dark: #112d4e;
    --bg-light: #f8fbff;
    --bg-white: #ffffff;
    --bg-card-hover: #eef6ff;
    --text-dark: #1e293b;
    --text-medium: #334155;
    --text-light: #475569;
    --text-muted: #64748b;
    --font-main: 'Inter', sans-serif;
    --font-title: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    line-height: 1.5;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    font-style: italic;
}

h1, h2, h3, h4,
.hero-title,
.features-title {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.2;
}

.ls-2 {
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.vr {
    background-color: #cbd5e1;
    opacity: 1;
    height: 40px;
    width: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-up,
.animate-card {
    opacity: 0;
    will-change: transform, opacity;
}

    .animate-fade-up.in-view,
    .animate-card.in-view {
        animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-hero-dark);
    background: #fff;
    border: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backface-visibility: hidden;
}

    .hero-btn:hover {
        background: var(--color-primary);
        color: #fff;
        transform: translateY(-3px);
    }

/* HERO */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 650px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: 0 !important;
    padding-top: 0 !important;
    background-color: var(--color-primary);
}

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

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

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    width: 100%;
    animation: fadeInUp 1.2s ease forwards;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #dce5f3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

@media (max-width: 992px) {
    .hero-section {
        justify-content: center;
        text-align: center;
        min-height: auto;
        padding: 100px 0 !important;
    }

    .hero-bg {
        background-position: center;
    }

    .hero-overlay {
        background: rgba(17, 45, 78, 0.85);
    }

    .hero-content {
        text-align: center;
        padding: 2rem;
        max-width: 100%;
        min-height: auto;
    }
}

/* ABOUT */
.about-smart-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    position: relative;
}

.card-smart {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*.card-smart:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 75, 145, 0.1);
        border-color: #dae4f1;
    }*/

.card-smart-highlight {
    background-color: var(--bg-card-hover);
    border: 1px solid #dbeafe;
    text-align: left;
    flex-direction: row;
    justify-content: flex-start;
}

    .card-smart-highlight .icon-wrapper {
        background-color: #fff;
        color: var(--color-primary);
        box-shadow: 0 4px 10px rgba(0, 75, 145, 0.1);
    }

.text-smart-title {
    color: var(--color-primary);
    font-family: var(--font-title);
    font-weight: 700;
}

.text-smart-body {
    color: var(--text-medium);
    line-height: 1.7;
}

.icon-smart {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    display: inline-block;
}

.iso-smart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.iso-smart-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.4rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* ---MOBILE --- */
@media (max-width: 480px) {

    .about-smart-section .iso-smart-item {
        width: 100%;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .about-smart-section .iso-smart-icon {
        width: 40px;
        min-width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .about-smart-section .container,
    .about-smart-section .row {
        overflow-x: hidden !important;
    }
}

/* CAROUSEL */
.partners-showcase {
    background: #f8fbff;
    position: relative;
    overflow: hidden;
}

.logos {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    white-space: nowrap;
}

.logo_items {
    display: inline-flex;
    align-items: center;
    gap: 60px;
    animation: slideInfinite 35s linear infinite;
}

    .logo_items img {
        height: 50px;
        width: auto;
        max-width: 140px;
        object-fit: contain;
        opacity: 1;
        filter: none;
        transition: transform 0.3s ease;
    }

        .logo_items img:hover {
            transform: scale(1.1);
        }

.logos:hover .logo_items {
    animation-play-state: paused;
}

@keyframes slideInfinite {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 992px) {
    .logo_items {
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .logo_items {
        gap: 30px;
    }

        .logo_items img {
            height: 35px;
        }
}

/* FEATURES */
.features-section {
    background-color: var(--bg-light);
    padding: 80px 0;
    overflow: hidden;
}


.ag-format-container {
    width: 1140px;
    margin: 0 auto;
    max-width: 95%;
}

.features-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 4rem;
    margin-top: 1rem;
    padding-bottom: 15px;
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.3;
}

    .features-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: var(--color-accent);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
    }

.ag-courses_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.ag-courses_item {
    flex-basis: calc(33.333% - 30px);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .ag-courses_item.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

.ag-courses-item_link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    padding: 45px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-medium);
    height: 100%;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

.feature-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--bg-card-hover);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.ag-courses-item_title {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-dark);
}

@media (max-width: 992px) {
    .ag-courses_item {
        flex-basis: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .features-title {
        font-size: 1.4rem;
        margin-bottom: 3rem;
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 600px) {
    .ag-courses_item {
        flex-basis: 100%;
    }

    .ag-courses-item_link {
        padding: 35px 25px;
    }
}


/*services*/

.smart-services-section {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.service-menu-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
    z-index: 10;
}

.menu-header {
    padding-bottom: 20px;
    padding-left: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}


.service-menu-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    padding: 16px 20px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

    .service-menu-btn:hover {
        background-color: #f8fbff;
        color: var(--color-primary);
    }


    .service-menu-btn.active {
        background-color: var(--color-primary);
        color: #fff;
        box-shadow: 0 8px 20px rgba(0, 75, 145, 0.25);
        transform: translateX(5px);
    }

.icon-box {
    width: 32px;
    display: flex;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.service-menu-btn .text {
    flex-grow: 1;
}

.service-menu-btn .arrow {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-menu-btn.active .arrow {
    opacity: 1;
    transform: translateX(0);
}




.service-panel {
    position: absolute;
    top: 0;
    left: 20px;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .service-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 2;
    }

.panel-header {
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(0,0,0,0.03);
    padding-bottom: 15px;
}
/* === TITLE WIPE ANIMATION === */

.panel-title {
    overflow: hidden;
    display: inline-block;
}

    .panel-title .title-text {
        display: inline-block;
        transform-origin: top;
        transition: transform 0.15s ease, opacity 0.15s ease;
    }

/* dispare de jos în sus */
.title-hide {
    transform: scaleY(0);
    opacity: 0;
}

/* apare normal */
.title-show {
    transform: scaleY(1);
    opacity: 1;
}

/*equip*/
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-item {
    background: #ffffff;
    border: 1px solid #eef2f6;
    padding: 14px 20px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

    .service-item::before {
        content: "\f00c";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: #00c853;
        background: transparent;
        width: 20px;
        height: 20px;
        min-width: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        margin-right: 12px;
        flex-shrink: 0;
    }


@media (max-width: 992px) {

    .service-menu-card {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding: 10px 0 15px 0;
        background: transparent;
        box-shadow: none;
        margin-bottom: 20px;
        position: static;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        min-height: 60px;
    }

        .service-menu-card::-webkit-scrollbar {
            display: none;
        }

    .menu-header {
        display: none;
    }

    .service-menu-btn {
        flex: 0 0 auto;
        width: auto;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 50px;
        padding: 10px 20px;
        margin-bottom: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    }

        .service-menu-btn.active {
            background: var(--color-primary);
            color: white;
            border-color: var(--color-primary);
            transform: none;
        }

        .service-menu-btn .arrow {
            display: none;
        }


    .smart-services-section .col-lg-8 {
        padding: 0 15px !important;
        min-height: 550px !important;
        transition: min-height 0.3s ease;
    }

    .service-panel {
        position: relative;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-bottom: 30px;
        width: 100%;
        left: 0;
    }

        .service-panel.active {
            display: block;
            animation: fadeIn 0.4s ease;
        }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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




/* testimonials */
.testimonials {
    background: var(--bg-light, #f8f9fa); 
    padding: 5rem 1rem;
    font-family: var(--font-main, sans-serif);
    overflow: hidden;
}

    .testimonials h2 {
        font-family: var(--font-title, sans-serif);
        color: var(--color-primary, #004b91);
        margin-bottom: 3rem;
        text-align: center;
        font-size: 2rem;
        position: relative;
        font-weight: 700;
    }

       
        .testimonials h2::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: var(--color-primary, #004b91);
            margin: 0.5rem auto 0;
            border-radius: 2px;
        }

/* slider wrapper*/
.slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.slides {
    position: relative;

    min-height: 280px;
}

/* testimonial card*/
.testimonial {
    position: absolute;
    inset: 0;
    background: var(--bg-white, #ffffff);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
    opacity: 0;
    
    transform: translate(20px, 10px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

    
    .testimonial::before {
        content: '“';
        position: absolute;
        top: -10px;
        left: 20px;
        font-size: 10rem;
        line-height: 1;
        font-family: serif;
        color: var(--color-primary, #004b91);
        opacity: 0.30; 
        pointer-events: none;
    }

    .testimonial.active {
        opacity: 1;
        transform: translate(0, 0) scale(1);
        pointer-events: auto;
        z-index: 5;
    }

    .testimonial.exit-left {
        opacity: 0;
        transform: translate(-20px, 10px) scale(0.95);
    }

    .testimonial p {
        color: var(--text-medium, #444);
        font-size: 1.25rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        font-style: italic;
        position: relative;
        z-index: 2;
    }

    .testimonial span {
        color: var(--color-primary, #004b91);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        position: relative;
        z-index: 2;
    }

        
        .testimonial span::before {
            content: '';
            display: block;
            width: 30px;
            height: 2px;
            background: #ddd;
            margin: 0 auto 0.5rem;
        }

/*controll buttons */
.controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
}

    .controls button {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: none;
        background: #fff;
        color: var(--color-primary, #004b91);
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: all 0.2s ease; 
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: 4px;
        
        -webkit-tap-highlight-color: transparent;
    }

/*responsive*/
@media (hover: hover) {
    .controls button:hover {
        background: var(--color-primary, #004b91);
        color: #fff;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 75, 145, 0.25);
    }
}


.controls button:active {
    transform: scale(0.95); 
    background: var(--color-primary, #004b91); 
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .slides {
        min-height: 320px; 
    }

    .testimonial {
        padding: 2rem 1.5rem;
    }

        .testimonial p {
            font-size: 1.1rem;
        }

        .testimonial::before {
            font-size: 8rem;
            top: 0;
            left: 10px;
        }
}
#partnersModal .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 75, 145, 0.25);
    overflow: hidden;
}

#partnersModal .modal-header {
    background-color: var(--color-primary);
    color: #fff;
    border-bottom: none;
    padding: 20px 30px;
}

#partnersModal .modal-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
}

#partnersModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#partnersModal .modal-body {
    padding: 0;
    background-color: #fff;
}


#partnersModal .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 15px 30px;
    color: var(--text-dark);
    font-weight: 500;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
    display: flex;
    align-items: center;
}


    #partnersModal .list-group-item::before {
        content: "\f058";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: var(--color-accent);
        margin-right: 15px;
        font-size: 1.1rem;
    }

    #partnersModal .list-group-item:hover {
        background-color: var(--bg-light);
        color: var(--color-primary);
        padding-left: 35px;
    }

#partnersModal .modal-footer {
    border-top: 1px solid #f1f5f9;
    background-color: #fafbfc;
    padding: 15px 30px;
}

.btn-partners {
    background-color: #ffffff;
    color: var(--color-primary);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 32px;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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


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

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