/*
Program: Portfolio
Programmer: Faith Cameron
LMD: 2026-02-15
*/

/* ============================================================
   GLOBAL RESET + BASE
   ============================================================ */

/* Base reset stuff */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #070714;
    color: #f5f5f7;
    line-height: 1.6;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.page {
    display: flex;
    min-height: 100vh;
}

/* Main content */
.content {
    flex: 1;
    padding: 40px 56px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 280px;
    padding: 32px 24px;
    background: radial-gradient(circle at top left, #2a2a54 0, #090919 45%, #05050c 100%);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

/* Logo */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.logo-text {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-sub {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Sidebar footer */
.sidebar-footer {
    margin-top: 32px;
}

.small-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

/* Animated underline */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    border-color: rgba(255,255,255,0.08);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ============================================================
   BUTTONS + LINKS
   ============================================================ */

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.12s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Primary */
.primary-btn {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}

.primary-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 26px rgba(99,102,241,0.5);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(99,102,241,0.4);
}

/* Ghost */
.ghost-btn {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.7);
}

.ghost-btn:hover {
    background: rgba(15,23,42,0.9);
    border-color: #a855f7;
}

/* Sidebar button full-width */
.sidebar-btn {
    width: 100%;
    margin-top: 8px;
}

/* Inline “text link” style */
.text-link {
    font-size: 0.9rem;
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.text-link:hover {
    border-color: #a5b4fc;
}

/* ============================================================
   SECTIONS 
   ============================================================ */

.section {
    max-width: 1100px;
    margin: 0 auto 64px;
    transition: background 0.35s ease;
}

.section:last-of-type {
    margin-bottom: 32px;
}

/* Subtle hover glow on specific sections */
.section.work:hover,
.section.contact:hover {
    background: radial-gradient(circle at top right, rgba(99,102,241,0.08), transparent 55%);
}

.section-header {
    margin-bottom: 24px;
}

.eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #9ca3af;
}

/* Accent gradient text */
.accent {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    gap: 40px;
    align-items: center;
    margin-top: 16px;
}

.hero-text h1 {
    font-size: clamp(2.4rem, 3.2vw, 3rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: #d1d5db;
    max-width: 520px;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.meta-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    opacity: 0.8;
}

.meta-value {
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Hero right card */
.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: radial-gradient(circle at top left, #1f2937 0, #020617 65%);
    border-radius: 20px;
    padding: 22px 20px;
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 20px 40px rgba(15,23,42,0.65);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 50px rgba(15,23,42,0.8);
    border-color: rgba(165,180,252,0.7);
}

.hero-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
    margin-bottom: 10px;
}

.hero-card h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.hero-card p {
    font-size: 0.9rem;
    color: #d1d5db;
    margin-bottom: 12px;
}

/* ============================================================
   PROJECTS GRID + CARDS
   ============================================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

/* Make entire card clickable */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Project card interactivity */
.project-card {
    background: rgba(15,23,42,0.75);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(31,41,55,0.9);
    display: flex;
    flex-direction: column;
    min-height: 220px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

/* Top image area */
.project-thumb {
    position: relative;
    height: 120px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* images */
.project-thumb-1 { background-image: url("./images/converter.png"); }
.project-thumb-2 { background-image: url("./images/hotel.png"); }
.project-thumb-3 { background-image: url("./images/library.png"); }
.project-thumb-4 { background-image: url("./images/painting.jpg"); }

/* Category pill on thumb */
.pill {
    position: absolute;
    bottom: 10px;
    left: 12px;
    background: rgba(15,23,42,0.88);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,0.8);
}

/* Card content */
.project-body {
    padding: 14px 16px 16px;
}

.project-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.project-body p {
    font-size: 0.86rem;
    color: #d1d5db;
}

.project-meta {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 8px;
}

/* Card hover interaction */
.project-link:hover .project-card {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.8);
    border-color: rgba(148,163,184,0.85);
    background: radial-gradient(circle at top left, rgba(99,102,241,0.15), rgba(15,23,42,0.9));
}

.project-link:hover .project-thumb {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* ============================================================
   ABOUT
   ============================================================ */

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
    gap: 32px;
    margin-top: 10px;
    align-items: start;
}

.about-text p + p {
    margin-top: 10px;
}

.about-columns h3 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.pill-list li {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #e5e7eb;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-form {
    margin-top: 16px;
    background: rgba(15,23,42,0.85);
    padding: 22px 20px;
    border-radius: 18px;
    border: 1px solid rgba(31,41,55,0.9);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-form:hover {
    box-shadow: 0 16px 36px rgba(15,23,42,0.75);
    border-color: rgba(99,102,241,0.5);
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 180px;
    margin-bottom: 12px;
}

.form-field label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: #e5e7eb;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(55,65,81,0.9);
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99,102,241,0.6);
    background: #020617;
}

.contact-form .primary-btn {
    margin-top: 4px;
}

.contact-extra {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-top: 14px;
}

.contact-extra a {
    color: #a5b4fc;
    text-decoration: none;
}

.contact-extra a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid rgba(31,41,55,0.9);
    padding-top: 16px;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
    margin-top: 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
    .page {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .sidebar-footer {
        display: none; /* can keep or adapt for mobile */
    }

    .content {
        padding: 24px 18px 32px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .about-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .sidebar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
