/* 
* About Page Specific Styles
* For Johnny Ruangmei Portfolio
*/

/* Animation Keyframes */

.text-justify {
    text-align: justify;
    text-justify: inter-word; /* helps balance spacing */
  }
@keyframes slideInRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* About Page Section Styles */

.img-border{
    border-radius: 10px;
    /* box-shadow: 0 0 15px 0 rgba(45, 45, 45, 0.5);
    border: 1px solid #2d0505; */
}


.about {
    padding: 4rem;
    background-color: #1a1a1a; /* Dark gray background */
    color: #fff;
    min-height: 100vh;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: #ff6b00; /* Orange color */
}

/* Adding h1 styles to match h2 styles for SEO purposes */
.about h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    color: #ff6b00; /* Orange color */
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #ff6b00;
}

/* Adding h1::after to match h2::after for SEO purposes */
.about h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: #ff6b00;
}

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

.info-item {
    margin-bottom: 1.5rem;
}

.info-item:nth-child(1) { --item-index: 1; }
.info-item:nth-child(2) { --item-index: 2; }
.info-item:nth-child(3) { --item-index: 3; }
.info-item:nth-child(4) { --item-index: 4; }
.info-item:nth-child(5) { --item-index: 5; }
.info-item:nth-child(6) { --item-index: 6; }

.info-item label {
    font-weight: 600;
    color: #ff6b00; /* Orange color */
    margin-bottom: 0.5rem;
    display: block;
}

.info-item span {
    color: #ccc;
}

.professional-profile {
    margin-top: 2rem;
}

.professional-profile h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ff6b00; /* Orange color */
}

.professional-profile p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #222;
    border-radius: 10px;
}

.bio-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ff6b00; /* Orange color */
}

.bio-section p {
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive Styles */

@media (max-width: 1024px) {
    .about h2 {
        font-size: 2rem;
    }
    
    /* Adding h1 media query styles to match h2 for SEO purposes */
    .about h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 1.5rem;
    }
    
    .about h2 {
        font-size: 1.8rem;
    }
    
    /* Adding h1 media query styles to match h2 for SEO purposes */
    .about h1 {
        font-size: 1.8rem;
    }
    
    body.menu-open .about {
        opacity: 0.3;
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 1rem;
    }
    
    .about h2 {
        font-size: 1.5rem;
    }
    
    /* Adding h1 media query styles to match h2 for SEO purposes */
    .about h1 {
        font-size: 1.5rem;
    }

    .about h2::after {
        width: 60px;
        height: 3px;
    }
    
    /* Adding h1::after media query styles to match h2::after for SEO purposes */
    .about h1::after {
        width: 60px;
        height: 3px;
    }
    
    .info-item {
        margin-bottom: 1rem;
    }
    
    .professional-profile h3 {
        font-size: 1.5rem;
    }
    
    .professional-profile p {
        font-size: 0.95rem;
    }
}

/* Note: Scroll down button styling is now centralized in the main style.css file */ 