/*
Theme Name: Project 2 Theme
Author: Lance Patterson
Description: My DGL233 Project 2 Classic Theme
Version: 1.0
*/

/* Reset */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

/* Base */

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-color: #f5f7fa;
    color: #1a1a2e;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Typography */

h1, h2, h3 {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 1.1;
}

/* Layout */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

/* Hero */

#hero {
    background-color: #1a2744;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(74,127,212,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26,39,68,0.8) 0%, transparent 60%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 2rem;
}

#hero p:first-child {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #4a7fd4;
    font-weight: 700;
    margin-bottom: 1rem;
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: #ffffff;
    max-width: 700px;
    margin-bottom: 1rem;
}

#hero p:last-of-type {
    font-size: 1.1rem;
    color: #aab4d4;
    max-width: 480px;
    margin: 0 auto;
}

/* About */

#about {
    background-color: #ffffff;
}

#about .about-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
}


#about h2 {
    font-size: 3rem;
    color: #1a2744;
}

#about h2 span {
    color: #4a7fd4;
}

#about p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

#about img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4a7fd4;
    margin: 0 auto;
}

/* Skills */

#skills {
    background-color: #1a2744;
    padding: 6rem 2rem;
}

#skills h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#skills p {
    color: #aab4d4;
    margin-bottom: 2.5rem;
}

#skills ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#skills li {
    border: 1px solid rgba(170,180,212,0.4);
    color: #e0e6f5;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.875rem;
}

/* Journey */

#journey {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#journey h2 {
    font-size: 3rem;
    color: #1a2744;
}

#journey p:first-of-type {
    color: #6b7280;
    margin-bottom: 1rem;
}

.journey-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.journey-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(26,39,68,0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.journey-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 0.25rem;
}

.journey-card .company {
    color: #4a7fd4;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.journey-card .date {
    font-size: 0.8rem;
    color: #6b7280;
    background-color: #f5f7fa;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 600;
}

.journey-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* CTA */

#cta {
    background-color: #1a2744;
    padding: 1.5rem 1rem;
    text-align: center;
}

#cta h2 {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#cta a {
    display: inline-block;
    background-color: #4a7fd4;
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 6px;
    font-size: 0.95rem;
}

/* Header */

header {
    background-color: #ffffff;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.admin-bar header {
    top: 32px;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

header nav ul a {
    color: #1a2744;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-decoration: none;
}

header nav ul a:hover {
    color: #4a7fd4;
}

.site-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    color: #1a2744;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* Footer */

footer {
    background-color: #1a2744;
    color: #6b7280;
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.85rem;
}

/* Archive */

#archive-hero {
    background-color: #1a2744;
    padding: 4rem 0;
    text-align: center;
}

#archive-hero h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

#archive-hero p {
    color: #aab4d4;
    font-size: 1.1rem;
}

.project-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 4rem 0;
}

.project-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(26,39,68,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26,39,68,0.15);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h2 {
    font-size: 1.5rem;
    color: #1a2744;
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.archive main {
    min-height: 40vh;
}

.project-card h2 {
    font-size: 1.5rem;
    color: #1a2744;
    padding: 1.25rem;
    text-align: center;
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Single Project */
#single-hero {
    background-color: #1a2744;
    padding: 6rem 2rem;
    text-align: center;
}

#single-hero h1 {
    font-size: 4rem;
    color: #ffffff;
    margin-top: 2rem;
}

#single-hero img {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto;
}

#single-content {
    padding: 4rem 0;
}

#single-content p {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto;
}

.single-project main {
    min-height: 40vh;
}

#single-hero p {
    color: #ffffff;
}

.btn {
    display: inline-block;
    background-color: #4a7fd4;
    color: #ffffff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 2rem;
}

#single-content .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 680px;
}

#contact-hero {
    background-color: #1a2744;
    padding: 2rem 2rem;
    text-align: center;
}

#contact-hero h1 {
    font-size: 4rem;
    color: #ffffff;
}

#contact-content {
    padding: 3rem 2rem;
    background-color: #ffffff;
}

#contact-content .container {
    max-width: 680px;
    margin: 0 auto;
}

#contact-content p {
    color: #6b7280;
    font-size: 1.05rem;
}

#contact-content .wpcf7 p {
    margin-bottom: 0;
}


#contact-content .wpcf7 input[type="text"],
#contact-content .wpcf7 input[type="email"],
#contact-content .wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 1rem;
    color: #1a1a2e;
    background-color: #f5f7fa;
}

#contact-content .wpcf7 input[type="submit"] {
    background-color: #4a7fd4;
    color: #ffffff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

#contact-content label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #1a2744;
}

#contact-content .wpcf7 textarea {
    height: 120px;
} 


/* 404 */

#not-found {
    background-color: #1a2744;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
}

#not-found h1 {
    font-size: 10rem;
    color: #4a7fd4;
    line-height: 1;
    margin-bottom: 1rem;
}

#not-found h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

#not-found p {
    color: #aab4d4;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #ff4444;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
}

.back-to-top:hover {
    background: #4a7fd4;
    color: #ffffff;
}





#cta a {
    margin-top: 0rem;
}

/* Hamburger */

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a2744;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

header nav.open {
    display: block;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

header nav ul a {
    color: #1a2744;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    header nav {
        display: block !important;
        position: static;
        padding: 0;
        box-shadow: none;
    }

    header nav ul {
        flex-direction: row;
        gap: 2rem;
    }
}

.archive main,
.single-project main,
.page-template-page-contact main {
    display: none;
}

#archive-grid {
    background-color: #f5f7fa;
    padding: 4rem 0;
}

#contact-content {
    padding: 3rem 2rem !important;
    background-color: #ffffff;
}

html {
    background-color: #1a2744;
}

#post-navigation {
    background-color: #f5f7fa;
    padding: 2rem 0;
}

#post-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#post-navigation a {
    color: #1a2744;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid #1a2744;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

#post-navigation a:hover {
    background-color: #1a2744;
    color: #ffffff;
}