/* ========== ABOUT PAGE STYLES ========== */

/* Import base styles from projects.css */
@import url('projects.css');

/* ========== BODY STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #7c7c7c; /* Original grey background color */
    color: rgb(255, 255, 255);
    font-family: "instrument-sans-variable", sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scrolling */
}

/* Light theme overrides */
#projects_body_light {
    background-color: #7c7c7c; /* Original grey background color */
    color: rgb(255, 255, 255);
}

#projects_body_light h1,
#projects_body_light h2,
#projects_body_light h3,
#projects_body_light h4 {
    color: rgb(255, 255, 255);
}

#projects_body_light h1 {
    color: #F1E67C;
}

#projects_body_light h4 {
    color: rgb(236, 236, 236);
}

#projects_body_light p {
    color: #e6e6e6;
}

/* ========== ABOUT HEADER ========== */
#about_header {
    padding-top: 160px;
    width: 100%;
    display: flex;
    min-height: auto;
    align-items: flex-start;
    position: relative;
}

#about_header_content {
    width: 100%;
    display: flex;
    height: auto;
    gap: 64px;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    align-items: flex-start;
    position: relative;
    text-align: left;
}

.scrollable-content {
    width: 50%;
    height: auto;
    overflow-y: visible;
    overflow-x: hidden;
    padding-right: 20px;
    padding-top: 0;
    padding-bottom: 40px;
    position: relative;
    text-align: left;
}

.scrollable-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: transparent;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background-color: rgba(241, 230, 124, 0.3);
    border-radius: 3px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(241, 230, 124, 0.5);
}

.hello {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 40px;
    height: auto;
    margin-bottom: 40px;
    min-height: auto;
    position: relative;
    text-align: left;
}

#bio {
    width: 100%;
    margin-bottom: 24px;
    text-align: left;
}

.hello h1 {
    font-size: clamp(48px, 8vw, 120px);
    font-family: "roc-grotesk-wide", sans-serif;
    font-weight: 400;
    color: #F1E67C;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hello h3 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: #d3d3d3;
    line-height: 1.6;
}

#hello_h3_one {
    text-align: left;
    width: 100%;
    align-self: flex-start;
}

#hello_image_container {
    width: 30%;
    height: 700px; 
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: fixed;
    right: 48px;
    top: 160px;
    z-index: 10;
    pointer-events: none;
}

#hello_image_container h4 {
    font-style: italic;
    font-size: clamp(14px, 2vw, 18px);
    color: #F1E67C;
    text-align: center;
    margin: 0;
}

#hello_image {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
}

#hello_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: imageSwitch 6s infinite; 
    transition: opacity 0.5s ease;
}

/* Image 1 */
#hello_image img:nth-child(1) {
    animation-delay: 0s;
    opacity: 1;
}

/* Image 2 */
#hello_image img:nth-child(2) {
    animation-delay: 2s;
    position: absolute;
    top: 0;
    left: 0;
}

/* Image 3 */
#hello_image img:nth-child(3) {
    animation-delay: 4s;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes imageSwitch {
    0%, 33.32%   { opacity: 1; }
    33.33%, 100% { opacity: 0; }
}

/* ========== ABOUT SECTIONS ========== */
.about_sections {
    padding: 0;
    width: 100%;
    margin: 0 0 200px 0;
    position: relative;
    display: block;
}

/* ========== SKILLS SECTION ========== */
#skills {
    font-size: clamp(36px, 6vw, 72px);
    font-family: "roc-grotesk-wide", sans-serif;
    font-weight: 400;
    color: #F1E67C;
    margin-bottom: 1.5rem;
}

#skills_section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

#skills_section h3 {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: rgb(255, 255, 255);
    line-height: 1.6;
    max-width: 100%;
}

/* ========== PERSONAL SECTION ========== */
#hello_h3_two {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    color: #d3d3d3;
    line-height: 1.6;
    max-width: 100%;
    margin-bottom: 2rem;
}

.bracket-text {
    color: #F1E67C;
    font-weight: 500;
}

#about_images_container {
    width: 100%;
    text-align: left;
}

#about_images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 24px;
}

.about_image {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.about_image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.about_image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.about_image:hover img {
    transform: scale(1.08);
}

/* ========== CONTACT FOOTER ========== */
#about_footer {
    margin-bottom: 200px;
    margin-top: 320px;
}

.lets_chat_section {
    width: 100%;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.lets_chat_container {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: left;
}

.lets_chat h1 {
    font-size: clamp(36px, 6vw, 72px);
    font-family: "roc-grotesk-wide", sans-serif;
    font-weight: 400;
    color: #F1E67C;
    line-height: 1.1;
}

.contact_container {
    width: 50%;
}

.contact_content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
    margin-top: 32px;
}

.contact_content h3 {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 300;
    color: #d3d3d3;
    text-align: left;
}

.contact_content a {
    text-decoration: underline;
    color: #F1E67C;
    transition: color 0.3s ease;
}

.contact_content a:hover {
    color: #ffffff;
}

/* ========== MOBILE MENU OVERRIDES ========== */
.hamburger-items h2,
.hamburger-nav h2,
.hamburger-items a h2 {
    color: black !important;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1300px) {
    #about_header_content {
        padding: 0 24px;
    }
    
    .about_sections {
        padding: 60px 24px;
    }
}

@media (max-width: 1024px) {
    #about_header_content {
        flex-direction: column;
        gap: 32px;
        text-align: left;
    }
    
    .scrollable-content {
        width: 100%;
        height: auto;
        overflow-y: visible;
        padding-right: 0;
    }
    
    .hello {
        width: 100%;
        gap: 32px;
    }
    
    #hello_image_container {
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .lets_chat_section {
        flex-direction: column;
        gap: 32px;
    }
    
    .lets_chat_container,
    .contact_container {
        width: 100%;
    }
    
    .contact_content {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 768px) {
    #about_header {
        padding-top: 100px;
    }
    
    #about_header_content {
        padding: 0 20px;
        gap: 24px;
    }
    
    .about_sections {
        padding: 32px 20px;
        margin: 0 0 160px 0;
    }
    
    #about_footer {
        margin-bottom: 0px;
        margin-top: 160px;
    }
    
    .hello {
        gap: 24px;
        margin-bottom: 40px;
    }
    
    #hello_image_container {
        height: auto;
        max-width: 300px;
        margin: 0 auto 24px auto;
        gap: 64px;
        padding-top: 64px;
    }
    
    #about_images {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 24px;
    }
    
    .about_image {
    }
    
    .about_image img {
    }
    
    .lets_chat_container {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    #about_header {
        padding-top: 80px;
    }
    
    #about_header_content {
        padding: 0 16px;
        gap: 20px;
    }
    
    .about_sections {
        padding: 24px 16px;
        margin: 0 0 160px 0;
    }
    
    #about_footer {
        margin-bottom: 0px;
        margin-top: 160px;
    }
    
    .hello {
        gap: 20px;
        margin-bottom: 32px;
    }
    
    #hello_image_container {
        height: auto;
        max-width: 280px;
        margin: 0 auto 20px auto;
        gap: 64px;
        padding-top: 64px;
    }
    
    #about_images {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }
    
    .about_image {
    }
    
    .about_image img {
    }
    
    .lets_chat_container {
        gap: 20px;
    }
    
    .contact_content {
        gap: 16px;
    }
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section fade-in animations */
.hello,
.about_sections,
#about_footer {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.hello.visible,
.about_sections.visible,
#about_footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.hello {
    transition-delay: 0.1s;
}

.about_sections:nth-of-type(1) {
    transition-delay: 0.2s;
}

.about_sections:nth-of-type(2) {
    transition-delay: 0.3s;
}

#about_footer {
    transition-delay: 0.4s;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.contact_content a:focus,
.about_image:focus {
    outline: 2px solid #F1E67C;
    outline-offset: 2px;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback for content visibility */
.hello,
.about_sections,
#about_footer {
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Ensure content is visible after animation */
.hello.visible,
.about_sections.visible,
#about_footer.visible,
.fade-up.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
