/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --color-background: #F6F7F9;
    --color-hero-background: #1E2329;
    --color-surface-card: #E6E9ED;

    --color-text-primary: #1E2329;
    --color-text-secondary: #4B5563;
    --color-text-inverse: #FFFFFF;

    --color-accent-primary: #2A3138;
    --color-accent-highlight: #8C1616;

    --radius: 12px;
}

/* =========================================================
   RESET & BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--color-background);
    color: var(--color-text-primary);
}

p {
    margin: 0 0 1.25rem 0;
    line-height: 1.6;
}

p:last-child {
    margin-bottom: 0;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.25rem 0;
}

ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-highlight);
    font-weight: 600;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.section {
    padding: 4rem 1rem;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.divider-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 1rem;
}

.divider {
    height: 1px;
    width: 100%;
    background: var(--color-accent-highlight);
}

/* =========================================================
   HERO
   ========================================================= */

.collapsed-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background: var(--color-accent-highlight);
    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
}

.collapsed-hero.is-visible {
    transform: translateY(0);
}

.collapsed-hero-logo {
    height: 28px;
    width: auto;
}

.hero {
    background: var(--color-hero-background);
    color: var(--color-text-inverse);
}

.hero-container {
    text-align: center;
}

.logo-hero {
    width: 96px;
    margin-bottom: 2rem;
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    min-height: 1.6em;
}

.caret {
    margin-left: 2px;
    color: var(--color-accent-highlight);
    transition: opacity 2s ease;
}

.caret.fade-out {
    opacity: 0;
}

/* =========================================================
   FLOATING CTA
   ========================================================= */

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--color-accent-highlight);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(30px) translateZ(0);
    will-change: transform, opacity;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        visibility 0.3s;
}

.floating-cta.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) translateZ(0);
}

.floating-cta.is-visible:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-cta.is-visible:active {
    transform: translateY(-2px) translateZ(0);
    transition: transform 0.1s ease;
}

.floating-cta img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.floating-cta:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.floating-cta:active {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   BUTTON
   ========================================================= */

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: var(--radius);
    background: var(--color-accent-primary);
    color: var(--color-text-inverse);
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: var(--color-accent-highlight);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-block {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-layout {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 2.50rem;
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .about-image {
        width: 140px;
        height: 140px;
        margin-bottom: 0.50rem;
    }

    .about-text {
        width: 100%;
    }
}


/* =========================================================
   HIGHLIGHTED TITLES (STRUCTURAL)
   ========================================================= */

.highlight-title {
    display: inline-block;
    background: var(--color-accent-highlight);
    color: var(--color-text-inverse);
    padding: 0.2em 0.6em;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-surface-card);
    padding: 2.5rem;
    border-radius: var(--radius);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   EXPERIENCE
   ========================================================= */

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-card {
    background: var(--color-surface-card);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.client-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.client-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-top: 0.25rem;
}

.client-meta {
    flex: 1;
    min-width: 0;
}

.client-image {
    width: 96px;
    height: 96px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}

.client-description {
    margin: 1.25rem 0;
    color: var(--color-text-primary);
}

.client-quote {
    margin-top: 1.5rem;
    background: var(--color-accent-primary);
    color: var(--color-text-inverse);
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
    position: relative;
}

.client-quote::before {
    content: "“";
    position: absolute;
    top: -26px;
    left: 16px;
    font-size: 5.5rem;
    opacity: 0.45;
}

.quote-text {
    /* font-style: italic; */
    margin: 0;
}

.quote-author {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.quote-author::before {
    content: "— ";
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    text-align: center;
    padding: 4rem 1rem 2.5rem 1rem;
    border-top: 1px solid var(--color-accent-highlight);
}

.footer-qualifier {
    color: var(--color-accent-highlight);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    display: flex;
    gap: 0.5rem;
    color: var(--color-text-primary);
    text-decoration: none;
}

.footer-link img {
    width: 22px;
}

.footer-meta {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
