/* RESET & GLOBAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* off‑white background for all sections */
    --section-bg: #F8F7F4;

    /* remove all colored typography – default to solid black */
    --orange: #000000;
    --yellow: #000000;
    --yellow-hover: #000000;
    --accent-color: #000000; /* used by highlights/metrics */
    --btn-icon-color: #000000;

    --black: #000000;
    --white: #FAFAFA;
    --lightgrey: #E8E8E8;
    --indicator-color: var(--black);
    --indicator-size: 18px;
    --border-style: none;
    --input-border: none;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--section-bg);
    color: var(--black);
    overflow-x: hidden;
    cursor: crosshair;
}

/* HERO */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* unified off‑white section background */
    background: var(--section-bg);
    /* removed previous pattern image */
}

/* ensure every section can position the chevron */
section {
    position: relative;
}

.name {
    font-size: clamp(60px, 15vw, 220px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 0.85;
    text-align: center;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
    from {
        opacity: 0;
        transform: translateY(40px);
    }
}

.subtitle {
    position: absolute;
    bottom: 15vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(14px, 2vw, 18px);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--indicator-size);
    color: var(--indicator-color);
    animation: bounce 2s ease-in-out infinite;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* STATEMENT SECTION */
.statement {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10vh 5vw;
    background: var(--section-bg);
    color: var(--black);
}


.statement-text {
    font-size: clamp(32px, 6vw, 90px);
    font-weight: 700;
    line-height: 1.1;
    max-width: 1400px;
    letter-spacing: -0.02em;
}

.statement-text .highlight {
    color: var(--accent-color);
}

/* WORK GRID */
.work {
    min-height: 100vh;
    padding: 15vh 5vw;
    background: var(--section-bg);
}


.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
}

.work-item {
    border-bottom: 1px solid var(--black);
    padding: 8vh 0;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-item:hover {
    padding-left: 40px;
}

/* .work-item:hover .work-number removed – numbers no longer in markup */

/* .work-number styles removed – numeric labels no longer present in markup */


.work-title {
    font-size: clamp(28px, 5vw, 60px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.work-desc {
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.6;
    max-width: 800px;
    /* ensure solid black text */
    opacity: 1;
    color: #000000;
}

.work-metric {
    color: var(--accent-color);
    font-weight: 700;
}

/* SKILLS, WORD CLOUD STYLE */
.skills {
    min-height: 100vh;
    background: var(--section-bg);
    color: var(--black);
    padding: 15vh 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}


.skills-container {
    max-width: 1400px;
    width: 100%;
}

.skills-title {
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 700;
    margin-bottom: 10vh;
    letter-spacing: -0.02em;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.skill {
    font-size: var(--size);
    font-weight: 700;
    /* remove opacity to keep text solid black */
    opacity: 1 !important;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.skill:hover {
    opacity: 1;
    color: var(--orange);
    transform: scale(1.1);
}

.skill.primary {
    --size: clamp(40px, 6vw, 80px);
    --opacity: 1;
}

.skill.secondary {
    --size: clamp(24px, 4vw, 50px);
    --opacity: 0.6;
}

.skill.tertiary {
    --size: clamp(16px, 2.5vw, 32px);
    --opacity: 0.4;
}

/* CONTACT */
.contact {
    background: var(--section-bg);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: clamp(2rem, 4vh, 4rem) 5vw;
    min-height: auto;
}


.contact-container {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.contact-title {
    font-size: clamp(60px, 12vw, 160px);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 40px;
    letter-spacing: -0.03em;
}

.contact-input {
    width: 100%;
    background: var(--white);
    border: var(--input-border);
    color: var(--black);
    font-family: 'Space Mono', monospace;
    font-size: clamp(20px, 3vw, 36px);
    padding: 20px;
    text-align: center;
    outline: none;
    margin-bottom: 40px;
    resize: vertical;
    min-height: 100px;
    border-radius: 8px;
    line-height: 1.6;
    transition: border 0.3s ease;
}

.contact-input::placeholder {
    color: #000000;
}

.contact-btn {
    background: #C87A3A; /* orange send button */
    color: #ffffff;
    border: none;
    font-family: 'Space Mono', monospace;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 700;
    padding: 15px 80px; /* vertical padding reduced by 50% */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 15px;
}

/* remove click/highlight outlines while preserving keyboard focus with subtle ring */
button,
.contact-btn,
.a11y-toggle-btn,
.a11y-control-btn,
.a11y-close-btn,
.a11y-reset-btn {
    outline: none;
    box-shadow: none;
}

button:focus-visible,
.contact-btn:focus-visible,
.a11y-toggle-btn:focus-visible,
.a11y-control-btn:focus-visible,
.a11y-close-btn:focus-visible,
.a11y-reset-btn:focus-visible {
    /* subtle accessible focus indicator */
    box-shadow: 0 0 0 3px rgba(200, 122, 58, 0.5);
}

button:active,
.contact-btn:active,
.a11y-toggle-btn:active,
.a11y-control-btn:active,
.a11y-close-btn:active,
.a11y-reset-btn:active {
    outline: none;
    box-shadow: none;
} 

.contact-btn:hover {
    background: #e09f6e; /* lighter orange on hover */
    transform: scale(1.05);
}

.contact-btn:active {
    transform: scale(0.98);
}

/* FOOTER*/
.footer {
    background: var(--section-bg);
    color: var(--black);
    padding: 60px 5vw;
    text-align: center;
    position: relative;
    letter-spacing: 0.1em;
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.social-link {
    color: var(--black);
    font-size: 48px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.social-link:hover {
    color: var(--black);
    transform: scale(1.2);
}

.footer-copyright {
    font-size: 24px;
    color: var(--black);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .work-item {
        padding: 6vh 0;
    }

    /* mobile override for .work-number removed – not used */

    .skills-cloud {
        gap: 20px;
    }

    .contact-input {
        font-size: 20px;
    }

    .contact-btn {
        padding: 12.5px 60px; /* vertical padding halved for mobile too */
        font-size: 18px;
    }
}

/* MOBILE: social icons grid + scaled-down grunge background */
@media (max-width: 600px) {
    .social-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        justify-items: center;
        align-items: center;
        margin-bottom: 24px;
    }

    .social-link {
        font-size: 36px;
        width: 64px;
        height: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(0,0,0,0.03);
        transition: transform 0.18s ease, background 0.18s ease;
    }

    .social-link:hover {
        transform: translateY(-2px) scale(1.05);
        background: rgba(0,0,0,0.05);
    }

    .footer {
        padding: 32px 5vw;
    }

    /* make grunge art smaller and anchored toward top so it doesn't overwhelm content */
    .hero {
        background-size: 700px auto;
        background-position: center top;
        background-attachment: scroll;
    }
}

@media (max-width: 420px) {
    .social-link { font-size: 32px; width: 56px; height: 56px; }
    .hero { background-size: 580px auto; }
}

/* SECTION CHEVRON INDICATOR */
.section-chevron {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    color: #000000;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* animation class applied to chevrons so they all bounce like hero indicator */
.section-chevron.chevron-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.section-chevron i {
    width: 100%;
    height: 100%;
    display: block;
}
/* removed SVG-specific styling since Font Awesome icons are used */

/* SCROLL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CUSTOM SELECTION */
::selection {
    background: var(--black);
    color: var(--section-bg);
}

/* SMOOTH SCROLL */
html {
    scroll-behavior: smooth;
}

/* ACCESSIBILITY BUTTON */
/* DARK MODE */
body.dark-mode {
    background: var(--black);
    color: var(--white);
}

body.dark-mode .hero {
    background: var(--black);
}

body.dark-mode .statement {
    background: #1a1a1a;
    color: var(--white);
}

body.dark-mode .work {
    background: var(--black);
    color: var(--white);
}

body.dark-mode .work-item {
    border-bottom-color: var(--white);
}

body.high-contrast {
    --accent-color: var(--yellow);
    --btn-icon-color: var(--yellow);
    --input-border: 2px solid var(--black);
}

body.high-contrast .work {
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
}

body.high-contrast .work-item {
    border-bottom-color: var(--black);
    border-bottom-width: 3px;
}

body.high-contrast .skills {
    background: var(--black);
    color: var(--white);
    border: 3px solid var(--white);
}

body.high-contrast .contact {
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
}

body.high-contrast .contact-input {
    background: var(--white);
    color: var(--black);
}

body.high-contrast .contact-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

body.high-contrast .contact-btn {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--white);
    font-weight: 700;
}

body.high-contrast .footer {
    background: var(--black);
    color: var(--white);
    border-top: 3px solid var(--white);
}

body.high-contrast .social-link {
    color: var(--white);
}

body.high-contrast .footer-copyright {
    color: var(--white);
}

/* HIGH CONTRAST MODE - CLEAR BACKGROUNDS AND CHANGE ORANGE */
body.high-contrast .hero {
    background-image: none;
    background: var(--black);
    color: var(--white);
}

body.high-contrast .hero .name {
    color: var(--white);
}

body.high-contrast .hero .subtitle {
    color: var(--white);
}

body.high-contrast .hero .scroll-indicator {
    color: var(--white);
}

body.high-contrast .statement-text .highlight {
    color: var(--yellow);
}

body.high-contrast .work-metric {
    color: var(--yellow);
}

body.high-contrast .skill:hover {
    color: var(--yellow);
}

body.high-contrast .toggle-switch {
    background: var(--black);
    border: 2px solid var(--white);
    box-sizing: border-box;
}

body.high-contrast .toggle-switch.active {
    background: var(--yellow);
    border: 2px solid var(--yellow);
}

body.high-contrast .reset-btn {
    background: var(--yellow);
    color: var(--black);
    border: 2px solid var(--yellow);
}

body.high-contrast .reset-btn:hover {
    background: var(--yellow-hover);
    border: 2px solid var(--yellow-hover);
}

body.high-contrast .size-slider::-webkit-slider-thumb {
    background: var(--yellow);
}

body.high-contrast .size-slider::-moz-range-thumb {
    background: var(--yellow);
}


/* ============================= */
/* FONT AWESOME ICON UTILITIES  */
/* ============================= */

/* Icon Sizing */
.icon-xs { font-size: 0.675rem; }
.icon-sm { font-size: 0.875rem; }
.icon-md { font-size: 1rem; }
.icon-lg { font-size: 1.25rem; }
.icon-xl { font-size: 1.5rem; }
.icon-2xl { font-size: 2rem; }

/* Icon Colors */
.icon-success { color: #28a745; }
.icon-danger { color: #dc3545; }
.icon-warning { color: #ffc107; }
.icon-info { color: #17a2b8; }
.icon-primary { color: #007bff; }
.icon-secondary { color: #6c757d; }
.icon-dark { color: #343a40; }
.icon-light { color: #f8f9fa; }

/* Icon Spacing */
.icon-left { margin-right: 0.5rem; }
.icon-right { margin-left: 0.5rem; }
.icon-only { font-size: 1.25rem; }

/* Icon Alignment */
.icon-baseline { display: inline-block; vertical-align: -0.125em; }
.icon-vertical-center { display: inline-flex; align-items: center; gap: 0.5rem; }
.icon-alone { display: inline-block; width: 1em; height: 1em; }

