
/* General */
:root {
    --global-width: 1000px;
}

* { /* * selects the entire document */
  margin: 0;
  padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--text-color);
}

h2 {
    font-size: 1.875em;
    font-weight: 600;
    color: var(--text-color);
}

p {
    font-size: 1em;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

li::marker {
    color: var(--text-color);
}

/* Global Container */


/* Transition */
a, .btn {
    transition: all 300ms ease;
} 

/* Logo */
.logo a {
    color: var(--text-color);
    text-decoration: none;
}

/* Desktop Nav */
nav, 
.nav-links {
    display: flex;
}

nav {
    justify-content: space-between;
    align-items: center;
    min-height: 10vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.875em;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.logo {
    font-size: 2.5em;
}

.logo:hover {
    cursor:default;
}


/* Hamburger Menu */

#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 300ms ease-in-out;
}
  
.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background-color);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 300ms ease-in-out;
} 
 
.menu-links a {
    display: block;
    padding: 10px;
    text-align: right;
    font-size: 1.875em;
    color: var(--text-color);
    text-decoration: none;
    transition: all 300ms ease-in-out;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}


/* Sections */

section {
    padding-top: 8vh;
    margin: 0 10rem;
    box-sizing: border-box;
    height: fit-content;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: var(--global-width);
    justify-self: center;
}


/* Profile Section */

#profile {
    padding-top: 0;
    display: flex;
    flex-direction: row;
}

.profile__img-container {
    height: 300px;
    width: 300px;
}

.profile__img-container img {
    height: 100%; /* Maintain aspect ratio */
    width: auto;
    border-radius: 4%; 
}

.profile__text-container {
    display: flex;
    flex-direction: column;
}

.profile__description p {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.profile__socials-container {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}


/* Updates Section */
#updates {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.updates-header {
    text-align: center;
}

.updates-container {
    display: flex;
    flex-direction: column; /* Stack updates vertically */
    text-align: left;
}

.update-item {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem; /* Space between updates */
    align-items: flex-start;
}

.update-date {
    width:20%;
}

p.update-date {
    color: var(--primary-color);
}

.update-content {
    display: flex;
    flex-direction: column; /* Stack title and text vertically */
    width: 80%; 
}

.update-title {
    /* Align title text to the left */
    font-weight: bold; /* Make title bold */
    font-size: 1.2em;
    margin-bottom: 0.5em;
}

.update-text {
    /* Align text to the left */
    margin-bottom: 1em;
}
/* Random Project Sectiont */
#random-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.random-project-header:hover {
    cursor: pointer;
}

/* Project Preview Section */
#projects {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-preview-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: var(--global-width);
}

.project-preview-container a{
    text-decoration: none;
}

.project-preview-media {
    display: flex;
    justify-content: center;
    width: 400px;
}

.project-preview-media img {
    width: 400px; 
}

.project-preview-text {
    text-align: left;
}

.project-preview-text p {
    margin-bottom: 0.5rem;
}

.project-preview-header {
    display: flex;
    flex-direction: column;
}

.project-preview-year p {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-preview-title p {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.2em;
}

.project-preview-description p {
    font-weight: 300;
    color: var(--text-color);
}


/* Project Pages */

#project {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
}

.project-header {
    display: flex;
    flex-direction: row;
    text-align: left;
    gap: 1rem;
}

.project-header h1 {
    font-size: 2rem;
    text-align: left;
    align-self: left;
}


/* Attributions */

.attributions-container {
    display: flex;
    flex-direction: column;
}

/* Icons */

.icon-light {
    cursor: pointer;
    height: 2rem;
}

[data-theme="dark"] .icon-light {
    display: none;
}

.icon-dark {
    cursor: pointer;
    height: 2rem;
}

[data-theme="light"] .icon-dark {
    display: none;
}

