/* ── Global Reset ── */
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: rgb(182, 149, 106);
    color: rgb(74, 44, 4);
    padding-top: 80px;
    overflow-x: hidden;
}

/* prevents navigation bar from covering headers */
section {
    scroll-margin-top: 80px;
}

/* ── Navigation ── */
nav {
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    gap: 25px;
    position: fixed;
    top: 0;
    left: 0;
    background: rgb(51, 32, 7);
    z-index: 1000;
}

nav a {
    color: rgb(129, 90, 40);
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav a::after {
    content: '';
    width: 0;
    height: 3px;
    background: white;
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* ── Home Section ── */
#home {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    padding: 40px;
}

.intro-text {
    max-width: 500px;
    text-align: center;
}

.intro-text h1 {
    font-size: 64px;
    margin-bottom: 15px;
}

.intro-text h1 span{
    display: block;
    text-align: center;
}

#typing-text {
    font-size: 1.4rem;
}

.typing-container{
    height: 60px; 
    width: 500px; 
    display: flex; 
    justify-content: center;
    align-items: center; 
}

.profile-pic {
    width: 320px;
    background:  rgb(51, 32, 7);
    padding: 12px;
    border-radius: 12px;
}

/* ── Section Headers ── */
.about-header,
.project-header,
.experience-header,
.contacts-header {
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    background: rgb(82, 49, 10);
    padding: 30px 50px;
}

.about-header h2,
.project-header h2,
.experience-header h2,
.contacts-header h2 {
    font-size: 2rem;
    color: white;
}

/* -- GRID CONTAINERS -- */
.section-content,
.project-grid,
.contacts-grid,
.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 40px 50px;
}

/* ── Unified Section that covers the background -- */
/* ── About Section ── */
#about {
    background: rgb(160, 120, 80);
}

/* ── Projects Section ── */
#projects {
    background: rgb(210, 180, 140);
}

/* ── Experience Section ── */
#experience {
    background: rgb(160, 120, 80);
}

/* ── Contacts Section ── */
#contacts {
    background: rgb(51, 32, 7);
}

/* ── Cards (Unified Style) ── */
.aboutme-card,
.project-card,
.experience-card,
.contacts-card {
    width: 100%;
    padding: 20px;
    border-radius: 10px;
}

/* Individual card colors */
.aboutme-card {
    background: rgb(70, 52, 3);
    color: white;
}

.project-card {
    background: rgb(70, 52, 3);
    color: white;
}

.experience-card {
    background: rgb(70, 52, 3);
    color: white;
}

.contacts-card {
    background: rgb(70, 52, 3);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

/* Contact icons */
.contacts-card i {
    font-size: 2.5rem;
    color: rgb(182, 149, 106);
}

/* Card Hover Effects */
.contacts-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}


/* Underlines */
.aboutme-card h3,
.project-card h3,
.experience-card h3,
.contacts-card h3 {
    text-decoration: underline;
}

/* ── This will be ued to be able to format the web when the screen is 768 pixels or smaller ── */
/* ── Responsive (Mobile) ── */
@media (max-width: 768px) {

    /* alligns the home section to be in a column instead of a row and centers */
    #home {
        flex-direction: column;
        text-align: center;
    }

    /* This causes the table to switch to one column instead of 2 */
    .section-content,
    .project-grid,
    .contacts-grid,
    .experience-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    /* This makes the home section name smaller */
    .intro-text h1 {
        font-size: 42px;
    }

    /*Makes the profile picture smaller */ 
    .profile-pic {
        width: 220px;
    }
}