/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --bg-color: #ffffff;
    --link-hover: #333333;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    /* Sol LeWitt Wall Drawing #26: "A one-inch grid covering a 36 inch square. Within each one-inch square, there is a line in one of the four directions." */
    background-image: 
        /* Grid lines */
        repeating-linear-gradient(rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0px, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 40px),
        /* Pattern layer 1: Vertical lines (up/down direction) */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='8' x2='20' y2='32' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3Cline x1='60' y1='8' x2='60' y2='32' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Pattern layer 2: Horizontal lines (left/right direction) */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='8' y1='20' x2='32' y2='20' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3Cline x1='48' y1='60' x2='72' y2='60' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Pattern layer 3: More vertical lines */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='48' x2='20' y2='72' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3Cline x1='60' y1='48' x2='60' y2='72' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Pattern layer 4: More horizontal lines */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='48' y1='20' x2='72' y2='20' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3Cline x1='8' y1='60' x2='32' y2='60' stroke='rgba(0,0,0,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 
        40px 40px,
        40px 40px,
        80px 80px,
        80px 80px,
        80px 80px,
        80px 80px;
    background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    animation: lewittBackground 35s ease-in-out infinite;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Additional pattern layer for depth and movement */
    background-image: 
        url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='10' x2='20' y2='30' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='60' y1='10' x2='60' y2='30' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='10' y1='20' x2='30' y2='20' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='50' y1='60' x2='70' y2='60' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='100' y1='10' x2='100' y2='30' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='140' y1='10' x2='140' y2='30' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='90' y1='20' x2='110' y2='20' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3Cline x1='130' y1='60' x2='150' y2='60' stroke='rgba(0,0,0,0.04)' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    animation: lewittMovement 30s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Radial gradient overlay - lighter in center, darker at edges */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.85) 35%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes lewittBackground {
    0%, 100% {
        background-position: 
            0 0, 
            0 0, 
            0 0, 
            0 0, 
            0 0, 
            0 0;
    }
    25% {
        background-position: 
            0 0, 
            0 0, 
            2px 2px, 
            -2px 2px, 
            2px -2px, 
            -2px -2px;
    }
    50% {
        background-position: 
            0 0, 
            0 0, 
            4px 4px, 
            -4px 4px, 
            4px -4px, 
            -4px -4px;
    }
    75% {
        background-position: 
            0 0, 
            0 0, 
            2px 2px, 
            -2px 2px, 
            2px -2px, 
            -2px -2px;
    }
}

@keyframes lewittMovement {
    0%, 100% {
        background-position: 0 0;
        opacity: 1;
    }
    50% {
        background-position: 5px 5px;
        opacity: 0.92;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    z-index: 1000;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    letter-spacing: -0.01em;
}

.nav-links a:hover {
    color: var(--link-hover);
}

.logo-link {
    font-weight: 600;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    z-index: 1001;
    font-family: 'Inter', sans-serif;
}

.dark-mode-toggle:hover {
    opacity: 0.7;
}

.toggle-icon {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    line-height: 1;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-option {
    transition: opacity 0.3s ease;
}

.toggle-option.active {
    font-weight: 600;
    opacity: 1;
}

.toggle-option:not(.active) {
    opacity: 0.4;
}

.toggle-separator {
    opacity: 0.3;
    font-weight: 300;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 2px solid var(--border-color);
}


.name {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.title {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Section Styles */
.section {
    margin-bottom: 5rem;
    padding-bottom: 4rem;
    border-bottom: 2px solid var(--border-color);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-content {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    max-width: 600px;
}

.section-content a {
    color: #8b5cf6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.section-content a:hover {
    color: #7c3aed;
}

/* Resume Section */
.resume-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.resume-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.resume-link:hover {
    color: var(--text-secondary);
    border-bottom-color: var(--text-secondary);
}


/* Specialties */
.specialty {
    margin-bottom: 3rem;
}

.specialty:last-child {
    margin-bottom: 0;
}

.specialty-title {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.specialty-item {
    margin-bottom: 2rem;
}

.specialty-item:last-child {
    margin-bottom: 0;
}

.specialty-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.specialty-list {
    list-style: none;
    padding-left: 0;
}

.specialty-list li {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.specialty-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: 600;
}

.specialty-list li:last-child {
    margin-bottom: 0;
}

/* Building Tools: tool subsections (Capacity Planner / Rose) */
.specialty-tool-heading {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.specialty-tool-heading--spaced {
    margin-top: 2rem;
}

.specialty-bold-label {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
}

/* Link Placeholder Styling */
.link-placeholder {
    color: #ff6b35;
    background-color: #fff3e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px dashed #ff6b35;
}

body.dark-mode .link-placeholder {
    color: #ff8a65;
    background-color: rgba(255, 107, 53, 0.15);
    border-color: #ff8a65;
}

/* Portfolio Pieces */
.portfolio-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    background-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 2rem;
        font-size: 0.9rem;
    }

    main {
        padding: 6rem 1.5rem 3rem;
    }

    .hero {
        margin-bottom: 4rem;
        padding-bottom: 3rem;
    }

    .section {
        margin-bottom: 4rem;
        padding-bottom: 3rem;
    }

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

    .specialty-title {
        font-size: 1.2rem;
    }

    .specialty-list li {
        font-size: 0.95rem;
    }

    .portfolio-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        min-height: 150px;
        padding: 1.5rem;
    }

}

@media (max-width: 480px) {
    .nav-links {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1rem;
    }

    .dark-mode-toggle {
        top: 1rem;
        right: 1.5rem;
        padding: 0.4rem;
    }

    .toggle-icon {
        font-size: 0.85rem;
    }

    .print-button {
        top: 1rem;
        left: 1.5rem;
        padding: 0.4rem;
    }

    .print-icon {
        font-size: 0.85rem;
    }

}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --text-muted: #808080;
        --border-color: #404040;
        --bg-color: #1a1a1a;
        --link-hover: #e0e0e0;
    }

    body {
        background-color: var(--bg-color);
        /* Dark mode Sol LeWitt pattern - white lines on dark background */
        background-image: 
            /* Grid lines */
            repeating-linear-gradient(rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 40px),
            repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 40px),
            /* Pattern layer 1: Vertical lines (up/down direction) */
            url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='8' x2='20' y2='32' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='60' y1='8' x2='60' y2='32' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
            /* Pattern layer 2: Horizontal lines (left/right direction) */
            url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='8' y1='20' x2='32' y2='20' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='48' y1='60' x2='72' y2='60' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
            /* Pattern layer 3: More vertical lines */
            url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='48' x2='20' y2='72' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='60' y1='48' x2='60' y2='72' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
            /* Pattern layer 4: More horizontal lines */
            url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='48' y1='20' x2='72' y2='20' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='8' y1='60' x2='32' y2='60' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    }

    body::before {
        background-image: 
            url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='10' x2='20' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='60' y1='10' x2='60' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='10' y1='20' x2='30' y2='20' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='50' y1='60' x2='70' y2='60' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='100' y1='10' x2='100' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='140' y1='10' x2='140' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='90' y1='20' x2='110' y2='20' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='130' y1='60' x2='150' y2='60' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3C/svg%3E");
    }

    body::after {
        /* Radial gradient overlay - darker in center (less pattern), lighter at edges (more pattern) */
        background: radial-gradient(ellipse at center, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.85) 35%, rgba(26, 26, 26, 0.5) 60%, rgba(26, 26, 26, 0) 100%);
    }

    nav {
        background-color: rgba(26, 26, 26, 0.95);
        border-bottom: 2px solid var(--border-color);
    }
}

/* Manual Dark Mode Toggle Class */
body.dark-mode {
    --text-primary: #ffffff !important;
    --text-secondary: #b3b3b3 !important;
    --text-muted: #808080 !important;
    --border-color: #404040 !important;
    --bg-color: #1a1a1a !important;
    --link-hover: #e0e0e0 !important;
}

body.dark-mode {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
    /* Dark mode Sol LeWitt pattern - white lines on dark background */
    background-image: 
        /* Grid lines */
        repeating-linear-gradient(rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0px, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 40px),
        /* Pattern layer 1: Vertical lines (up/down direction) */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='8' x2='20' y2='32' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='60' y1='8' x2='60' y2='32' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Pattern layer 2: Horizontal lines (left/right direction) */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='8' y1='20' x2='32' y2='20' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='48' y1='60' x2='72' y2='60' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Pattern layer 3: More vertical lines */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='48' x2='20' y2='72' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='60' y1='48' x2='60' y2='72' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Pattern layer 4: More horizontal lines */
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='48' y1='20' x2='72' y2='20' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Cline x1='8' y1='60' x2='32' y2='60' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E") !important;
}

body.dark-mode::before {
    background-image: 
        url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='20' y1='10' x2='20' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='60' y1='10' x2='60' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='10' y1='20' x2='30' y2='20' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='50' y1='60' x2='70' y2='60' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='100' y1='10' x2='100' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='140' y1='10' x2='140' y2='30' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='90' y1='20' x2='110' y2='20' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3Cline x1='130' y1='60' x2='150' y2='60' stroke='rgba(255,255,255,0.04)' stroke-width='0.8'/%3E%3C/svg%3E");
}

body.dark-mode::after {
    /* Radial gradient overlay - darker in center (less pattern), lighter at edges (more pattern) */
    background: radial-gradient(ellipse at center, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.85) 35%, rgba(26, 26, 26, 0.5) 60%, rgba(26, 26, 26, 0) 100%);
}

body.dark-mode nav {
    background-color: rgba(26, 26, 26, 0.95);
    border-bottom: 2px solid var(--border-color);
}

body.dark-mode .toggle-icon {
    color: var(--text-primary);
}

body.dark-mode .section-content a {
    color: #ff69b4;
}

body.dark-mode .section-content a:hover {
    color: #ffb6c1;
}
