/* ===== COMPETENCIES PAGE STYLES ===== */
/* For competencies.html */

/* ===== COMPETENCIES VISUALIZATION ===== */
.competencies-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 450px;
    margin: 0 auto;
}

/* Center Hub */
.competency-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(42, 93, 187, 0.5);
    animation: hubGlow 3s ease-in-out infinite;
}

.competency-hub i {
    font-size: 3rem;
    color: white;
}

/* Visible Orbits */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255, 107, 0, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.orbit-ring.small {
    width: 240px;
    height: 240px;
    border-color: rgba(42, 93, 187, 0.4);
}

.orbit-ring.large {
    width: 440px;
    height: 440px;
    border-color: rgba(42, 93, 187, 0.4);
}

/* Orbit containers - these rotate */
.orbit-1, .orbit-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    z-index: 5;
}

/* Items - positioned on orbits, NO rotation */
.orbit-item {
    position: absolute;
    width: 90px;
    height: 90px;
    margin-left: -45px;
    margin-top: -45px;
    background: rgba(42, 93, 187, 0.53);
    backdrop-filter: blur(5px);
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
    z-index: 15;
}

.orbit-item i {
    font-size: 1.8rem;
    color: var(--primary-light);
    margin-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.orbit-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    padding: 0 5px;
}

.orbit-item:hover {
    border-color: var(--accent-color);
    background: rgb(42, 93, 187);
}

.orbit-item:hover i {
    color: var(--accent-color);
}

/* Position items on smaller orbit - radius 120px */
.orbit-1 .orbit-item:nth-child(1) {
    top: 50%;
    left: 50%;
    --tx: -50%;
    --ty: -120px;
}

.orbit-1 .orbit-item:nth-child(2) {
    top: 50%;
    left: 50%;
    --tx: 120px;
    --ty: -50%;
}

.orbit-1 .orbit-item:nth-child(3) {
    top: 50%;
    left: 50%;
    --tx: -50%;
    --ty: 120px;
}

/* Animate inner orbit items */
.orbit-1 .orbit-item {
    animation: orbitInner 25s linear infinite;
}

@keyframes orbitInner {
    0% {
        transform: rotate(0deg) translate(var(--tx), var(--ty)) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translate(var(--tx), var(--ty)) rotate(-360deg);
    }
}

/* Position items on larger orbit - radius 220px */
.orbit-2 .orbit-item:nth-child(1) {
    top: 50%;
    left: 50%;
    --tx: -156px;
    --ty: -156px;
}

.orbit-2 .orbit-item:nth-child(2) {
    top: 50%;
    left: 50%;
    --tx: 156px;
    --ty: -156px;
}

.orbit-2 .orbit-item:nth-child(3) {
    top: 50%;
    left: 50%;
    --tx: 156px;
    --ty: 156px;
}

.orbit-2 .orbit-item:nth-child(4) {
    top: 50%;
    left: 50%;
    --tx: -156px;
    --ty: 156px;
}

/* Animate outer orbit items (counterclockwise) */
.orbit-2 .orbit-item {
    animation: orbitOuter 30s linear infinite;
}

@keyframes orbitOuter {
    0% {
        transform: rotate(0deg) translate(var(--tx), var(--ty)) rotate(0deg);
    }
    100% {
        transform: rotate(-360deg) translate(var(--tx), var(--ty)) rotate(360deg);
    }
}

/* Hub glow animation */
@keyframes hubGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(42, 93, 187, 0.5); }
    50% { box-shadow: 0 0 50px rgba(255, 107, 0, 0.5); }
}

/* ===== TEAM SECTION ===== */
.team {
    padding: 6rem 0;
    background-color: var(--background-white);
    position: relative;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-dark);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.team h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.team__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.team__text {
    color: var(--text-dark);
    text-align: left;
}

.team__text p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.team__text ul {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 1rem;
}

.team__text li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.team__text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.team__image {
    scale: 0.9;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.team__image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.team__image,
.team__image img:hover {
    transform: none !important;
}

/* ===== SPECIALTIES SECTION ===== */
.specialties {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #ffffff 100%);
}

.specialties h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.specialties h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: black;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.specialty-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(42, 93, 187, 0.1);
    display: flex;
    flex-direction: column;
}

.specialty-card--large {
    grid-column: span 1;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(42, 93, 187, 0.15);
}

/* Header with icon and title */
.specialty-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.specialty-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(42, 93, 187, 0.1), rgba(255, 107, 0, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.specialty-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.specialty-card:hover .specialty-icon i {
    color: var(--accent-color);
    transform: scale(1.1);
}

.specialty-header h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

/* Description */
.specialty-description {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: center;
    font-size: 0.95rem;
}

/* Features list */
.specialty-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.specialty-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.specialty-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 992px) {
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team__image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* Hero stats fix */
    .hero__stats {
        display: flex;
        gap: 2rem;
        margin-bottom: 2rem;
        justify-content: center;
    }
    
    .stat {
        text-align: center;
    }
    
    .stat__number {
        font-size: 2rem;
        color: var(--primary-color);
        font-weight: 700;
        line-height: 1;
        margin-bottom: 0.5rem;
    }
    
    .stat__label {
        font-size: 0.85rem;
        color: #94a3b8;
    }
    
    /* Visualization sizing */
    .competencies-visual {
        transform: scale(0.85);
        height: 400px;
        margin: 0 auto;
    }
    
    .orbit-ring.small {
        width: 200px;
        height: 200px;
    }
    
    .orbit-ring.large {
        width: 360px;
        height: 360px;
    }
    
    .orbit-item {
        width: 75px;
        height: 75px;
        margin-left: -37.5px;
        margin-top: -37.5px;
    }
    
    .orbit-item i {
        font-size: 1.5rem;
    }
    
    .orbit-item span {
        font-size: 0.6rem;
    }
    
    /* Adjust orbit positions for mobile */
    .orbit-1 .orbit-item:nth-child(1) { 
        --tx: -50%; 
        --ty: -100px; 
    }
    .orbit-1 .orbit-item:nth-child(2) { 
        --tx: 100px; 
        --ty: -50%; 
    }
    .orbit-1 .orbit-item:nth-child(3) { 
        --tx: -50%; 
        --ty: 100px; 
    }
    
    .orbit-2 .orbit-item:nth-child(1) { 
        --tx: -125px; 
        --ty: -125px; 
    }
    .orbit-2 .orbit-item:nth-child(2) { 
        --tx: 125px; 
        --ty: -125px; 
    }
    .orbit-2 .orbit-item:nth-child(3) { 
        --tx: 125px; 
        --ty: 125px; 
    }
    .orbit-2 .orbit-item:nth-child(4) { 
        --tx: -125px; 
        --ty: 125px; 
    }
    
    /* Team section */
    .team {
        padding: 4rem 0;
    }
    
    .team h2 {
        font-size: 2rem;
    }
    
    .team__text ul {
        text-align: left;
        max-width: 400px;
        margin: 1.5rem auto 0;
    }
    
    /* Specialties section */
    .specialties {
        padding: 4rem 0;
    }
    
    .specialties h2 {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .specialty-card {
        padding: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .specialty-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero__stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 100px;
    }
    
    .stat__number {
        font-size: 1.8rem;
    }
    
    .stat__label {
        font-size: 0.8rem;
    }
    
    .competencies-visual {
        transform: scale(0.7);
        height: 350px;
    }
    
    .orbit-item {
        width: 65px;
        height: 65px;
        margin-left: -32.5px;
        margin-top: -32.5px;
    }
    
    .orbit-item i {
        font-size: 1.3rem;
    }
    
    .orbit-item span {
        font-size: 0.55rem;
    }
    
    .orbit-2 .orbit-item:nth-child(1) { 
        --tx: -110px; 
        --ty: -110px; 
    }
    .orbit-2 .orbit-item:nth-child(2) { 
        --tx: 110px; 
        --ty: -110px; 
    }
    .orbit-2 .orbit-item:nth-child(3) { 
        --tx: 110px; 
        --ty: 110px; 
    }
    .orbit-2 .orbit-item:nth-child(4) { 
        --tx: -110px; 
        --ty: 110px; 
    }
}

@media (max-width: 480px) {
    
    .hero__stats {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat__number {
        font-size: 1.5rem;
    }
    
    .stat__label {
        font-size: 0.8rem;
    }
    
    .competencies-visual {
        transform: scale(0.6);
        height: 300px;
    }
}

@media (max-width: 768px) {
    /* Hero visual sizing from style.css */
    .hero__visual {
        order: 2;
        margin: 1rem auto 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Competencies visual specific sizing */
    .competencies-visual {
        transform: scale(0.85);
        height: 400px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Orbit ring sizes from style.css */
    .orbit-ring.small {
        width: 200px;
        height: 200px;
    }
    
    .orbit-ring.large {
        width: 360px;
        height: 360px;
    }
    
    /* Orbit item sizes from style.css */
    .orbit-item {
        width: 90px;
        height: 90px;
        margin-left: -37.5px;
        margin-top: -37.5px;
    }
    
    .orbit-item i {
        font-size: 1.5rem;
    }
    
    .orbit-item span {
        font-size: 0.6rem;
    }
    
    /* Position adjustments from style.css */
    .orbit-1 .orbit-item:nth-child(1) { 
        --tx: -50%; 
        --ty: -100px; 
    }
    .orbit-1 .orbit-item:nth-child(2) { 
        --tx: 100px; 
        --ty: -50%; 
    }
    .orbit-1 .orbit-item:nth-child(3) { 
        --tx: -50%; 
        --ty: 100px; 
    }
    
    .orbit-2 .orbit-item:nth-child(1) { 
        --tx: -125px; 
        --ty: -125px; 
    }
    .orbit-2 .orbit-item:nth-child(2) { 
        --tx: 125px; 
        --ty: -125px; 
    }
    .orbit-2 .orbit-item:nth-child(3) { 
        --tx: 125px; 
        --ty: 125px; 
    }
    .orbit-2 .orbit-item:nth-child(4) { 
        --tx: -125px; 
        --ty: 125px; 
    }
}

@media (max-width: 576px) {
    .competencies-visual {
        transform: scale(0.7);
        height: 350px;
        max-width: 350px;
    }
    
    .orbit-item {
        width: 65px;
        height: 65px;
        margin-left: -32.5px;
        margin-top: -32.5px;
    }
    
    .orbit-item i {
        font-size: 1.3rem;
    }
    
    .orbit-item span {
        font-size: 0.55rem;
    }
    
    .orbit-2 .orbit-item:nth-child(1) { 
        --tx: -110px; 
        --ty: -110px; 
    }
    .orbit-2 .orbit-item:nth-child(2) { 
        --tx: 110px; 
        --ty: -110px; 
    }
    .orbit-2 .orbit-item:nth-child(3) { 
        --tx: 110px; 
        --ty: 110px; 
    }
    .orbit-2 .orbit-item:nth-child(4) { 
        --tx: -110px; 
        --ty: 110px; 
    }
}

@media (max-width: 480px) {
    .competencies-visual {
        transform: scale(0.9);
        height: 400px;
        max-width: 400px;
    }
    
    .orbit-item {
        width: 65px;
        height: 65px;
        margin-left: -32.5px;
        margin-top: -32.5px;
    }
    
    .orbit-item i {
        font-size: 1.1rem;
    }
    
    .orbit-item span {
        font-size: 0.5rem;
    }
    
    .orbit-2 .orbit-item:nth-child(1) { 
        --tx: -130px; 
        --ty: -130px; 
    }
    .orbit-2 .orbit-item:nth-child(2) { 
        --tx: 130px; 
        --ty: -130px; 
    }
    .orbit-2 .orbit-item:nth-child(3) { 
        --tx: 130px; 
        --ty: 130px; 
    }
    .orbit-2 .orbit-item:nth-child(4) { 
        --tx: -130px; 
        --ty: 130px; 
    }
}

/* Add to competencies.css */
.competency-hub {
    background: white;
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hub-logo {
    margin-top: -10px;
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(42, 93, 187, 0.5));
    animation: hubPulse 3s ease-in-out infinite;
}

/* Adjust the hub size on mobile if needed */
@media (max-width: 768px) {
    .competency-hub {
        width: 70px;
        height: 70px;
    }
    
    .hub-logo {
        width: 55px;
        height: 55px;
    }
}