/* Base Styles and Variables */
:root {
    --bg-color: #000e04;
    --bg-color-2: #d7ffd2;
    --text-color: #fcdd83;
    --text-color-2: #f7e3a7;
    --accent-color: #D9AE5F;
    --accent-color-2: #ffe8be;
    --font-accent-color: #D9320D;
    --secondary-color: rgb(29, 40, 37);
    --border-color: #333333;
    --logo-font: 'Quicksand', serif;
    --header-font: 'Roboto Flex', serif;
    --body-font: 'Roboto Flex', serif;
    --alive: #fd722d;
    --art-img-size: 250px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: 1.05rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
    background-color:  #000e0490;
}

a:hover {
    color: #fff;
}

/* Layout */
.iheader {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    backdrop-filter: blur(5px);
    width: 100vw;
    height: 88px;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--header-font);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
}

.logo span{
    color: var(--font-accent-color)
}

.nav-links a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Canvas to fit navbar */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind navbar content */
    opacity: 0.75;
  }

main {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 2rem;
    max-width: 1920px;
    margin: 0 auto;
    width: 100vw;
}

/* Profile Section */
.profile-section {
    min-width: 280px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    /*padding-right: 2rem;
    padding-left: 2rem;*/

}

.profile-image {
    margin-top: 40px;
    margin-bottom: 1rem;
    position: relative;
    display: grid;
    align-items: center;
}

.profile-image::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 5%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

.profile-image img {
    border-radius: 5%;
    width: 180px;
    height: 180px;
    display: block;
    margin: 0 auto;
}

.profile-name {
    font-size: 1.5rem;
    letter-spacing: 1px;
    background-color:  #000e0490;
}

.profile-title {
    color: var(--text-color-2);
    margin-bottom: 2rem;
    font-style: italic;
}

.graduate-title {
    color: var(--text-color-2);
    font-size: small;
    margin-bottom: 2rem;
    font-style: italic;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    padding-left: 0.5rem;
}

/* Content Section with Scrollable List */
.content-section {
    position: relative;
    overflow: hidden;
}

.scrollable-list {
    height: 1800px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-color);
}

.scrollable-list::-webkit-scrollbar {
    width: 4px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.scrollable-list::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 20px;
}

.article-item {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
    padding: 1.5rem;
    display: flex;
}

.article-item > div{
    margin-left: 10px
}

.article-image {
    aspect-ratio: 1 / 1;   /* Maintains a square */
    width: var(--art-img-size);           /* Or any width you prefer */
    height: var(--art-img-size);
    overflow: hidden;
    margin-right: 10px;
}

.article-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;   
    display: block;
}

.article-text{
    width: calc(100% - var(--art-img-size));
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.article-title:hover {
    color: var(--accent-color-2);
}

.article-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-item p{
    color: var(--text-color-2);
}

.article-item:hover {
    /*transform: translateX(10px);*/
    background: rgba(74, 144, 226, 0.05);
}



.article-source {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}



.read-more {
    display: inline-block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.read-more::after {
    content: "→";
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 860px) {
    main {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        align-items: center;
        text-align: center;
    }
    .profile-name{
        font-size: medium;
    }
    
    .social-links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    
    .social-link {
        width: auto;
        border-bottom: none;
        border: 1px solid var(--border-color);
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
    
    .nav-links a {
        margin-left: 1rem;
    }

    .article-item{
        display: flex;
        flex-direction: column;
        align-items: center;

    }
    .article-text{
        width: 100%;
        margin-top: 20px;
    }

    .article-title{
        text-align: center;
        font-weight: 500;
        font-size: 1.4rem;
    }

    .article-image {
        aspect-ratio: 1 / 1;   /* Maintains a square */
        width: 300px;           /* Or any width you prefer */
        max-width: 100%;        /* Responsive */
        overflow: hidden;
        margin-right: 10px;
    }
}

/* Responsive Styles */
@media (max-width: 700px) {

    .article-text{
        width: 100%;
        margin-top: 20px;
    }
    .article-title{
        text-align: center;
        font-weight: 700;
        font-size: 1.2rem;
    }

    .article-image {
        aspect-ratio: 1 / 1;   /* Maintains a square */
        width: 300px;           /* Or any width you prefer */
        max-width: 100%;        /* Responsive */
        overflow: hidden;
        margin-right: 10px;
    }
}