/* About Section Styles */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-container {
    width: 280px;
    height: auto;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: contain;
    background: transparent;
    transition: all 0.3s ease;
}

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

/* Remove hover effect on touch devices */
@media (hover: none) {
    .about-image img:hover {
        transform: none;
    }
}

/* Floating tech icons around about image */
.about-tech-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    animation: float-about-icons 3s ease-in-out infinite;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.about-tech-icon:nth-child(1) {
    top: 10%;
    left: -20px;
    animation-delay: 0s;
}

.about-tech-icon:nth-child(2) {
    top: 30%;
    right: -20px;
    animation-delay: 0.5s;
}

.about-tech-icon:nth-child(3) {
    bottom: 30%;
    left: -15px;
    animation-delay: 1s;
}

.about-tech-icon:nth-child(4) {
    bottom: 10%;
    right: -15px;
    animation-delay: 1.5s;
}

@keyframes float-about-icons {

    0%,
    100% {
        transform: translateY(0px);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.about-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow-light);
}

/* Remove hover effect on touch devices */
@media (hover: none) {
    .stat {
        transition: all 1s ease;
    }

    .stat:hover {
        transform: none;
        border-color: var(--border-color);
        box-shadow: none;
    }

    .stat:active {
        transform: scale(0.95);
        border-color: var(--primary-color);
        transition: all 0s ease;
    }
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 0 2rem;
    }

    .about-image-container {
        width: 180px;
        height: auto;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 576px) {
    .about-content {
        padding: 0 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .about-content {
        padding: 0 2rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .stat {
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}