*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #282d2e;
    background: linear-gradient(0deg,rgb(61, 65, 66) 0%, rgb(26, 26, 27) 100%);
    height: auto;
    background-attachment: fixed;
    background-size: cover;
}

header {
    background: #2a9b88;
    background: linear-gradient(90deg,rgba(42, 155, 136, 1) 0%, rgba(87, 199, 133, 1) 50%, rgb(196, 237, 83) 100%);
    margin: 0;
    position: fixed;
    width: 100%;
    z-index: 999;
}

header ul {
    display: flex;
    height: 70px;
    padding: 10px;
    margin: 0;
    align-items: center;
    justify-content: space-between;
}

header ul li {
    list-style-type: none;
    color: white;
    font-family: 'Times New Roman', Times, serif;
    padding: 5px;
}

#spacer {
    width: 40%;
}

header ul li h1 {
    font-size: 36px;
}

header ul li a {
    font-size: 24px;
    text-decoration: none;
    color: white;
}

header ul li h1 a {
    font-size: 36px;
    text-decoration: none;
    color: white;
}

.select-wrapper {
    position: relative;
    width: 170px;
}

.select-wrapper select {
    font-family: 'Times New Roman', Times, serif;
    font-size: 24px;
    width: 100%;
    height: 40px;
    color: white;
    background-color: rgba(0, 0, 0, 0.288);
    border-radius: 100px;
    border: none;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    appearance: none;
    padding: 0 30px;
    cursor: pointer;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
    background-color: white;
    clip-path: polygon(100% 0%, 0% 0%, 50% 100%);
    pointer-events: none;
}

#landscape-text {
    background-image: url("landscape_lacma_ac1992_92.jpg");
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center bottom;
    margin: 0;
}

#landscape-text h1 {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    font-size: 10vh;
    top: 40vh;
    left: 10%;
}

#landscape-text a {
    font-size: 3vh;
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: white;
    position: absolute;
    top: 92vh;
    text-align: center;
    width: 100%;
    padding-bottom: 5vh;
}

#home-section h1 {
    color: white;
    font-family: 'Times New Roman', Times, serif;
    font-size: 42px;
    text-align: left;
    margin: 0 0 20px 0;
}

#home-section p {
    color: rgba(255, 255, 255, 0.9);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    padding: 0;
    text-align: left;
}

#src-img {
    width: 100%;
    height: calc(100vh - 70px);
    background-image: url("painted-landscape.png");
    background-size: cover;
    background-position: center;
    display: flex;
}

#home-div-section {
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    width: 30%;
    height: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

#projects-div {
    width: 100%;
    height: calc(100vh - 70px);
}

/* 1. The Wrapper: This creates the actual Grid layout */
.projects-grid {
    display: grid;
    /* This creates as many 300px columns as will fit, then centers them */
    grid-template-columns: repeat(auto-fit, 330px);
    justify-content: center; 
    gap: 20px;
    padding: 20px;
}

/* 2. The Individual Card */
.project {
    width: 330px;
    height: 600px;
    background-color: black;
    border-radius: 20px;
    padding: 20px;
    box-sizing: border-box; /* Ensures padding doesn't break the 300px width */
    
    /* Using Flexbox internally to stack content top-to-bottom */
    display: flex;
    flex-direction: column;
}

.project h1 {
    text-align: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0 0 15px 0;
}

/* 3. The Tag System */
.project .tag-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project .tag-holder p {
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    margin: 0;
    font-size: 0.9rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project .description {
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project .link-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    
    color: white;
    background-color: rgb(49, 49, 49);
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-family: sans-serif;
    margin-top: 5px;
}

.project .link-buttons {
    margin-top: auto;
    width: 100%;
}

.tag-r { background-color: rgb(126, 10, 10); }
.tag-y { background-color: rgb(141, 141, 22); }
.tag-g { background-color: rgb(71, 114, 80); }

footer {
    color: white;
    background-color: rgb(41, 41, 41);
    margin: 0;
    padding: 20px;
    padding-bottom: 1px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}