/* =====================================================
   PIXEL PINK - DESIGN SYSTEM
   ===================================================== */

/* =====================================================
   CSS VARIABLES - COLOR PALETTE & DESIGN TOKENS
   ===================================================== */
:root {
    /* Colors - From Foundation Document */
    --color-pink-start: #FF8C9E;
    --color-pink-end: #F6A6B2;
    --color-charcoal: #39424E;
    --color-soft-white: #FAFAFA;
    --color-warm-gray: #B8B8B8;
    --color-muted-blue: #AFC7D5;
    --color-white: #FFFFFF;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;

    /* Spacing - 8px Grid System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    --space-9: 72px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows - Subtle, breathing */
    --shadow-sm: 0 2px 8px rgba(57, 66, 78, 0.06);
    --shadow-md: 0 4px 16px rgba(57, 66, 78, 0.08);
    --shadow-lg: 0 8px 24px rgba(57, 66, 78, 0.12);

    /* Container */
    --container-max-width: 960px;
    --container-padding: var(--space-6);

    /* Transitions - Calm and slow */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* =====================================================
   DARK MODE VARIABLES
   ===================================================== */
body.dark-mode {
    --color-charcoal: #E8EAED;
    --color-soft-white: #1A1D23;
    --color-warm-gray: #6B7280;
    --color-muted-blue: #5A7B8F;
    --color-white: #0F1115;

    /* Shadows in dark mode */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;
    color: var(--color-charcoal);
    background-color: var(--color-soft-white);
    overflow-x: hidden;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-bottom: var(--space-3);
}

p {
    margin-bottom: var(--space-3);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

/* =====================================================
   LAYOUT - CONTAINER
   ===================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 768px) {
    .container {
        --container-padding: var(--space-4);
    }
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.nav {
    padding: var(--space-3) 0;
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 120px;
    width: auto;
    display: block;
    transition: filter var(--transition-normal);
}

body.dark-mode .logo-image {
    filter: brightness(1.5) contrast(1.1);
}

@media (max-width: 768px) {
    .logo-image {
        height: 100px;
    }
}

.nav-links {
    display: flex;
    gap: var(--space-5);
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: var(--font-weight-regular);
    color: var(--color-charcoal);
    position: relative;
    text-transform: lowercase;
}

.nav-link.active {
    font-weight: var(--font-weight-medium);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-pink-start), var(--color-pink-end));
}

@media (max-width: 768px) {
    .nav {
        padding: var(--space-2) 0;
    }

    .nav .container {
        padding: 0 var(--space-3);
    }

    .nav-links {
        gap: var(--space-2);
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0 var(--space-1);
    }

    .logo-image {
        height: 80px;
    }

    .nav-links .dark-mode-toggle {
        width: 32px;
        height: 32px;
    }

    .nav-links .dark-mode-toggle .toggle-icon {
        font-size: 12px;
    }
}

/* Dark Mode Toggle - Shared Styles */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--color-charcoal);
    border: none;
    padding: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    transition: filter var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    z-index: 10;
    pointer-events: auto;
    flex-shrink: 0;
}

.nav-links .dark-mode-toggle {
    align-self: center;
}

.nav-links .dark-mode-toggle:hover {
    filter: brightness(1.2);
    box-shadow: var(--shadow-md);
}

.nav-links .dark-mode-toggle:active {
    filter: brightness(1);
}

/* Always show in nav, always hide in footer */
.nav-links .dark-mode-toggle {
    display: flex;
}

.footer-blocks .dark-mode-toggle {
    display: none;
}

.toggle-icon {
    font-size: 16px;
    transition: transform var(--transition-normal), opacity var(--transition-fast);
    position: absolute;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

body.dark-mode .dark-mode-toggle {
    background: var(--color-muted-blue);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* =====================================================
   HERO SECTION (HOME)
   ===================================================== */
.hero {
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Pixel Background Pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 140, 158, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(246, 166, 178, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Decorative Pixel Blocks */
.pixel-decoration {
    position: absolute;
    border-radius: var(--radius-md);
    pointer-events: auto;
    z-index: 0;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pixel-decoration:hover {
    transform: translate(var(--run-x, 0), var(--run-y, 0)) scale(1.1);
}

.pixel-1 {
    top: 12%;
    left: 6%;
    width: 70px;
    height: 70px;
    background: var(--color-charcoal);
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    --run-x: -80px;
    --run-y: -60px;
}

.pixel-2 {
    top: 20%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-charcoal), var(--color-muted-blue));
    opacity: 0.12;
    animation: float 10s ease-in-out infinite 1s;
    --run-x: 70px;
    --run-y: -50px;
}

.pixel-3 {
    top: 45%;
    left: 12%;
    width: 50px;
    height: 50px;
    background: var(--color-muted-blue);
    opacity: 0.1;
    animation: float 12s ease-in-out infinite 2s;
    --run-x: -60px;
    --run-y: 40px;
}

.pixel-4 {
    top: 60%;
    right: 15%;
    width: 55px;
    height: 55px;
    background: var(--color-charcoal);
    opacity: 0.08;
    animation: float 9s ease-in-out infinite 1.5s;
    --run-x: 65px;
    --run-y: 45px;
}

.pixel-5 {
    bottom: 25%;
    left: 8%;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--color-pink-start), var(--color-pink-end));
    opacity: 0.1;
    animation: float 11s ease-in-out infinite 0.5s;
    --run-x: -75px;
    --run-y: 55px;
}

.pixel-6 {
    bottom: 15%;
    right: 10%;
    width: 45px;
    height: 45px;
    background: var(--color-charcoal);
    opacity: 0.12;
    animation: float 13s ease-in-out infinite 2.5s;
    --run-x: 60px;
    --run-y: 50px;
}

.pixel-7 {
    top: 35%;
    left: 25%;
    width: 40px;
    height: 40px;
    background: var(--color-muted-blue);
    opacity: 0.08;
    animation: float 14s ease-in-out infinite 1.8s;
    --run-x: -50px;
    --run-y: -40px;
}

.pixel-8 {
    bottom: 40%;
    right: 20%;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-charcoal), var(--color-pink-start));
    opacity: 0.09;
    animation: float 10.5s ease-in-out infinite 3s;
    --run-x: 55px;
    --run-y: -45px;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -15px) rotate(3deg);
    }
    50% {
        transform: translate(-10px, 15px) rotate(-3deg);
    }
    75% {
        transform: translate(10px, 10px) rotate(2deg);
    }
}

/* Stacked Blocks - Hero Visual Identity */
.block-stack {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 0;
    pointer-events: none;
}

.block-stack-left {
    top: 25%;
    left: 3%;
}

.block-stack-right {
    top: 35%;
    right: 3%;
}

.stacked-block {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    animation: stackFloat 10s ease-in-out infinite;
}

.block-stack-left .stacked-block:nth-child(1) {
    animation-delay: 0s;
}

.block-stack-left .stacked-block:nth-child(2) {
    animation-delay: 0.3s;
}

.block-stack-left .stacked-block:nth-child(3) {
    animation-delay: 0.6s;
}

.block-stack-right .stacked-block:nth-child(1) {
    animation-delay: 0.2s;
}

.block-stack-right .stacked-block:nth-child(2) {
    animation-delay: 0.5s;
}

.block-dark {
    background: var(--color-charcoal);
    opacity: 0.18;
}

.block-pink {
    background: linear-gradient(135deg, var(--color-pink-start), var(--color-pink-end));
    opacity: 0.15;
}

.block-blue {
    background: var(--color-muted-blue);
    opacity: 0.12;
}

@keyframes stackFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.2;
    margin-bottom: var(--space-4);
    text-transform: lowercase;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    color: var(--color-warm-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-10) 0 var(--space-8);
    }

    .pixel-1, .pixel-2, .pixel-3, .pixel-4 {
        width: 40px;
        height: 40px;
    }

    .pixel-5, .pixel-6 {
        width: 35px;
        height: 35px;
    }

    .pixel-7, .pixel-8 {
        width: 30px;
        height: 30px;
    }

    .pixel-1 { left: 5%; top: 10%; }
    .pixel-2 { right: 5%; top: 15%; }
    .pixel-3 { left: 8%; top: 40%; }
    .pixel-4 { right: 10%; top: 55%; }
    .pixel-5 { left: 6%; bottom: 30%; }
    .pixel-6 { right: 8%; bottom: 20%; }
    .pixel-7 { left: 20%; top: 30%; }
    .pixel-8 { right: 18%; bottom: 45%; }

    .stacked-block {
        width: 50px;
        height: 50px;
    }

    .block-stack-left {
        left: 2%;
        top: 20%;
    }

    .block-stack-right {
        right: 2%;
        top: 28%;
    }

    .block-stack {
        gap: var(--space-1);
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--space-5);
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero {
        padding: var(--space-10) 0 var(--space-8);
    }
}

/* =====================================================
   MANIFESTO SECTION
   ===================================================== */
.manifesto {
    padding: var(--space-12) 0;
    background-color: var(--color-white);
    position: relative;
}

/* Subtle pixel grid background */
.manifesto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(57, 66, 78, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 66, 78, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.5;
}

/* Block Clusters */
.block-cluster {
    position: absolute;
    display: flex;
    gap: var(--space-2);
    pointer-events: none;
    z-index: 1;
}

.cluster-left {
    top: 15%;
    left: 5%;
    flex-direction: column;
}

.cluster-right {
    bottom: 20%;
    right: 5%;
    flex-direction: row;
    align-items: flex-end;
}

.cluster-block {
    border-radius: var(--radius-md);
    animation: clusterFloat 12s ease-in-out infinite;
}

.cluster-block:nth-child(1) { animation-delay: 0s; }
.cluster-block:nth-child(2) { animation-delay: 0.4s; }
.cluster-block:nth-child(3) { animation-delay: 0.8s; }

.block-sm {
    width: 50px;
    height: 50px;
}

.block-md {
    width: 70px;
    height: 70px;
}

@keyframes clusterFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.manifesto-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.manifesto-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: var(--space-6);
    color: var(--color-charcoal);
}

.manifesto-text:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .manifesto {
        padding: var(--space-8) 0;
    }

    .manifesto::before {
        background-size: 24px 24px;
    }

    .block-sm {
        width: 30px;
        height: 30px;
    }

    .block-md {
        width: 40px;
        height: 40px;
    }

    .cluster-left {
        left: 3%;
        top: 10%;
    }

    .cluster-right {
        right: 3%;
        bottom: 15%;
    }

    .block-cluster {
        gap: var(--space-1);
    }

    .manifesto-text {
        font-size: 1rem;
    }

    .hide-mobile {
        display: none;
    }
}

/* =====================================================
   PHILOSOPHY CALLOUT
   ===================================================== */
.philosophy-callout {
    padding: var(--space-12) 0;
}

.callout-box {
    background: var(--color-charcoal);
    border-radius: var(--radius-lg);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.callout-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-pink-start), var(--color-pink-end));
    opacity: 0.15;
    pointer-events: none;
}

.callout-box > * {
    position: relative;
    z-index: 1;
}

.callout-title {
    font-size: 2rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
    text-transform: lowercase;
    color: var(--color-white);
}

.callout-text {
    font-size: 1.1rem;
    margin-bottom: var(--space-6);
    color: var(--color-white);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .philosophy-callout {
        padding: var(--space-8) 0;
    }

    .callout-box {
        padding: var(--space-6) var(--space-5);
    }

    .callout-title {
        font-size: 1.5rem;
    }

    .callout-text {
        font-size: 1rem;
    }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
    display: inline-block;
    padding: var(--space-2) var(--space-5);
    background-color: var(--color-white);
    color: var(--color-charcoal);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    text-transform: lowercase;
}

.btn-primary:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =====================================================
   PROJECTS PREVIEW (HOME)
   ===================================================== */
.projects-preview {
    padding: var(--space-12) 0;
}

.section-title {
    font-size: 2rem;
    font-weight: var(--font-weight-medium);
    text-align: center;
    margin-bottom: var(--space-8);
    text-transform: lowercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.project-card {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    opacity: 1;
}

.project-name {
    font-size: 1.5rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    text-transform: lowercase;
}

.project-description {
    font-size: 0.95rem;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-3);
    flex-grow: 1;
}

.project-status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-pink-start);
    text-transform: lowercase;
}

.project-status::after {
    content: ' →';
    margin-left: 4px;
}

.section-footer {
    text-align: center;
}

.link-arrow {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-charcoal);
}

@media (max-width: 768px) {
    .projects-preview {
        padding: var(--space-8) 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .project-card {
        padding: var(--space-4);
    }

    .project-name {
        font-size: 1.3rem;
        margin-bottom: var(--space-2);
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-6);
    }
}

/* =====================================================
   PAGE HEADER
   ===================================================== */
.page-header {
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 140, 158, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(246, 166, 178, 0.08) 0%, transparent 50%);
}

/* Decorative Pixels for Page Headers */
.page-header::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: var(--color-charcoal);
    opacity: 0.12;
    border-radius: var(--radius-md);
    animation: floatSlow 12s ease-in-out infinite;
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: 8%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-charcoal), var(--color-muted-blue));
    opacity: 0.10;
    border-radius: var(--radius-sm);
    animation: floatSlow 10s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(8px, -8px) rotate(3deg);
    }
    66% {
        transform: translate(-8px, 8px) rotate(-3deg);
    }
}

/* Page Block Decorations */
.page-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.page-block {
    position: absolute;
    border-radius: var(--radius-md);
    animation: float 11s ease-in-out infinite;
}

.page-block.block-1 {
    top: 15%;
    left: 10%;
    width: 65px;
    height: 65px;
    animation-delay: 0s;
}

.page-block.block-2 {
    top: 50%;
    left: 5%;
    width: 50px;
    height: 50px;
    animation-delay: 0.5s;
}

.page-block.block-3 {
    top: 25%;
    right: 12%;
    width: 55px;
    height: 55px;
    animation-delay: 1s;
}

.page-block.block-4 {
    bottom: 20%;
    right: 8%;
    width: 60px;
    height: 60px;
    animation-delay: 1.5s;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-3);
    text-transform: lowercase;
}

.page-subtitle {
    font-size: 1.2rem;
    font-weight: var(--font-weight-light);
    color: var(--color-warm-gray);
}

@media (max-width: 768px) {
    .page-header {
        padding: var(--space-8) 0 var(--space-6);
    }

    .page-header::before {
        width: 50px;
        height: 50px;
    }

    .page-header::after {
        width: 40px;
        height: 40px;
    }

    .page-block.block-1 {
        width: 40px;
        height: 40px;
        left: 5%;
    }

    .page-block.block-2 {
        width: 35px;
        height: 35px;
        left: 3%;
    }

    .page-block.block-3 {
        width: 38px;
        height: 38px;
        right: 5%;
    }

    .page-block.block-4 {
        width: 40px;
        height: 40px;
        right: 3%;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: var(--space-4);
        line-height: 1.3;
    }

    .page-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    .page-header {
        padding: var(--space-8) 0 var(--space-6);
    }
}

/* =====================================================
   PROJECTS LIST (PROJECTS PAGE)
   ===================================================== */
.projects-list {
    padding: var(--space-8) 0 var(--space-12);
}

/* Project Categories */
.project-category {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--color-soft-white);
}

.category-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-charcoal);
    margin-bottom: var(--space-3);
    text-transform: lowercase;
}

.category-description {
    font-size: 1rem;
    color: var(--color-warm-gray);
    line-height: 1.6;
    margin-bottom: 0;
}

.project-detail {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}

.project-detail:last-child {
    margin-bottom: 0;
}

.project-detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.project-detail-name {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0;
    text-transform: lowercase;
}

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: lowercase;
}

.badge-live {
    background-color: #D4EDDA;
    color: #155724;
}

.badge-development {
    background-color: #FFF3CD;
    color: #856404;
}

.project-detail-tagline {
    font-size: 1.15rem;
    color: var(--color-warm-gray);
    margin-bottom: var(--space-4);
    font-style: italic;
}

.project-detail-body p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.project-meta {
    margin-top: var(--space-5);
    padding-top: var(--space-5);
    border-top: 1px solid #E0E0E0;
    display: flex;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.meta-label {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-warm-gray);
}

.meta-value {
    font-size: 0.95rem;
    color: var(--color-charcoal);
}

.meta-link {
    font-size: 0.95rem;
    color: var(--color-pink-start);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .projects-list {
        padding: var(--space-6) 0 var(--space-8);
    }

    .project-category {
        margin-bottom: var(--space-6);
        padding-bottom: var(--space-3);
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-description {
        font-size: 0.95rem;
    }

    .project-detail {
        padding: var(--space-4);
    }

    .project-detail-name {
        font-size: 1.5rem;
    }

    .project-meta {
        flex-direction: column;
        gap: var(--space-3);
    }
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-content {
    padding: var(--space-8) 0 var(--space-12);
}

.content-section {
    margin-bottom: var(--space-10);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-heading {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    text-transform: lowercase;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.content-list {
    list-style: none;
    margin-bottom: var(--space-4);
    padding-left: var(--space-4);
}

.content-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-2);
    position: relative;
}

.content-list li::before {
    content: '—';
    position: absolute;
    left: calc(-1 * var(--space-4));
    color: var(--color-pink-start);
}

/* What Matters Section - Clean, Bold Statements */
.matters-section {
    padding: var(--space-10) 0;
}

.matters-grid {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.matters-statement {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    color: var(--color-charcoal);
    margin: 0;
    position: relative;
    padding-left: var(--space-5);
}

.matters-statement::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--color-pink-start);
    border-radius: var(--radius-sm);
}

.matters-statement.matters-final {
    font-size: 2.25rem;
    color: var(--color-pink-start);
    margin-top: var(--space-4);
    font-weight: var(--font-weight-bold);
}

@media (max-width: 768px) {
    .matters-statement {
        font-size: 1.5rem;
        padding-left: var(--space-4);
    }

    .matters-statement::before {
        width: 10px;
        height: 10px;
    }

    .matters-statement.matters-final {
        font-size: 1.75rem;
    }
}

.matters-item::before {
    content: none;
}

.blockquote {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    font-style: italic;
    color: var(--color-warm-gray);
    margin: var(--space-6) 0;
    padding-left: var(--space-5);
    border-left: 4px solid var(--color-pink-start);
}

@media (max-width: 768px) {
    .about-content {
        padding: var(--space-6) 0 var(--space-8);
    }

    .content-heading {
        font-size: 1.5rem;
    }

    .content-text {
        font-size: 1rem;
    }

    .blockquote {
        font-size: 1.25rem;
        padding-left: var(--space-3);
    }
}

/* =====================================================
   CONTACT PAGE - SIMPLIFIED
   ===================================================== */
.contact-content {
    padding: var(--space-8) 0 var(--space-12);
    text-align: center;
}

.contact-content .container {
    max-width: 800px;
}

.contact-intro {
    margin-bottom: var(--space-10);
}

.contact-intro p {
    font-size: 1.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-charcoal);
    line-height: 1.5;
}

.contact-personas {
    margin-bottom: var(--space-10);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.persona-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-charcoal);
    margin-bottom: var(--space-6);
    padding-left: var(--space-5);
    position: relative;
    text-align: left;
}

.persona-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 10px;
    height: 10px;
    background: var(--color-pink-start);
    border-radius: var(--radius-sm);
}

.persona-text:last-child {
    margin-bottom: 0;
}

.contact-email-section {
    margin-top: var(--space-12);
    padding: var(--space-8);
    background: var(--color-soft-white);
    border-radius: var(--radius-lg);
}

.contact-email-link {
    font-size: 2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--color-pink-start);
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
}

.contact-email-link:hover {
    color: var(--color-pink-end);
    transform: translateY(-2px);
}

body.dark-mode .contact-intro p,
body.dark-mode .persona-text {
    color: var(--color-charcoal);
}

body.dark-mode .contact-email-section {
    background: #0F1115;
}

@media (max-width: 768px) {
    .contact-content {
        padding: var(--space-6) 0 var(--space-8);
    }

    .contact-intro {
        margin-bottom: var(--space-6);
    }

    .contact-intro p {
        font-size: 1.15rem;
    }

    .persona-text {
        font-size: 1rem;
    }

    .contact-email-section {
        padding: var(--space-6);
    }

    .contact-email-link {
        font-size: 1.5rem;
    }
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: var(--space-12) 0;
    background-color: var(--color-white);
}

.cta-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-charcoal);
    padding: var(--space-8) var(--space-6);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-pink-start), var(--color-pink-end));
    opacity: 0.12;
    pointer-events: none;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-5);
    color: var(--color-white);
}

body.dark-mode .cta-box {
    background: #0F1115;
}

body.dark-mode .cta-text {
    color: var(--color-charcoal);
}

@media (max-width: 768px) {
    .cta-section {
        padding: var(--space-8) 0;
    }

    .cta-text {
        font-size: 1.2rem;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: var(--space-10) 0 var(--space-6);
    background-color: var(--color-charcoal);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .footer {
    background-color: #0F1115;
    color: var(--color-charcoal);
}

/* Footer Block Pattern - Static, No Animation */
.footer-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.footer-block {
    position: absolute;
    border-radius: var(--radius-md);
    animation: sequentialGlow 180s ease-in-out infinite;
    animation-delay: calc(var(--glow-order, 0) * 3s);
}

@keyframes sequentialGlow {
    0%, 98% {
        filter: brightness(1);
        opacity: var(--base-opacity, 0.15);
    }
    1%, 2% {
        filter: brightness(2.5);
        opacity: 0.4;
        box-shadow: 0 0 20px currentColor;
    }
}

/* Left side blocks */
.footer-block.fb-1 {
    top: 10%;
    left: 5%;
    width: 50px;
    height: 50px;
    --glow-order: 0;
}

.footer-block.fb-2 {
    top: 35%;
    left: 3%;
    width: 40px;
    height: 40px;
    --glow-order: 1;
}

.footer-block.fb-3 {
    top: 60%;
    left: 8%;
    width: 45px;
    height: 45px;
    --glow-order: 2;
}

.footer-block.fb-4 {
    bottom: 15%;
    left: 4%;
    width: 35px;
    height: 35px;
    --glow-order: 3;
}

/* Middle-left blocks */
.footer-block.fb-5 {
    top: 20%;
    left: 25%;
    width: 40px;
    height: 40px;
    --glow-order: 4;
}

.footer-block.fb-6 {
    bottom: 25%;
    left: 30%;
    width: 38px;
    height: 38px;
    --glow-order: 5;
}

/* Middle-right blocks */
.footer-block.fb-7 {
    top: 15%;
    right: 28%;
    width: 42px;
    height: 42px;
    --glow-order: 6;
}

.footer-block.fb-8 {
    bottom: 30%;
    right: 25%;
    width: 36px;
    height: 36px;
    --glow-order: 7;
}

/* Right side blocks */
.footer-block.fb-9 {
    top: 25%;
    right: 8%;
    width: 48px;
    height: 48px;
    --glow-order: 8;
}

.footer-block.fb-10 {
    top: 50%;
    right: 5%;
    width: 40px;
    height: 40px;
    --glow-order: 9;
}

.footer-block.fb-11 {
    bottom: 20%;
    right: 10%;
    width: 45px;
    height: 45px;
    --glow-order: 10;
}

.footer-block.fb-12 {
    bottom: 8%;
    right: 3%;
    width: 38px;
    height: 38px;
    --glow-order: 11;
}

/* Additional blocks 13-60 for 5x density */
.footer-block.fb-13 { top: 5%; left: 12%; width: 42px; height: 42px; --glow-order: 12; }
.footer-block.fb-14 { top: 45%; left: 6%; width: 36px; height: 36px; --glow-order: 13; }
.footer-block.fb-15 { top: 72%; left: 10%; width: 40px; height: 40px; --glow-order: 14; }
.footer-block.fb-16 { bottom: 5%; left: 15%; width: 44px; height: 44px; --glow-order: 15; }
.footer-block.fb-17 { top: 28%; left: 18%; width: 38px; height: 38px; --glow-order: 16; }
.footer-block.fb-18 { bottom: 40%; left: 12%; width: 35px; height: 35px; --glow-order: 17; }
.footer-block.fb-19 { top: 55%; left: 20%; width: 40px; height: 40px; --glow-order: 18; }
.footer-block.fb-20 { bottom: 18%; left: 22%; width: 42px; height: 42px; --glow-order: 19; }
.footer-block.fb-21 { top: 12%; left: 32%; width: 36px; height: 36px; --glow-order: 20; }
.footer-block.fb-22 { top: 38%; left: 28%; width: 40px; height: 40px; --glow-order: 21; }
.footer-block.fb-23 { bottom: 35%; left: 35%; width: 38px; height: 38px; --glow-order: 22; }
.footer-block.fb-24 { top: 65%; left: 33%; width: 42px; height: 42px; --glow-order: 23; }
.footer-block.fb-25 { bottom: 10%; left: 38%; width: 36px; height: 36px; --glow-order: 24; }
.footer-block.fb-26 { top: 8%; left: 42%; width: 44px; height: 44px; --glow-order: 25; }
.footer-block.fb-27 { top: 48%; left: 40%; width: 38px; height: 38px; --glow-order: 26; }
.footer-block.fb-28 { bottom: 28%; left: 45%; width: 40px; height: 40px; --glow-order: 27; }
.footer-block.fb-29 { top: 75%; left: 48%; width: 36px; height: 36px; --glow-order: 28; }
.footer-block.fb-30 { top: 22%; left: 52%; width: 42px; height: 42px; --glow-order: 29; }
.footer-block.fb-31 { top: 58%; right: 48%; width: 38px; height: 38px; --glow-order: 30; }
.footer-block.fb-32 { bottom: 45%; right: 45%; width: 40px; height: 40px; --glow-order: 31; }
.footer-block.fb-33 { top: 35%; right: 42%; width: 36px; height: 36px; --glow-order: 32; }
.footer-block.fb-34 { bottom: 12%; right: 40%; width: 44px; height: 44px; --glow-order: 33; }
.footer-block.fb-35 { top: 68%; right: 38%; width: 38px; height: 38px; --glow-order: 34; }
.footer-block.fb-36 { top: 5%; right: 35%; width: 40px; height: 40px; --glow-order: 35; }
.footer-block.fb-37 { bottom: 32%; right: 33%; width: 42px; height: 42px; --glow-order: 36; }
.footer-block.fb-38 { top: 42%; right: 30%; width: 36px; height: 36px; --glow-order: 37; }
.footer-block.fb-39 { top: 78%; right: 28%; width: 38px; height: 38px; --glow-order: 38; }
.footer-block.fb-40 { bottom: 8%; right: 32%; width: 40px; height: 40px; --glow-order: 39; }
.footer-block.fb-41 { top: 18%; right: 22%; width: 42px; height: 42px; --glow-order: 40; }
.footer-block.fb-42 { top: 52%; right: 20%; width: 38px; height: 38px; --glow-order: 41; }
.footer-block.fb-43 { bottom: 38%; right: 18%; width: 36px; height: 36px; --glow-order: 42; }
.footer-block.fb-44 { top: 32%; right: 15%; width: 44px; height: 44px; --glow-order: 43; }
.footer-block.fb-45 { bottom: 22%; right: 22%; width: 40px; height: 40px; --glow-order: 44; }
.footer-block.fb-46 { top: 62%; right: 12%; width: 38px; height: 38px; --glow-order: 45; }
.footer-block.fb-47 { top: 8%; right: 18%; width: 42px; height: 42px; --glow-order: 46; }
.footer-block.fb-48 { bottom: 48%; right: 15%; width: 36px; height: 36px; --glow-order: 47; }
.footer-block.fb-49 { top: 38%; right: 6%; width: 40px; height: 40px; --glow-order: 48; }
.footer-block.fb-50 { top: 70%; right: 8%; width: 44px; height: 44px; --glow-order: 49; }
.footer-block.fb-51 { bottom: 5%; right: 12%; width: 38px; height: 38px; --glow-order: 50; }
.footer-block.fb-52 { top: 12%; right: 3%; width: 42px; height: 42px; --glow-order: 51; }
.footer-block.fb-53 { top: 48%; right: 2%; width: 36px; height: 36px; --glow-order: 52; }
.footer-block.fb-54 { bottom: 35%; right: 6%; width: 40px; height: 40px; --glow-order: 53; }
.footer-block.fb-55 { top: 82%; right: 4%; width: 38px; height: 38px; --glow-order: 54; }
.footer-block.fb-56 { bottom: 15%; right: 8%; width: 42px; height: 42px; --glow-order: 55; }
.footer-block.fb-57 { top: 25%; right: 10%; width: 36px; height: 36px; --glow-order: 56; }
.footer-block.fb-58 { top: 58%; right: 14%; width: 44px; height: 44px; --glow-order: 57; }
.footer-block.fb-59 { bottom: 42%; right: 4%; width: 38px; height: 38px; --glow-order: 58; }
.footer-block.fb-60 { top: 88%; right: 6%; width: 40px; height: 40px; --glow-order: 59; }

.footer-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: var(--space-3);
    opacity: 0.9;
}

.footer-bottom {
    margin-top: var(--space-4);
    position: relative;
}

.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .footer-blocks .dark-mode-toggle {
        position: absolute !important;
        width: 40px !important;
        height: 40px !important;
        right: 50% !important;
        top: 50% !important;
        bottom: auto !important;
        left: auto !important;
        transform: translate(50%, -50%) !important;
        z-index: 100 !important;
    }

    .footer-blocks .dark-mode-toggle:hover {
        transform: translate(50%, -50%) scale(1.05) !important;
    }

    .footer-blocks .dark-mode-toggle:active {
        transform: translate(50%, -50%) scale(0.95) !important;
    }

    .toggle-icon {
        font-size: 14px;
    }

    .footer {
        padding: var(--space-8) 0 var(--space-5);
    }

    .footer-block {
        width: 30px !important;
        height: 30px !important;
    }

    /* All 60 blocks uniform size on mobile, positions slightly adjusted */
    .footer-block.fb-1 { left: 3%; top: 8%; }
    .footer-block.fb-2 { left: 2%; top: 35%; }
    .footer-block.fb-3 { left: 5%; top: 60%; }
    .footer-block.fb-4 { left: 3%; bottom: 12%; }
    .footer-block.fb-5 { left: 20%; top: 18%; }
    .footer-block.fb-6 { left: 25%; bottom: 22%; }
    .footer-block.fb-7 { right: 22%; top: 12%; }
    .footer-block.fb-8 { right: 20%; bottom: 28%; }
    .footer-block.fb-9 { right: 5%; top: 22%; }
    .footer-block.fb-10 { right: 3%; top: 48%; }
    .footer-block.fb-11 { right: 6%; bottom: 18%; }
    .footer-block.fb-12 { right: 2%; bottom: 6%; }
    /* Blocks 13-60 maintain their desktop positions but scale to 30px */

    .footer-text {
        font-size: 0.95rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */
@media (min-width: 769px) {
    .hide-desktop {
        display: none;
    }
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}
