* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* HERO */
.header {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

#code-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.text-box {
    position: relative;
    z-index: 1;
}

/* NAV */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.header nav {
    position: relative;
    z-index: 2;
}

/* HERO TEXT */
.text-box {
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 60px;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: 18px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
}

/* PROJECTS */
.projects {
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 100px 0;
}

.project-list {
    margin-top: 60px;
}

.project-item {
    border-left: 4px solid #f44336;
    padding: 25px 30px;
    margin-bottom: 40px;
    background: #f9f9f9;
    text-align: left;
}

.project-item h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 18px;
    line-height: 1.6;
}

.projects h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.projects h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #f44336;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* CONTACT */
.contact {
    background: #222;
    color: white;
    text-align: center;
    padding: 120px 0;
}

.contact-container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 60px;
}

.contact-card {
    flex-basis: 31%;
    background: #333;
    padding: 60px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(244,67,54,0.3);
}

.contact-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #f44336;
}

.contact-line {
    width: 60px;
    height: 4px;
    background: #f44336;
    margin: 0 auto 25px;
    border-radius: 2px;
}

.contact-link {
    font-size: 18px;
    color: #bbb;
    word-break: break-word;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover .contact-link {
    color: #f44336;
}

/* RESUME */
.resume-section {
    margin-bottom: 80px;
    text-align: left;
}

.resume-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    border-bottom: 3px solid #f44336;
    display: inline-block;
    padding-bottom: 5px;
}

.resume-section h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.resume-section p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.resume-item {
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.7;
}

.resume-link {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}

.education-item:not(:last-child) {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* FOOTER */
footer {
    background-color: #1c1c1c;
    color: #bbb;
    text-align: center;
    padding: 30px 10px;
    font-size: 14px;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: #f44336;
    border-radius: 2px;
}

/* MOBILE */
@media(max-width: 700px) {
    .text-box h1 {
        font-size: 32px;
    }

    .contact-container {
        flex-direction: column;
    }
}

/* PROJECT TITLE LINKS */
.project-item h3 a,
.project-item h3 a:visited,
.project-item h3 a:active {
    color: #222;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-size: xx-large;
}

.project-item h3 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #f44336;
    transition: width 0.3s ease;
}

.project-item h3 a:hover,
.project-item h3 a:focus {
    color: #f44336;
}

.project-item h3 a:hover::after,
.project-item h3 a:focus::after {
    width: 100%;
}
