/* ============================================
   ABOUT.CSS - About Section with AI Avatar
   Digital George 2026
   ============================================ */

.about {
    background: var(--dark-2);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.05), transparent);
    pointer-events: none;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.about-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LEFT: AI AVATAR VISUAL
   ============================================ */

.about-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AVATAR FRAME */
.avatar-frame {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-2), #000);
    border: 2px solid rgba(0, 245, 255, 0.3);
    box-shadow: 
        0 0 40px rgba(0, 245, 255, 0.3),
        inset 0 0 30px rgba(0, 245, 255, 0.05);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { 
        border-color: rgba(0, 245, 255, 0.3);
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.3);
    }
    50% { 
        border-color: rgba(112, 0, 255, 0.5);
        box-shadow: 0 0 60px rgba(112, 0, 255, 0.4);
    }
}

/* AVATAR IMAGE */
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.05) contrast(1.1);
    transition: all 0.3s ease;
}

.avatar-frame:hover .avatar-image {
    filter: brightness(1.15) contrast(1.15);
    transform: scale(1.05);
}

/* FALLBACK ICON */
.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-1), var(--dark-2));
    font-size: 6rem;
    color: var(--cyan);
    opacity: 0;
    pointer-events: none;
}

.avatar-image:not([src]),
.avatar-image[src=""],
.avatar-image[src*="placeholder"] ~ .avatar-fallback {
    opacity: 1;
}

/* GLOW EFFECT */
.avatar-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.2), rgba(112, 0, 255, 0.1), transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* CODE PARTICLES */
.code-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--cyan);
    opacity: 0;
    animation: float-symbol 6s ease-in-out infinite;
}

.code-symbol:nth-child(1) { top: 10%; left: -20%; animation-delay: 0s; }
.code-symbol:nth-child(2) { top: 30%; right: -20%; animation-delay: 1s; }
.code-symbol:nth-child(3) { bottom: 30%; left: -15%; animation-delay: 2s; }
.code-symbol:nth-child(4) { bottom: 10%; right: -15%; animation-delay: 3s; }
.code-symbol:nth-child(5) { top: 50%; left: -25%; animation-delay: 4s; }
.code-symbol:nth-child(6) { top: 70%; right: -25%; animation-delay: 5s; }

@keyframes float-symbol {
    0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
    10%, 90% { opacity: 0.4; }
    50% { opacity: 0.7; transform: translateY(-20px) rotate(180deg); }
}

/* ORBITING TECH ICONS */
.orbit-container {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.orbit-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 245, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan);
    animation: orbit 20s linear infinite;
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

.orbit-1 { 
    top: 0; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 0s; 
}

.orbit-2 { 
    top: 50%; 
    right: 0; 
    transform: translateY(-50%);
    animation-delay: 5s; 
}

.orbit-3 { 
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%);
    animation-delay: 10s; 
}

.orbit-4 { 
    top: 50%; 
    left: 0; 
    transform: translateY(-50%);
    animation-delay: 15s; 
}

@keyframes orbit {
    0% { opacity: 0.3; transform: rotate(0deg) translateX(170px) rotate(0deg); }
    50% { opacity: 1; }
    100% { opacity: 0.3; transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}

/* STATUS BADGE */
.status-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-badge:hover {
    background: rgba(57, 255, 20, 0.15);
    transform: scale(1.05);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* ============================================
   RIGHT: CONTENT
   ============================================ */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-header {
    margin-bottom: 1rem;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.story-paragraph .highlight {
    color: var(--cyan);
    font-weight: 700;
}

.story-paragraph strong {
    color: white;
    font-weight: 700;
}

.story-paragraph em {
    color: var(--purple);
    font-style: normal;
    font-weight: 600;
}

/* PHILOSOPHY BOX */
.philosophy-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 245, 255, 0.05);
    border-left: 4px solid var(--cyan);
    border-radius: 12px;
    margin: 1rem 0;
}

.philosophy-icon {
    font-size: 2.5rem;
    color: var(--cyan);
    flex-shrink: 0;
}

.philosophy-content h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.75rem;
}

.philosophy-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* TECH EXAMPLES */
.about-tech-preview {
    margin-top: 1rem;
}

.about-tech-preview h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.tech-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-example {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.tech-example:hover {
    background: rgba(0, 245, 255, 0.05);
    border-color: var(--cyan);
    transform: translateX(5px);
}

.tech-example i {
    font-size: 1.5rem;
    color: var(--cyan);
    flex-shrink: 0;
}

.tech-example span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Tooltip */
.tech-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 245, 255, 0.95);
    color: var(--dark-1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tech-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 245, 255, 0.95);
}

.tech-tooltip.visible {
    opacity: 1;
}

/* CTA BUTTON */
.about-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

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

@media (max-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .about-visual {
        order: -1;
    }
    
    .about-content {
        align-items: center;
    }
    
    .philosophy-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tech-examples {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 5rem 0;
    }
    
    .avatar-container {
        width: 280px;
        height: 280px;
    }
    
    .avatar-frame {
        width: 240px;
        height: 240px;
    }
    
    .code-symbol {
        font-size: 1.2rem;
    }
    
    .orbit-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .story-paragraph {
        font-size: 1rem;
    }
}