/* ==========================================================================
   Iskrex About + Contact pages — dark theme
   Loaded together with home.css (theme tokens come from body.home-dark).
   Page-specific styles scoped to body.page-dark.
   ========================================================================== */

body.page-dark .pg-section {
    position: relative;
    padding: 7.5rem 0 4.5rem;
    background:
        radial-gradient(ellipse 70% 40% at 50% -5%, rgba(34, 211, 238, 0.08), transparent 65%),
        var(--bg-0);
    overflow: hidden;
}

.pg-hero {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.pg-hero .hx-eyebrow {
    justify-content: center;
}

.pg-hero .hx-eyebrow::after {
    content: '';
    width: 1.6rem;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
}

.pg-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.9rem;
}

.pg-hero p {
    color: var(--txt-muted);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   ABOUT — bio layout
   -------------------------------------------------------------------------- */

.pg-bio-grid {
    display: grid;
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
    max-width: 62rem;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 1;
}

.pg-bio-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 6.5rem;
}

.pg-headshot-card,
.pg-founder-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.pg-headshot-card:hover,
.pg-founder-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.pg-headshot-card img {
    width: 9rem;
    height: 9rem;
    object-fit: contain;
    border-radius: 50%;
    background: var(--bg-2);
    padding: 1.2rem;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.pg-founder-card .hx-eyebrow {
    justify-content: center;
    margin-bottom: 1rem;
}

.pg-founder-card img {
    width: 8.5rem;
    height: 8.5rem;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 35px rgba(34, 211, 238, 0.18);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pg-founder-card:hover img {
    transform: scale(1.04);
}

.pg-founder-card p {
    margin: 1rem 0 0;
    color: var(--txt-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.pg-bio p {
    color: var(--txt-muted);
    line-height: 1.8;
    margin-bottom: 1.3rem;
    font-size: 0.98rem;
}

.pg-bio p:last-of-type {
    color: var(--txt);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.pg-bio .hx-btn {
    margin-top: 0.6rem;
}

@media (max-width: 860px) {
    .pg-bio-grid {
        grid-template-columns: 1fr;
    }
    .pg-bio-side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .pg-headshot-card,
    .pg-founder-card {
        flex: 1 1 16rem;
    }
}

/* --------------------------------------------------------------------------
   ABOUT — skills grid
   -------------------------------------------------------------------------- */

.pg-skills-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.pg-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.2rem;
    max-width: 70rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pg-skill-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1.6rem 1.5rem;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

.pg-skill-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.pg-skill-card .pg-skill-icon {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    color: var(--cyan);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.pg-skill-card h3 {
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    color: var(--txt);
}

.pg-skill-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pg-skill-card li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.55rem;
    color: var(--txt-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.pg-skill-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--cyan);
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.6);
}

/* --------------------------------------------------------------------------
   CONTACT — layout
   -------------------------------------------------------------------------- */

.pg-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    max-width: 62rem;
    margin: 0 auto;
    align-items: start;
    position: relative;
    z-index: 1;
}

.pg-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.8rem 1.7rem;
}

.pg-card > h3 {
    font-size: 1.15rem;
    margin-bottom: 1.3rem;
    color: var(--txt);
}

/* Form */
.pg-form .pg-field {
    margin-bottom: 1.1rem;
}

.pg-form label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--txt-muted);
    margin-bottom: 0.45rem;
}

.pg-form input,
.pg-form textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: 0.55rem;
    color: var(--txt);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.pg-form input::placeholder,
.pg-form textarea::placeholder {
    color: rgba(147, 161, 181, 0.55);
}

.pg-form input:focus,
.pg-form textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.pg-form textarea {
    min-height: 9rem;
    resize: vertical;
}

.pg-form .hx-btn {
    width: 100%;
    margin-top: 0.4rem;
}

/* Honeypot: visually removed but still present in the DOM for bots */
.pg-form .pg-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pg-form.is-sending {
    opacity: 0.65;
    pointer-events: none;
}

.pg-form .hx-btn:disabled {
    cursor: not-allowed;
}

.pg-form-status {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.pg-form-status.is-success {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--cyan);
}

.pg-form-status.is-error {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.4);
    color: var(--orange);
}

.pg-form-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--txt-muted);
    font-size: 0.8rem;
}

.pg-form-note i {
    color: var(--cyan);
}

/* Direct contact methods */
.pg-methods {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
}

.pg-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.35s ease;
}

a.pg-method:hover {
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.pg-method-icon {
    flex: 0 0 auto;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    color: var(--cyan);
    font-size: 1rem;
}

.pg-method h4 {
    margin: 0 0 0.15rem;
    font-size: 0.78rem;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--txt-muted);
}

.pg-method span,
.pg-method p {
    margin: 0;
    color: var(--txt);
    font-size: 0.98rem;
    font-weight: 500;
}

/* Social row */
.pg-social h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--txt);
}

.pg-social .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

body.page-dark .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.65rem;
    background: var(--bg-2);
    border: 1px solid var(--line);
    transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

body.page-dark .social-icons a img {
    filter: invert(70%) sepia(8%) saturate(580%) hue-rotate(178deg) brightness(95%);
}

body.page-dark .social-icons a:hover {
    border-color: var(--cyan);
    background: var(--cyan-dim);
    transform: translateY(-3px);
}

@media (max-width: 860px) {
    .pg-contact-grid {
        grid-template-columns: 1fr;
    }
}
