/* ===============================================
   HARMONIOUS LIGHT HEXAGON AVATAR
   Elegant • Clean • Professional • Cohesive
   =============================================== */

:root {
    /* Light harmonious colors that match your hero */
    --avatar-white: #ffffff;
    --avatar-light: #f8fafc;
    --avatar-soft: #f1f5f9;
    --avatar-blue: #3b82f6;
    --avatar-indigo: #6366f1;
    --avatar-violet: #8b5cf6;
    --avatar-cyan: #06b6d4;
    --avatar-emerald: #10b981;
    --avatar-slate: #64748b;
    --avatar-gray: #94a3b8;
    
    /* Soft shadows and glows */
    --avatar-shadow-soft: rgba(59, 130, 246, 0.08);
    --avatar-shadow-medium: rgba(99, 102, 241, 0.12);
    --avatar-glow-blue: rgba(59, 130, 246, 0.15);
    --avatar-glow-indigo: rgba(99, 102, 241, 0.12);
    --avatar-border-light: rgba(226, 232, 240, 0.8);
    --avatar-border-medium: rgba(203, 213, 225, 0.9);
    
    /* Refined gradients */
    --avatar-gradient-primary: linear-gradient(135deg, 
        var(--avatar-white) 0%, 
        var(--avatar-light) 50%, 
        var(--avatar-soft) 100%);
    --avatar-gradient-accent: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.03) 0%, 
        rgba(99, 102, 241, 0.02) 50%, 
        rgba(139, 92, 246, 0.03) 100%);
}

/* ===============================================
   ELEGANT CONTAINER ENVIRONMENT
   =============================================== */

.hexagon-showcase-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 700px;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    background: transparent;
    margin-top: -240px; /* Even more lift */
}

.hexagon-container-large {
    position: relative;
    width: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1200px;
    transform: translateY(-140px); /* Even more lift */
}

/* ===============================================
   SOPHISTICATED HEXAGON FRAME
   =============================================== */

.hexagon-frame-large {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.hexagon-frame-large:hover {
    transform: scale(1.02) rotateY(5deg);
}

/* Elegant Light Border System */
.hexagon-border {
    position: absolute;
    width: 100%;
    height: 100%;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: 1;
    background: transparent;
    box-shadow: 
        0 20px 40px var(--avatar-shadow-soft),
        0 8px 16px var(--avatar-shadow-medium);
    transition: all 0.6s ease;
}

.hexagon-border::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: conic-gradient(from 0deg, 
        var(--avatar-blue) 0%, 
        var(--avatar-indigo) 25%, 
        var(--avatar-violet) 50%, 
        var(--avatar-cyan) 75%, 
        var(--avatar-blue) 100%);
    clip-path: inherit;
    padding: 2px;
    opacity: 0.8;
    animation: elegantSpin 25s linear infinite;
    filter: blur(0.5px);
}

.hexagon-border::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: transparent;
    clip-path: inherit;
    z-index: 2;
}

/* Professional Image Container */
.hexagon-image {
    position: relative;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    z-index: 5;
    overflow: hidden;
    background: transparent;
}

.hexagon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: 
        brightness(1.05) 
        contrast(1.1) 
        saturate(1.15);
}

.hexagon-frame-large:hover .hexagon-image img {
    transform: scale(1.05);
    filter: 
        brightness(1.08) 
        contrast(1.15) 
        saturate(1.2);
}

/* ===============================================
   ELEGANT ORBITAL RINGS
   =============================================== */

.hexagon-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--avatar-border-light);
    animation: smoothOrbit 30s linear infinite;
    opacity: 0.4;
    transition: all 0.6s ease;
}

.ring-outer {
    width: 480px;
    height: 480px;
    border-color: var(--avatar-blue);
    animation-duration: 35s;
    animation-direction: reverse;
}

.ring-middle {
    width: 420px;
    height: 420px;
    border-color: var(--avatar-indigo);
    animation-duration: 28s;
}

.hexagon-container-large:hover .hexagon-ring {
    opacity: 0.7;
    transform: scale(1.02);
}

/* Ring Decorative Dots */
.ring-outer::before,
.ring-middle::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--avatar-blue);
    border-radius: 50%;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--avatar-glow-blue);
}

.ring-middle::before {
    background: var(--avatar-indigo);
    box-shadow: 0 0 12px var(--avatar-glow-indigo);
}

/* ===============================================
   SOPHISTICATED STATUS LABELS
   =============================================== */

.status-labels {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

.status-label {
    position: absolute;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--avatar-slate);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    animation: statusFloat 4s ease-in-out infinite;
    box-shadow: 
        0 4px 12px var(--avatar-shadow-soft),
        0 2px 4px var(--avatar-shadow-medium);
    backdrop-filter: blur(10px);
    transition: all 0.6s ease;
}

.status-label::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--avatar-blue);
    border-radius: 50%;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    animation: statusPulse 2s ease-in-out infinite;
}

/* Label Positioning */
.top-left {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.top-right {
    top: 10%;
    right: 5%;
    animation-delay: 1s;
}

.bottom-left {
    bottom: 10%;
    left: 5%;
    animation-delay: 2s;
}

.bottom-right {
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
}

.top-right::before {
    background: var(--avatar-indigo);
}

.bottom-left::before {
    background: var(--avatar-cyan);
}

.bottom-right::before {
    background: var(--avatar-emerald);
}

/* Hover Effects for Labels */
.hexagon-container-large:hover .status-label {
    opacity: 1;
    transform: translateY(0);
    color: var(--avatar-blue);
    border-color: var(--avatar-blue);
}

/* ===============================================
   REFINED ANIMATIONS
   =============================================== */

@keyframes elegantSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes smoothOrbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes statusFloat {
    0%, 100% { 
        opacity: 0.6; 
        transform: translateY(0); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-5px); 
    }
}

@keyframes statusPulse {
    0%, 100% { 
        opacity: 0.7; 
        transform: translateY(-50%) scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-50%) scale(1.2); 
    }
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1200px) {
    .hexagon-container-large {
        width: 480px;
        height: 480px;
        transform: translateY(-120px);
    }
    
    .hexagon-frame-large {
        width: 340px;
        height: 340px;
    }
    
    .ring-outer {
        width: 440px;
        height: 440px;
    }
    
    .ring-middle {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 992px) {
    .hexagon-showcase-large {
        min-height: 600px;
        padding: 3rem 1rem;
        margin-top: -220px;
    }
    
    .hexagon-container-large {
        width: 420px;
        height: 420px;
        transform: translateY(-100px);
    }
    
    .hexagon-frame-large {
        width: 300px;
        height: 300px;
    }
    
    .ring-outer {
        width: 380px;
        height: 380px;
    }
    
    .ring-middle {
        width: 340px;
        height: 340px;
    }
    
    .status-label {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .hexagon-showcase-large {
        min-height: 500px;
        padding: 2rem 1rem;
        margin-top: -200px;
    }
    
    .hexagon-container-large {
        width: 350px;
        height: 350px;
        transform: translateY(-80px);
    }
    
    .hexagon-frame-large {
        width: 250px;
        height: 250px;
    }
    
    .ring-outer {
        width: 320px;
        height: 320px;
    }
    
    .ring-middle {
        width: 280px;
        height: 280px;
    }
    
    .status-label {
        font-size: 10px;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .hexagon-showcase-large {
        min-height: 450px;
        padding: 1.5rem 0.5rem;
        margin-top: -180px;
    }
    
    .hexagon-container-large {
        width: 300px;
        height: 300px;
        transform: translateY(-60px);
    }
    
    .hexagon-frame-large {
        width: 220px;
        height: 220px;
    }
    
    .ring-outer {
        width: 280px;
        height: 280px;
    }
    
    .ring-middle {
        width: 250px;
        height: 250px;
    }
    
    .status-label {
        font-size: 9px;
        padding: 4px 8px;
        opacity: 0.8;
    }
    
    /* Simplify animations on mobile */
    .hexagon-ring {
        animation-duration: 60s;
    }
    
    .status-label {
        animation: none;
        opacity: 0.7;
        transform: none;
    }
}

@media (max-width: 400px) {
    .hexagon-container-large {
        width: 260px;
        height: 260px;
        transform: translateY(-40px);
    }
    
    .hexagon-frame-large {
        width: 190px;
        height: 190px;
    }
    
    .ring-outer {
        width: 240px;
        height: 240px;
    }
    
    .ring-middle {
        width: 220px;
        height: 220px;
    }
    
    .status-labels {
        display: none; /* Hide labels on very small screens */
    }
}

/* ===============================================
   ACCESSIBILITY & PERFORMANCE
   =============================================== */

@media (prefers-reduced-motion: reduce) {
    .hexagon-border::before,
    .hexagon-ring,
    .status-label {
        animation: none;
    }
    
    .hexagon-frame-large:hover {
        transform: scale(1.01);
    }
    
    .hexagon-frame-large:hover .hexagon-image img {
        transform: scale(1.02);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --avatar-border-light: #000000;
        --avatar-border-medium: #000000;
        --avatar-blue: #0066cc;
        --avatar-indigo: #4d4dff;
        --avatar-slate: #333333;
    }
}

/* Dark mode compatibility (just in case) */
@media (prefers-color-scheme: dark) {
    .hexagon-showcase-large {
        background: 
            radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 45%),
            radial-gradient(circle at 70% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 45%),
            linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }
    
    .hexagon-border,
    .hexagon-image,
    .status-label {
        background: #2a2a2a;
        border-color: rgba(255, 255, 255, 0.1);
    }
}
