/* Modern About Section */
.rainbow-pulse {
    font-size: 1.5em;
    font-weight: bold;
    background: linear-gradient(90deg, #ff0, #f80, #f0f, #ff0000, #141414, #ff0);
    background-size: 400% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow 8s infinite linear;
}

@keyframes rainbow {
    to {
        background-position: 400% center;
    }
}

.hec-modern-about {
    padding: 5rem 2rem;
    background: #a1c9f1;
    position: relative;
    overflow: hidden;
    /* margin-top: 39px; */
}

.hec-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hec-about-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.hec-section-tag {
    display: inline-block;
    color: #98ff78;
    width: 112px;
    /* padding: 0.5rem 1rem; */
    /* border-radius: 0px; */
    font-size: 0.875rem;
    font-weight: 600;
    /* margin-bottom: 1rem; */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hec-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.hec-section-title span {
    color: #3b82f6;
    position: relative;
}

.hec-section-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(59, 130, 246, 0.2);
    z-index: -1;
}

.hec-about-text {
    color: #4b5563;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Stats Container with Hover Animations */
.hec-stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hec-stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hec-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #3b82f6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.hec-stat-item:hover {
    /* height: 140px; */
    transform: translateY(-8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.hec-stat-item:hover::before {
    transform: scaleX(1);
}

.hec-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.hec-stat-item:hover .hec-stat-number {
    font-size: 2.2rem;
    color: #3b82f6;
}

.hec-stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.hec-stat-item:hover .hec-stat-label {
    font-weight: 600;
    color: #4b5563;
}

.hec-cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hec-primary-btn,
.hec-secondary-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.hec-primary-btn {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.hec-primary-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.25);
}

.hec-secondary-btn {
    background: white;
    color: #3b82f6;
    border: 1px solid #d1d5db;
}

.hec-secondary-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    border-color: #9ca3af;
}

.hec-image-gallery {
    position: relative;
    height: 500px;
    bottom: 163px;
}

.hec-main-image {
    position: absolute;
    width: 70%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 2;
    right: 0;
    top: 0;
    transition: transform 0.5s ease;
}

.hec-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hec-main-image:hover {
    transform: translateY(-5px);
}

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

.hec-secondary-image {
    position: absolute;
    width: 60%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 1;
    left: 0;
    bottom: 0;
    border: 4px solid white;
    transition: transform 0.5s ease;
}

.hec-secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hec-secondary-image:hover {
    transform: translateY(-5px);
}

.hec-floating-badge {
    position: absolute;
    background: #5870ef;
    min-width: 235px;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 3;
    bottom: 100px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.hec-floating-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.15);
}

.hec-badge-icon {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.hec-badge-text {
    font-weight: 600;
    color: #1f2937;
}

/* Video Modal Styles */
.hec-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.hec-video-modal-content {
    width: 80%;
    max-width: 900px;
    position: relative;
}

.hec-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.hec-close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hec-close-modal:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hec-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hec-image-gallery {
        height: 400px;
        margin-top: 2rem;
        bottom: 30px;
    }

    .hec-main-image {
        height: 350px;
    }

    .hec-secondary-image {
        height: 250px;
    }

    .hec-video-modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .hec-modern-about {
        padding: 3rem 1.5rem;
    }

    .hec-section-title {
        font-size: 2rem;
    }

    .hec-image-gallery {
        height: 350px;
        bottom: 14px;
    }

    .hec-main-image {
        height: 300px;
        width: 80%;
    }

    .hec-secondary-image {
        height: 200px;
        width: 70%;
    }

    .hec-floating-badge {
        padding: 0.75rem 1.25rem;
        bottom: 80px;
        left: -20px;
    }

    .hec-stat-item {
        height: 110px;
    }

    .hec-stat-item:hover {
        height: 120px;
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .hec-cta-buttons {
        flex-direction: column;
    }

    .hec-image-gallery {
        height: 300px;
    }

    .hec-main-image {
        height: 250px;
    }

    .hec-secondary-image {
        height: 150px;
    }

    .hec-floating-badge {
        left: 0;
        bottom: 60px;
    }

    .hec-video-modal-content {
        width: 95%;
    }

    /* .hec-stats-container {
        grid-template-columns: 1fr;
    } */

    .hec-stat-item {
        height: 100px;
    }

    .hec-stat-item:hover {
        height: 110px;
    }
}

.with-skills {
    min-width: 56px;
    position: absolute;
    top: 43px;
    left: 97px;
    overflow: hidden;
}

/* .typing-animation {
    position: relative;
    display: inline-block;
    color: #ffeb3b;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    animation:
        typing 2s steps(11) forwards,
        fullLoop 6s infinite;
}


.typing-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 235, 59, 0.3);
    z-index: -1;
    animation:
        highlight 0.5s 2s forwards,
        reset 0.5s 5s forwards;
}

@keyframes typing {
    from { width: 0; }
    to { width: 11ch; }
}

@keyframes highlight {
    to { width: 100%; }
}

@keyframes reset {
    to { width: 0; }
}

@keyframes fullLoop {
    0% { width: 0; }
    30% { width: 11ch; }
    70% { width: 11ch; }
    100% { width: 0; }
} */



.typing-animation {
    position: absolute;
    min-width: 118px;
    left: 99px;
    font-size: 1rem;
    top: 41px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff0, #f80, #ff00ff, #ff0000, #000000, #ff0);
    background-size: 400% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: rainbow 8s infinite linear;
}
