/* Apply to all */
*{
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
}

section{
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-margin-top: 100px;

    margin-top: 1.7rem;
    
    border-bottom: 1px solid #3d3d3d;
}

h1, h2, h3, p, li{
    letter-spacing: 1px;
}

p{
    line-height: 1.6;
}

button {
    border: none;
    cursor: pointer;
    background-color: #FDF5E6;
}

.about-title, .skill-title, .project-title{
    margin: 0;
}

.skill-title, .project-title{
    margin-bottom: 16px;
}


/* Nav bar section */
nav {
    margin: 0;
    padding: 0.5rem 1rem; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    border-bottom: 1px solid rgba(210, 180, 140, 0.5);
    background-color: #FDF5E6;
    
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a{
    letter-spacing: 1px;
    font-size: 110%;
}

.nav-logo{
    color: #5D4037;
    display: flex;
    text-decoration: none;
}

.controls{
    display: flex;          
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
    font-size: 150%;
}

.nav-links{
    display: flex;
    list-style: none;
    gap: 3em;
}

.nav-links a{
    text-decoration: none;
    color: #5D4037;
    transition: all 0.3s ease;
    position: relative;
    font-size: 130%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #D2B48C;
    transition: width 0.3s ease;
}

/* About section */
#about{
    flex-direction: column;
    align-items: center;
}

#profile-group{
    width: 1200px;
    height: 650px;

    display: flex;
    flex-direction: row;
    align-items: center;
}

#about div{
    gap: 2em;
}

/* Left Side */
#profilePic{
    flex: 1;
    flex-shrink: 0;
    
    display: flex;
    justify-content: center;
    align-items: center; 
    overflow: hidden;
}

#profilePic img{
    width: 450px;
    height: 450px;
    border-radius: 20%;
    
    overflow: hidden;
    object-fit: cover;
    flex-shrink: 0;
}

/* Right Side */
.about-me {
    flex: 1;
    min-width: 0;
}

.about-intro{
    flex: 1.5;
}

.about-intro p{
    font-size: 110%;
}

.about-intro h3, .about-intro h1{
    margin: 0;
}


/* Skills section */
#skills{
    display: flex;
    flex-direction: column;
}

.skill-area{
    display: flex;
    flex-direction: row;
    justify-content: center;

    margin-bottom: 40px;
    
    flex: 1;
    gap: 5em;
}

.skill-cards{
    background-color: #fddea5;
    padding: 0 40px;
    border-radius: 15px;
    font-size: 120%;
}

.skill-cards p{
    margin: 15px 0;
}

/* Projects section */
#projects{
    display: flex;
    flex-direction: column;
}

.project-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 1em;
    row-gap: 2em;
}

.project-cards{
    margin: 1rem;
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-subtitle{
    margin: 0;
}

.project-info{
    max-width: 75%;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.project-cards-tall{
    padding: 0.5rem;
    width: 100%;
    grid-column: span 2;

    display: flex;
}

#project-info-tall{
    align-self: start;   /* top */
    text-align: center;
    max-width: 50%;

    padding-left: 30px;
}


/* Project Tech */
.project-tech{
    list-style: none;
    padding: 0;
}

.project-tech li{
    display: inline-block; 
    background-color: #ffcb69;

    gap: 25px;
    padding: 9px;
    border-radius: 20px;
}

/* Project Link */
.project-link a {
  font-size: 40px;
  color: #333;
  text-decoration: none;
}

.project-link a:hover {
  color: #8D6E63;
}

/* Project Image slider */
.project-pictures {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 0 auto;
    width: 600px;
    gap: 5px;
}

.prev-btn, .next-btn{
    padding: 10px 15px;
}

#project-pictures-tall{
    display: flex;
    justify-content: right;
    
    margin-right: 30px;
}

.slider-container-wide, .slider-container-tall {
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid #D2B48C;
}

.slider-container-tall{
    width: 40%;
   
}

.slider-container-wide .slide img {
    height: 280px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    width: 100%;
    
    object-fit: contain;
}


/* Footer section */
.footer-copy{
    margin: 0;
    padding: 10px;
    background-color: #FDF5E6
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background-color: #FDF5E6
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 30px;
    color: #5D4037;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #8D6E63;
}

/* Dark mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: #f0e6d3;
}

body.dark-mode nav {
    background-color: #2a2a2a;
    border-bottom-color: rgba(210, 180, 140, 0.2);
}

body.dark-mode .nav-links a,
body.dark-mode .nav-logo #nav-hero{
    color: #D2B48C;
}

body.dark-mode .controls button,
body.dark-mode footer,
body.dark-mode .footer-links,
body.dark-mode .footer-copy,
body.dark-mode .prev-btn,
body.dark-mode .next-btn{
    color: #D2B48C;
    background-color: #2a2a2a;
}

body.dark-mode .skill-cards {
    background-color: #3a2e1e;
}

body.dark-mode .project-tech li {
    background-color: #5D4037;
    color: #f0e6d3;
}

body.dark-mode .slider-container-wide,
body.dark-mode .slider-container-tall {
    border-color: #5D4037;
}

body.dark-mode .project-link a,
body.dark-mode .footer-links a {
    color: #D2B48C;
}