/* Section Styles - About Section */

/* About Section */
.about-section {
    padding: 60px 0;
    background: rgba(139, 10, 26, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with Level Indicator */
.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff8a8a 0%, #FF1A1A 50%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.level-indicator {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(30, 20, 25, 0.92);
    padding: 15px 25px;
    border-radius: 25px;
    border: 1px solid rgba(139, 10, 26, 0.3);
}

.level-text {
    font-weight: 600;
    color: #FF1A1A;
    font-size: 1.1rem;
}

.xp-bar {
    width: 120px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF0000, #ff6b6b);
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0%;
}

.xp-text {
    font-size: 0.95rem;
    color: #c8c8c8;
}

/* Grid Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

.about-text {
    order: 2;
}

.about-description {
    color: #d0d0d0;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(139, 10, 26, 0.1);
    border: 1px solid rgba(139, 10, 26, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 10, 26, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(139, 10, 26, 0.3);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Custom SVG Icons */
.stat-icon .custom-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
    transition: all 0.3s ease;
}

.stat-card:hover .custom-icon {
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.7));
    transform: scale(1.1);
}

.icon-leaf {
    animation: leafSway 4s ease-in-out infinite;
}

.icon-design {
    animation: potBubble 3s ease-in-out infinite;
}

.icon-shipping {
    animation: vanDrive 2s ease-in-out infinite;
}

.icon-love {
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes leafSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes potBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes vanDrive {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF0000, #ff6b6b);
    border-radius: 3px;
    transition: width 1.5s ease;
    width: 0%;
}

.stat-value {
    font-size: 0.95rem;
    color: #FF1A1A;
    font-weight: 600;
}

/* Achievement Badge */
.achievement-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
}

.badge-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.badge-icon .custom-icon {
    width: 56px;
    height: 56px;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.5));
    animation: globeSpin 20s linear infinite;
}

@keyframes globeSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.badge-text h4 {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.badge-text p {
    color: #c8c8c8;
    font-size: 0.95rem;
    margin: 0;
}

/* Visual Section */
.about-visual {
    order: 1;
    text-align: center;
}

.visual-container {
    position: relative;
    display: inline-block;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.about-img:hover {
    transform: scale(1.05);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.8;
    will-change: transform;
}

/* Floating SVG Icons */
.floating-element .float-icon {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}

/* First floating element - Circular path */
.floating-element:nth-child(1) {
    top: 15%;
    left: 20%;
    animation: floatCircle 8s ease-in-out infinite;
}

/* Second floating element - Figure-8 path */
.floating-element:nth-child(2) {
    top: 25%;
    right: 25%;
    animation: floatFigure8 12s ease-in-out infinite;
}

/* Third floating element - Wave path */
.floating-element:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation: floatWave 10s ease-in-out infinite;
}

/* Fourth floating element - Spiral path */
.floating-element:nth-child(4) {
    top: 40%;
    left: 60%;
    animation: floatSpiral 15s ease-in-out infinite;
}

/* Fifth floating element - Zigzag path */
.floating-element:nth-child(5) {
    top: 60%;
    right: 10%;
    animation: floatZigzag 9s ease-in-out infinite;
}

/* Sixth floating element - Bounce path */
.floating-element:nth-child(6) {
    bottom: 15%;
    right: 30%;
    animation: floatBounce 7s ease-in-out infinite;
}

/* Circular floating animation */
@keyframes floatCircle {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(30px, -20px) rotate(90deg) scale(1.1);
    }
    50% { 
        transform: translate(0, -40px) rotate(180deg) scale(0.9);
    }
    75% { 
        transform: translate(-30px, -20px) rotate(270deg) scale(1.1);
    }
    100% { 
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Figure-8 floating animation */
@keyframes floatFigure8 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(25px, -15px) rotate(90deg) scale(1.2);
    }
    50% { 
        transform: translate(0, -30px) rotate(180deg) scale(0.8);
    }
    75% { 
        transform: translate(-25px, -15px) rotate(270deg) scale(1.2);
    }
    100% { 
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Wave floating animation */
@keyframes floatWave {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% { 
        transform: translate(20px, -10px) rotate(72deg) scale(1.1);
    }
    40% { 
        transform: translate(40px, 0px) rotate(144deg) scale(0.9);
    }
    60% { 
        transform: translate(20px, 10px) rotate(216deg) scale(1.1);
    }
    80% { 
        transform: translate(0px, 0px) rotate(288deg) scale(0.9);
    }
    100% { 
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Spiral floating animation */
@keyframes floatSpiral {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    16.66% { 
        transform: translate(15px, -15px) rotate(60deg) scale(1.1);
    }
    33.33% { 
        transform: translate(30px, 0px) rotate(120deg) scale(0.9);
    }
    50% { 
        transform: translate(15px, 15px) rotate(180deg) scale(1.1);
    }
    66.66% { 
        transform: translate(0px, 30px) rotate(240deg) scale(0.9);
    }
    83.33% { 
        transform: translate(-15px, 15px) rotate(300deg) scale(1.1);
    }
    100% { 
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Zigzag floating animation */
@keyframes floatZigzag {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% { 
        transform: translate(25px, -20px) rotate(45deg) scale(1.2);
    }
    50% { 
        transform: translate(-25px, -40px) rotate(90deg) scale(0.8);
    }
    75% { 
        transform: translate(25px, -20px) rotate(135deg) scale(1.2);
    }
    100% { 
        transform: translate(0, 0) rotate(180deg) scale(1);
    }
}

/* Bounce floating animation */
@keyframes floatBounce {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    20% { 
        transform: translate(10px, -25px) rotate(36deg) scale(1.3);
    }
    40% { 
        transform: translate(20px, 0px) rotate(72deg) scale(0.7);
    }
    60% { 
        transform: translate(10px, -25px) rotate(108deg) scale(1.3);
    }
    80% { 
        transform: translate(0px, 0px) rotate(144deg) scale(0.7);
    }
    100% { 
        transform: translate(0, 0) rotate(180deg) scale(1);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .about-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .about-text {
        order: 1;
    }
    
    .about-visual {
        order: 2;
    }
    
    .about-description {
        text-align: left;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1024px) {
    .about-section {
        padding: 100px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .level-indicator {
        padding: 20px 30px;
    }
    
    .xp-bar {
        width: 150px;
    }
}

/* Animation Classes */
.stat-card.animate .stat-fill {
    animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
    to {
        width: var(--fill-width);
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .level-indicator {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }
    
    .xp-bar {
        width: 100px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .achievement-badge {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .floating-element {
        font-size: 1.2rem;
        animation-duration: 6s;
    }

    .floating-element .float-icon {
        width: 22px;
        height: 22px;
    }

    .stat-icon .custom-icon {
        width: 40px;
        height: 40px;
    }

    .badge-icon .custom-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Reduce movement range on mobile */
    .floating-element:nth-child(1) {
        animation: floatCircle 6s ease-in-out infinite;
    }
    
    .floating-element:nth-child(2) {
        animation: floatFigure8 8s ease-in-out infinite;
    }
    
    .floating-element:nth-child(3) {
        animation: floatWave 7s ease-in-out infinite;
    }
    
    .floating-element:nth-child(4) {
        animation: floatSpiral 10s ease-in-out infinite;
    }
    
    .floating-element:nth-child(5) {
        animation: floatZigzag 6s ease-in-out infinite;
    }
    
    .floating-element:nth-child(6) {
        animation: floatBounce 5s ease-in-out infinite;
    }
} 