/* ==========================================================================
   Despre Noi Page - Enhanced Styles with Animations
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root variables for this page */
.despre-noi {
    --accent-gradient: linear-gradient(135deg, #0d3c73 0%, #1e5a96 100%);
    --card-shadow: 0 10px 30px rgba(13, 60, 115, 0.1);
    --card-hover-shadow: 0 20px 40px rgba(13, 60, 115, 0.15);
}

/* Main Container */
.despre-noi {
    padding: 60px 0;
    background: #ECF6FF;
    min-height: calc(100vh - 200px);
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.despre-noi::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d3c73' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: backgroundFloat 30s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(1deg); }
    66% { transform: translate(30px, -30px) rotate(-1deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Enhanced Breadcrumb */
.breadcrumb {
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    animation: fadeInDown 0.6s ease-out;
}

.breadcrumb a {
    color: #0F4B91;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0F4B91;
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

/* Main Content Card */
.despre-noi__content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced Header */
.despre-noi__header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.despre-noi__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.despre-noi__title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #0F4B91;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    animation: slideInFromTop 0.8s ease-out;
}

.despre-noi__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #666;
    font-style: italic;
    font-weight: 300;
    animation: slideInFromBottom 0.8s ease-out 0.2s both;
}

/* Enhanced Sections */
.despre-noi__section {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.despre-noi__section:nth-child(2) { animation-delay: 0.2s; }
.despre-noi__section:nth-child(3) { animation-delay: 0.4s; }
.despre-noi__section:nth-child(4) { animation-delay: 0.6s; }

.despre-noi__section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #0F4B91;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-left: 20px;
}

.despre-noi__section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.despre-noi__subsection-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #0F4B91;
    margin: 40px 0 25px;
    font-weight: 600;
}

.despre-noi__text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: justify;
}

/* Enhanced Lists */
.despre-noi__list {
    margin: 20px 0 20px 20px;
    list-style: none;
}

.despre-noi__list li {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #4a5568;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.despre-noi__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #0F4B91;
    font-weight: 600;
    font-size: 18px;
}

/* Enhanced Steps Cards */
.despre-noi__steps {
    margin-top: 40px;
    display: grid;
    gap: 30px;
}

.despre-noi__step {
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    padding: 35px;
    border-radius: 15px;
    border-left: 5px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideInFromLeft 0.8s ease-out both;
}

.despre-noi__step:nth-child(1) { animation-delay: 0.1s; }
.despre-noi__step:nth-child(2) { animation-delay: 0.2s; }
.despre-noi__step:nth-child(3) { animation-delay: 0.3s; }
.despre-noi__step:nth-child(4) { animation-delay: 0.4s; }
.despre-noi__step:nth-child(5) { animation-delay: 0.5s; }
.despre-noi__step:nth-child(6) { animation-delay: 0.6s; }

.despre-noi__step::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--accent-gradient);
    border-radius: 0 5px 5px 0;
}

.despre-noi__step:hover {
    transform: translateX(10px) translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.despre-noi__step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: #0F4B91;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Governance Cards */
.despre-noi__governance {
    margin-top: 30px;
    display: grid;
    gap: 30px;
}

.despre-noi__governance-item {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.8s ease-out both;
}

.despre-noi__governance-item:nth-child(1) { animation-delay: 0.2s; }
.despre-noi__governance-item:nth-child(2) { animation-delay: 0.4s; }

.despre-noi__governance-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-gradient);
}

.despre-noi__governance-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.despre-noi__governance-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    color: #0F4B91;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Advantages Grid */
.despre-noi__advantages {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.despre-noi__advantage {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInScale 0.8s ease-out both;
}

.despre-noi__advantage:nth-child(1) { animation-delay: 0.1s; }
.despre-noi__advantage:nth-child(2) { animation-delay: 0.2s; }
.despre-noi__advantage:nth-child(3) { animation-delay: 0.3s; }
.despre-noi__advantage:nth-child(4) { animation-delay: 0.4s; }
.despre-noi__advantage:nth-child(5) { animation-delay: 0.5s; }
.despre-noi__advantage:nth-child(6) { animation-delay: 0.6s; }
.despre-noi__advantage:nth-child(7) { animation-delay: 0.7s; }
.despre-noi__advantage:nth-child(8) { animation-delay: 0.8s; }

.despre-noi__advantage::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: var(--accent-gradient);
    opacity: 0;
    transform: rotate(45deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.despre-noi__advantage:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.despre-noi__advantage:hover::after {
    opacity: 0.05;
}

.despre-noi__advantage-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #0F4B91;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Scroll animations trigger */
.despre-noi__section,
.despre-noi__step,
.despre-noi__advantage,
.despre-noi__governance-item {
    opacity: 0;
    animation-play-state: paused;
}

.despre-noi__section.animate,
.despre-noi__step.animate,
.despre-noi__advantage.animate,
.despre-noi__governance-item.animate {
    animation-play-state: running;
}

/* Responsive Design */
@media (max-width: 768px) {
    .despre-noi__content {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .despre-noi__title {
        font-size: 28px;
    }

    .despre-noi__subtitle {
        font-size: 16px;
    }

    .despre-noi__section-title {
        font-size: 24px;
    }

    .despre-noi__text {
        font-size: 14px;
        text-align: left;
    }

    .despre-noi__advantages {
        grid-template-columns: 1fr;
    }

    .despre-noi__step {
        padding: 25px;
    }

    .despre-noi__advantage {
        padding: 20px;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .despre-noi {
        background: white;
    }

    .despre-noi__content {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .despre-noi__step,
    .despre-noi__advantage,
    .despre-noi__governance-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}