/* Modern About Section Redesign */

/* About Section Background */
.about-section {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.about-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(10, 24, 50, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, -30px) scale(1.05); }
    66% { transform: translate(30px, -20px) scale(0.95); }
}

/* Modern Tab Navigation */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
    position: relative;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: none;
}

.about-tab {
    background: transparent;
    border: none;
    color: var(--color-gray-600);
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50px;
    background: var(--color-navy);
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.about-tab.active::before {
    width: 100%;
    height: 100%;
}

.about-tab.active {
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(10, 24, 50, 0.3);
}

.about-tab:hover:not(.active) {
    color: var(--color-gold-dark);
    transform: translateY(-2px);
    background: rgba(200, 168, 81, 0.08);
}

/* Tab Content Panels */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.about-panel {
    display: none;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-panel.active {
    display: block;
}

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

/* Company Tab - Cards Layout */
#who-we-are .panel-text {
    display: flex;
    gap: 40px;
    align-items: stretch;
    min-height: 500px;
}

.company-cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 50%;
    justify-content: space-between;
}

.company-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #0A1832;
    transform: scaleY(0);
    transition: transform 0.4s;
}

.company-card:hover::before {
    transform: scaleY(1);
}

.company-card:hover {
    transform: translateX(6px);
    box-shadow: 0 12px 32px rgba(10, 24, 50, 0.1);
}

.company-card h4 {
    color: var(--color-navy);
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.1), rgba(0, 64, 110, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s;
}

.company-card:hover .company-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: #0A1832;
}

.company-card-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(82%) saturate(723%) hue-rotate(178deg) brightness(98%) contrast(92%);
    transition: filter 0.4s;
}

.company-card:hover .company-card-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Mission & Values - Modern Grid */
.mission-grid {
    text-align: left;
}

.mission-header {
    background: #0A1832;
    color: white;
    padding: 60px;
    border-radius: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.mission-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.mission-header h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

.mission-header p {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.value-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
}

.value-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.value-card:hover::after {
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 24, 50, 0.12);
    border-color: var(--color-navy);
}

.value-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.1), rgba(0, 64, 110, 0.05));
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
}

.value-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(82%) saturate(723%) hue-rotate(178deg) brightness(98%) contrast(92%);
    transition: filter 0.4s;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: #0A1832;
}

.value-card:hover .value-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

/* Competencies - Timeline Style */
.competencies-list {
    position: relative;
    padding-left: 40px;
}

.competencies-list::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    width: 3px;
    height: 100%;
    background: #0A1832;
    border-radius: 2px;
}

.competency-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
    padding: 30px;
    margin-bottom: 30px;
    background: white;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.competency-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #0f72b5;
    border-radius: 50%;
    z-index: 1;
}

.competency-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 24px rgba(10, 24, 50, 0.1);
}

.competency-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C8A851, #B39645);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 1;
}

/* Why AegisSight - 2x2 Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    grid-auto-rows: minmax(250px, auto);
}

.why-card {
    grid-column: span 1;
    grid-row: span 1;
}

.why-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(10, 24, 50, 0.1);
    border-color: rgba(10, 24, 50, 0.2);
}

.why-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.1), rgba(0, 64, 110, 0.05));
    border-radius: 30px;
    transition: all 0.4s;
}

.why-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(82%) saturate(723%) hue-rotate(178deg) brightness(98%) contrast(92%);
    transition: filter 0.4s;
}

/* German Flag Icon Special Styling */
.german-flag-icon {
    background: transparent !important;
    padding: 15px;
}

.german-flag-icon img {
    width: 70px !important;
    height: 42px !important;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    filter: none !important;
}

.why-card:hover .german-flag-icon {
    background: transparent !important;
    transform: scale(1.15);
}

.why-card:hover .german-flag-icon img {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    filter: none !important;
}

.why-card:hover .why-icon {
    transform: scale(1.1) rotate(5deg);
    background: #0A1832;
}

.why-card:hover .why-icon img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.why-card h4 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--color-navy);
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-card p {
    color: var(--color-gray-600);
    line-height: 1.8;
    flex-grow: 1;
    text-align: center;
    font-size: 1.05rem;
}

/* Location Section with Map */
.location-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45%;
    margin-left: auto;
    height: 100%;
}

.mini-germany-map {
    flex: 1;
    width: 100%;
    max-width: 350px;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.mini-germany-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 35% 45%, rgba(10, 24, 50, 0.3) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.mini-germany-map:hover::before {
    opacity: 1;
}

.mini-germany-map:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(10, 24, 50, 0.15);
}

.mini-germany-map img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.mini-germany-map:hover img {
    filter: brightness(1.1) contrast(1.1);
}

/* Pulsing glow effect for NRW region */
@keyframes nrwPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(10, 24, 50, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(10, 24, 50, 0.8));
    }
}

.mini-germany-map:hover img {
    animation: nrwPulse 2s ease-in-out infinite;
}

/* Location Badge Enhancement */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.1), rgba(0, 64, 110, 0.05));
    border-radius: 100px;
    color: #0f72b5;
    font-weight: 600;
    border: 2px solid rgba(15, 114, 181, 0.2);
    transition: all 0.3s;
}

.location-badge:hover {
    background: #0A1832;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(15, 114, 181, 0.3);
}

.location-badge svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s;
}

.location-badge:hover svg {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-tabs {
        flex-direction: column;
        border-radius: 20px;
        gap: 10px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .competencies-list {
        padding-left: 20px;
    }
}