/* Blog Section - Optimized Performance Design */

/* Layer5 must be scrollable */
.layer5 {
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

.layer5::-webkit-scrollbar {
    width: 8px;
}

.layer5::-webkit-scrollbar-thumb {
    background: #9900ba;
    border-radius: 44px;
}

.layer5::-webkit-scrollbar-track {
    background: transparent;
}

/* Container */
.blog-container {
    position: relative;
    padding: 40px 60px 100px;
}

/* Hero Section */
.blog-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 20px 0 50px;
    flex-wrap: wrap;
}

.blog-hero-content {
    flex: 1;
    min-width: 300px;
}

.blog-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.wave-emoji {
    font-size: 2.5rem;
    display: inline-block;
    animation: wave 2s ease-in-out 1;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(14deg);
    }

    40% {
        transform: rotate(-8deg);
    }

    60% {
        transform: rotate(14deg);
    }

    80% {
        transform: rotate(0deg);
    }
}

.greeting-text {
    font-size: 1.3rem;
    color: #aaa;
    font-weight: 500;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.blog-title.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.name-highlight {
    background: linear-gradient(135deg, #1fe6ff, #673ab7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-tagline {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.blog-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #1fe6ff;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1fe6ff;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Avatar - Simplified animations */
.blog-avatar {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

.blog-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(31, 230, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.avatar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    border: 2px solid rgba(31, 230, 255, 0.15);
    border-radius: 50%;
    z-index: 0;
}

/* Section Titles */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.title-icon {
    font-size: 1.6rem;
}

/* About Section */
.blog-about {
    padding: 40px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.about-text {
    color: #bbb;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 18px;
}

.highlight-text {
    font-size: 1.1rem;
    color: #ddd;
    border-left: 3px solid #1fe6ff;
    padding-left: 18px;
    margin-bottom: 22px !important;
}

.about-text strong {
    color: #1fe6ff;
}

/* Skill Cards - Optimized */
.skill-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #1fe6ff;
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.skill-card h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 6px;
}

.skill-card p {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* Journey Timeline - Simplified */
.blog-journey {
    padding: 40px 0;
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #1fe6ff, #673ab7);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: #1fe6ff;
    border-radius: 50%;
    border: 3px solid #111;
    box-shadow: 0 0 10px rgba(31, 230, 255, 0.4);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    transition: border-color 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: rgba(31, 230, 255, 0.3);
}

.timeline-year {
    display: inline-block;
    background: linear-gradient(135deg, #1fe6ff, #673ab7);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.timeline-content p {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Testimonials - Simplified */
.blog-testimonials {
    padding: 40px 0 60px;
}

.blog-testimonials .swiper-container {
    width: 100%;
    padding: 20px 10px 50px;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(31, 230, 255, 0.08), rgba(103, 58, 183, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    font-size: 3.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #1fe6ff, #673ab7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.testimonial-card>p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px 0 12px;
}

.author-avatar {
    font-size: 2.2rem;
}

.author-info h4 {
    color: white;
    font-size: 0.95rem;
    margin: 0 0 2px 0;
}

.author-info span {
    color: #888;
    font-size: 0.8rem;
}

.testimonial-card .rating {
    color: #ffc107;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Swiper overrides */
.blog-testimonials .swiper-slide {
    width: 320px !important;
    height: auto !important;
    background: none !important;
}

.blog-testimonials .swiper-button-next,
.blog-testimonials .swiper-button-prev {
    color: #1fe6ff;
}

.blog-testimonials .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    width: 8px;
    height: 8px;
}

.blog-testimonials .swiper-pagination-bullet-active {
    background: #1fe6ff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .blog-container {
        padding: 25px 35px 60px;
    }

    .blog-hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .blog-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .blog-avatar {
        width: 180px;
        height: 180px;
    }

    .avatar-ring {
        width: 200px;
        height: 200px;
    }

    .avatar-glow {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 20px 20px 50px;
    }

    .blog-title {
        font-size: 2.2rem;
    }

    .skill-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .blog-testimonials .swiper-slide {
        width: 260px !important;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-dot {
        left: -28px;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 1.9rem;
    }

    .blog-stats {
        gap: 12px;
    }

    .stat-item {
        padding: 10px 12px;
    }

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

    .blog-avatar {
        width: 140px;
        height: 140px;
    }
}