/* =========================
   MASON BRADY PORTFOLIO
   Global Styles
========================= */

/* ---------- ROOT VARIABLES ---------- */
:root {
    --blue-dark: #132d49;
    --blue-mid: #235d9c;
    --blue-accent: #2F7FD3;

    --yellow-accent: #E7B84E;

    --white: #FFFFFF;
    --off-white: #F7F9FB;
    --light-gray: #E8ECF0;
    --medium-gray: #66727D;
    --dark-text: #0C1A22;

    --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 18px;
    --transition: 0.2s ease;
}

/* ---------- RESET ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--off-white);
    color: var(--dark-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

/* ---------- GLOBAL ---------- */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* optional wrappers if you use them */
.logo-wrap {
    width: clamp(48px, 6vw, 64px);
    flex-shrink: 0;
}

.split-image-wrap {
    width: clamp(90px, 12vw, 130px);
    margin-bottom: 18px;
}

/* generic image classes */
.logo {
    width: clamp(48px, 6vw, 64px);
    height: 100px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-bear {
    width: clamp(220px, 32vw, 420px);
    height: auto;
    object-fit: contain;
}

.split-bear {
    width: 100%;
    height: auto;
    object-fit: contain;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.2;
}

p {
    color: var(--medium-gray);
}

/* =========================
   HEADER
========================= */
.site-header {
    width: 100%;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;

    padding: 18px 4%;
    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-text h1 {
    font-size: 1.35rem;
    color: var(--white);
}

.brand-text p {
    font-size: 0.9rem;
    color: var(--yellow-accent);
}

/* ---------- NAV ---------- */
.nav ul {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--yellow-accent);
    background-color: rgba(255, 255, 255, 0.08);
}

/* =========================
   HERO
========================= */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    min-height: 70vh;
    padding-top: 56px;
    padding-bottom: 56px;
}

.hero-text h2 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
    color: var(--blue-dark);
    margin-bottom: 18px;
    max-width: 12ch;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 58ch;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* support both old and new HTML */
.hero-image img {
    width: clamp(220px, 32vw, 420px);
    height: auto;
    object-fit: contain;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn.primary {
    background-color: var(--blue-dark);
    color: var(--white);
}

.btn.primary:hover {
    background-color: var(--blue-accent);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: var(--white);
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
}

.btn.secondary:hover {
    color: var(--yellow-accent);
    border-color: var(--yellow-accent);
    transform: translateY(-2px);
}

/* =========================
   ABOUT PREVIEW
========================= */
.about-preview {
    padding-top: 32px;
}

.about-preview h2 {
    font-size: 2rem;
    color: var(--blue-dark);
    margin-bottom: 18px;
}

.about-preview p {
    font-size: 1.05rem;
    max-width: 70ch;
    margin-bottom: 18px;
}

.link {
    display: inline-block;
    font-weight: 600;
    color: var(--blue-dark);
    transition: var(--transition);
}

.link:hover {
    color: var(--yellow-accent);
}

/* =========================
   PORTFOLIO SPLIT
========================= */
.portfolio-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.split-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.split-card:hover {
    transform: translateY(-6px);
}

/* support both old and new HTML */
.split-card img {
    width: clamp(90px, 12vw, 130px);
    height: auto;
    object-fit: contain;
    margin-bottom: 18px;
}

.split-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.split-card p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.split-card a {
    font-weight: 700;
    transition: var(--transition);
}

/* dev card */
.split-card.dev {
    border-top: 6px solid var(--blue-accent);
}

.split-card.dev h3,
.split-card.dev a {
    color: var(--blue-accent);
}

.split-card.dev a:hover {
    color: var(--blue-dark);
}

/* design card */
.split-card.design {
    border-top: 6px solid var(--yellow-accent);
}

.split-card.design h3,
.split-card.design a {
    color: #B88B18;
}

.split-card.design a:hover {
    color: var(--yellow-accent);
}

/* =========================
   CTA
========================= */
.cta {
    text-align: center;
    padding-top: 40px;
}

.cta h2 {
    font-size: 2.2rem;
    color: var(--blue-dark);
    margin-bottom: 14px;
}

.cta p {
    max-width: 60ch;
    margin: 0 auto 24px auto;
    font-size: 1.05rem;
}

/* =========================
   FOOTER
========================= */
.site-footer {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    text-align: center;
    padding: 24px 16px;
}

.site-footer p {
    color: var(--white);
    font-size: 0.95rem;
}

/* =========================
   PAGE MODE CLASSES
   (for later pages)
========================= */

body.dev-mode {
    --page-accent: var(--blue-accent);
}

body.design-mode {
    --page-accent: var(--yellow-accent);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav ul {
        flex-wrap: wrap;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
        min-height: auto;
    }

    .hero-text h2 {
        max-width: none;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .portfolio-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    section {
        padding: 56px 0;
    }

    .brand-text h1 {
        font-size: 1.1rem;
    }

    .brand-text p {
        font-size: 0.8rem;
    }

    .logo {
        width: clamp(42px, 12vw, 46px);
        height: auto;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .about-preview h2,
    .cta h2 {
        font-size: 1.75rem;
    }

    .split-card {
        padding: 24px 20px;
    }
}


/* =========================
   PAGE HERO
========================= */
.page-hero {
    padding-top: 70px;
    padding-bottom: 30px;
}

.page-hero-text h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.page-hero-text p {
    font-size: 1.1rem;
    max-width: 60ch;
}

/* =========================
   ABOUT PAGE
========================= */
.about-intro {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
    align-items: center;
    padding-top: 20px;
}

.about-intro-text h3 {
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.about-intro-text p {
    font-size: 1rem;
    margin-bottom: 16px;
    max-width: 65ch;
}

.about-intro-image {
    display: flex;
    justify-content: center;
}

.about-intro-image img {
    width: min(100%, 340px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* details section */
.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 40px;
}

.about-detail {
    background-color: var(--white);
    border-top: 5px solid var(--yellow-accent);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.about-detail h3 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.about-detail p {
    font-size: 1rem;
}

/* closing note */
.about-note {
    text-align: center;
    padding-top: 20px;
}

.about-note p {
    font-size: 1.05rem;
    max-width: 65ch;
    margin: 0 auto;
    font-style: italic;
}

/* responsive */
@media (max-width: 900px) {
    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-intro-image {
        order: -1;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .about-intro-text,
    .about-intro-image {
        text-align: center;
    }

    .about-intro-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================
   CONTACT PAGE
========================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 24px;
    padding-top: 20px;
}

.contact-main-card,
.contact-side-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px 28px;
}

.contact-main-card {
    border-left: 6px solid var(--blue-accent);
}

.contact-side-card {
    border-left: 6px solid var(--yellow-accent);
}

.contact-main-card h3,
.contact-side-card h3 {
    color: var(--blue-dark);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.contact-main-card p,
.contact-side-card p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.contact-email {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue-accent);
    margin-bottom: 18px;
    transition: var(--transition);
    word-break: break-word;
}

.contact-email:hover {
    color: var(--yellow-accent);
}

.contact-small-text {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 0;
}

.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-links-list a,
.contact-links-list span {
    font-size: 1rem;
    font-weight: 600;
}

.contact-links-list a {
    color: var(--blue-accent);
    transition: var(--transition);
}

.contact-links-list a:hover {
    color: var(--yellow-accent);
}

.contact-links-list span {
    color: var(--medium-gray);
    font-style: italic;
}

.contact-note {
    text-align: center;
    padding-top: 10px;
}

.contact-note p {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.05rem;
    font-style: italic;
}

/* ---------- CONTACT RESPONSIVE ---------- */
@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================
   DEVELOPMENT PAGE
========================= */
body.dev-mode .page-hero-text h2 {
    color: var(--blue-accent);
}

.dev-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding-top: 20px;
}

.dev-project-window {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.dev-project-window:hover {
    transform: translateY(-6px);
}

/* fake browser top bar */
.window-topbar {
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.window-dots span:nth-child(1) {
    background-color: #ff5f57;
}
.window-dots span:nth-child(2) {
    background-color: #febc2e;
}
.window-dots span:nth-child(3) {
    background-color: #28c840;
}

.window-title {
    font-size: 0.95rem;
    font-weight: 600;
}

/* preview panel */
.window-preview {
    background-color: #dfe8f3;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-placeholder {
    color: var(--blue-dark);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

/* content under preview */
.window-content {
    padding: 22px 20px 24px;
}

.window-content h3 {
    color: var(--blue-dark);
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.window-content p {
    margin-bottom: 16px;
    font-size: 0.98rem;
}

/* tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.project-tags span {
    background-color: rgba(47, 127, 211, 0.12);
    color: var(--blue-accent);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
}

/* links */
.project-link {
    display: inline-block;
    font-weight: 700;
    color: var(--blue-accent);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--blue-dark);
}

.disabled-link {
    opacity: 0.55;
    pointer-events: none;
}

/* responsive */
@media (max-width: 900px) {
    .dev-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   DESIGN HUB PAGE
========================= */
body.design-mode .page-hero-text h2 {
    color: var(--yellow-accent);
}

.design-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    padding-top: 20px;
}

.design-hub-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.design-hub-card:hover {
    transform: translateY(-6px);
}

.design-hub-link {
    display: block;
    color: inherit;
}

.design-hub-preview {
    background-color: #f6edd5;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.design-hub-placeholder {
    color: #9b7511;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

.design-hub-content {
    padding: 22px 20px 24px;
}

.design-hub-content h3 {
    color: #b88b18;
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.design-hub-content p {
    margin-bottom: 16px;
    font-size: 0.98rem;
}

.design-project-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    color: #b88b18;
    transition: var(--transition);
}

.design-hub-link:hover .design-project-link {
    color: var(--yellow-accent);
}

/* responsive */
@media (max-width: 900px) {
    .design-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PROJECT / GALLERY PAGE
========================= */
.project-hero {
    text-align: center;
    padding-top: 10px;
}

.project-hero h2 {
    color: var(--yellow-accent);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.project-hero p {
    max-width: 60ch;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* modal */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(10, 20, 30, 0.85);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* responsive */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}