/* =========================================================
   KELLIE HUCKER TECH ART PORTFOLIO
   SHARED SITE STYLES
   November 2026
   ========================================================= */

/* =========================================================
   ROOT VARIABLES / GLOBALS
   ========================================================= */
:root {
    --bg: #030916; /* Main site background color */
    --surface: rgba(5, 10, 22, 0.62); /* Semi-transparent surface color */
    --surface-hover: rgba(6, 12, 26, 0.72); /* Slightly brighter interactive surface */
    --surface-2: rgba(10, 18, 34, 0.86); /* Darker elevated surface */
    --text: #ffffff; /* Primary site text color */
    --muted: #d6e0ea; /* Muted secondary text color */
    --subtle: #8fa3b8; /* Subtle tertiary text color */

    --accent: #00d9ff; /* Cyan accent */
    --accent-strong: #f2fbff; /* Bright near-white accent */
    --accent-blue-light: #37a1ff; /* Light electric blue */
    --accent-blue: #2764ff; /* Saturated blue */
    --accent-blue-midnight: #13317c;
    --accent-violet: #7347ff; /* Violet accent */
    --accent-violet-midnight: #392382;
    --accent-magenta: #d83cff; /* Magenta accent */

    --accent-glow: rgba(0, 217, 255, 0.75); /* Cyan glow */
    --accent-blue-glow: rgba(39, 100, 255, 0.65); /* Blue glow */
    --accent-violet-glow: rgba(115, 71, 255, 0.45); /* Violet glow */
    --accent-magenta-glow: rgba(216, 60, 255, 0.35); /* Magenta glow */
    --accent-soft: rgba(39, 100, 255, 0.20); /* Soft blue tint */
    --accent-soft2: rgb(12, 31, 79); /* Soft blue tint */

    --border: #00d9ff; /* Shared cyan border color */
    --border-soft: rgba(92, 130, 255, 0.25); /* Softer border color */
    --shadow-dark: rgba(0, 0, 0, 0.55); /* Shared dark shadow color */
}

* {
    box-sizing: border-box; /* Includes padding and border inside width/height calculations */
}

html {
    scroll-behavior: smooth; /* Smoothly scrolls to anchors */
    overflow-y: scroll; /* Always reserves scrollbar space to prevent page shifting */
}

/* =========================================================
   GLOBAL PAGE BACKGROUND
   ========================================================= */
body {
    position: relative; /* Creates positioning context for page layers */
    isolation: isolate; /* Keeps fixed background safely behind page content */
    margin: 0; /* Removes browser default page margin */
    min-height: 100vh; /* Ensures page fills at least the viewport height */
    display: flex; /* Uses Flexbox for overall page layout */
    flex-direction: column; /* Stacks header, nav, main, and footer vertically */
    background: var(--bg); /* Provides fallback color behind fixed background image */
    color: var(--text); /* Uses shared site text color */
    font-family: Arial, sans-serif; /* Sets shared site font */
}

/* Fixed page background and scrim */
body::before {
    content: ""; /* Required for pseudo-element to render */
    position: fixed; /* Keeps background stationary while page content scrolls */
    inset: 0; /* Covers entire viewport */
    z-index: -1; /* Places background behind all page content */
    pointer-events: none; /* Prevents background from intercepting interaction */
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.25),
            rgba(0, 0, 0, 0.25)
        ),
        url("../images/background/background.jpg"); /* Combines scrim and background image */
    background-size: cover; /* Fills viewport while preserving image aspect ratio */
    background-position: center; /* Keeps center of image visible */
    background-repeat: no-repeat; /* Prevents background tiling */
}

/* =========================================================
   GLOBAL LINKS
   ========================================================= */
a {
    color: var(--accent-blue-light); /* Sets default link color */
}

a:hover {
    color: var(--accent-strong); /* Brightens links on hover */
}

/* =========================================================
   HERO BANNER
   ========================================================= */
.hero {
    position: relative; /* Creates positioning reference for hero overlay */
    overflow: hidden; /* Prevents banner effects from spilling outside hero */
    padding: clamp(40px, 8vw, 100px) 20px; /* Adds responsive hero spacing */
    text-align: center; /* Centers hero text */
    background-image: url('../images/banners/banner.jpg'); /* Loads shared hero banner */
    background-size: cover; /* Fills hero while preserving image aspect ratio */
    background-position: center; /* Keeps center of banner visible */
}

/* Hero scrim overlay */
.hero::before {
    content: ""; /* Required for pseudo-element to render */
    position: absolute; /* Allows overlay to cover hero without affecting layout */
    inset: 0; /* Covers entire hero */
    background: rgba(0, 0, 0, 0.25); /* Adds dark overlay for readability */
}

/* Keeps hero text above the scrim */
.hero h1,
.hero h2,
.hero-tagline {
    position: relative; /* Enables z-index stacking */
    z-index: 1; /* Places text above hero overlay */
    color: var(--text); /* Uses shared site text color */
}

/* Portfolio name */
.hero h1 {
    margin: 0; /* Removes default heading margin */
    font-size: clamp(2.5rem, 7vw, 5rem); /* Uses responsive portfolio-name size */
    text-shadow:
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared cyan-blue-violet-magenta glow */
}

/* Professional title */
.hero h2 {
    margin: 15px 0 0; /* Adds spacing above professional title */
    font-size: clamp(1.1rem, 3vw, 2rem); /* Uses responsive title size */
    text-shadow:
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared cyan-blue-violet-magenta glow */
}

/* Technical-art specialties */
.hero-tagline {
    margin-top: 18px; /* Adds space between title and tagline */
    font-size: clamp(0.9rem, 2vw, 1.2rem); /* Uses responsive tagline size */
    text-shadow:
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared cyan-blue-violet-magenta glow */
}

/* =========================================================
   NAVIGATION BAR
   ========================================================= */
nav {
    display: flex; /* Lays navigation items out in a row */
    flex-wrap: wrap; /* Allows navigation items to wrap on smaller screens */
    justify-content: center; /* Centers navigation items horizontally */
    gap: 10px; /* Adds space between navigation items */
    padding: 15px 20px; /* Adds spacing inside navigation bar */
    background: var(--bg); /* Uses shared site background color */
    border-top: 2px solid var(--accent-blue-light); /* Adds bright-blue top border */
    border-bottom: 1.5px solid var(--accent-blue-light); /* Adds bright-blue bottom border */
}

nav a,
nav span {
    padding: 8px 11px; /* Gives each navigation item a larger interaction area */
    font-size: 1.35rem; /* Sets navigation text size */
    font-weight: 600; /* Makes navigation text semi-bold */
    color: var(--text); /* Uses shared site text color */
    text-decoration: none; /* Removes default link underline */
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        text-shadow 0.2s ease; /* Smoothly animates navigation interaction effects */
}

/* Hover and keyboard-focus animation */
nav a:hover,
nav a:focus-visible {
    color: var(--text); /* Keeps navigation text white during interaction */
    transform: scale(1.08); /* Slightly enlarges navigation item like card hover */
    text-shadow:
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Matches shared card glow */
    outline: none; /* Uses custom focus treatment */
}

/* Pressed navigation feedback */
nav a:active {
    transform: scale(0.96); /* Slightly shrinks navigation item when pressed */
}

/* Current-page navigation item */
nav a[aria-current="page"],
nav span {
    position: relative; /* Creates positioning reference for underline */
    color: var(--text); /* Uses shared site text color */
    text-shadow:
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared current-page glow */
}

/* Current-page underline */
nav a[aria-current="page"]::after,
nav span::after {
    content: ""; /* Required for pseudo-element to render */
    position: absolute; /* Positions underline independently */
    left: 50%; /* Starts underline from center */
    bottom: 2px; /* Places underline near bottom of navigation item */
    width: 70%; /* Makes underline slightly narrower than navigation item */
    height: 2px; /* Sets underline thickness */
    transform: translateX(-50%); /* Centers underline */
    background: var(--accent-blue-light); /* Uses light-blue accent */
}

/* =========================================================
   MAIN CONTENT / PAGE LAYOUT
   ========================================================= */
main {
    width: min(1100px, 100%); /* Limits content width while allowing responsive shrink */
    margin: 0 auto; /* Centers main content horizontally */
    padding: 40px 20px 60px; /* Adds shared main-content spacing */
}

.section-title {
    margin-top: 0; /* Removes default top spacing */
    text-align: center; /* Centers section title */
    font-size: clamp(1.6rem, 4vw, 2.3rem); /* Uses responsive section-title size */
    color: var(--text); /* Uses shared site text color */
    text-shadow: 2px 2px 0 var(--accent-blue-light); /* Adds blue offset shadow */
}

.section-intro {
    max-width: 760px; /* Limits intro width for readability */
    margin: 0 auto 35px; /* Centers intro and adds spacing below */
    text-align: center; /* Centers intro text */
    line-height: 1.6; /* Adds comfortable line spacing */
    color: var(--text); /* Uses shared site text color */
}

.page-header {
    max-width: 800px; /* Limits page-header width */
    margin: 0 auto 35px; /* Centers page header and adds spacing below */
    text-align: center; /* Centers page-header content */
}

.page-header h2 {
    margin: 0 0 12px; /* Adds spacing below page heading */
    font-size: clamp(1.8rem, 4vw, 2.5rem); /* Uses responsive page-heading size */
    color: var(--text); /* Uses shared site text color */
    text-shadow: 2px 2px 0 var(--accent-blue-light); /* Adds blue offset shadow */
}

.page-header p {
    margin: 0; /* Removes default paragraph margin */
    color: var(--text); /* Uses shared site text color */
    text-shadow: 2px 2px 0 rgba(13, 113, 200, 0.85); /* Matches page-heading shadow */
    line-height: 1.6; /* Improves paragraph readability */
}

/* =========================================================
   SHARED CARD SYSTEM
   ========================================================= */

/* Interactive card appearance */
.specialty-card,
.project-card,
.project-detail-card,
.shader-card {
    background: rgb(8, 14, 28); /* Sets shared dark card background */
    border: 2px solid var(--accent-blue-light); /* Adds shared bright-blue card border */
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease; /* Smoothly animates shared card interactions */
}

/* Non-interactive card appearance */
.skill-card,
.work-card {
    background: rgb(8, 14, 28); /* Uses shared dark card background */
    border: 2px solid var(--accent-blue-light); /* Uses shared bright-blue card border */
    cursor: default; /* Keeps normal cursor for non-clickable cards */
}

/* Shared interactive title transitions */
.specialty-card h3,
.project-card h3,
.project-detail-card h3,
.shader-card h3 {
    color: var(--text); /* Uses shared site text color */
    transition:
        color 0.2s ease,
        text-shadow 0.2s ease; /* Smoothly animates shared title interaction effects */
}

/* Shared card bullet formatting */
.card-content ul,
.work-card ul,
.project-card ul,
.project-detail-card ul,
.link-card ul,
.card-bullets {
    margin: 0; /* Removes browser default list margin */
    padding-left: 1.25rem; /* Creates space for bullet markers */
    color: var(--text); /* Uses shared site text color */
    line-height: 1.6; /* Adds comfortable list line spacing */
}

.card-content li,
.work-card li,
.project-card li,
.project-detail-card li,
.link-card li,
.card-bullets li {
    margin-bottom: 0.42rem; /* Adds consistent spacing between list items */
}

.card-content li:last-child,
.work-card li:last-child,
.project-card li:last-child,
.project-detail-card li:last-child,
.link-card li:last-child,
.card-bullets li:last-child {
    margin-bottom: 0; /* Removes extra spacing after final list item */
}

/* Shared hover and keyboard-focus interaction */
.specialty-card:hover,
.specialty-card:focus-visible,
.project-card:hover,
.project-card:focus-visible,
.project-detail-card:hover,
.project-detail-card:focus-visible,
.shader-card:hover,
.shader-card:focus-visible {
    border-color: var(--accent-strong); /* Brightens card border during interaction */
    box-shadow:
        0 0 4px var(--accent-strong),
        0 0 12px var(--accent),
        0 0 24px var(--accent-blue-glow),
        0 0 38px var(--accent-violet-glow),
        0 0 48px var(--accent-magenta-glow); /* Adds shared cyan-blue-violet-magenta glow */
    outline: none; /* Removes default outline because custom focus styling is provided */
    transform: scale(1.035); /* Slightly enlarges card during interaction */
}

/* Shared press interaction */
.specialty-card:active,
.project-card:active,
.project-detail-card:active,
.shader-card:active {
    transform: scale(0.985); /* Slightly shrinks card to create pressed effect */
    box-shadow:
        0 0 3px var(--accent-strong),
        0 0 8px var(--accent),
        0 0 16px var(--accent-blue-glow); /* Adds compact active glow */
}

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumb {
    color: var(--text); /* Uses shared white breadcrumb text */
}

.breadcrumb a {
    color: var(--accent); /* Uses cyan accent for breadcrumb links */
    text-decoration: none; /* Removes default link underline */
    transition:
        color 0.2s ease,
        text-shadow 0.3s ease; /* Smoothly animates breadcrumb interaction effects */
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--text); /* Changes breadcrumb link to white during interaction */
    text-shadow:
        0 0 3px var(--text),
        0 0 8px var(--accent),
        0 0 18px var(--accent),
        0 0 34px var(--accent-blue); /* Adds white-cyan-blue breadcrumb glow */
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    margin-top: auto; /* Pushes footer to bottom when page content is short */
    padding: 25px 20px 35px; /* Adds footer spacing */
    text-align: center; /* Centers footer content */
    font-size: 1rem; /* Sets footer text size */
    color: var(--accent-strong); /* Uses bright accent text color */
}

footer img {
    position: relative; /* Allows small visual offset adjustments */
    top: -4px; /* Moves logo slightly upward */
    left: -16px; /* Moves logo slightly left */
    width: 50px; /* Sets footer logo width */
    height: 50px; /* Sets footer logo height */
    margin-left: 8px; /* Adds spacing between copyright text and logo */
    object-fit: contain; /* Fits logo without cropping */
    display: inline-block; /* Keeps logo inline with footer text */
    vertical-align: middle; /* Vertically aligns logo with text */
}

/* =========================================================
   GLOBAL MOBILE SCALE ADJUSTMENTS
   ========================================================= */
@media (max-width: 800px) {
    main {
        padding-inline: 16px; /* Reduces horizontal content padding on smaller screens */
    }
}

@media (max-width: 700px) {
    body {
        font-size: 0.95rem; /* Slightly reduces overall text scale */
    }

    .hero {
        padding: 32px 16px; /* Reduces hero spacing */
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem); /* Reduces portfolio-name scale */
    }

    .hero h2 {
        font-size: clamp(1rem, 5vw, 1.4rem); /* Reduces professional-title scale */
    }

    .hero-tagline {
        font-size: 0.9rem; /* Reduces tagline scale */
        line-height: 1.5; /* Maintains comfortable mobile line spacing */
    }

    nav {
        gap: 4px; /* Reduces navigation spacing */
        padding: 10px 8px; /* Reduces navigation padding */
    }

    nav a,
    nav span {
        padding: 6px 8px; /* Reduces navigation-item padding */
        font-size: 1rem; /* Reduces navigation text size */
    }

    main {
        padding: 28px 14px 45px; /* Reduces main-content spacing */
    }

    .page-header h2 {
        font-size: 1.8rem; /* Reduces page-heading size */
    }

    .page-header p {
        font-size: 0.95rem; /* Reduces page-header paragraph size */
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important; /* Disables smooth scrolling */
        transition-duration: 0.01ms !important; /* Makes transitions effectively instantaneous */
        animation-duration: 0.01ms !important; /* Makes animations effectively instantaneous */
        animation-iteration-count: 1 !important; /* Prevents repeated animations */
    }
}