/* DEDICATED STYLES FOR ABOUT.PHP */

body {
    background-color: var(--background-dark); /* Ensure background is always dark */
    margin: 0;
    padding: 0;
}

.content-frame {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px 40px;
    box-sizing: border-box; /* Ensures padding is included in height calculation */
    
    /* DYNAMIC THEME: Use the CSS variable for the frame */
    border: 15px solid;
    border-image-slice: 1;
    border-image-source: var(--theme-gradient);
    
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0,0,0,0.7);
}

/* --- Header Styling (3-column layout) --- */
.top-row {
    width: 100%;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-spacer {
    flex: 1 1 0px;
}

.main-nav { 
    justify-self: center;
    display: flex; 
    gap: 40px; 
}
.main-nav a {
    color: var(--text-secondary); 
    font-weight: 600; 
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a.active { 
    color: var(--text-primary); 
    border-image-slice: 1;
    /* DYNAMIC THEME: Use the CSS variable for active link underline */
    border-image-source: var(--theme-gradient);
}

.social-links { 
    justify-self: end;
    display: flex; 
    align-items: center;
    gap: 25px; 
}
.social-links a i { 
    font-size: 22px; 
    color: var(--text-secondary); 
    transition: all 0.3s ease; 
}
.social-links a:hover i { 
    color: var(--text-primary); 
    transform: scale(1.1); 
}

.menu-toggle, .hamburger-menu {
    display: none;
}

/* --- Main Content Area Styling --- */
.page-container {
    flex-grow: 1; /* This is key: it pushes the footer down */
    width: 100%;
    max-width: 900px;
    margin: 80px auto;
    text-align: left;
}
.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.3;
}
.gradient-text {
    /* DYNAMIC THEME: Use the CSS variable for gradient text highlights */
    background: var(--theme-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.page-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.page-content p strong {
    color: var(--text-primary);
    font-weight: 600;
}
.page-content h2 {
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 4px solid;
    border-image-slice: 1;
    /* DYNAMIC THEME: Use the CSS variable for heading borders */
    border-image-source: var(--theme-gradient);
    padding-left: 15px;
}

/* --- Footer Styling --- */
.bottom-row {
    width: 100%;
    text-align: center;
    padding-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevents footer from shrinking */
}


/* --- NEW: "From the Creator" Section Styles --- */
.creator-section {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin: 60px 0;
}

/* Container for the photo and social link */
.creator-visuals {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.creator-photo-wrapper {
    width: 158px;
    height: 158px;
    border-radius: 50%;
    padding: 4px;
    background: var(--theme-gradient);
    box-sizing: border-box;
}

.creator-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.creator-linkedin-link {
    margin-top: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.creator-linkedin-link:hover {
    color: var(--text-primary);
}

.creator-bio h2 {
    margin-top: 0;
    border-left: none; /* Override default h2 style */
    padding-left: 0;
}

.creator-bio p {
    margin-bottom: 0;
}

.creator-bio p:not(:last-child) {
    margin-bottom: 15px;
}


/* --- Responsive Styles --- */

/* Tablets and below */
@media (max-width: 1024px) {
    .main-nav {
        gap: 20px;
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    .content-frame {
        padding: 20px;
        border-width: 10px;
    }

    .header-content {
        grid-template-columns: auto 1fr auto;
        position: relative;
    }

    .hamburger-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 1001;
        grid-column: 1 / 2;
        padding-right: 15px;
    }

    /* --- ADJUSTED MOBILE NAVIGATION --- */
    .main-nav {
        display: none; 
        flex-direction: column; 
        position: fixed; /* Use fixed to cover the whole screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Full height */
        background-color: var(--background-dark); 
        padding-top: 60px; /* Space for a close button if you add one */
        z-index: 1000; 
        gap: 0;
        justify-content: center; /* Center links vertically */
        align-items: center; /* Center links horizontally */
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }
    
    .main-nav a {
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-size: 1.2rem;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .main-nav a.active {
        border-bottom: 1px solid var(--border-color); /* Maintain consistency */
    }
    
    /* --- END OF NAVIGATION ADJUSTMENTS --- */

    .social-links {
        grid-column: 3 / 4;
        justify-self: end;
    }

    .header-spacer {
        display: none;
    }

    .page-container {
        margin: 40px auto;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-content p {
        font-size: 1rem;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }

    .creator-section {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .creator-bio h2 {
        text-align: center;
    }
}